configure revision 1.1.1.1.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-vmware 10.16.8.
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$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${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 <<EOF
606 $*
607 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 "$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 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='xf86-video-vmware'
752 PACKAGE_TARNAME='xf86-video-vmware'
753 PACKAGE_VERSION='10.16.8'
754 PACKAGE_STRING='xf86-video-vmware 10.16.8'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 ADMIN_MAN_DIR
797 DRIVER_MAN_DIR
798 MISC_MAN_DIR
799 FILE_MAN_DIR
800 LIB_MAN_DIR
801 APP_MAN_DIR
802 ADMIN_MAN_SUFFIX
803 DRIVER_MAN_SUFFIX
804 MISC_MAN_SUFFIX
805 FILE_MAN_SUFFIX
806 LIB_MAN_SUFFIX
807 APP_MAN_SUFFIX
808 DRIVER_NAME
809 moduledir
810 XSERVER_LIBPCIACCESS_FALSE
811 XSERVER_LIBPCIACCESS_TRUE
812 PCIACCESS_LIBS
813 PCIACCESS_CFLAGS
814 XORG_LIBS
815 XORG_CFLAGS
816 PKG_CONFIG
817 LIBTOOL
818 ac_ct_F77
819 FFLAGS
820 F77
821 CXXCPP
822 am__fastdepCXX_FALSE
823 am__fastdepCXX_TRUE
824 CXXDEPMODE
825 ac_ct_CXX
826 CXXFLAGS
827 CXX
828 CPP
829 NMEDIT
830 DSYMUTIL
831 RANLIB
832 AR
833 ECHO
834 LN_S
835 EGREP
836 GREP
837 SED
838 am__fastdepCC_FALSE
839 am__fastdepCC_TRUE
840 CCDEPMODE
841 AMDEPBACKSLASH
842 AMDEP_FALSE
843 AMDEP_TRUE
844 am__quote
845 am__include
846 DEPDIR
847 OBJEXT
848 EXEEXT
849 ac_ct_CC
850 CPPFLAGS
851 LDFLAGS
852 CFLAGS
853 CC
854 host_os
855 host_vendor
856 host_cpu
857 host
858 build_os
859 build_vendor
860 build_cpu
861 build
862 MAINT
863 MAINTAINER_MODE_FALSE
864 MAINTAINER_MODE_TRUE
865 am__untar
866 am__tar
867 AMTAR
868 am__leading_dot
869 SET_MAKE
870 AWK
871 mkdir_p
872 MKDIR_P
873 INSTALL_STRIP_PROGRAM
874 STRIP
875 install_sh
876 MAKEINFO
877 AUTOHEADER
878 AUTOMAKE
879 AUTOCONF
880 ACLOCAL
881 VERSION
882 PACKAGE
883 CYGPATH_W
884 am__isrc
885 INSTALL_DATA
886 INSTALL_SCRIPT
887 INSTALL_PROGRAM
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 enable_maintainer_mode
929 enable_static
930 enable_shared
931 enable_fast_install
932 enable_dependency_tracking
933 with_gnu_ld
934 enable_libtool_lock
935 with_pic
936 with_tags
937 with_xorg_module_dir
938 with_release_version
939 '
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
943 CC
944 CFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
948 CPP
949 CXX
950 CXXFLAGS
951 CCC
952 CXXCPP
953 F77
954 FFLAGS
955 PKG_CONFIG
956 XORG_CFLAGS
957 XORG_LIBS
958 PCIACCESS_CFLAGS
959 PCIACCESS_LIBS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1009
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1013 do
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1019 fi
1020
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1025
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1027
1028 case $ac_dashdash$ac_option in
1029 --)
1030 ac_dashdash=yes ;;
1031
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1036
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1041
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1048
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1051
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1056
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1063
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=no ;;
1080
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1085
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1090
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1116
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1120
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1127
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1132
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1138
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1145
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1150
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1155
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1162
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1167
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1174
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1179
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1183
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1187
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1191
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1200
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1205
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1212
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1219
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1236
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1241
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1246
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1250
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 ac_prev=sbindir ;;
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 | --sbi=* | --sb=*)
1255 sbindir=$ac_optarg ;;
1256
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1260 | --sha | --sh)
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 | --sha=* | --sh=*)
1266 sharedstatedir=$ac_optarg ;;
1267
1268 -site | --site | --sit)
1269 ac_prev=site ;;
1270 -site=* | --site=* | --sit=*)
1271 site=$ac_optarg ;;
1272
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 ac_prev=srcdir ;;
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1277
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1284
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1289
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 verbose=yes ;;
1292
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1295
1296 -with-* | --with-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1312
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=no ;;
1329
1330 --x)
1331 # Obsolete; use --with-x.
1332 with_x=yes ;;
1333
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1340
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1347
1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1351 ;;
1352
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1361
1362 *)
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368 ;;
1369
1370 esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383 { (exit 1); exit 1; }; } ;;
1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385 esac
1386 fi
1387
1388 # Check all directory arguments for consistency.
1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1393 do
1394 eval ac_val=\$$ac_var
1395 # Remove trailing slashes.
1396 case $ac_val in
1397 */ )
1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\$ac_val;;
1400 esac
1401 # Be sure to have absolute directory names.
1402 case $ac_val in
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 esac
1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1408 done
1409
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1416
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1424 cross_compiling=yes
1425 fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1482 fi
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures xf86-video-vmware 10.16.8 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root
1561 [DATAROOTDIR/doc/xf86-video-vmware]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1567
1568 cat <<\_ACEOF
1569
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 _ACEOF
1579 fi
1580
1581 if test -n "$ac_init_help"; then
1582 case $ac_init_help in
1583 short | recursive ) echo "Configuration of xf86-video-vmware 10.16.8:";;
1584 esac
1585 cat <<\_ACEOF
1586
1587 Optional Features:
1588 --disable-option-checking ignore unrecognized --enable/--with options
1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1591 --enable-maintainer-mode enable make rules and dependencies not useful
1592 (and sometimes confusing) to the casual installer
1593 --enable-static[=PKGS] build static libraries [default=no]
1594 --enable-shared[=PKGS] build shared libraries [default=yes]
1595 --enable-fast-install[=PKGS]
1596 optimize for fast installation [default=yes]
1597 --disable-dependency-tracking speeds up one-time build
1598 --enable-dependency-tracking do not reject slow dependency extractors
1599 --disable-libtool-lock avoid locking (might break parallel builds)
1600
1601 Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-xorg-module-dir=DIR
1609 Default xorg module directory
1610 [default=$libdir/xorg/modules]
1611 --with-release-version=STRING
1612 Use release version string in package name
1613
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CPP C preprocessor
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 CXXCPP C++ preprocessor
1626 F77 Fortran 77 compiler command
1627 FFLAGS Fortran 77 compiler flags
1628 PKG_CONFIG path to pkg-config utility
1629 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1630 XORG_LIBS linker flags for XORG, overriding pkg-config
1631 PCIACCESS_CFLAGS
1632 C compiler flags for PCIACCESS, overriding pkg-config
1633 PCIACCESS_LIBS
1634 linker flags for PCIACCESS, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 xf86-video-vmware configure 10.16.8
1703 generated by GNU Autoconf 2.63
1704
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by xf86-video-vmware $as_me 10.16.8, which was
1717 generated by GNU Autoconf 2.63. Invocation command line was
1718
1719 $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780 for ac_arg
1781 do
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792 2)
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1805 ;;
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1808 fi
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1810 ;;
1811 esac
1812 done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1824 {
1825 echo
1826
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1834 (
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846 *) $as_unset $ac_var ;;
1847 esac ;;
1848 esac
1849 done
1850 (set) 2>&1 |
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1853 sed -n \
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856 ;; #(
1857 *)
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859 ;;
1860 esac |
1861 sort
1862 )
1863 echo
1864
1865 cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887 echo
1888 for ac_var in $ac_subst_files
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 $as_echo "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897 fi
1898
1899 if test -s confdefs.h; then
1900 cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905 echo
1906 cat confdefs.h
1907 echo
1908 fi
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 _ACEOF
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1954 ac_site_file1=NONE
1955 ac_site_file2=NONE
1956 if test -n "$CONFIG_SITE"; then
1957 ac_site_file1=$CONFIG_SITE
1958 elif test "x$prefix" != xNONE; then
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
1961 else
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
1964 fi
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966 do
1967 test "x$ac_site_file" = xNONE && continue
1968 if test -r "$ac_site_file"; then
1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file"
1973 fi
1974 done
1975
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 $as_echo "$as_me: loading cache $cache_file" >&6;}
1982 case $cache_file in
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1985 esac
1986 fi
1987 else
1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990 >$cache_file
1991 fi
1992
1993 # Check that the precious variables saved in the cache have kept the same
1994 # value.
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2002 set,)
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,set)
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,);;
2011 *)
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 # differences in whitespace do not lead to failure.
2014 ac_old_val_w=`echo x $ac_old_val`
2015 ac_new_val_w=`echo x $ac_new_val`
2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019 ac_cache_corrupted=:
2020 else
2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023 eval $ac_var=\$ac_old_val
2024 fi
2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2029 fi;;
2030 esac
2031 # Pass precious variables to config.status.
2032 if test "$ac_new_set" = set; then
2033 case $ac_new_val in
2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 *) ac_arg=$ac_var=$ac_new_val ;;
2036 esac
2037 case " $ac_configure_args " in
2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 esac
2041 fi
2042 done
2043 if $ac_cache_corrupted; then
2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050 { (exit 1); exit 1; }; }
2051 fi
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082
2083
2084
2085
2086 ac_config_headers="$ac_config_headers config.h"
2087
2088 ac_aux_dir=
2089 for ac_dir in . "$srcdir"/.; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2106 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119
2120 am__api_version='1.10'
2121
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 # Reject install programs that cannot install multiple files.
2136 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 $as_echo_n "(cached) " >&6
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 # Account for people who put trailing slashes in PATH elements.
2148 case $as_dir/ in
2149 ./ | .// | /cC/* | \
2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152 /usr/ucb/* ) ;;
2153 *)
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2156 # by default.
2157 for ac_prog in ginstall scoinst install; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2163 :
2164 elif test $ac_prog = install &&
2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2167 :
2168 else
2169 rm -rf conftest.one conftest.two conftest.dir
2170 echo one > conftest.one
2171 echo two > conftest.two
2172 mkdir conftest.dir
2173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2174 test -s conftest.one && test -s conftest.two &&
2175 test -s conftest.dir/conftest.one &&
2176 test -s conftest.dir/conftest.two
2177 then
2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179 break 3
2180 fi
2181 fi
2182 fi
2183 done
2184 done
2185 ;;
2186 esac
2187
2188 done
2189 IFS=$as_save_IFS
2190
2191 rm -rf conftest.one conftest.two conftest.dir
2192
2193 fi
2194 if test "${ac_cv_path_install+set}" = set; then
2195 INSTALL=$ac_cv_path_install
2196 else
2197 # As a last resort, use the slow shell script. Don't cache a
2198 # value for INSTALL within a source directory, because that will
2199 # break other packages using the cache if that directory is
2200 # removed, or if the value is a relative name.
2201 INSTALL=$ac_install_sh
2202 fi
2203 fi
2204 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2205 $as_echo "$INSTALL" >&6; }
2206
2207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2208 # It thinks the first close brace ends the variable substitution.
2209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2210
2211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2212
2213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2214
2215 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2216 $as_echo_n "checking whether build environment is sane... " >&6; }
2217 # Just in case
2218 sleep 1
2219 echo timestamp > conftest.file
2220 # Do `set' in a subshell so we don't clobber the current shell's
2221 # arguments. Must try -L first in case configure is actually a
2222 # symlink; some systems play weird games with the mod time of symlinks
2223 # (eg FreeBSD returns the mod time of the symlink's containing
2224 # directory).
2225 if (
2226 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2227 if test "$*" = "X"; then
2228 # -L didn't work.
2229 set X `ls -t $srcdir/configure conftest.file`
2230 fi
2231 rm -f conftest.file
2232 if test "$*" != "X $srcdir/configure conftest.file" \
2233 && test "$*" != "X conftest.file $srcdir/configure"; then
2234
2235 # If neither matched, then we have a broken ls. This can happen
2236 # if, for instance, CONFIG_SHELL is bash and it inherits a
2237 # broken ls alias from the environment. This has actually
2238 # happened. Such a system could not be considered "sane".
2239 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2240 alias in your environment" >&5
2241 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2242 alias in your environment" >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245
2246 test "$2" = conftest.file
2247 )
2248 then
2249 # Ok.
2250 :
2251 else
2252 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2253 Check your system clock" >&5
2254 $as_echo "$as_me: error: newly created file is older than distributed files!
2255 Check your system clock" >&2;}
2256 { (exit 1); exit 1; }; }
2257 fi
2258 { $as_echo "$as_me:$LINENO: result: yes" >&5
2259 $as_echo "yes" >&6; }
2260 test "$program_prefix" != NONE &&
2261 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2262 # Use a double $ so make ignores it.
2263 test "$program_suffix" != NONE &&
2264 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2265 # Double any \ or $.
2266 # By default was `s,x,x', remove it if useless.
2267 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2268 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2269
2270 # expand $ac_aux_dir to an absolute path
2271 am_aux_dir=`cd $ac_aux_dir && pwd`
2272
2273 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2274 # Use eval to expand $SHELL
2275 if eval "$MISSING --run true"; then
2276 am_missing_run="$MISSING --run "
2277 else
2278 am_missing_run=
2279 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2280 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2281 fi
2282
2283 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2284 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2285 if test -z "$MKDIR_P"; then
2286 if test "${ac_cv_path_mkdir+set}" = set; then
2287 $as_echo_n "(cached) " >&6
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_prog in mkdir gmkdir; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2297 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2298 'mkdir (GNU coreutils) '* | \
2299 'mkdir (coreutils) '* | \
2300 'mkdir (fileutils) '4.1*)
2301 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2302 break 3;;
2303 esac
2304 done
2305 done
2306 done
2307 IFS=$as_save_IFS
2308
2309 fi
2310
2311 if test "${ac_cv_path_mkdir+set}" = set; then
2312 MKDIR_P="$ac_cv_path_mkdir -p"
2313 else
2314 # As a last resort, use the slow shell script. Don't cache a
2315 # value for MKDIR_P within a source directory, because that will
2316 # break other packages using the cache if that directory is
2317 # removed, or if the value is a relative name.
2318 test -d ./--version && rmdir ./--version
2319 MKDIR_P="$ac_install_sh -d"
2320 fi
2321 fi
2322 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2323 $as_echo "$MKDIR_P" >&6; }
2324
2325 mkdir_p="$MKDIR_P"
2326 case $mkdir_p in
2327 [\\/$]* | ?:[\\/]*) ;;
2328 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2329 esac
2330
2331 for ac_prog in gawk mawk nawk awk
2332 do
2333 # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if test "${ac_cv_prog_AWK+set}" = set; then
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test -n "$AWK"; then
2341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_AWK="$ac_prog"
2351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 AWK=$ac_cv_prog_AWK
2361 if test -n "$AWK"; then
2362 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2363 $as_echo "$AWK" >&6; }
2364 else
2365 { $as_echo "$as_me:$LINENO: result: no" >&5
2366 $as_echo "no" >&6; }
2367 fi
2368
2369
2370 test -n "$AWK" && break
2371 done
2372
2373 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2374 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2375 set x ${MAKE-make}
2376 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2377 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2378 $as_echo_n "(cached) " >&6
2379 else
2380 cat >conftest.make <<\_ACEOF
2381 SHELL = /bin/sh
2382 all:
2383 @echo '@@@%%%=$(MAKE)=@@@%%%'
2384 _ACEOF
2385 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2386 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2387 *@@@%%%=?*=@@@%%%*)
2388 eval ac_cv_prog_make_${ac_make}_set=yes;;
2389 *)
2390 eval ac_cv_prog_make_${ac_make}_set=no;;
2391 esac
2392 rm -f conftest.make
2393 fi
2394 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2395 { $as_echo "$as_me:$LINENO: result: yes" >&5
2396 $as_echo "yes" >&6; }
2397 SET_MAKE=
2398 else
2399 { $as_echo "$as_me:$LINENO: result: no" >&5
2400 $as_echo "no" >&6; }
2401 SET_MAKE="MAKE=${MAKE-make}"
2402 fi
2403
2404 rm -rf .tst 2>/dev/null
2405 mkdir .tst 2>/dev/null
2406 if test -d .tst; then
2407 am__leading_dot=.
2408 else
2409 am__leading_dot=_
2410 fi
2411 rmdir .tst 2>/dev/null
2412
2413 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2414 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2415 # is not polluted with repeated "-I."
2416 am__isrc=' -I$(srcdir)'
2417 # test to see if srcdir already configured
2418 if test -f $srcdir/config.status; then
2419 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2420 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2421 { (exit 1); exit 1; }; }
2422 fi
2423 fi
2424
2425 # test whether we have cygpath
2426 if test -z "$CYGPATH_W"; then
2427 if (cygpath --version) >/dev/null 2>/dev/null; then
2428 CYGPATH_W='cygpath -w'
2429 else
2430 CYGPATH_W=echo
2431 fi
2432 fi
2433
2434
2435 # Define the identity of the package.
2436 PACKAGE='xf86-video-vmware'
2437 VERSION='10.16.8'
2438
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE "$PACKAGE"
2442 _ACEOF
2443
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define VERSION "$VERSION"
2447 _ACEOF
2448
2449 # Some tools Automake needs.
2450
2451 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2452
2453
2454 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2455
2456
2457 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2458
2459
2460 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2461
2462
2463 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2464
2465 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2466
2467 # Installed binaries are usually stripped using `strip' when the user
2468 # run `make install-strip'. However `strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the `STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if test "${ac_cv_prog_STRIP+set}" = set; then
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$STRIP"; then
2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:$LINENO: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_STRIP"; then
2512 ac_ct_STRIP=$STRIP
2513 # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$ac_ct_STRIP"; then
2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_ac_ct_STRIP="strip"
2531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:$LINENO: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549 if test "x$ac_ct_STRIP" = x; then
2550 STRIP=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 STRIP=$ac_ct_STRIP
2559 fi
2560 else
2561 STRIP="$ac_cv_prog_STRIP"
2562 fi
2563
2564 fi
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567 # We need awk for the "check" target. The system "awk" is bad on
2568 # some platforms.
2569 # Always define AMTAR for backward compatibility.
2570
2571 AMTAR=${AMTAR-"${am_missing_run}tar"}
2572
2573 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2574
2575
2576
2577
2578
2579
2580 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2581 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2582 # Check whether --enable-maintainer-mode was given.
2583 if test "${enable_maintainer_mode+set}" = set; then
2584 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2585 else
2586 USE_MAINTAINER_MODE=no
2587 fi
2588
2589 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2590 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2591 if test $USE_MAINTAINER_MODE = yes; then
2592 MAINTAINER_MODE_TRUE=
2593 MAINTAINER_MODE_FALSE='#'
2594 else
2595 MAINTAINER_MODE_TRUE='#'
2596 MAINTAINER_MODE_FALSE=
2597 fi
2598
2599 MAINT=$MAINTAINER_MODE_TRUE
2600
2601
2602
2603 # Checks for programs.
2604 # Check whether --enable-static was given.
2605 if test "${enable_static+set}" = set; then
2606 enableval=$enable_static; p=${PACKAGE-default}
2607 case $enableval in
2608 yes) enable_static=yes ;;
2609 no) enable_static=no ;;
2610 *)
2611 enable_static=no
2612 # Look at the argument we got. We use all the common list separators.
2613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2614 for pkg in $enableval; do
2615 IFS="$lt_save_ifs"
2616 if test "X$pkg" = "X$p"; then
2617 enable_static=yes
2618 fi
2619 done
2620 IFS="$lt_save_ifs"
2621 ;;
2622 esac
2623 else
2624 enable_static=no
2625 fi
2626
2627
2628
2629 # Check whether --enable-shared was given.
2630 if test "${enable_shared+set}" = set; then
2631 enableval=$enable_shared; p=${PACKAGE-default}
2632 case $enableval in
2633 yes) enable_shared=yes ;;
2634 no) enable_shared=no ;;
2635 *)
2636 enable_shared=no
2637 # Look at the argument we got. We use all the common list separators.
2638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2639 for pkg in $enableval; do
2640 IFS="$lt_save_ifs"
2641 if test "X$pkg" = "X$p"; then
2642 enable_shared=yes
2643 fi
2644 done
2645 IFS="$lt_save_ifs"
2646 ;;
2647 esac
2648 else
2649 enable_shared=yes
2650 fi
2651
2652
2653 # Check whether --enable-fast-install was given.
2654 if test "${enable_fast_install+set}" = set; then
2655 enableval=$enable_fast_install; p=${PACKAGE-default}
2656 case $enableval in
2657 yes) enable_fast_install=yes ;;
2658 no) enable_fast_install=no ;;
2659 *)
2660 enable_fast_install=no
2661 # Look at the argument we got. We use all the common list separators.
2662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2663 for pkg in $enableval; do
2664 IFS="$lt_save_ifs"
2665 if test "X$pkg" = "X$p"; then
2666 enable_fast_install=yes
2667 fi
2668 done
2669 IFS="$lt_save_ifs"
2670 ;;
2671 esac
2672 else
2673 enable_fast_install=yes
2674 fi
2675
2676
2677 # Make sure we can run config.sub.
2678 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2679 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2680 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2681 { (exit 1); exit 1; }; }
2682
2683 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2684 $as_echo_n "checking build system type... " >&6; }
2685 if test "${ac_cv_build+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2687 else
2688 ac_build_alias=$build_alias
2689 test "x$ac_build_alias" = x &&
2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2691 test "x$ac_build_alias" = x &&
2692 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2693 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2694 { (exit 1); exit 1; }; }
2695 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2696 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2697 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2698 { (exit 1); exit 1; }; }
2699
2700 fi
2701 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2702 $as_echo "$ac_cv_build" >&6; }
2703 case $ac_cv_build in
2704 *-*-*) ;;
2705 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2706 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2707 { (exit 1); exit 1; }; };;
2708 esac
2709 build=$ac_cv_build
2710 ac_save_IFS=$IFS; IFS='-'
2711 set x $ac_cv_build
2712 shift
2713 build_cpu=$1
2714 build_vendor=$2
2715 shift; shift
2716 # Remember, the first character of IFS is used to create $*,
2717 # except with old shells:
2718 build_os=$*
2719 IFS=$ac_save_IFS
2720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2721
2722
2723 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2724 $as_echo_n "checking host system type... " >&6; }
2725 if test "${ac_cv_host+set}" = set; then
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test "x$host_alias" = x; then
2729 ac_cv_host=$ac_cv_build
2730 else
2731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2732 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2733 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2734 { (exit 1); exit 1; }; }
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2739 $as_echo "$ac_cv_host" >&6; }
2740 case $ac_cv_host in
2741 *-*-*) ;;
2742 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2743 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2744 { (exit 1); exit 1; }; };;
2745 esac
2746 host=$ac_cv_host
2747 ac_save_IFS=$IFS; IFS='-'
2748 set x $ac_cv_host
2749 shift
2750 host_cpu=$1
2751 host_vendor=$2
2752 shift; shift
2753 # Remember, the first character of IFS is used to create $*,
2754 # except with old shells:
2755 host_os=$*
2756 IFS=$ac_save_IFS
2757 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2758
2759
2760 DEPDIR="${am__leading_dot}deps"
2761
2762 ac_config_commands="$ac_config_commands depfiles"
2763
2764
2765 am_make=${MAKE-make}
2766 cat > confinc << 'END'
2767 am__doit:
2768 @echo done
2769 .PHONY: am__doit
2770 END
2771 # If we don't find an include directive, just comment out the code.
2772 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2773 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2774 am__include="#"
2775 am__quote=
2776 _am_result=none
2777 # First try GNU make style include.
2778 echo "include confinc" > confmf
2779 # We grep out `Entering directory' and `Leaving directory'
2780 # messages which can occur if `w' ends up in MAKEFLAGS.
2781 # In particular we don't look at `^make:' because GNU make might
2782 # be invoked under some other name (usually "gmake"), in which
2783 # case it prints its new name instead of `make'.
2784 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2785 am__include=include
2786 am__quote=
2787 _am_result=GNU
2788 fi
2789 # Now try BSD make style include.
2790 if test "$am__include" = "#"; then
2791 echo '.include "confinc"' > confmf
2792 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2793 am__include=.include
2794 am__quote="\""
2795 _am_result=BSD
2796 fi
2797 fi
2798
2799
2800 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2801 $as_echo "$_am_result" >&6; }
2802 rm -f confinc confmf
2803
2804 # Check whether --enable-dependency-tracking was given.
2805 if test "${enable_dependency_tracking+set}" = set; then
2806 enableval=$enable_dependency_tracking;
2807 fi
2808
2809 if test "x$enable_dependency_tracking" != xno; then
2810 am_depcomp="$ac_aux_dir/depcomp"
2811 AMDEPBACKSLASH='\'
2812 fi
2813 if test "x$enable_dependency_tracking" != xno; then
2814 AMDEP_TRUE=
2815 AMDEP_FALSE='#'
2816 else
2817 AMDEP_TRUE='#'
2818 AMDEP_FALSE=
2819 fi
2820
2821
2822 ac_ext=c
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2858 $as_echo "$CC" >&6; }
2859 else
2860 { $as_echo "$as_me:$LINENO: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 if test -z "$ac_cv_prog_CC"; then
2867 ac_ct_CC=$CC
2868 # Extract the first word of "gcc", so it can be a program name with args.
2869 set dummy gcc; ac_word=$2
2870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_ac_ct_CC="gcc"
2886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 $as_echo "$ac_ct_CC" >&6; }
2899 else
2900 { $as_echo "$as_me:$LINENO: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904 if test "x$ac_ct_CC" = x; then
2905 CC=""
2906 else
2907 case $cross_compiling:$ac_tool_warned in
2908 yes:)
2909 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913 CC=$ac_ct_CC
2914 fi
2915 else
2916 CC="$ac_cv_prog_CC"
2917 fi
2918
2919 if test -z "$CC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}cc; ac_word=$2
2923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="${ac_tool_prefix}cc"
2939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953 { $as_echo "$as_me:$LINENO: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 fi
2960 if test -z "$CC"; then
2961 # Extract the first word of "cc", so it can be a program name with args.
2962 set dummy cc; ac_word=$2
2963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 ac_prog_rejected=no
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2980 ac_prog_rejected=yes
2981 continue
2982 fi
2983 ac_cv_prog_CC="cc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 if test $ac_prog_rejected = yes; then
2992 # We found a bogon in the path, so make sure we never use it.
2993 set dummy $ac_cv_prog_CC
2994 shift
2995 if test $# != 0; then
2996 # We chose a different compiler from the bogus one.
2997 # However, it has the same basename, so the bogon will be chosen
2998 # first if we set CC to just the basename; use the full file name.
2999 shift
3000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3001 fi
3002 fi
3003 fi
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:$LINENO: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 for ac_prog in cl.exe
3019 do
3020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:$LINENO: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 test -n "$CC" && break
3058 done
3059 fi
3060 if test -z "$CC"; then
3061 ac_ct_CC=$CC
3062 for ac_prog in cl.exe
3063 do
3064 # Extract the first word of "$ac_prog", so it can be a program name with args.
3065 set dummy $ac_prog; ac_word=$2
3066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_ac_ct_CC="$ac_prog"
3082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092 if test -n "$ac_ct_CC"; then
3093 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3094 $as_echo "$ac_ct_CC" >&6; }
3095 else
3096 { $as_echo "$as_me:$LINENO: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 test -n "$ac_ct_CC" && break
3102 done
3103
3104 if test "x$ac_ct_CC" = x; then
3105 CC=""
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108 yes:)
3109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3112 esac
3113 CC=$ac_ct_CC
3114 fi
3115 fi
3116
3117 fi
3118
3119
3120 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3123 See \`config.log' for more details." >&5
3124 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3125 See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }; }
3127
3128 # Provide some information about the compiler.
3129 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3130 set X $ac_compile
3131 ac_compiler=$2
3132 { (ac_try="$ac_compiler --version >&5"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138 $as_echo "$ac_try_echo") >&5
3139 (eval "$ac_compiler --version >&5") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -v >&5"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150 (eval "$ac_compiler -v >&5") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }
3154 { (ac_try="$ac_compiler -V >&5"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160 $as_echo "$ac_try_echo") >&5
3161 (eval "$ac_compiler -V >&5") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3165
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3187 $as_echo_n "checking for C compiler default output file name... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199 esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { (ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209 $as_echo "$ac_try_echo") >&5
3210 (eval "$ac_link_default") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224 ;;
3225 [ab].out )
3226 # We found the default executable, but exeext='' is most
3227 # certainly right.
3228 break;;
3229 *.* )
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231 then :; else
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 fi
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3238 # actually working.
3239 break;;
3240 * )
3241 break;;
3242 esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247 ac_file=''
3248 fi
3249
3250 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3251 $as_echo "$ac_file" >&6; }
3252 if test -z "$ac_file"; then
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3259 See \`config.log' for more details." >&5
3260 $as_echo "$as_me: error: C compiler cannot create executables
3261 See \`config.log' for more details." >&2;}
3262 { (exit 77); exit 77; }; }; }
3263 fi
3264
3265 ac_exeext=$ac_cv_exeext
3266
3267 # Check that the compiler produces executables we can run. If not, either
3268 # the compiler is broken, or we cross compile.
3269 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3272 # If not cross compiling, check that we can run a simple program.
3273 if test "$cross_compiling" != yes; then
3274 if { ac_try='./$ac_file'
3275 { (case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3280 $as_echo "$ac_try_echo") >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 cross_compiling=no
3286 else
3287 if test "$cross_compiling" = maybe; then
3288 cross_compiling=yes
3289 else
3290 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3293 If you meant to cross compile, use \`--host'.
3294 See \`config.log' for more details." >&5
3295 $as_echo "$as_me: error: cannot run C compiled programs.
3296 If you meant to cross compile, use \`--host'.
3297 See \`config.log' for more details." >&2;}
3298 { (exit 1); exit 1; }; }; }
3299 fi
3300 fi
3301 fi
3302 { $as_echo "$as_me:$LINENO: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304
3305 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3306 ac_clean_files=$ac_clean_files_save
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3310 $as_echo_n "checking whether we are cross compiling... " >&6; }
3311 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3312 $as_echo "$cross_compiling" >&6; }
3313
3314 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3315 $as_echo_n "checking for suffix of executables... " >&6; }
3316 if { (ac_try="$ac_link"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; then
3327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 # `rm'.
3331 for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339 done
3340 else
3341 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details." >&5
3345 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details." >&2;}
3347 { (exit 1); exit 1; }; }; }
3348 fi
3349
3350 rm -f conftest$ac_cv_exeext
3351 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3352 $as_echo "$ac_cv_exeext" >&6; }
3353
3354 rm -f conftest.$ac_ext
3355 EXEEXT=$ac_cv_exeext
3356 ac_exeext=$EXEEXT
3357 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3358 $as_echo_n "checking for suffix of object files... " >&6; }
3359 if test "${ac_cv_objext+set}" = set; then
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.o conftest.obj
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_compile") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; then
3389 for ac_file in conftest.o conftest.obj conftest.*; do
3390 test -f "$ac_file" || continue;
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3394 break;;
3395 esac
3396 done
3397 else
3398 $as_echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details." >&5
3405 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." >&2;}
3407 { (exit 1); exit 1; }; }; }
3408 fi
3409
3410 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3411 fi
3412 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3413 $as_echo "$ac_cv_objext" >&6; }
3414 OBJEXT=$ac_cv_objext
3415 ac_objext=$OBJEXT
3416 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3417 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3418 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3419 $as_echo_n "(cached) " >&6
3420 else
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431 #ifndef __GNUC__
3432 choke me
3433 #endif
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_compile") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && {
3454 test -z "$ac_c_werror_flag" ||
3455 test ! -s conftest.err
3456 } && test -s conftest.$ac_objext; then
3457 ac_compiler_gnu=yes
3458 else
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 ac_compiler_gnu=no
3463 fi
3464
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473 else
3474 GCC=
3475 fi
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if test "${ac_cv_prog_cc_g+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3482 else
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493
3494 int
3495 main ()
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509 $as_echo "$ac_try_echo") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && {
3517 test -z "$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.$ac_objext; then
3520 ac_cv_prog_cc_g=yes
3521 else
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 CFLAGS=""
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532
3533 int
3534 main ()
3535 {
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3548 $as_echo "$ac_try_echo") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3559 :
3560 else
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 ac_c_werror_flag=$ac_save_c_werror_flag
3565 CFLAGS="-g"
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (ac_try="$ac_compile"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3588 $as_echo "$ac_try_echo") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3599 ac_cv_prog_cc_g=yes
3600 else
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 fi
3609
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615 fi
3616 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3617 $as_echo "$ac_cv_prog_cc_g" >&6; }
3618 if test "$ac_test_CFLAGS" = set; then
3619 CFLAGS=$ac_save_CFLAGS
3620 elif test $ac_cv_prog_cc_g = yes; then
3621 if test "$GCC" = yes; then
3622 CFLAGS="-g -O2"
3623 else
3624 CFLAGS="-g"
3625 fi
3626 else
3627 if test "$GCC" = yes; then
3628 CFLAGS="-O2"
3629 else
3630 CFLAGS=
3631 fi
3632 fi
3633 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3634 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3635 if test "${ac_cv_prog_cc_c89+set}" = set; then
3636 $as_echo_n "(cached) " >&6
3637 else
3638 ac_cv_prog_cc_c89=no
3639 ac_save_CC=$CC
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <stdarg.h>
3647 #include <stdio.h>
3648 #include <sys/types.h>
3649 #include <sys/stat.h>
3650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651 struct buf { int x; };
3652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653 static char *e (p, i)
3654 char **p;
3655 int i;
3656 {
3657 return p[i];
3658 }
3659 static char *f (char * (*g) (char **, int), char **p, ...)
3660 {
3661 char *s;
3662 va_list v;
3663 va_start (v,p);
3664 s = g (p, va_arg (v,int));
3665 va_end (v);
3666 return s;
3667 }
3668
3669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677
3678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3680 #define FOO(x) 'x'
3681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682
3683 int test (int i, double x);
3684 struct s1 {int (*f) (int a);};
3685 struct s2 {int (*f) (double a);};
3686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3687 int argc;
3688 char **argv;
3689 int
3690 main ()
3691 {
3692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699 do
3700 CC="$ac_save_CC $ac_arg"
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3719 ac_cv_prog_cc_c89=$ac_arg
3720 else
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724
3725 fi
3726
3727 rm -f core conftest.err conftest.$ac_objext
3728 test "x$ac_cv_prog_cc_c89" != "xno" && break
3729 done
3730 rm -f conftest.$ac_ext
3731 CC=$ac_save_CC
3732
3733 fi
3734 # AC_CACHE_VAL
3735 case "x$ac_cv_prog_cc_c89" in
3736 x)
3737 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3738 $as_echo "none needed" >&6; } ;;
3739 xno)
3740 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3741 $as_echo "unsupported" >&6; } ;;
3742 *)
3743 CC="$CC $ac_cv_prog_cc_c89"
3744 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3746 esac
3747
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755 depcc="$CC" am_compiler_list=
3756
3757 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3758 $as_echo_n "checking dependency style of $depcc... " >&6; }
3759 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763 # We make a subdir and do the tests there. Otherwise we can end up
3764 # making bogus files that we don't know about and never remove. For
3765 # instance it was reported that on HP-UX the gcc test will end up
3766 # making a dummy file named `D' -- because `-MD' means `put the output
3767 # in D'.
3768 mkdir conftest.dir
3769 # Copy depcomp to subdir because otherwise we won't find it if we're
3770 # using a relative directory.
3771 cp "$am_depcomp" conftest.dir
3772 cd conftest.dir
3773 # We will build objects and dependencies in a subdirectory because
3774 # it helps to detect inapplicable dependency modes. For instance
3775 # both Tru64's cc and ICC support -MD to output dependencies as a
3776 # side effect of compilation, but ICC will put the dependencies in
3777 # the current directory while Tru64 will put them in the object
3778 # directory.
3779 mkdir sub
3780
3781 am_cv_CC_dependencies_compiler_type=none
3782 if test "$am_compiler_list" = ""; then
3783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784 fi
3785 for depmode in $am_compiler_list; do
3786 # Setup a source with many dependencies, because some compilers
3787 # like to wrap large dependency lists on column 80 (with \), and
3788 # we should not choose a depcomp mode which is confused by this.
3789 #
3790 # We need to recreate these files for each test, as the compiler may
3791 # overwrite some of them when testing with obscure command lines.
3792 # This happens at least with the AIX C compiler.
3793 : > sub/conftest.c
3794 for i in 1 2 3 4 5 6; do
3795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3797 # Solaris 8's {/usr,}/bin/sh.
3798 touch sub/conftst$i.h
3799 done
3800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3801
3802 case $depmode in
3803 nosideeffect)
3804 # after this tag, mechanisms are not by side-effect, so they'll
3805 # only be used when explicitly requested
3806 if test "x$enable_dependency_tracking" = xyes; then
3807 continue
3808 else
3809 break
3810 fi
3811 ;;
3812 none) break ;;
3813 esac
3814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3815 # mode. It turns out that the SunPro C++ compiler does not properly
3816 # handle `-M -o', and we need to detect this.
3817 if depmode=$depmode \
3818 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3820 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3821 >/dev/null 2>conftest.err &&
3822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826 # icc doesn't choke on unknown options, it will just issue warnings
3827 # or remarks (even with -Werror). So we grep stderr for any message
3828 # that says an option was ignored or not supported.
3829 # When given -MP, icc 7.0 and 7.1 complain thusly:
3830 # icc: Command line warning: ignoring option '-M'; no argument required
3831 # The diagnosis changed in icc 8.0:
3832 # icc: Command line remark: option '-MP' not supported
3833 if (grep 'ignoring option' conftest.err ||
3834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835 am_cv_CC_dependencies_compiler_type=$depmode
3836 break
3837 fi
3838 fi
3839 done
3840
3841 cd ..
3842 rm -rf conftest.dir
3843 else
3844 am_cv_CC_dependencies_compiler_type=none
3845 fi
3846
3847 fi
3848 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3849 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3850 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3851
3852 if
3853 test "x$enable_dependency_tracking" != xno \
3854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3855 am__fastdepCC_TRUE=
3856 am__fastdepCC_FALSE='#'
3857 else
3858 am__fastdepCC_TRUE='#'
3859 am__fastdepCC_FALSE=
3860 fi
3861
3862
3863 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3864 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3865 if test "${lt_cv_path_SED+set}" = set; then
3866 $as_echo_n "(cached) " >&6
3867 else
3868 # Loop through the user's path and test for sed and gsed.
3869 # Then use that list of sed's as ones to test for truncation.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for lt_ac_prog in sed gsed; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3878 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3879 fi
3880 done
3881 done
3882 done
3883 IFS=$as_save_IFS
3884 lt_ac_max=0
3885 lt_ac_count=0
3886 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3887 # along with /bin/sed that truncates output.
3888 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3889 test ! -f $lt_ac_sed && continue
3890 cat /dev/null > conftest.in
3891 lt_ac_count=0
3892 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3893 # Check for GNU sed and select it if it is found.
3894 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3895 lt_cv_path_SED=$lt_ac_sed
3896 break
3897 fi
3898 while true; do
3899 cat conftest.in conftest.in >conftest.tmp
3900 mv conftest.tmp conftest.in
3901 cp conftest.in conftest.nl
3902 echo >>conftest.nl
3903 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3904 cmp -s conftest.out conftest.nl || break
3905 # 10000 chars as input seems more than enough
3906 test $lt_ac_count -gt 10 && break
3907 lt_ac_count=`expr $lt_ac_count + 1`
3908 if test $lt_ac_count -gt $lt_ac_max; then
3909 lt_ac_max=$lt_ac_count
3910 lt_cv_path_SED=$lt_ac_sed
3911 fi
3912 done
3913 done
3914
3915 fi
3916
3917 SED=$lt_cv_path_SED
3918
3919 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3920 $as_echo "$SED" >&6; }
3921
3922 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3924 if test "${ac_cv_path_GREP+set}" = set; then
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -z "$GREP"; then
3928 ac_path_GREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
3940 # Check for GNU $ac_path_GREP
3941 case `"$ac_path_GREP" --version 2>&1` in
3942 *GNU*)
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944 *)
3945 ac_count=0
3946 $as_echo_n 0123456789 >"conftest.in"
3947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 $as_echo 'GREP' >> "conftest.nl"
3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 ac_count=`expr $ac_count + 1`
3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
3960 fi
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3966
3967 $ac_path_GREP_found && break 3
3968 done
3969 done
3970 done
3971 IFS=$as_save_IFS
3972 if test -z "$ac_cv_path_GREP"; then
3973 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975 { (exit 1); exit 1; }; }
3976 fi
3977 else
3978 ac_cv_path_GREP=$GREP
3979 fi
3980
3981 fi
3982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 $as_echo "$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3985
3986
3987 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3988 $as_echo_n "checking for egrep... " >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
3995 if test -z "$EGREP"; then
3996 ac_path_EGREP_found=false
3997 # Loop through the user's path and test for each of PROGNAME-LIST
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_prog in egrep; do
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4007 # Check for GNU ac_path_EGREP and select it if it is found.
4008 # Check for GNU $ac_path_EGREP
4009 case `"$ac_path_EGREP" --version 2>&1` in
4010 *GNU*)
4011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4012 *)
4013 ac_count=0
4014 $as_echo_n 0123456789 >"conftest.in"
4015 while :
4016 do
4017 cat "conftest.in" "conftest.in" >"conftest.tmp"
4018 mv "conftest.tmp" "conftest.in"
4019 cp "conftest.in" "conftest.nl"
4020 $as_echo 'EGREP' >> "conftest.nl"
4021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023 ac_count=`expr $ac_count + 1`
4024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4025 # Best one so far, save it but keep looking for a better one
4026 ac_cv_path_EGREP="$ac_path_EGREP"
4027 ac_path_EGREP_max=$ac_count
4028 fi
4029 # 10*(2^10) chars as input seems more than enough
4030 test $ac_count -gt 10 && break
4031 done
4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 esac
4034
4035 $ac_path_EGREP_found && break 3
4036 done
4037 done
4038 done
4039 IFS=$as_save_IFS
4040 if test -z "$ac_cv_path_EGREP"; then
4041 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4042 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4043 { (exit 1); exit 1; }; }
4044 fi
4045 else
4046 ac_cv_path_EGREP=$EGREP
4047 fi
4048
4049 fi
4050 fi
4051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4052 $as_echo "$ac_cv_path_EGREP" >&6; }
4053 EGREP="$ac_cv_path_EGREP"
4054
4055
4056
4057 # Check whether --with-gnu-ld was given.
4058 if test "${with_gnu_ld+set}" = set; then
4059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4060 else
4061 with_gnu_ld=no
4062 fi
4063
4064 ac_prog=ld
4065 if test "$GCC" = yes; then
4066 # Check if gcc -print-prog-name=ld gives a path.
4067 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4068 $as_echo_n "checking for ld used by $CC... " >&6; }
4069 case $host in
4070 *-*-mingw*)
4071 # gcc leaves a trailing carriage return which upsets mingw
4072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4073 *)
4074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4075 esac
4076 case $ac_prog in
4077 # Accept absolute paths.
4078 [\\/]* | ?:[\\/]*)
4079 re_direlt='/[^/][^/]*/\.\./'
4080 # Canonicalize the pathname of ld
4081 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4082 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4083 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4084 done
4085 test -z "$LD" && LD="$ac_prog"
4086 ;;
4087 "")
4088 # If it fails, then pretend we aren't using GCC.
4089 ac_prog=ld
4090 ;;
4091 *)
4092 # If it is relative, then search for the first ld in PATH.
4093 with_gnu_ld=unknown
4094 ;;
4095 esac
4096 elif test "$with_gnu_ld" = yes; then
4097 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4098 $as_echo_n "checking for GNU ld... " >&6; }
4099 else
4100 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4101 $as_echo_n "checking for non-GNU ld... " >&6; }
4102 fi
4103 if test "${lt_cv_path_LD+set}" = set; then
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -z "$LD"; then
4107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4108 for ac_dir in $PATH; do
4109 IFS="$lt_save_ifs"
4110 test -z "$ac_dir" && ac_dir=.
4111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4112 lt_cv_path_LD="$ac_dir/$ac_prog"
4113 # Check to see if the program is GNU ld. I'd rather use --version,
4114 # but apparently some variants of GNU ld only accept -v.
4115 # Break only if it was the GNU/non-GNU ld that we prefer.
4116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4117 *GNU* | *'with BFD'*)
4118 test "$with_gnu_ld" != no && break
4119 ;;
4120 *)
4121 test "$with_gnu_ld" != yes && break
4122 ;;
4123 esac
4124 fi
4125 done
4126 IFS="$lt_save_ifs"
4127 else
4128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4129 fi
4130 fi
4131
4132 LD="$lt_cv_path_LD"
4133 if test -n "$LD"; then
4134 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4135 $as_echo "$LD" >&6; }
4136 else
4137 { $as_echo "$as_me:$LINENO: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4141 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4142 { (exit 1); exit 1; }; }
4143 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4144 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4145 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4147 else
4148 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4149 case `$LD -v 2>&1 </dev/null` in
4150 *GNU* | *'with BFD'*)
4151 lt_cv_prog_gnu_ld=yes
4152 ;;
4153 *)
4154 lt_cv_prog_gnu_ld=no
4155 ;;
4156 esac
4157 fi
4158 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4159 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4160 with_gnu_ld=$lt_cv_prog_gnu_ld
4161
4162
4163 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4164 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4165 if test "${lt_cv_ld_reload_flag+set}" = set; then
4166 $as_echo_n "(cached) " >&6
4167 else
4168 lt_cv_ld_reload_flag='-r'
4169 fi
4170 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4171 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4172 reload_flag=$lt_cv_ld_reload_flag
4173 case $reload_flag in
4174 "" | " "*) ;;
4175 *) reload_flag=" $reload_flag" ;;
4176 esac
4177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4178 case $host_os in
4179 darwin*)
4180 if test "$GCC" = yes; then
4181 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4182 else
4183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4184 fi
4185 ;;
4186 esac
4187
4188 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4189 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4190 if test "${lt_cv_path_NM+set}" = set; then
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$NM"; then
4194 # Let the user override the test.
4195 lt_cv_path_NM="$NM"
4196 else
4197 lt_nm_to_check="${ac_tool_prefix}nm"
4198 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4199 lt_nm_to_check="$lt_nm_to_check nm"
4200 fi
4201 for lt_tmp_nm in $lt_nm_to_check; do
4202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4203 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4204 IFS="$lt_save_ifs"
4205 test -z "$ac_dir" && ac_dir=.
4206 tmp_nm="$ac_dir/$lt_tmp_nm"
4207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4208 # Check to see if the nm accepts a BSD-compat flag.
4209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4210 # nm: unknown option "B" ignored
4211 # Tru64's nm complains that /dev/null is an invalid object file
4212 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4213 */dev/null* | *'Invalid file or object type'*)
4214 lt_cv_path_NM="$tmp_nm -B"
4215 break
4216 ;;
4217 *)
4218 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4219 */dev/null*)
4220 lt_cv_path_NM="$tmp_nm -p"
4221 break
4222 ;;
4223 *)
4224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4225 continue # so that we can try to find one that supports BSD flags
4226 ;;
4227 esac
4228 ;;
4229 esac
4230 fi
4231 done
4232 IFS="$lt_save_ifs"
4233 done
4234 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4235 fi
4236 fi
4237 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4238 $as_echo "$lt_cv_path_NM" >&6; }
4239 NM="$lt_cv_path_NM"
4240
4241 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4242 $as_echo_n "checking whether ln -s works... " >&6; }
4243 LN_S=$as_ln_s
4244 if test "$LN_S" = "ln -s"; then
4245 { $as_echo "$as_me:$LINENO: result: yes" >&5
4246 $as_echo "yes" >&6; }
4247 else
4248 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4249 $as_echo "no, using $LN_S" >&6; }
4250 fi
4251
4252 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4253 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4254 if test "${lt_cv_deplibs_check_method+set}" = set; then
4255 $as_echo_n "(cached) " >&6
4256 else
4257 lt_cv_file_magic_cmd='$MAGIC_CMD'
4258 lt_cv_file_magic_test_file=
4259 lt_cv_deplibs_check_method='unknown'
4260 # Need to set the preceding variable on all platforms that support
4261 # interlibrary dependencies.
4262 # 'none' -- dependencies not supported.
4263 # `unknown' -- same as none, but documents that we really don't know.
4264 # 'pass_all' -- all dependencies passed with no checks.
4265 # 'test_compile' -- check by making test program.
4266 # 'file_magic [[regex]]' -- check by looking for files in library path
4267 # which responds to the $file_magic_cmd with a given extended regex.
4268 # If you have `file' or equivalent on your system and you're not sure
4269 # whether `pass_all' will *always* work, you probably want this one.
4270
4271 case $host_os in
4272 aix[4-9]*)
4273 lt_cv_deplibs_check_method=pass_all
4274 ;;
4275
4276 beos*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
4279
4280 bsdi[45]*)
4281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4282 lt_cv_file_magic_cmd='/usr/bin/file -L'
4283 lt_cv_file_magic_test_file=/shlib/libc.so
4284 ;;
4285
4286 cygwin*)
4287 # func_win32_libid is a shell function defined in ltmain.sh
4288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4289 lt_cv_file_magic_cmd='func_win32_libid'
4290 ;;
4291
4292 mingw* | pw32*)
4293 # Base MSYS/MinGW do not provide the 'file' command needed by
4294 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4295 # unless we find 'file', for example because we are cross-compiling.
4296 if ( file / ) >/dev/null 2>&1; then
4297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4298 lt_cv_file_magic_cmd='func_win32_libid'
4299 else
4300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4301 lt_cv_file_magic_cmd='$OBJDUMP -f'
4302 fi
4303 ;;
4304
4305 darwin* | rhapsody*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309 freebsd* | dragonfly*)
4310 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4311 case $host_cpu in
4312 i*86 )
4313 # Not sure whether the presence of OpenBSD here was a mistake.
4314 # Let's accept both of them until this is cleared up.
4315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4316 lt_cv_file_magic_cmd=/usr/bin/file
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4318 ;;
4319 esac
4320 else
4321 lt_cv_deplibs_check_method=pass_all
4322 fi
4323 ;;
4324
4325 gnu*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
4329 hpux10.20* | hpux11*)
4330 lt_cv_file_magic_cmd=/usr/bin/file
4331 case $host_cpu in
4332 ia64*)
4333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4334 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4335 ;;
4336 hppa*64*)
4337 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]'
4338 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4339 ;;
4340 *)
4341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4342 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4343 ;;
4344 esac
4345 ;;
4346
4347 interix[3-9]*)
4348 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4350 ;;
4351
4352 irix5* | irix6* | nonstopux*)
4353 case $LD in
4354 *-32|*"-32 ") libmagic=32-bit;;
4355 *-n32|*"-n32 ") libmagic=N32;;
4356 *-64|*"-64 ") libmagic=64-bit;;
4357 *) libmagic=never-match;;
4358 esac
4359 lt_cv_deplibs_check_method=pass_all
4360 ;;
4361
4362 # This must be Linux ELF.
4363 linux* | k*bsd*-gnu)
4364 lt_cv_deplibs_check_method=pass_all
4365 ;;
4366
4367 netbsd*)
4368 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4370 else
4371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4372 fi
4373 ;;
4374
4375 newos6*)
4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4377 lt_cv_file_magic_cmd=/usr/bin/file
4378 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4379 ;;
4380
4381 nto-qnx*)
4382 lt_cv_deplibs_check_method=unknown
4383 ;;
4384
4385 openbsd*)
4386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4388 else
4389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4390 fi
4391 ;;
4392
4393 osf3* | osf4* | osf5*)
4394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396
4397 rdos*)
4398 lt_cv_deplibs_check_method=pass_all
4399 ;;
4400
4401 solaris*)
4402 lt_cv_deplibs_check_method=pass_all
4403 ;;
4404
4405 sysv4 | sysv4.3*)
4406 case $host_vendor in
4407 motorola)
4408 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]'
4409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4410 ;;
4411 ncr)
4412 lt_cv_deplibs_check_method=pass_all
4413 ;;
4414 sequent)
4415 lt_cv_file_magic_cmd='/bin/file'
4416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4417 ;;
4418 sni)
4419 lt_cv_file_magic_cmd='/bin/file'
4420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4421 lt_cv_file_magic_test_file=/lib/libc.so
4422 ;;
4423 siemens)
4424 lt_cv_deplibs_check_method=pass_all
4425 ;;
4426 pc)
4427 lt_cv_deplibs_check_method=pass_all
4428 ;;
4429 esac
4430 ;;
4431
4432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4433 lt_cv_deplibs_check_method=pass_all
4434 ;;
4435 esac
4436
4437 fi
4438 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4439 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4440 file_magic_cmd=$lt_cv_file_magic_cmd
4441 deplibs_check_method=$lt_cv_deplibs_check_method
4442 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4443
4444
4445
4446
4447 # If no C compiler was specified, use CC.
4448 LTCC=${LTCC-"$CC"}
4449
4450 # If no C compiler flags were specified, use CFLAGS.
4451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4452
4453 # Allow CC to be a program name with arguments.
4454 compiler=$CC
4455
4456
4457 # Check whether --enable-libtool-lock was given.
4458 if test "${enable_libtool_lock+set}" = set; then
4459 enableval=$enable_libtool_lock;
4460 fi
4461
4462 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4463
4464 # Some flags need to be propagated to the compiler or linker for good
4465 # libtool support.
4466 case $host in
4467 ia64-*-hpux*)
4468 # Find out which ABI we are using.
4469 echo 'int i;' > conftest.$ac_ext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4472 ac_status=$?
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; then
4475 case `/usr/bin/file conftest.$ac_objext` in
4476 *ELF-32*)
4477 HPUX_IA64_MODE="32"
4478 ;;
4479 *ELF-64*)
4480 HPUX_IA64_MODE="64"
4481 ;;
4482 esac
4483 fi
4484 rm -rf conftest*
4485 ;;
4486 *-*-irix6*)
4487 # Find out which ABI we are using.
4488 echo '#line 4488 "configure"' > conftest.$ac_ext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 if test "$lt_cv_prog_gnu_ld" = yes; then
4495 case `/usr/bin/file conftest.$ac_objext` in
4496 *32-bit*)
4497 LD="${LD-ld} -melf32bsmip"
4498 ;;
4499 *N32*)
4500 LD="${LD-ld} -melf32bmipn32"
4501 ;;
4502 *64-bit*)
4503 LD="${LD-ld} -melf64bmip"
4504 ;;
4505 esac
4506 else
4507 case `/usr/bin/file conftest.$ac_objext` in
4508 *32-bit*)
4509 LD="${LD-ld} -32"
4510 ;;
4511 *N32*)
4512 LD="${LD-ld} -n32"
4513 ;;
4514 *64-bit*)
4515 LD="${LD-ld} -64"
4516 ;;
4517 esac
4518 fi
4519 fi
4520 rm -rf conftest*
4521 ;;
4522
4523 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4524 s390*-*linux*|sparc*-*linux*)
4525 # Find out which ABI we are using.
4526 echo 'int i;' > conftest.$ac_ext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>&5
4529 ac_status=$?
4530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; then
4532 case `/usr/bin/file conftest.o` in
4533 *32-bit*)
4534 case $host in
4535 x86_64-*kfreebsd*-gnu)
4536 LD="${LD-ld} -m elf_i386_fbsd"
4537 ;;
4538 x86_64-*linux*)
4539 LD="${LD-ld} -m elf_i386"
4540 ;;
4541 ppc64-*linux*|powerpc64-*linux*)
4542 LD="${LD-ld} -m elf32ppclinux"
4543 ;;
4544 s390x-*linux*)
4545 LD="${LD-ld} -m elf_s390"
4546 ;;
4547 sparc64-*linux*)
4548 LD="${LD-ld} -m elf32_sparc"
4549 ;;
4550 esac
4551 ;;
4552 *64-bit*)
4553 case $host in
4554 x86_64-*kfreebsd*-gnu)
4555 LD="${LD-ld} -m elf_x86_64_fbsd"
4556 ;;
4557 x86_64-*linux*)
4558 LD="${LD-ld} -m elf_x86_64"
4559 ;;
4560 ppc*-*linux*|powerpc*-*linux*)
4561 LD="${LD-ld} -m elf64ppc"
4562 ;;
4563 s390*-*linux*)
4564 LD="${LD-ld} -m elf64_s390"
4565 ;;
4566 sparc*-*linux*)
4567 LD="${LD-ld} -m elf64_sparc"
4568 ;;
4569 esac
4570 ;;
4571 esac
4572 fi
4573 rm -rf conftest*
4574 ;;
4575
4576 *-*-sco3.2v5*)
4577 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4578 SAVE_CFLAGS="$CFLAGS"
4579 CFLAGS="$CFLAGS -belf"
4580 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4581 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4582 if test "${lt_cv_cc_needs_belf+set}" = set; then
4583 $as_echo_n "(cached) " >&6
4584 else
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597
4598 int
4599 main ()
4600 {
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 $as_echo "$ac_try_echo") >&5
4614 (eval "$ac_link") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest$ac_exeext && {
4624 test "$cross_compiling" = yes ||
4625 $as_test_x conftest$ac_exeext
4626 }; then
4627 lt_cv_cc_needs_belf=yes
4628 else
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 lt_cv_cc_needs_belf=no
4633 fi
4634
4635 rm -rf conftest.dSYM
4636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4637 conftest$ac_exeext conftest.$ac_ext
4638 ac_ext=c
4639 ac_cpp='$CPP $CPPFLAGS'
4640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643
4644 fi
4645 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4646 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4647 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4648 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4649 CFLAGS="$SAVE_CFLAGS"
4650 fi
4651 ;;
4652 sparc*-*solaris*)
4653 # Find out which ABI we are using.
4654 echo 'int i;' > conftest.$ac_ext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>&5
4657 ac_status=$?
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; then
4660 case `/usr/bin/file conftest.o` in
4661 *64-bit*)
4662 case $lt_cv_prog_gnu_ld in
4663 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4664 *)
4665 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4666 LD="${LD-ld} -64"
4667 fi
4668 ;;
4669 esac
4670 ;;
4671 esac
4672 fi
4673 rm -rf conftest*
4674 ;;
4675
4676
4677 esac
4678
4679 need_locks="$enable_libtool_lock"
4680
4681
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4688 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4689 # On Suns, sometimes $CPP names a directory.
4690 if test -n "$CPP" && test -d "$CPP"; then
4691 CPP=
4692 fi
4693 if test -z "$CPP"; then
4694 if test "${ac_cv_prog_CPP+set}" = set; then
4695 $as_echo_n "(cached) " >&6
4696 else
4697 # Double quotes because CPP needs to be expanded
4698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4699 do
4700 ac_preproc_ok=false
4701 for ac_c_preproc_warn_flag in '' yes
4702 do
4703 # Use a header file that comes with gcc, so configuring glibc
4704 # with a fresh cross-compiler works.
4705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4706 # <limits.h> exists even on freestanding compilers.
4707 # On the NeXT, cc -E runs the code through the compiler's parser,
4708 # not just through cpp. "Syntax error" is here to catch this case.
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #ifdef __STDC__
4716 # include <limits.h>
4717 #else
4718 # include <assert.h>
4719 #endif
4720 Syntax error
4721 _ACEOF
4722 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726 esac
4727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4728 $as_echo "$ac_try_echo") >&5
4729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null && {
4736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 }; then
4739 :
4740 else
4741 $as_echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 # Broken: fails on valid input.
4745 continue
4746 fi
4747
4748 rm -f conftest.err conftest.$ac_ext
4749
4750 # OK, works on sane cases. Now check whether nonexistent headers
4751 # can be detected and how.
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <ac_nonexistent.h>
4759 _ACEOF
4760 if { (ac_try="$ac_cpp conftest.$ac_ext"
4761 case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764 esac
4765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4766 $as_echo "$ac_try_echo") >&5
4767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } >/dev/null && {
4774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4775 test ! -s conftest.err
4776 }; then
4777 # Broken: success on invalid input.
4778 continue
4779 else
4780 $as_echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 # Passes both tests.
4784 ac_preproc_ok=:
4785 break
4786 fi
4787
4788 rm -f conftest.err conftest.$ac_ext
4789
4790 done
4791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4792 rm -f conftest.err conftest.$ac_ext
4793 if $ac_preproc_ok; then
4794 break
4795 fi
4796
4797 done
4798 ac_cv_prog_CPP=$CPP
4799
4800 fi
4801 CPP=$ac_cv_prog_CPP
4802 else
4803 ac_cv_prog_CPP=$CPP
4804 fi
4805 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4806 $as_echo "$CPP" >&6; }
4807 ac_preproc_ok=false
4808 for ac_c_preproc_warn_flag in '' yes
4809 do
4810 # Use a header file that comes with gcc, so configuring glibc
4811 # with a fresh cross-compiler works.
4812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4813 # <limits.h> exists even on freestanding compilers.
4814 # On the NeXT, cc -E runs the code through the compiler's parser,
4815 # not just through cpp. "Syntax error" is here to catch this case.
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #ifdef __STDC__
4823 # include <limits.h>
4824 #else
4825 # include <assert.h>
4826 #endif
4827 Syntax error
4828 _ACEOF
4829 if { (ac_try="$ac_cpp conftest.$ac_ext"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835 $as_echo "$ac_try_echo") >&5
4836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null && {
4843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 }; then
4846 :
4847 else
4848 $as_echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 # Broken: fails on valid input.
4852 continue
4853 fi
4854
4855 rm -f conftest.err conftest.$ac_ext
4856
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <ac_nonexistent.h>
4866 _ACEOF
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 }; then
4884 # Broken: success on invalid input.
4885 continue
4886 else
4887 $as_echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4893 fi
4894
4895 rm -f conftest.err conftest.$ac_ext
4896
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then
4901 :
4902 else
4903 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4905 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&5
4907 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }; }
4910 fi
4911
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917
4918
4919 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4920 $as_echo_n "checking for ANSI C header files... " >&6; }
4921 if test "${ac_cv_header_stdc+set}" = set; then
4922 $as_echo_n "(cached) " >&6
4923 else
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #include <stdlib.h>
4931 #include <stdarg.h>
4932 #include <string.h>
4933 #include <float.h>
4934
4935 int
4936 main ()
4937 {
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_compile") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest.$ac_objext; then
4961 ac_cv_header_stdc=yes
4962 else
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_cv_header_stdc=no
4967 fi
4968
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970
4971 if test $ac_cv_header_stdc = yes; then
4972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #include <string.h>
4980
4981 _ACEOF
4982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4983 $EGREP "memchr" >/dev/null 2>&1; then
4984 :
4985 else
4986 ac_cv_header_stdc=no
4987 fi
4988 rm -f conftest*
4989
4990 fi
4991
4992 if test $ac_cv_header_stdc = yes; then
4993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #include <stdlib.h>
5001
5002 _ACEOF
5003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5004 $EGREP "free" >/dev/null 2>&1; then
5005 :
5006 else
5007 ac_cv_header_stdc=no
5008 fi
5009 rm -f conftest*
5010
5011 fi
5012
5013 if test $ac_cv_header_stdc = yes; then
5014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5015 if test "$cross_compiling" = yes; then
5016 :
5017 else
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #include <ctype.h>
5025 #include <stdlib.h>
5026 #if ((' ' & 0x0FF) == 0x020)
5027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5029 #else
5030 # define ISLOWER(c) \
5031 (('a' <= (c) && (c) <= 'i') \
5032 || ('j' <= (c) && (c) <= 'r') \
5033 || ('s' <= (c) && (c) <= 'z'))
5034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5035 #endif
5036
5037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5038 int
5039 main ()
5040 {
5041 int i;
5042 for (i = 0; i < 256; i++)
5043 if (XOR (islower (i), ISLOWER (i))
5044 || toupper (i) != TOUPPER (i))
5045 return 2;
5046 return 0;
5047 }
5048 _ACEOF
5049 rm -f conftest$ac_exeext
5050 if { (ac_try="$ac_link"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_link") 2>&5
5058 ac_status=$?
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5061 { (case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_try") 2>&5
5068 ac_status=$?
5069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 :
5072 else
5073 $as_echo "$as_me: program exited with status $ac_status" >&5
5074 $as_echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ( exit $ac_status )
5078 ac_cv_header_stdc=no
5079 fi
5080 rm -rf conftest.dSYM
5081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5082 fi
5083
5084
5085 fi
5086 fi
5087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5088 $as_echo "$ac_cv_header_stdc" >&6; }
5089 if test $ac_cv_header_stdc = yes; then
5090
5091 cat >>confdefs.h <<\_ACEOF
5092 #define STDC_HEADERS 1
5093 _ACEOF
5094
5095 fi
5096
5097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5108 inttypes.h stdint.h unistd.h
5109 do
5110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5112 $as_echo_n "checking for $ac_header... " >&6; }
5113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114 $as_echo_n "(cached) " >&6
5115 else
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123
5124 #include <$ac_header>
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5133 $as_echo "$ac_try_echo") >&5
5134 (eval "$ac_compile") 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && {
5141 test -z "$ac_c_werror_flag" ||
5142 test ! -s conftest.err
5143 } && test -s conftest.$ac_objext; then
5144 eval "$as_ac_Header=yes"
5145 else
5146 $as_echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 eval "$as_ac_Header=no"
5150 fi
5151
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 fi
5154 ac_res=`eval 'as_val=${'$as_ac_Header'}
5155 $as_echo "$as_val"'`
5156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5157 $as_echo "$ac_res" >&6; }
5158 as_val=`eval 'as_val=${'$as_ac_Header'}
5159 $as_echo "$as_val"'`
5160 if test "x$as_val" = x""yes; then
5161 cat >>confdefs.h <<_ACEOF
5162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5163 _ACEOF
5164
5165 fi
5166
5167 done
5168
5169
5170
5171 for ac_header in dlfcn.h
5172 do
5173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5176 $as_echo_n "checking for $ac_header... " >&6; }
5177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5178 $as_echo_n "(cached) " >&6
5179 fi
5180 ac_res=`eval 'as_val=${'$as_ac_Header'}
5181 $as_echo "$as_val"'`
5182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5183 $as_echo "$ac_res" >&6; }
5184 else
5185 # Is the header compilable?
5186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5187 $as_echo_n "checking $ac_header usability... " >&6; }
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5195 #include <$ac_header>
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (ac_try="$ac_compile"
5199 case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5204 $as_echo "$ac_try_echo") >&5
5205 (eval "$ac_compile") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && {
5212 test -z "$ac_c_werror_flag" ||
5213 test ! -s conftest.err
5214 } && test -s conftest.$ac_objext; then
5215 ac_header_compiler=yes
5216 else
5217 $as_echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_header_compiler=no
5221 fi
5222
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225 $as_echo "$ac_header_compiler" >&6; }
5226
5227 # Is the header present?
5228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229 $as_echo_n "checking $ac_header presence... " >&6; }
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <$ac_header>
5237 _ACEOF
5238 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5244 $as_echo "$ac_try_echo") >&5
5245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null && {
5252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 }; then
5255 ac_header_preproc=yes
5256 else
5257 $as_echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_header_preproc=no
5261 fi
5262
5263 rm -f conftest.err conftest.$ac_ext
5264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5265 $as_echo "$ac_header_preproc" >&6; }
5266
5267 # So? What about this header?
5268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5269 yes:no: )
5270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5274 ac_header_preproc=yes
5275 ;;
5276 no:yes:* )
5277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5289 ( cat <<\_ASBOX
5290 ## ---------------------------------------------------------------------- ##
5291 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5292 ## ---------------------------------------------------------------------- ##
5293 _ASBOX
5294 ) | sed "s/^/$as_me: WARNING: /" >&2
5295 ;;
5296 esac
5297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 $as_echo_n "checking for $ac_header... " >&6; }
5299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5300 $as_echo_n "(cached) " >&6
5301 else
5302 eval "$as_ac_Header=\$ac_header_preproc"
5303 fi
5304 ac_res=`eval 'as_val=${'$as_ac_Header'}
5305 $as_echo "$as_val"'`
5306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5307 $as_echo "$ac_res" >&6; }
5308
5309 fi
5310 as_val=`eval 'as_val=${'$as_ac_Header'}
5311 $as_echo "$as_val"'`
5312 if test "x$as_val" = x""yes; then
5313 cat >>confdefs.h <<_ACEOF
5314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5315 _ACEOF
5316
5317 fi
5318
5319 done
5320
5321 ac_ext=cpp
5322 ac_cpp='$CXXCPP $CPPFLAGS'
5323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5326 if test -z "$CXX"; then
5327 if test -n "$CCC"; then
5328 CXX=$CCC
5329 else
5330 if test -n "$ac_tool_prefix"; then
5331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5332 do
5333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_CXX+set}" = set; then
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$CXX"; then
5341 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 CXX=$ac_cv_prog_CXX
5361 if test -n "$CXX"; then
5362 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5363 $as_echo "$CXX" >&6; }
5364 else
5365 { $as_echo "$as_me:$LINENO: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370 test -n "$CXX" && break
5371 done
5372 fi
5373 if test -z "$CXX"; then
5374 ac_ct_CXX=$CXX
5375 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5376 do
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$ac_ct_CXX"; then
5385 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_CXX="$ac_prog"
5395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398 done
5399 done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5405 if test -n "$ac_ct_CXX"; then
5406 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5407 $as_echo "$ac_ct_CXX" >&6; }
5408 else
5409 { $as_echo "$as_me:$LINENO: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414 test -n "$ac_ct_CXX" && break
5415 done
5416
5417 if test "x$ac_ct_CXX" = x; then
5418 CXX="g++"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 CXX=$ac_ct_CXX
5427 fi
5428 fi
5429
5430 fi
5431 fi
5432 # Provide some information about the compiler.
5433 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5434 set X $ac_compile
5435 ac_compiler=$2
5436 { (ac_try="$ac_compiler --version >&5"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5442 $as_echo "$ac_try_echo") >&5
5443 (eval "$ac_compiler --version >&5") 2>&5
5444 ac_status=$?
5445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447 { (ac_try="$ac_compiler -v >&5"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454 (eval "$ac_compiler -v >&5") 2>&5
5455 ac_status=$?
5456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458 { (ac_try="$ac_compiler -V >&5"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5464 $as_echo "$ac_try_echo") >&5
5465 (eval "$ac_compiler -V >&5") 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }
5469
5470 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5471 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5472 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5474 else
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481
5482 int
5483 main ()
5484 {
5485 #ifndef __GNUC__
5486 choke me
5487 #endif
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500 $as_echo "$ac_try_echo") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_cxx_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5511 ac_compiler_gnu=yes
5512 else
5513 $as_echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_compiler_gnu=no
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5521
5522 fi
5523 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5524 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5525 if test $ac_compiler_gnu = yes; then
5526 GXX=yes
5527 else
5528 GXX=
5529 fi
5530 ac_test_CXXFLAGS=${CXXFLAGS+set}
5531 ac_save_CXXFLAGS=$CXXFLAGS
5532 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5533 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5534 if test "${ac_cv_prog_cxx_g+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5536 else
5537 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5538 ac_cxx_werror_flag=yes
5539 ac_cv_prog_cxx_g=no
5540 CXXFLAGS="-g"
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547
5548 int
5549 main ()
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5558 case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5563 $as_echo "$ac_try_echo") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_cxx_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
5574 ac_cv_prog_cxx_g=yes
5575 else
5576 $as_echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 CXXFLAGS=""
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586
5587 int
5588 main ()
5589 {
5590
5591 ;
5592 return 0;
5593 }
5594 _ACEOF
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603 (eval "$ac_compile") 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_cxx_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
5613 :
5614 else
5615 $as_echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5619 CXXFLAGS="-g"
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (ac_try="$ac_compile"
5637 case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5642 $as_echo "$ac_try_echo") >&5
5643 (eval "$ac_compile") 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && {
5650 test -z "$ac_cxx_werror_flag" ||
5651 test ! -s conftest.err
5652 } && test -s conftest.$ac_objext; then
5653 ac_cv_prog_cxx_g=yes
5654 else
5655 $as_echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658
5659 fi
5660
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 fi
5663
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5669 fi
5670 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5671 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5672 if test "$ac_test_CXXFLAGS" = set; then
5673 CXXFLAGS=$ac_save_CXXFLAGS
5674 elif test $ac_cv_prog_cxx_g = yes; then
5675 if test "$GXX" = yes; then
5676 CXXFLAGS="-g -O2"
5677 else
5678 CXXFLAGS="-g"
5679 fi
5680 else
5681 if test "$GXX" = yes; then
5682 CXXFLAGS="-O2"
5683 else
5684 CXXFLAGS=
5685 fi
5686 fi
5687 ac_ext=cpp
5688 ac_cpp='$CXXCPP $CPPFLAGS'
5689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692
5693 depcc="$CXX" am_compiler_list=
5694
5695 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5696 $as_echo_n "checking dependency style of $depcc... " >&6; }
5697 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5701 # We make a subdir and do the tests there. Otherwise we can end up
5702 # making bogus files that we don't know about and never remove. For
5703 # instance it was reported that on HP-UX the gcc test will end up
5704 # making a dummy file named `D' -- because `-MD' means `put the output
5705 # in D'.
5706 mkdir conftest.dir
5707 # Copy depcomp to subdir because otherwise we won't find it if we're
5708 # using a relative directory.
5709 cp "$am_depcomp" conftest.dir
5710 cd conftest.dir
5711 # We will build objects and dependencies in a subdirectory because
5712 # it helps to detect inapplicable dependency modes. For instance
5713 # both Tru64's cc and ICC support -MD to output dependencies as a
5714 # side effect of compilation, but ICC will put the dependencies in
5715 # the current directory while Tru64 will put them in the object
5716 # directory.
5717 mkdir sub
5718
5719 am_cv_CXX_dependencies_compiler_type=none
5720 if test "$am_compiler_list" = ""; then
5721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5722 fi
5723 for depmode in $am_compiler_list; do
5724 # Setup a source with many dependencies, because some compilers
5725 # like to wrap large dependency lists on column 80 (with \), and
5726 # we should not choose a depcomp mode which is confused by this.
5727 #
5728 # We need to recreate these files for each test, as the compiler may
5729 # overwrite some of them when testing with obscure command lines.
5730 # This happens at least with the AIX C compiler.
5731 : > sub/conftest.c
5732 for i in 1 2 3 4 5 6; do
5733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5734 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5735 # Solaris 8's {/usr,}/bin/sh.
5736 touch sub/conftst$i.h
5737 done
5738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5739
5740 case $depmode in
5741 nosideeffect)
5742 # after this tag, mechanisms are not by side-effect, so they'll
5743 # only be used when explicitly requested
5744 if test "x$enable_dependency_tracking" = xyes; then
5745 continue
5746 else
5747 break
5748 fi
5749 ;;
5750 none) break ;;
5751 esac
5752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5753 # mode. It turns out that the SunPro C++ compiler does not properly
5754 # handle `-M -o', and we need to detect this.
5755 if depmode=$depmode \
5756 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5757 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5758 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5759 >/dev/null 2>conftest.err &&
5760 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5761 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5762 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5763 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5764 # icc doesn't choke on unknown options, it will just issue warnings
5765 # or remarks (even with -Werror). So we grep stderr for any message
5766 # that says an option was ignored or not supported.
5767 # When given -MP, icc 7.0 and 7.1 complain thusly:
5768 # icc: Command line warning: ignoring option '-M'; no argument required
5769 # The diagnosis changed in icc 8.0:
5770 # icc: Command line remark: option '-MP' not supported
5771 if (grep 'ignoring option' conftest.err ||
5772 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5773 am_cv_CXX_dependencies_compiler_type=$depmode
5774 break
5775 fi
5776 fi
5777 done
5778
5779 cd ..
5780 rm -rf conftest.dir
5781 else
5782 am_cv_CXX_dependencies_compiler_type=none
5783 fi
5784
5785 fi
5786 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5787 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5788 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5789
5790 if
5791 test "x$enable_dependency_tracking" != xno \
5792 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5793 am__fastdepCXX_TRUE=
5794 am__fastdepCXX_FALSE='#'
5795 else
5796 am__fastdepCXX_TRUE='#'
5797 am__fastdepCXX_FALSE=
5798 fi
5799
5800
5801
5802
5803 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5804 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5805 (test "X$CXX" != "Xg++"))) ; then
5806 ac_ext=cpp
5807 ac_cpp='$CXXCPP $CPPFLAGS'
5808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5811 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5812 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5813 if test -z "$CXXCPP"; then
5814 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5815 $as_echo_n "(cached) " >&6
5816 else
5817 # Double quotes because CXXCPP needs to be expanded
5818 for CXXCPP in "$CXX -E" "/lib/cpp"
5819 do
5820 ac_preproc_ok=false
5821 for ac_cxx_preproc_warn_flag in '' yes
5822 do
5823 # Use a header file that comes with gcc, so configuring glibc
5824 # with a fresh cross-compiler works.
5825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 # <limits.h> exists even on freestanding compilers.
5827 # On the NeXT, cc -E runs the code through the compiler's parser,
5828 # not just through cpp. "Syntax error" is here to catch this case.
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #ifdef __STDC__
5836 # include <limits.h>
5837 #else
5838 # include <assert.h>
5839 #endif
5840 Syntax error
5841 _ACEOF
5842 if { (ac_try="$ac_cpp conftest.$ac_ext"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5848 $as_echo "$ac_try_echo") >&5
5849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null && {
5856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857 test ! -s conftest.err
5858 }; then
5859 :
5860 else
5861 $as_echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 # Broken: fails on valid input.
5865 continue
5866 fi
5867
5868 rm -f conftest.err conftest.$ac_ext
5869
5870 # OK, works on sane cases. Now check whether nonexistent headers
5871 # can be detected and how.
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if { (ac_try="$ac_cpp conftest.$ac_ext"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5886 $as_echo "$ac_try_echo") >&5
5887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } >/dev/null && {
5894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5895 test ! -s conftest.err
5896 }; then
5897 # Broken: success on invalid input.
5898 continue
5899 else
5900 $as_echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 # Passes both tests.
5904 ac_preproc_ok=:
5905 break
5906 fi
5907
5908 rm -f conftest.err conftest.$ac_ext
5909
5910 done
5911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5912 rm -f conftest.err conftest.$ac_ext
5913 if $ac_preproc_ok; then
5914 break
5915 fi
5916
5917 done
5918 ac_cv_prog_CXXCPP=$CXXCPP
5919
5920 fi
5921 CXXCPP=$ac_cv_prog_CXXCPP
5922 else
5923 ac_cv_prog_CXXCPP=$CXXCPP
5924 fi
5925 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5926 $as_echo "$CXXCPP" >&6; }
5927 ac_preproc_ok=false
5928 for ac_cxx_preproc_warn_flag in '' yes
5929 do
5930 # Use a header file that comes with gcc, so configuring glibc
5931 # with a fresh cross-compiler works.
5932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5933 # <limits.h> exists even on freestanding compilers.
5934 # On the NeXT, cc -E runs the code through the compiler's parser,
5935 # not just through cpp. "Syntax error" is here to catch this case.
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #ifdef __STDC__
5943 # include <limits.h>
5944 #else
5945 # include <assert.h>
5946 #endif
5947 Syntax error
5948 _ACEOF
5949 if { (ac_try="$ac_cpp conftest.$ac_ext"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5955 $as_echo "$ac_try_echo") >&5
5956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null && {
5963 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5964 test ! -s conftest.err
5965 }; then
5966 :
5967 else
5968 $as_echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 # Broken: fails on valid input.
5972 continue
5973 fi
5974
5975 rm -f conftest.err conftest.$ac_ext
5976
5977 # OK, works on sane cases. Now check whether nonexistent headers
5978 # can be detected and how.
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <ac_nonexistent.h>
5986 _ACEOF
5987 if { (ac_try="$ac_cpp conftest.$ac_ext"
5988 case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5993 $as_echo "$ac_try_echo") >&5
5994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null && {
6001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002 test ! -s conftest.err
6003 }; then
6004 # Broken: success on invalid input.
6005 continue
6006 else
6007 $as_echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 # Passes both tests.
6011 ac_preproc_ok=:
6012 break
6013 fi
6014
6015 rm -f conftest.err conftest.$ac_ext
6016
6017 done
6018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019 rm -f conftest.err conftest.$ac_ext
6020 if $ac_preproc_ok; then
6021 :
6022 else
6023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6025 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6026 See \`config.log' for more details." >&5
6027 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6028 See \`config.log' for more details." >&2;}
6029 { (exit 1); exit 1; }; }; }
6030 fi
6031
6032 ac_ext=cpp
6033 ac_cpp='$CXXCPP $CPPFLAGS'
6034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6037
6038 fi
6039
6040
6041 ac_ext=f
6042 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6043 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6045 if test -n "$ac_tool_prefix"; then
6046 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6047 do
6048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_F77+set}" = set; then
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$F77"; then
6056 ac_cv_prog_F77="$F77" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 F77=$ac_cv_prog_F77
6076 if test -n "$F77"; then
6077 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6078 $as_echo "$F77" >&6; }
6079 else
6080 { $as_echo "$as_me:$LINENO: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 test -n "$F77" && break
6086 done
6087 fi
6088 if test -z "$F77"; then
6089 ac_ct_F77=$F77
6090 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6091 do
6092 # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$ac_ct_F77"; then
6100 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_ac_ct_F77="$ac_prog"
6110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6120 if test -n "$ac_ct_F77"; then
6121 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6122 $as_echo "$ac_ct_F77" >&6; }
6123 else
6124 { $as_echo "$as_me:$LINENO: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128
6129 test -n "$ac_ct_F77" && break
6130 done
6131
6132 if test "x$ac_ct_F77" = x; then
6133 F77=""
6134 else
6135 case $cross_compiling:$ac_tool_warned in
6136 yes:)
6137 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6140 esac
6141 F77=$ac_ct_F77
6142 fi
6143 fi
6144
6145
6146 # Provide some information about the compiler.
6147 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6148 set X $ac_compile
6149 ac_compiler=$2
6150 { (ac_try="$ac_compiler --version >&5"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6156 $as_echo "$ac_try_echo") >&5
6157 (eval "$ac_compiler --version >&5") 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }
6161 { (ac_try="$ac_compiler -v >&5"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167 $as_echo "$ac_try_echo") >&5
6168 (eval "$ac_compiler -v >&5") 2>&5
6169 ac_status=$?
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }
6172 { (ac_try="$ac_compiler -V >&5"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178 $as_echo "$ac_try_echo") >&5
6179 (eval "$ac_compiler -V >&5") 2>&5
6180 ac_status=$?
6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }
6183 rm -f a.out
6184
6185 # If we don't use `.F' as extension, the preprocessor is not run on the
6186 # input file. (Note that this only needs to work for GNU compilers.)
6187 ac_save_ext=$ac_ext
6188 ac_ext=F
6189 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6190 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6191 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 cat >conftest.$ac_ext <<_ACEOF
6195 program main
6196 #ifndef __GNUC__
6197 choke me
6198 #endif
6199
6200 end
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_f77_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_compiler_gnu=yes
6221 else
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_compiler_gnu=no
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6230
6231 fi
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6233 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6234 ac_ext=$ac_save_ext
6235 ac_test_FFLAGS=${FFLAGS+set}
6236 ac_save_FFLAGS=$FFLAGS
6237 FFLAGS=
6238 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6239 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6240 if test "${ac_cv_prog_f77_g+set}" = set; then
6241 $as_echo_n "(cached) " >&6
6242 else
6243 FFLAGS=-g
6244 cat >conftest.$ac_ext <<_ACEOF
6245 program main
6246
6247 end
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_f77_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_cv_prog_f77_g=yes
6268 else
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_cv_prog_f77_g=no
6273 fi
6274
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276
6277 fi
6278 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6279 $as_echo "$ac_cv_prog_f77_g" >&6; }
6280 if test "$ac_test_FFLAGS" = set; then
6281 FFLAGS=$ac_save_FFLAGS
6282 elif test $ac_cv_prog_f77_g = yes; then
6283 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6284 FFLAGS="-g -O2"
6285 else
6286 FFLAGS="-g"
6287 fi
6288 else
6289 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6290 FFLAGS="-O2"
6291 else
6292 FFLAGS=
6293 fi
6294 fi
6295
6296 if test $ac_compiler_gnu = yes; then
6297 G77=yes
6298 else
6299 G77=
6300 fi
6301 ac_ext=c
6302 ac_cpp='$CPP $CPPFLAGS'
6303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6306
6307
6308
6309 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6310 # find the maximum length of command line arguments
6311 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6312 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6313 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6314 $as_echo_n "(cached) " >&6
6315 else
6316 i=0
6317 teststring="ABCD"
6318
6319 case $build_os in
6320 msdosdjgpp*)
6321 # On DJGPP, this test can blow up pretty badly due to problems in libc
6322 # (any single argument exceeding 2000 bytes causes a buffer overrun
6323 # during glob expansion). Even if it were fixed, the result of this
6324 # check would be larger than it should be.
6325 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6326 ;;
6327
6328 gnu*)
6329 # Under GNU Hurd, this test is not required because there is
6330 # no limit to the length of command line arguments.
6331 # Libtool will interpret -1 as no limit whatsoever
6332 lt_cv_sys_max_cmd_len=-1;
6333 ;;
6334
6335 cygwin* | mingw*)
6336 # On Win9x/ME, this test blows up -- it succeeds, but takes
6337 # about 5 minutes as the teststring grows exponentially.
6338 # Worse, since 9x/ME are not pre-emptively multitasking,
6339 # you end up with a "frozen" computer, even though with patience
6340 # the test eventually succeeds (with a max line length of 256k).
6341 # Instead, let's just punt: use the minimum linelength reported by
6342 # all of the supported platforms: 8192 (on NT/2K/XP).
6343 lt_cv_sys_max_cmd_len=8192;
6344 ;;
6345
6346 amigaos*)
6347 # On AmigaOS with pdksh, this test takes hours, literally.
6348 # So we just punt and use a minimum line length of 8192.
6349 lt_cv_sys_max_cmd_len=8192;
6350 ;;
6351
6352 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6353 # This has been around since 386BSD, at least. Likely further.
6354 if test -x /sbin/sysctl; then
6355 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6356 elif test -x /usr/sbin/sysctl; then
6357 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6358 else
6359 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6360 fi
6361 # And add a safety zone
6362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6364 ;;
6365
6366 interix*)
6367 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6368 lt_cv_sys_max_cmd_len=196608
6369 ;;
6370
6371 osf*)
6372 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6373 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6374 # nice to cause kernel panics so lets avoid the loop below.
6375 # First set a reasonable default.
6376 lt_cv_sys_max_cmd_len=16384
6377 #
6378 if test -x /sbin/sysconfig; then
6379 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6380 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6381 esac
6382 fi
6383 ;;
6384 sco3.2v5*)
6385 lt_cv_sys_max_cmd_len=102400
6386 ;;
6387 sysv5* | sco5v6* | sysv4.2uw2*)
6388 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6389 if test -n "$kargmax"; then
6390 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6391 else
6392 lt_cv_sys_max_cmd_len=32768
6393 fi
6394 ;;
6395 *)
6396 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6397 if test -n "$lt_cv_sys_max_cmd_len"; then
6398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6400 else
6401 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6402 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6403 = "XX$teststring") >/dev/null 2>&1 &&
6404 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6405 lt_cv_sys_max_cmd_len=$new_result &&
6406 test $i != 17 # 1/2 MB should be enough
6407 do
6408 i=`expr $i + 1`
6409 teststring=$teststring$teststring
6410 done
6411 teststring=
6412 # Add a significant safety factor because C++ compilers can tack on massive
6413 # amounts of additional arguments before passing them to the linker.
6414 # It appears as though 1/2 is a usable value.
6415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6416 fi
6417 ;;
6418 esac
6419
6420 fi
6421
6422 if test -n $lt_cv_sys_max_cmd_len ; then
6423 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6424 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6425 else
6426 { $as_echo "$as_me:$LINENO: result: none" >&5
6427 $as_echo "none" >&6; }
6428 fi
6429
6430
6431
6432
6433
6434 # Check for command to grab the raw symbol name followed by C symbol from nm.
6435 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6436 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6437 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6438 $as_echo_n "(cached) " >&6
6439 else
6440
6441 # These are sane defaults that work on at least a few old systems.
6442 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6443
6444 # Character class describing NM global symbol codes.
6445 symcode='[BCDEGRST]'
6446
6447 # Regexp to match symbols that can be accessed directly from C.
6448 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6449
6450 # Transform an extracted symbol line into a proper C declaration
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6452
6453 # Transform an extracted symbol line into symbol name and symbol address
6454 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6455
6456 # Define system-specific variables.
6457 case $host_os in
6458 aix*)
6459 symcode='[BCDT]'
6460 ;;
6461 cygwin* | mingw* | pw32*)
6462 symcode='[ABCDGISTW]'
6463 ;;
6464 hpux*) # Its linker distinguishes data from code symbols
6465 if test "$host_cpu" = ia64; then
6466 symcode='[ABCDEGRST]'
6467 fi
6468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6469 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6470 ;;
6471 linux* | k*bsd*-gnu)
6472 if test "$host_cpu" = ia64; then
6473 symcode='[ABCDGIRSTW]'
6474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6475 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6476 fi
6477 ;;
6478 irix* | nonstopux*)
6479 symcode='[BCDEGRST]'
6480 ;;
6481 osf*)
6482 symcode='[BCDEGQRST]'
6483 ;;
6484 solaris*)
6485 symcode='[BDRT]'
6486 ;;
6487 sco3.2v5*)
6488 symcode='[DT]'
6489 ;;
6490 sysv4.2uw2*)
6491 symcode='[DT]'
6492 ;;
6493 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6494 symcode='[ABDT]'
6495 ;;
6496 sysv4)
6497 symcode='[DFNSTU]'
6498 ;;
6499 esac
6500
6501 # Handle CRLF in mingw tool chain
6502 opt_cr=
6503 case $build_os in
6504 mingw*)
6505 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6506 ;;
6507 esac
6508
6509 # If we're using GNU nm, then use its standard symbol codes.
6510 case `$NM -V 2>&1` in
6511 *GNU* | *'with BFD'*)
6512 symcode='[ABCDGIRSTW]' ;;
6513 esac
6514
6515 # Try without a prefix undercore, then with it.
6516 for ac_symprfx in "" "_"; do
6517
6518 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6519 symxfrm="\\1 $ac_symprfx\\2 \\2"
6520
6521 # Write the raw and C identifiers.
6522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6523
6524 # Check to see that the pipe works correctly.
6525 pipe_works=no
6526
6527 rm -f conftest*
6528 cat > conftest.$ac_ext <<EOF
6529 #ifdef __cplusplus
6530 extern "C" {
6531 #endif
6532 char nm_test_var;
6533 void nm_test_func(){}
6534 #ifdef __cplusplus
6535 }
6536 #endif
6537 int main(){nm_test_var='a';nm_test_func();return(0);}
6538 EOF
6539
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; then
6545 # Now try to grab the symbols.
6546 nlist=conftest.nm
6547 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && test -s "$nlist"; then
6552 # Try sorting and uniquifying the output.
6553 if sort "$nlist" | uniq > "$nlist"T; then
6554 mv -f "$nlist"T "$nlist"
6555 else
6556 rm -f "$nlist"T
6557 fi
6558
6559 # Make sure that we snagged all the symbols we need.
6560 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6561 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6562 cat <<EOF > conftest.$ac_ext
6563 #ifdef __cplusplus
6564 extern "C" {
6565 #endif
6566
6567 EOF
6568 # Now generate the symbol file.
6569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6570
6571 cat <<EOF >> conftest.$ac_ext
6572 #if defined (__STDC__) && __STDC__
6573 # define lt_ptr_t void *
6574 #else
6575 # define lt_ptr_t char *
6576 # define const
6577 #endif
6578
6579 /* The mapping between symbol names and symbols. */
6580 const struct {
6581 const char *name;
6582 lt_ptr_t address;
6583 }
6584 lt_preloaded_symbols[] =
6585 {
6586 EOF
6587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6588 cat <<\EOF >> conftest.$ac_ext
6589 {0, (lt_ptr_t) 0}
6590 };
6591
6592 #ifdef __cplusplus
6593 }
6594 #endif
6595 EOF
6596 # Now try linking the two files.
6597 mv conftest.$ac_objext conftstm.$ac_objext
6598 lt_save_LIBS="$LIBS"
6599 lt_save_CFLAGS="$CFLAGS"
6600 LIBS="conftstm.$ac_objext"
6601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6604 ac_status=$?
6605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6607 pipe_works=yes
6608 fi
6609 LIBS="$lt_save_LIBS"
6610 CFLAGS="$lt_save_CFLAGS"
6611 else
6612 echo "cannot find nm_test_func in $nlist" >&5
6613 fi
6614 else
6615 echo "cannot find nm_test_var in $nlist" >&5
6616 fi
6617 else
6618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6619 fi
6620 else
6621 echo "$progname: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 fi
6624 rm -rf conftest* conftst*
6625
6626 # Do not use the global_symbol_pipe unless it works.
6627 if test "$pipe_works" = yes; then
6628 break
6629 else
6630 lt_cv_sys_global_symbol_pipe=
6631 fi
6632 done
6633
6634 fi
6635
6636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6637 lt_cv_sys_global_symbol_to_cdecl=
6638 fi
6639 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6640 { $as_echo "$as_me:$LINENO: result: failed" >&5
6641 $as_echo "failed" >&6; }
6642 else
6643 { $as_echo "$as_me:$LINENO: result: ok" >&5
6644 $as_echo "ok" >&6; }
6645 fi
6646
6647 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6648 $as_echo_n "checking for objdir... " >&6; }
6649 if test "${lt_cv_objdir+set}" = set; then
6650 $as_echo_n "(cached) " >&6
6651 else
6652 rm -f .libs 2>/dev/null
6653 mkdir .libs 2>/dev/null
6654 if test -d .libs; then
6655 lt_cv_objdir=.libs
6656 else
6657 # MS-DOS does not allow filenames that begin with a dot.
6658 lt_cv_objdir=_libs
6659 fi
6660 rmdir .libs 2>/dev/null
6661 fi
6662 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6663 $as_echo "$lt_cv_objdir" >&6; }
6664 objdir=$lt_cv_objdir
6665
6666
6667
6668
6669
6670 case $host_os in
6671 aix3*)
6672 # AIX sometimes has problems with the GCC collect2 program. For some
6673 # reason, if we set the COLLECT_NAMES environment variable, the problems
6674 # vanish in a puff of smoke.
6675 if test "X${COLLECT_NAMES+set}" != Xset; then
6676 COLLECT_NAMES=
6677 export COLLECT_NAMES
6678 fi
6679 ;;
6680 esac
6681
6682 # Sed substitution that helps us do robust quoting. It backslashifies
6683 # metacharacters that are still active within double-quoted strings.
6684 Xsed='sed -e 1s/^X//'
6685 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6686
6687 # Same as above, but do not quote variable references.
6688 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6689
6690 # Sed substitution to delay expansion of an escaped shell variable in a
6691 # double_quote_subst'ed string.
6692 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6693
6694 # Sed substitution to avoid accidental globbing in evaled expressions
6695 no_glob_subst='s/\*/\\\*/g'
6696
6697 # Constants:
6698 rm="rm -f"
6699
6700 # Global variables:
6701 default_ofile=libtool
6702 can_build_shared=yes
6703
6704 # All known linkers require a `.a' archive for static linking (except MSVC,
6705 # which needs '.lib').
6706 libext=a
6707 ltmain="$ac_aux_dir/ltmain.sh"
6708 ofile="$default_ofile"
6709 with_gnu_ld="$lt_cv_prog_gnu_ld"
6710
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}ar; ac_word=$2
6714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_AR+set}" = set; then
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$AR"; then
6720 ac_cv_prog_AR="$AR" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_AR="${ac_tool_prefix}ar"
6730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 AR=$ac_cv_prog_AR
6740 if test -n "$AR"; then
6741 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6743 else
6744 { $as_echo "$as_me:$LINENO: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_AR"; then
6751 ac_ct_AR=$AR
6752 # Extract the first word of "ar", so it can be a program name with args.
6753 set dummy ar; ac_word=$2
6754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$ac_ct_AR"; then
6760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_ac_ct_AR="ar"
6770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6780 if test -n "$ac_ct_AR"; then
6781 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6782 $as_echo "$ac_ct_AR" >&6; }
6783 else
6784 { $as_echo "$as_me:$LINENO: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788 if test "x$ac_ct_AR" = x; then
6789 AR="false"
6790 else
6791 case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797 AR=$ac_ct_AR
6798 fi
6799 else
6800 AR="$ac_cv_prog_AR"
6801 fi
6802
6803 if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_RANLIB+set}" = set; then
6809 $as_echo_n "(cached) " >&6
6810 else
6811 if test -n "$RANLIB"; then
6812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 RANLIB=$ac_cv_prog_RANLIB
6832 if test -n "$RANLIB"; then
6833 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6834 $as_echo "$RANLIB" >&6; }
6835 else
6836 { $as_echo "$as_me:$LINENO: result: no" >&5
6837 $as_echo "no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_RANLIB"; then
6843 ac_ct_RANLIB=$RANLIB
6844 # Extract the first word of "ranlib", so it can be a program name with args.
6845 set dummy ranlib; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$ac_ct_RANLIB"; then
6852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_ac_ct_RANLIB="ranlib"
6862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6872 if test -n "$ac_ct_RANLIB"; then
6873 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6874 $as_echo "$ac_ct_RANLIB" >&6; }
6875 else
6876 { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880 if test "x$ac_ct_RANLIB" = x; then
6881 RANLIB=":"
6882 else
6883 case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889 RANLIB=$ac_ct_RANLIB
6890 fi
6891 else
6892 RANLIB="$ac_cv_prog_RANLIB"
6893 fi
6894
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}strip; ac_word=$2
6898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_prog_STRIP+set}" = set; then
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$STRIP"; then
6904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 STRIP=$ac_cv_prog_STRIP
6924 if test -n "$STRIP"; then
6925 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6926 $as_echo "$STRIP" >&6; }
6927 else
6928 { $as_echo "$as_me:$LINENO: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933 fi
6934 if test -z "$ac_cv_prog_STRIP"; then
6935 ac_ct_STRIP=$STRIP
6936 # Extract the first word of "strip", so it can be a program name with args.
6937 set dummy strip; ac_word=$2
6938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$ac_ct_STRIP"; then
6944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_ac_ct_STRIP="strip"
6954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6964 if test -n "$ac_ct_STRIP"; then
6965 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6966 $as_echo "$ac_ct_STRIP" >&6; }
6967 else
6968 { $as_echo "$as_me:$LINENO: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972 if test "x$ac_ct_STRIP" = x; then
6973 STRIP=":"
6974 else
6975 case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981 STRIP=$ac_ct_STRIP
6982 fi
6983 else
6984 STRIP="$ac_cv_prog_STRIP"
6985 fi
6986
6987
6988 old_CC="$CC"
6989 old_CFLAGS="$CFLAGS"
6990
6991 # Set sane defaults for various variables
6992 test -z "$AR" && AR=ar
6993 test -z "$AR_FLAGS" && AR_FLAGS=cru
6994 test -z "$AS" && AS=as
6995 test -z "$CC" && CC=cc
6996 test -z "$LTCC" && LTCC=$CC
6997 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6998 test -z "$DLLTOOL" && DLLTOOL=dlltool
6999 test -z "$LD" && LD=ld
7000 test -z "$LN_S" && LN_S="ln -s"
7001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7002 test -z "$NM" && NM=nm
7003 test -z "$SED" && SED=sed
7004 test -z "$OBJDUMP" && OBJDUMP=objdump
7005 test -z "$RANLIB" && RANLIB=:
7006 test -z "$STRIP" && STRIP=:
7007 test -z "$ac_objext" && ac_objext=o
7008
7009 # Determine commands to create old-style static archives.
7010 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7011 old_postinstall_cmds='chmod 644 $oldlib'
7012 old_postuninstall_cmds=
7013
7014 if test -n "$RANLIB"; then
7015 case $host_os in
7016 openbsd*)
7017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7018 ;;
7019 *)
7020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7021 ;;
7022 esac
7023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7024 fi
7025
7026 for cc_temp in $compiler""; do
7027 case $cc_temp in
7028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7030 \-*) ;;
7031 *) break;;
7032 esac
7033 done
7034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7035
7036
7037 # Only perform the check for file, if the check method requires it
7038 case $deplibs_check_method in
7039 file_magic*)
7040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7041 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7044 $as_echo_n "(cached) " >&6
7045 else
7046 case $MAGIC_CMD in
7047 [\\/*] | ?:[\\/]*)
7048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7049 ;;
7050 *)
7051 lt_save_MAGIC_CMD="$MAGIC_CMD"
7052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7054 for ac_dir in $ac_dummy; do
7055 IFS="$lt_save_ifs"
7056 test -z "$ac_dir" && ac_dir=.
7057 if test -f $ac_dir/${ac_tool_prefix}file; then
7058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7059 if test -n "$file_magic_test_file"; then
7060 case $deplibs_check_method in
7061 "file_magic "*)
7062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7065 $EGREP "$file_magic_regex" > /dev/null; then
7066 :
7067 else
7068 cat <<EOF 1>&2
7069
7070 *** Warning: the command libtool uses to detect shared libraries,
7071 *** $file_magic_cmd, produces output that libtool cannot recognize.
7072 *** The result is that libtool may fail to recognize shared libraries
7073 *** as such. This will affect the creation of libtool libraries that
7074 *** depend on shared libraries, but programs linked with such libtool
7075 *** libraries will work regardless of this problem. Nevertheless, you
7076 *** may want to report the problem to your system manager and/or to
7077 *** bug-libtool@gnu.org
7078
7079 EOF
7080 fi ;;
7081 esac
7082 fi
7083 break
7084 fi
7085 done
7086 IFS="$lt_save_ifs"
7087 MAGIC_CMD="$lt_save_MAGIC_CMD"
7088 ;;
7089 esac
7090 fi
7091
7092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7093 if test -n "$MAGIC_CMD"; then
7094 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7095 $as_echo "$MAGIC_CMD" >&6; }
7096 else
7097 { $as_echo "$as_me:$LINENO: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101 if test -z "$lt_cv_path_MAGIC_CMD"; then
7102 if test -n "$ac_tool_prefix"; then
7103 { $as_echo "$as_me:$LINENO: checking for file" >&5
7104 $as_echo_n "checking for file... " >&6; }
7105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7106 $as_echo_n "(cached) " >&6
7107 else
7108 case $MAGIC_CMD in
7109 [\\/*] | ?:[\\/]*)
7110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7111 ;;
7112 *)
7113 lt_save_MAGIC_CMD="$MAGIC_CMD"
7114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7116 for ac_dir in $ac_dummy; do
7117 IFS="$lt_save_ifs"
7118 test -z "$ac_dir" && ac_dir=.
7119 if test -f $ac_dir/file; then
7120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7121 if test -n "$file_magic_test_file"; then
7122 case $deplibs_check_method in
7123 "file_magic "*)
7124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7127 $EGREP "$file_magic_regex" > /dev/null; then
7128 :
7129 else
7130 cat <<EOF 1>&2
7131
7132 *** Warning: the command libtool uses to detect shared libraries,
7133 *** $file_magic_cmd, produces output that libtool cannot recognize.
7134 *** The result is that libtool may fail to recognize shared libraries
7135 *** as such. This will affect the creation of libtool libraries that
7136 *** depend on shared libraries, but programs linked with such libtool
7137 *** libraries will work regardless of this problem. Nevertheless, you
7138 *** may want to report the problem to your system manager and/or to
7139 *** bug-libtool@gnu.org
7140
7141 EOF
7142 fi ;;
7143 esac
7144 fi
7145 break
7146 fi
7147 done
7148 IFS="$lt_save_ifs"
7149 MAGIC_CMD="$lt_save_MAGIC_CMD"
7150 ;;
7151 esac
7152 fi
7153
7154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7155 if test -n "$MAGIC_CMD"; then
7156 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7157 $as_echo "$MAGIC_CMD" >&6; }
7158 else
7159 { $as_echo "$as_me:$LINENO: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 else
7164 MAGIC_CMD=:
7165 fi
7166 fi
7167
7168 fi
7169 ;;
7170 esac
7171
7172
7173 case $host_os in
7174 rhapsody* | darwin*)
7175 if test -n "$ac_tool_prefix"; then
7176 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7177 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$DSYMUTIL"; then
7184 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7204 if test -n "$DSYMUTIL"; then
7205 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7206 $as_echo "$DSYMUTIL" >&6; }
7207 else
7208 { $as_echo "$as_me:$LINENO: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212
7213 fi
7214 if test -z "$ac_cv_prog_DSYMUTIL"; then
7215 ac_ct_DSYMUTIL=$DSYMUTIL
7216 # Extract the first word of "dsymutil", so it can be a program name with args.
7217 set dummy dsymutil; ac_word=$2
7218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7221 $as_echo_n "(cached) " >&6
7222 else
7223 if test -n "$ac_ct_DSYMUTIL"; then
7224 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7236 fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241 fi
7242 fi
7243 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7244 if test -n "$ac_ct_DSYMUTIL"; then
7245 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7246 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7247 else
7248 { $as_echo "$as_me:$LINENO: result: no" >&5
7249 $as_echo "no" >&6; }
7250 fi
7251
7252 if test "x$ac_ct_DSYMUTIL" = x; then
7253 DSYMUTIL=":"
7254 else
7255 case $cross_compiling:$ac_tool_warned in
7256 yes:)
7257 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned=yes ;;
7260 esac
7261 DSYMUTIL=$ac_ct_DSYMUTIL
7262 fi
7263 else
7264 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7265 fi
7266
7267 if test -n "$ac_tool_prefix"; then
7268 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7269 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$NMEDIT"; then
7276 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 NMEDIT=$ac_cv_prog_NMEDIT
7296 if test -n "$NMEDIT"; then
7297 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7298 $as_echo "$NMEDIT" >&6; }
7299 else
7300 { $as_echo "$as_me:$LINENO: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304
7305 fi
7306 if test -z "$ac_cv_prog_NMEDIT"; then
7307 ac_ct_NMEDIT=$NMEDIT
7308 # Extract the first word of "nmedit", so it can be a program name with args.
7309 set dummy nmedit; ac_word=$2
7310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7313 $as_echo_n "(cached) " >&6
7314 else
7315 if test -n "$ac_ct_NMEDIT"; then
7316 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333 fi
7334 fi
7335 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7336 if test -n "$ac_ct_NMEDIT"; then
7337 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7338 $as_echo "$ac_ct_NMEDIT" >&6; }
7339 else
7340 { $as_echo "$as_me:$LINENO: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343
7344 if test "x$ac_ct_NMEDIT" = x; then
7345 NMEDIT=":"
7346 else
7347 case $cross_compiling:$ac_tool_warned in
7348 yes:)
7349 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7352 esac
7353 NMEDIT=$ac_ct_NMEDIT
7354 fi
7355 else
7356 NMEDIT="$ac_cv_prog_NMEDIT"
7357 fi
7358
7359
7360 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7361 $as_echo_n "checking for -single_module linker flag... " >&6; }
7362 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7363 $as_echo_n "(cached) " >&6
7364 else
7365 lt_cv_apple_cc_single_mod=no
7366 if test -z "${LT_MULTI_MODULE}"; then
7367 # By default we will add the -single_module flag. You can override
7368 # by either setting the environment variable LT_MULTI_MODULE
7369 # non-empty at configure time, or by adding -multi_module to the
7370 # link flags.
7371 echo "int foo(void){return 1;}" > conftest.c
7372 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7373 -dynamiclib ${wl}-single_module conftest.c
7374 if test -f libconftest.dylib; then
7375 lt_cv_apple_cc_single_mod=yes
7376 rm -rf libconftest.dylib*
7377 fi
7378 rm conftest.c
7379 fi
7380 fi
7381 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7382 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7383 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7385 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7386 $as_echo_n "(cached) " >&6
7387 else
7388 lt_cv_ld_exported_symbols_list=no
7389 save_LDFLAGS=$LDFLAGS
7390 echo "_main" > conftest.sym
7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398
7399 int
7400 main ()
7401 {
7402
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 rm -f conftest.$ac_objext conftest$ac_exeext
7408 if { (ac_try="$ac_link"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_link") 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest$ac_exeext && {
7425 test "$cross_compiling" = yes ||
7426 $as_test_x conftest$ac_exeext
7427 }; then
7428 lt_cv_ld_exported_symbols_list=yes
7429 else
7430 $as_echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 lt_cv_ld_exported_symbols_list=no
7434 fi
7435
7436 rm -rf conftest.dSYM
7437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7438 conftest$ac_exeext conftest.$ac_ext
7439 LDFLAGS="$save_LDFLAGS"
7440
7441 fi
7442 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7443 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7444 case $host_os in
7445 rhapsody* | darwin1.[0123])
7446 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7447 darwin1.*)
7448 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7449 darwin*)
7450 # if running on 10.5 or later, the deployment target defaults
7451 # to the OS version, if on x86, and 10.4, the deployment
7452 # target defaults to 10.4. Don't you love it?
7453 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7454 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7456 10.[012]*)
7457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7458 10.*)
7459 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7460 esac
7461 ;;
7462 esac
7463 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7464 _lt_dar_single_mod='$single_module'
7465 fi
7466 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7467 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7468 else
7469 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7470 fi
7471 if test "$DSYMUTIL" != ":"; then
7472 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7473 else
7474 _lt_dsymutil=
7475 fi
7476 ;;
7477 esac
7478
7479
7480 enable_dlopen=no
7481 enable_win32_dll=no
7482
7483 # Check whether --enable-libtool-lock was given.
7484 if test "${enable_libtool_lock+set}" = set; then
7485 enableval=$enable_libtool_lock;
7486 fi
7487
7488 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7489
7490
7491 # Check whether --with-pic was given.
7492 if test "${with_pic+set}" = set; then
7493 withval=$with_pic; pic_mode="$withval"
7494 else
7495 pic_mode=default
7496 fi
7497
7498 test -z "$pic_mode" && pic_mode=default
7499
7500 # Use C for the default configuration in the libtool script
7501 tagname=
7502 lt_save_CC="$CC"
7503 ac_ext=c
7504 ac_cpp='$CPP $CPPFLAGS'
7505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508
7509
7510 # Source file extension for C test sources.
7511 ac_ext=c
7512
7513 # Object file extension for compiled C test sources.
7514 objext=o
7515 objext=$objext
7516
7517 # Code to be used in simple compile tests
7518 lt_simple_compile_test_code="int some_variable = 0;"
7519
7520 # Code to be used in simple link tests
7521 lt_simple_link_test_code='int main(){return(0);}'
7522
7523
7524 # If no C compiler was specified, use CC.
7525 LTCC=${LTCC-"$CC"}
7526
7527 # If no C compiler flags were specified, use CFLAGS.
7528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7529
7530 # Allow CC to be a program name with arguments.
7531 compiler=$CC
7532
7533
7534 # save warnings/boilerplate of simple test code
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538 _lt_compiler_boilerplate=`cat conftest.err`
7539 $rm conftest*
7540
7541 ac_outfile=conftest.$ac_objext
7542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544 _lt_linker_boilerplate=`cat conftest.err`
7545 $rm -r conftest*
7546
7547
7548
7549 lt_prog_compiler_no_builtin_flag=
7550
7551 if test "$GCC" = yes; then
7552 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7553
7554
7555 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7556 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7557 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7559 else
7560 lt_cv_prog_compiler_rtti_exceptions=no
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7563 lt_compiler_flag="-fno-rtti -fno-exceptions"
7564 # Insert the option either (1) after the last *FLAGS variable, or
7565 # (2) before a word containing "conftest.", or (3) at the end.
7566 # Note that $ac_compile itself does not contain backslashes and begins
7567 # with a dollar sign (not a hyphen), so the echo should work correctly.
7568 # The option is referenced via a variable to avoid confusing sed.
7569 lt_compile=`echo "$ac_compile" | $SED \
7570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7572 -e 's:$: $lt_compiler_flag:'`
7573 (eval echo "\"\$as_me:7573: $lt_compile\"" >&5)
7574 (eval "$lt_compile" 2>conftest.err)
7575 ac_status=$?
7576 cat conftest.err >&5
7577 echo "$as_me:7577: \$? = $ac_status" >&5
7578 if (exit $ac_status) && test -s "$ac_outfile"; then
7579 # The compiler can only warn and ignore the option if not recognized
7580 # So say no if there are warnings other than the usual output.
7581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7584 lt_cv_prog_compiler_rtti_exceptions=yes
7585 fi
7586 fi
7587 $rm conftest*
7588
7589 fi
7590 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7592
7593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7595 else
7596 :
7597 fi
7598
7599 fi
7600
7601 lt_prog_compiler_wl=
7602 lt_prog_compiler_pic=
7603 lt_prog_compiler_static=
7604
7605 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7607
7608 if test "$GCC" = yes; then
7609 lt_prog_compiler_wl='-Wl,'
7610 lt_prog_compiler_static='-static'
7611
7612 case $host_os in
7613 aix*)
7614 # All AIX code is PIC.
7615 if test "$host_cpu" = ia64; then
7616 # AIX 5 now supports IA64 processor
7617 lt_prog_compiler_static='-Bstatic'
7618 fi
7619 ;;
7620
7621 amigaos*)
7622 # FIXME: we need at least 68020 code to build shared libraries, but
7623 # adding the `-m68020' flag to GCC prevents building anything better,
7624 # like `-m68040'.
7625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7626 ;;
7627
7628 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7629 # PIC is the default for these OSes.
7630 ;;
7631
7632 mingw* | cygwin* | pw32* | os2*)
7633 # This hack is so that the source file can tell whether it is being
7634 # built for inclusion in a dll (and should export symbols for example).
7635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7636 # (--disable-auto-import) libraries
7637 lt_prog_compiler_pic='-DDLL_EXPORT'
7638 ;;
7639
7640 darwin* | rhapsody*)
7641 # PIC is the default on this platform
7642 # Common symbols not allowed in MH_DYLIB files
7643 lt_prog_compiler_pic='-fno-common'
7644 ;;
7645
7646 interix[3-9]*)
7647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7648 # Instead, we relocate shared libraries at runtime.
7649 ;;
7650
7651 msdosdjgpp*)
7652 # Just because we use GCC doesn't mean we suddenly get shared libraries
7653 # on systems that don't support them.
7654 lt_prog_compiler_can_build_shared=no
7655 enable_shared=no
7656 ;;
7657
7658 sysv4*MP*)
7659 if test -d /usr/nec; then
7660 lt_prog_compiler_pic=-Kconform_pic
7661 fi
7662 ;;
7663
7664 hpux*)
7665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7666 # not for PA HP-UX.
7667 case $host_cpu in
7668 hppa*64*|ia64*)
7669 # +Z the default
7670 ;;
7671 *)
7672 lt_prog_compiler_pic='-fPIC'
7673 ;;
7674 esac
7675 ;;
7676
7677 *)
7678 lt_prog_compiler_pic='-fPIC'
7679 ;;
7680 esac
7681 else
7682 # PORTME Check for flag to pass linker flags through the system compiler.
7683 case $host_os in
7684 aix*)
7685 lt_prog_compiler_wl='-Wl,'
7686 if test "$host_cpu" = ia64; then
7687 # AIX 5 now supports IA64 processor
7688 lt_prog_compiler_static='-Bstatic'
7689 else
7690 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7691 fi
7692 ;;
7693 darwin*)
7694 # PIC is the default on this platform
7695 # Common symbols not allowed in MH_DYLIB files
7696 case $cc_basename in
7697 xlc*)
7698 lt_prog_compiler_pic='-qnocommon'
7699 lt_prog_compiler_wl='-Wl,'
7700 ;;
7701 esac
7702 ;;
7703
7704 mingw* | cygwin* | pw32* | os2*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7708 ;;
7709
7710 hpux9* | hpux10* | hpux11*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713 # not for PA HP-UX.
7714 case $host_cpu in
7715 hppa*64*|ia64*)
7716 # +Z the default
7717 ;;
7718 *)
7719 lt_prog_compiler_pic='+Z'
7720 ;;
7721 esac
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
7724 ;;
7725
7726 irix5* | irix6* | nonstopux*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC (with -KPIC) is the default.
7729 lt_prog_compiler_static='-non_shared'
7730 ;;
7731
7732 newsos6)
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7735 ;;
7736
7737 linux* | k*bsd*-gnu)
7738 case $cc_basename in
7739 icc* | ecc*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-static'
7743 ;;
7744 pgcc* | pgf77* | pgf90* | pgf95*)
7745 # Portland Group compilers (*not* the Pentium gcc compiler,
7746 # which looks to be a dead project)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-fpic'
7749 lt_prog_compiler_static='-Bstatic'
7750 ;;
7751 ccc*)
7752 lt_prog_compiler_wl='-Wl,'
7753 # All Alpha code is PIC.
7754 lt_prog_compiler_static='-non_shared'
7755 ;;
7756 *)
7757 case `$CC -V 2>&1 | sed 5q` in
7758 *Sun\ C*)
7759 # Sun C 5.9
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 lt_prog_compiler_wl='-Wl,'
7763 ;;
7764 *Sun\ F*)
7765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7766 lt_prog_compiler_pic='-KPIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 lt_prog_compiler_wl=''
7769 ;;
7770 esac
7771 ;;
7772 esac
7773 ;;
7774
7775 osf3* | osf4* | osf5*)
7776 lt_prog_compiler_wl='-Wl,'
7777 # All OSF/1 code is PIC.
7778 lt_prog_compiler_static='-non_shared'
7779 ;;
7780
7781 rdos*)
7782 lt_prog_compiler_static='-non_shared'
7783 ;;
7784
7785 solaris*)
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7788 case $cc_basename in
7789 f77* | f90* | f95*)
7790 lt_prog_compiler_wl='-Qoption ld ';;
7791 *)
7792 lt_prog_compiler_wl='-Wl,';;
7793 esac
7794 ;;
7795
7796 sunos4*)
7797 lt_prog_compiler_wl='-Qoption ld '
7798 lt_prog_compiler_pic='-PIC'
7799 lt_prog_compiler_static='-Bstatic'
7800 ;;
7801
7802 sysv4 | sysv4.2uw2* | sysv4.3*)
7803 lt_prog_compiler_wl='-Wl,'
7804 lt_prog_compiler_pic='-KPIC'
7805 lt_prog_compiler_static='-Bstatic'
7806 ;;
7807
7808 sysv4*MP*)
7809 if test -d /usr/nec ;then
7810 lt_prog_compiler_pic='-Kconform_pic'
7811 lt_prog_compiler_static='-Bstatic'
7812 fi
7813 ;;
7814
7815 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7816 lt_prog_compiler_wl='-Wl,'
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 ;;
7820
7821 unicos*)
7822 lt_prog_compiler_wl='-Wl,'
7823 lt_prog_compiler_can_build_shared=no
7824 ;;
7825
7826 uts4*)
7827 lt_prog_compiler_pic='-pic'
7828 lt_prog_compiler_static='-Bstatic'
7829 ;;
7830
7831 *)
7832 lt_prog_compiler_can_build_shared=no
7833 ;;
7834 esac
7835 fi
7836
7837 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7838 $as_echo "$lt_prog_compiler_pic" >&6; }
7839
7840 #
7841 # Check to make sure the PIC flag actually works.
7842 #
7843 if test -n "$lt_prog_compiler_pic"; then
7844
7845 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7847 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_prog_compiler_pic_works=no
7851 ac_outfile=conftest.$ac_objext
7852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7853 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7854 # Insert the option either (1) after the last *FLAGS variable, or
7855 # (2) before a word containing "conftest.", or (3) at the end.
7856 # Note that $ac_compile itself does not contain backslashes and begins
7857 # with a dollar sign (not a hyphen), so the echo should work correctly.
7858 # The option is referenced via a variable to avoid confusing sed.
7859 lt_compile=`echo "$ac_compile" | $SED \
7860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7862 -e 's:$: $lt_compiler_flag:'`
7863 (eval echo "\"\$as_me:7863: $lt_compile\"" >&5)
7864 (eval "$lt_compile" 2>conftest.err)
7865 ac_status=$?
7866 cat conftest.err >&5
7867 echo "$as_me:7867: \$? = $ac_status" >&5
7868 if (exit $ac_status) && test -s "$ac_outfile"; then
7869 # The compiler can only warn and ignore the option if not recognized
7870 # So say no if there are warnings other than the usual output.
7871 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7874 lt_cv_prog_compiler_pic_works=yes
7875 fi
7876 fi
7877 $rm conftest*
7878
7879 fi
7880 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7881 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7882
7883 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7884 case $lt_prog_compiler_pic in
7885 "" | " "*) ;;
7886 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7887 esac
7888 else
7889 lt_prog_compiler_pic=
7890 lt_prog_compiler_can_build_shared=no
7891 fi
7892
7893 fi
7894 case $host_os in
7895 # For platforms which do not support PIC, -DPIC is meaningless:
7896 *djgpp*)
7897 lt_prog_compiler_pic=
7898 ;;
7899 *)
7900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7901 ;;
7902 esac
7903
7904 #
7905 # Check to make sure the static flag actually works.
7906 #
7907 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7908 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7909 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7910 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7911 $as_echo_n "(cached) " >&6
7912 else
7913 lt_cv_prog_compiler_static_works=no
7914 save_LDFLAGS="$LDFLAGS"
7915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7916 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7918 # The linker can only warn and ignore the option if not recognized
7919 # So say no if there are warnings
7920 if test -s conftest.err; then
7921 # Append any errors to the config.log.
7922 cat conftest.err 1>&5
7923 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7925 if diff conftest.exp conftest.er2 >/dev/null; then
7926 lt_cv_prog_compiler_static_works=yes
7927 fi
7928 else
7929 lt_cv_prog_compiler_static_works=yes
7930 fi
7931 fi
7932 $rm -r conftest*
7933 LDFLAGS="$save_LDFLAGS"
7934
7935 fi
7936 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7937 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7938
7939 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7940 :
7941 else
7942 lt_prog_compiler_static=
7943 fi
7944
7945
7946 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7947 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7948 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7949 $as_echo_n "(cached) " >&6
7950 else
7951 lt_cv_prog_compiler_c_o=no
7952 $rm -r conftest 2>/dev/null
7953 mkdir conftest
7954 cd conftest
7955 mkdir out
7956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7957
7958 lt_compiler_flag="-o out/conftest2.$ac_objext"
7959 # Insert the option either (1) after the last *FLAGS variable, or
7960 # (2) before a word containing "conftest.", or (3) at the end.
7961 # Note that $ac_compile itself does not contain backslashes and begins
7962 # with a dollar sign (not a hyphen), so the echo should work correctly.
7963 lt_compile=`echo "$ac_compile" | $SED \
7964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966 -e 's:$: $lt_compiler_flag:'`
7967 (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7968 (eval "$lt_compile" 2>out/conftest.err)
7969 ac_status=$?
7970 cat out/conftest.err >&5
7971 echo "$as_me:7971: \$? = $ac_status" >&5
7972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7973 then
7974 # The compiler can only warn and ignore the option if not recognized
7975 # So say no if there are warnings
7976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7979 lt_cv_prog_compiler_c_o=yes
7980 fi
7981 fi
7982 chmod u+w . 2>&5
7983 $rm conftest*
7984 # SGI C++ compiler will create directory out/ii_files/ for
7985 # template instantiation
7986 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7987 $rm out/* && rmdir out
7988 cd ..
7989 rmdir conftest
7990 $rm conftest*
7991
7992 fi
7993 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7994 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7995
7996
7997 hard_links="nottested"
7998 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7999 # do not overwrite the value of need_locks provided by the user
8000 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8001 $as_echo_n "checking if we can lock with hard links... " >&6; }
8002 hard_links=yes
8003 $rm conftest*
8004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8005 touch conftest.a
8006 ln conftest.a conftest.b 2>&5 || hard_links=no
8007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8008 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8009 $as_echo "$hard_links" >&6; }
8010 if test "$hard_links" = no; then
8011 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8012 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8013 need_locks=warn
8014 fi
8015 else
8016 need_locks=no
8017 fi
8018
8019 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8021
8022 runpath_var=
8023 allow_undefined_flag=
8024 enable_shared_with_static_runtimes=no
8025 archive_cmds=
8026 archive_expsym_cmds=
8027 old_archive_From_new_cmds=
8028 old_archive_from_expsyms_cmds=
8029 export_dynamic_flag_spec=
8030 whole_archive_flag_spec=
8031 thread_safe_flag_spec=
8032 hardcode_libdir_flag_spec=
8033 hardcode_libdir_flag_spec_ld=
8034 hardcode_libdir_separator=
8035 hardcode_direct=no
8036 hardcode_minus_L=no
8037 hardcode_shlibpath_var=unsupported
8038 link_all_deplibs=unknown
8039 hardcode_automatic=no
8040 module_cmds=
8041 module_expsym_cmds=
8042 always_export_symbols=no
8043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8044 # include_expsyms should be a list of space-separated symbols to be *always*
8045 # included in the symbol list
8046 include_expsyms=
8047 # exclude_expsyms can be an extended regexp of symbols to exclude
8048 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8049 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8050 # as well as any symbol that contains `d'.
8051 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8053 # platforms (ab)use it in PIC code, but their linkers get confused if
8054 # the symbol is explicitly referenced. Since portable code cannot
8055 # rely on this symbol name, it's probably fine to never include it in
8056 # preloaded symbol tables.
8057 # Exclude shared library initialization/finalization symbols.
8058 extract_expsyms_cmds=
8059 # Just being paranoid about ensuring that cc_basename is set.
8060 for cc_temp in $compiler""; do
8061 case $cc_temp in
8062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8064 \-*) ;;
8065 *) break;;
8066 esac
8067 done
8068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8069
8070 case $host_os in
8071 cygwin* | mingw* | pw32*)
8072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8073 # When not using gcc, we currently assume that we are using
8074 # Microsoft Visual C++.
8075 if test "$GCC" != yes; then
8076 with_gnu_ld=no
8077 fi
8078 ;;
8079 interix*)
8080 # we just hope/assume this is gcc and not c89 (= MSVC++)
8081 with_gnu_ld=yes
8082 ;;
8083 openbsd*)
8084 with_gnu_ld=no
8085 ;;
8086 esac
8087
8088 ld_shlibs=yes
8089 if test "$with_gnu_ld" = yes; then
8090 # If archive_cmds runs LD, not CC, wlarc should be empty
8091 wlarc='${wl}'
8092
8093 # Set some defaults for GNU ld with shared library support. These
8094 # are reset later if shared libraries are not supported. Putting them
8095 # here allows them to be overridden if necessary.
8096 runpath_var=LD_RUN_PATH
8097 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8098 export_dynamic_flag_spec='${wl}--export-dynamic'
8099 # ancient GNU ld didn't support --whole-archive et. al.
8100 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8101 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8102 else
8103 whole_archive_flag_spec=
8104 fi
8105 supports_anon_versioning=no
8106 case `$LD -v 2>/dev/null` in
8107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8110 *\ 2.11.*) ;; # other 2.11 versions
8111 *) supports_anon_versioning=yes ;;
8112 esac
8113
8114 # See if GNU ld supports shared libraries.
8115 case $host_os in
8116 aix[3-9]*)
8117 # On AIX/PPC, the GNU linker is very broken
8118 if test "$host_cpu" != ia64; then
8119 ld_shlibs=no
8120 cat <<EOF 1>&2
8121
8122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8123 *** to be unable to reliably create shared libraries on AIX.
8124 *** Therefore, libtool is disabling shared libraries support. If you
8125 *** really care for shared libraries, you may want to modify your PATH
8126 *** so that a non-GNU linker is found, and then restart.
8127
8128 EOF
8129 fi
8130 ;;
8131
8132 amigaos*)
8133 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)'
8134 hardcode_libdir_flag_spec='-L$libdir'
8135 hardcode_minus_L=yes
8136
8137 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8138 # that the semantics of dynamic libraries on AmigaOS, at least up
8139 # to version 4, is to share data among multiple programs linked
8140 # with the same dynamic library. Since this doesn't match the
8141 # behavior of shared libraries on other platforms, we can't use
8142 # them.
8143 ld_shlibs=no
8144 ;;
8145
8146 beos*)
8147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8148 allow_undefined_flag=unsupported
8149 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8150 # support --undefined. This deserves some investigation. FIXME
8151 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8152 else
8153 ld_shlibs=no
8154 fi
8155 ;;
8156
8157 cygwin* | mingw* | pw32*)
8158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8159 # as there is no search path for DLLs.
8160 hardcode_libdir_flag_spec='-L$libdir'
8161 allow_undefined_flag=unsupported
8162 always_export_symbols=no
8163 enable_shared_with_static_runtimes=yes
8164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8165
8166 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8168 # If the export-symbols file already is a .def file (1st line
8169 # is EXPORTS), use it as is; otherwise, prepend...
8170 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8171 cp $export_symbols $output_objdir/$soname.def;
8172 else
8173 echo EXPORTS > $output_objdir/$soname.def;
8174 cat $export_symbols >> $output_objdir/$soname.def;
8175 fi~
8176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8177 else
8178 ld_shlibs=no
8179 fi
8180 ;;
8181
8182 interix[3-9]*)
8183 hardcode_direct=no
8184 hardcode_shlibpath_var=no
8185 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8186 export_dynamic_flag_spec='${wl}-E'
8187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8188 # Instead, shared libraries are loaded at an image base (0x10000000 by
8189 # default) and relocated if they conflict, which is a slow very memory
8190 # consuming and fragmenting process. To avoid this, we pick a random,
8191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8193 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8194 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'
8195 ;;
8196
8197 gnu* | linux* | k*bsd*-gnu)
8198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8199 tmp_addflag=
8200 case $cc_basename,$host_cpu in
8201 pgcc*) # Portland Group C compiler
8202 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'
8203 tmp_addflag=' $pic_flag'
8204 ;;
8205 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8206 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'
8207 tmp_addflag=' $pic_flag -Mnomain' ;;
8208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8209 tmp_addflag=' -i_dynamic' ;;
8210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8211 tmp_addflag=' -i_dynamic -nofor_main' ;;
8212 ifc* | ifort*) # Intel Fortran compiler
8213 tmp_addflag=' -nofor_main' ;;
8214 esac
8215 case `$CC -V 2>&1 | sed 5q` in
8216 *Sun\ C*) # Sun C 5.9
8217 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'
8218 tmp_sharedflag='-G' ;;
8219 *Sun\ F*) # Sun Fortran 8.3
8220 tmp_sharedflag='-G' ;;
8221 *)
8222 tmp_sharedflag='-shared' ;;
8223 esac
8224 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225
8226 if test $supports_anon_versioning = yes; then
8227 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8229 $echo "local: *; };" >> $output_objdir/$libname.ver~
8230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8231 fi
8232 else
8233 ld_shlibs=no
8234 fi
8235 ;;
8236
8237 netbsd*)
8238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8240 wlarc=
8241 else
8242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8244 fi
8245 ;;
8246
8247 solaris*)
8248 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8249 ld_shlibs=no
8250 cat <<EOF 1>&2
8251
8252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8253 *** create shared libraries on Solaris systems. Therefore, libtool
8254 *** is disabling shared libraries support. We urge you to upgrade GNU
8255 *** binutils to release 2.9.1 or newer. Another option is to modify
8256 *** your PATH or compiler configuration so that the native linker is
8257 *** used, and then restart.
8258
8259 EOF
8260 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8263 else
8264 ld_shlibs=no
8265 fi
8266 ;;
8267
8268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8269 case `$LD -v 2>&1` in
8270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8271 ld_shlibs=no
8272 cat <<_LT_EOF 1>&2
8273
8274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8275 *** reliably create shared libraries on SCO systems. Therefore, libtool
8276 *** is disabling shared libraries support. We urge you to upgrade GNU
8277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8278 *** your PATH or compiler configuration so that the native linker is
8279 *** used, and then restart.
8280
8281 _LT_EOF
8282 ;;
8283 *)
8284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8288 else
8289 ld_shlibs=no
8290 fi
8291 ;;
8292 esac
8293 ;;
8294
8295 sunos4*)
8296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8297 wlarc=
8298 hardcode_direct=yes
8299 hardcode_shlibpath_var=no
8300 ;;
8301
8302 *)
8303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8306 else
8307 ld_shlibs=no
8308 fi
8309 ;;
8310 esac
8311
8312 if test "$ld_shlibs" = no; then
8313 runpath_var=
8314 hardcode_libdir_flag_spec=
8315 export_dynamic_flag_spec=
8316 whole_archive_flag_spec=
8317 fi
8318 else
8319 # PORTME fill in a description of your system's linker (not GNU ld)
8320 case $host_os in
8321 aix3*)
8322 allow_undefined_flag=unsupported
8323 always_export_symbols=yes
8324 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'
8325 # Note: this linker hardcodes the directories in LIBPATH if there
8326 # are no directories specified by -L.
8327 hardcode_minus_L=yes
8328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8329 # Neither direct hardcoding nor static linking is supported with a
8330 # broken collect2.
8331 hardcode_direct=unsupported
8332 fi
8333 ;;
8334
8335 aix[4-9]*)
8336 if test "$host_cpu" = ia64; then
8337 # On IA64, the linker does run time linking by default, so we don't
8338 # have to do anything special.
8339 aix_use_runtimelinking=no
8340 exp_sym_flag='-Bexport'
8341 no_entry_flag=""
8342 else
8343 # If we're using GNU nm, then we don't want the "-C" option.
8344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8345 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8346 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'
8347 else
8348 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'
8349 fi
8350 aix_use_runtimelinking=no
8351
8352 # Test if we are trying to use run time linking or normal
8353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8354 # need to do runtime linking.
8355 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8356 for ld_flag in $LDFLAGS; do
8357 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8358 aix_use_runtimelinking=yes
8359 break
8360 fi
8361 done
8362 ;;
8363 esac
8364
8365 exp_sym_flag='-bexport'
8366 no_entry_flag='-bnoentry'
8367 fi
8368
8369 # When large executables or shared objects are built, AIX ld can
8370 # have problems creating the table of contents. If linking a library
8371 # or program results in "error TOC overflow" add -mminimal-toc to
8372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8374
8375 archive_cmds=''
8376 hardcode_direct=yes
8377 hardcode_libdir_separator=':'
8378 link_all_deplibs=yes
8379
8380 if test "$GCC" = yes; then
8381 case $host_os in aix4.[012]|aix4.[012].*)
8382 # We only want to do this on AIX 4.2 and lower, the check
8383 # below for broken collect2 doesn't work under 4.3+
8384 collect2name=`${CC} -print-prog-name=collect2`
8385 if test -f "$collect2name" && \
8386 strings "$collect2name" | grep resolve_lib_name >/dev/null
8387 then
8388 # We have reworked collect2
8389 :
8390 else
8391 # We have old collect2
8392 hardcode_direct=unsupported
8393 # It fails to find uninstalled libraries when the uninstalled
8394 # path is not listed in the libpath. Setting hardcode_minus_L
8395 # to unsupported forces relinking
8396 hardcode_minus_L=yes
8397 hardcode_libdir_flag_spec='-L$libdir'
8398 hardcode_libdir_separator=
8399 fi
8400 ;;
8401 esac
8402 shared_flag='-shared'
8403 if test "$aix_use_runtimelinking" = yes; then
8404 shared_flag="$shared_flag "'${wl}-G'
8405 fi
8406 else
8407 # not using gcc
8408 if test "$host_cpu" = ia64; then
8409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8410 # chokes on -Wl,-G. The following line is correct:
8411 shared_flag='-G'
8412 else
8413 if test "$aix_use_runtimelinking" = yes; then
8414 shared_flag='${wl}-G'
8415 else
8416 shared_flag='${wl}-bM:SRE'
8417 fi
8418 fi
8419 fi
8420
8421 # It seems that -bexpall does not export symbols beginning with
8422 # underscore (_), so it is better to generate a list of symbols to export.
8423 always_export_symbols=yes
8424 if test "$aix_use_runtimelinking" = yes; then
8425 # Warning - without using the other runtime loading flags (-brtl),
8426 # -berok will link without error, but may produce a broken library.
8427 allow_undefined_flag='-berok'
8428 # Determine the default libpath from the value encoded in an empty executable.
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435
8436 int
8437 main ()
8438 {
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (ac_try="$ac_link"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452 (eval "$ac_link") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest$ac_exeext && {
8462 test "$cross_compiling" = yes ||
8463 $as_test_x conftest$ac_exeext
8464 }; then
8465
8466 lt_aix_libpath_sed='
8467 /Import File Strings/,/^$/ {
8468 /^0/ {
8469 s/^0 *\(.*\)$/\1/
8470 p
8471 }
8472 }'
8473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8474 # Check for a 64-bit object if we didn't find anything.
8475 if test -z "$aix_libpath"; then
8476 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8477 fi
8478 else
8479 $as_echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482
8483 fi
8484
8485 rm -rf conftest.dSYM
8486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8487 conftest$ac_exeext conftest.$ac_ext
8488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8489
8490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8491 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8492 else
8493 if test "$host_cpu" = ia64; then
8494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8495 allow_undefined_flag="-z nodefs"
8496 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"
8497 else
8498 # Determine the default libpath from the value encoded in an empty executable.
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505
8506 int
8507 main ()
8508 {
8509
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519 esac
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522 (eval "$ac_link") 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest$ac_exeext && {
8532 test "$cross_compiling" = yes ||
8533 $as_test_x conftest$ac_exeext
8534 }; then
8535
8536 lt_aix_libpath_sed='
8537 /Import File Strings/,/^$/ {
8538 /^0/ {
8539 s/^0 *\(.*\)$/\1/
8540 p
8541 }
8542 }'
8543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8544 # Check for a 64-bit object if we didn't find anything.
8545 if test -z "$aix_libpath"; then
8546 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8547 fi
8548 else
8549 $as_echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552
8553 fi
8554
8555 rm -rf conftest.dSYM
8556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8557 conftest$ac_exeext conftest.$ac_ext
8558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8559
8560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8561 # Warning - without using the other run time loading flags,
8562 # -berok will link without error, but may produce a broken library.
8563 no_undefined_flag=' ${wl}-bernotok'
8564 allow_undefined_flag=' ${wl}-berok'
8565 # Exported symbols can be pulled into shared objects from archives
8566 whole_archive_flag_spec='$convenience'
8567 archive_cmds_need_lc=yes
8568 # This is similar to how AIX traditionally builds its shared libraries.
8569 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'
8570 fi
8571 fi
8572 ;;
8573
8574 amigaos*)
8575 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)'
8576 hardcode_libdir_flag_spec='-L$libdir'
8577 hardcode_minus_L=yes
8578 # see comment about different semantics on the GNU ld section
8579 ld_shlibs=no
8580 ;;
8581
8582 bsdi[45]*)
8583 export_dynamic_flag_spec=-rdynamic
8584 ;;
8585
8586 cygwin* | mingw* | pw32*)
8587 # When not using gcc, we currently assume that we are using
8588 # Microsoft Visual C++.
8589 # hardcode_libdir_flag_spec is actually meaningless, as there is
8590 # no search path for DLLs.
8591 hardcode_libdir_flag_spec=' '
8592 allow_undefined_flag=unsupported
8593 # Tell ltmain to make .lib files, not .a files.
8594 libext=lib
8595 # Tell ltmain to make .dll files, not .so files.
8596 shrext_cmds=".dll"
8597 # FIXME: Setting linknames here is a bad hack.
8598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8599 # The linker will automatically build a .lib file if we build a DLL.
8600 old_archive_From_new_cmds='true'
8601 # FIXME: Should let the user specify the lib program.
8602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8603 fix_srcfile_path='`cygpath -w "$srcfile"`'
8604 enable_shared_with_static_runtimes=yes
8605 ;;
8606
8607 darwin* | rhapsody*)
8608 case $host_os in
8609 rhapsody* | darwin1.[012])
8610 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8611 ;;
8612 *) # Darwin 1.3 on
8613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8614 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8615 else
8616 case ${MACOSX_DEPLOYMENT_TARGET} in
8617 10.[012])
8618 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8619 ;;
8620 10.*)
8621 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8622 ;;
8623 esac
8624 fi
8625 ;;
8626 esac
8627 archive_cmds_need_lc=no
8628 hardcode_direct=no
8629 hardcode_automatic=yes
8630 hardcode_shlibpath_var=unsupported
8631 whole_archive_flag_spec=''
8632 link_all_deplibs=yes
8633 if test "$GCC" = yes ; then
8634 output_verbose_link_cmd='echo'
8635 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8636 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8637 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}"
8638 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}"
8639 else
8640 case $cc_basename in
8641 xlc*)
8642 output_verbose_link_cmd='echo'
8643 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8644 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8645 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8646 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8647 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8648 ;;
8649 *)
8650 ld_shlibs=no
8651 ;;
8652 esac
8653 fi
8654 ;;
8655
8656 dgux*)
8657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658 hardcode_libdir_flag_spec='-L$libdir'
8659 hardcode_shlibpath_var=no
8660 ;;
8661
8662 freebsd1*)
8663 ld_shlibs=no
8664 ;;
8665
8666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8667 # support. Future versions do this automatically, but an explicit c++rt0.o
8668 # does not break anything, and helps significantly (at the cost of a little
8669 # extra space).
8670 freebsd2.2*)
8671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8672 hardcode_libdir_flag_spec='-R$libdir'
8673 hardcode_direct=yes
8674 hardcode_shlibpath_var=no
8675 ;;
8676
8677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8678 freebsd2*)
8679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_direct=yes
8681 hardcode_minus_L=yes
8682 hardcode_shlibpath_var=no
8683 ;;
8684
8685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8686 freebsd* | dragonfly*)
8687 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8688 hardcode_libdir_flag_spec='-R$libdir'
8689 hardcode_direct=yes
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 hpux9*)
8694 if test "$GCC" = yes; then
8695 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'
8696 else
8697 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'
8698 fi
8699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8700 hardcode_libdir_separator=:
8701 hardcode_direct=yes
8702
8703 # hardcode_minus_L: Not really in the search PATH,
8704 # but as the default location of the library.
8705 hardcode_minus_L=yes
8706 export_dynamic_flag_spec='${wl}-E'
8707 ;;
8708
8709 hpux10*)
8710 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8711 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8712 else
8713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8714 fi
8715 if test "$with_gnu_ld" = no; then
8716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8717 hardcode_libdir_separator=:
8718
8719 hardcode_direct=yes
8720 export_dynamic_flag_spec='${wl}-E'
8721
8722 # hardcode_minus_L: Not really in the search PATH,
8723 # but as the default location of the library.
8724 hardcode_minus_L=yes
8725 fi
8726 ;;
8727
8728 hpux11*)
8729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8730 case $host_cpu in
8731 hppa*64*)
8732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 ;;
8734 ia64*)
8735 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8736 ;;
8737 *)
8738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739 ;;
8740 esac
8741 else
8742 case $host_cpu in
8743 hppa*64*)
8744 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8745 ;;
8746 ia64*)
8747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8748 ;;
8749 *)
8750 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8751 ;;
8752 esac
8753 fi
8754 if test "$with_gnu_ld" = no; then
8755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8756 hardcode_libdir_separator=:
8757
8758 case $host_cpu in
8759 hppa*64*|ia64*)
8760 hardcode_libdir_flag_spec_ld='+b $libdir'
8761 hardcode_direct=no
8762 hardcode_shlibpath_var=no
8763 ;;
8764 *)
8765 hardcode_direct=yes
8766 export_dynamic_flag_spec='${wl}-E'
8767
8768 # hardcode_minus_L: Not really in the search PATH,
8769 # but as the default location of the library.
8770 hardcode_minus_L=yes
8771 ;;
8772 esac
8773 fi
8774 ;;
8775
8776 irix5* | irix6* | nonstopux*)
8777 if test "$GCC" = yes; then
8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8779 else
8780 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8781 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8782 fi
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8785 link_all_deplibs=yes
8786 ;;
8787
8788 netbsd*)
8789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8791 else
8792 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8793 fi
8794 hardcode_libdir_flag_spec='-R$libdir'
8795 hardcode_direct=yes
8796 hardcode_shlibpath_var=no
8797 ;;
8798
8799 newsos6)
8800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_direct=yes
8802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803 hardcode_libdir_separator=:
8804 hardcode_shlibpath_var=no
8805 ;;
8806
8807 openbsd*)
8808 if test -f /usr/libexec/ld.so; then
8809 hardcode_direct=yes
8810 hardcode_shlibpath_var=no
8811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8813 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8815 export_dynamic_flag_spec='${wl}-E'
8816 else
8817 case $host_os in
8818 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820 hardcode_libdir_flag_spec='-R$libdir'
8821 ;;
8822 *)
8823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8824 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8825 ;;
8826 esac
8827 fi
8828 else
8829 ld_shlibs=no
8830 fi
8831 ;;
8832
8833 os2*)
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8836 allow_undefined_flag=unsupported
8837 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'
8838 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8839 ;;
8840
8841 osf3*)
8842 if test "$GCC" = yes; then
8843 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8844 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8845 else
8846 allow_undefined_flag=' -expect_unresolved \*'
8847 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8848 fi
8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850 hardcode_libdir_separator=:
8851 ;;
8852
8853 osf4* | osf5*) # as osf3* with the addition of -msym flag
8854 if test "$GCC" = yes; then
8855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8856 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858 else
8859 allow_undefined_flag=' -expect_unresolved \*'
8860 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8861 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8862 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8863
8864 # Both c and cxx compiler support -rpath directly
8865 hardcode_libdir_flag_spec='-rpath $libdir'
8866 fi
8867 hardcode_libdir_separator=:
8868 ;;
8869
8870 solaris*)
8871 no_undefined_flag=' -z text'
8872 if test "$GCC" = yes; then
8873 wlarc='${wl}'
8874 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8876 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8877 else
8878 wlarc=''
8879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8882 fi
8883 hardcode_libdir_flag_spec='-R$libdir'
8884 hardcode_shlibpath_var=no
8885 case $host_os in
8886 solaris2.[0-5] | solaris2.[0-5].*) ;;
8887 *)
8888 # The compiler driver will combine and reorder linker options,
8889 # but understands `-z linker_flag'. GCC discards it without `$wl',
8890 # but is careful enough not to reorder.
8891 # Supported since Solaris 2.6 (maybe 2.5.1?)
8892 if test "$GCC" = yes; then
8893 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8894 else
8895 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8896 fi
8897 ;;
8898 esac
8899 link_all_deplibs=yes
8900 ;;
8901
8902 sunos4*)
8903 if test "x$host_vendor" = xsequent; then
8904 # Use $CC to link under sequent, because it throws in some extra .o
8905 # files that make .init and .fini sections work.
8906 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8907 else
8908 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8909 fi
8910 hardcode_libdir_flag_spec='-L$libdir'
8911 hardcode_direct=yes
8912 hardcode_minus_L=yes
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 sysv4)
8917 case $host_vendor in
8918 sni)
8919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_direct=yes # is this really true???
8921 ;;
8922 siemens)
8923 ## LD is ld it makes a PLAMLIB
8924 ## CC just makes a GrossModule.
8925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8926 reload_cmds='$CC -r -o $output$reload_objs'
8927 hardcode_direct=no
8928 ;;
8929 motorola)
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8932 ;;
8933 esac
8934 runpath_var='LD_RUN_PATH'
8935 hardcode_shlibpath_var=no
8936 ;;
8937
8938 sysv4.3*)
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_shlibpath_var=no
8941 export_dynamic_flag_spec='-Bexport'
8942 ;;
8943
8944 sysv4*MP*)
8945 if test -d /usr/nec; then
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_shlibpath_var=no
8948 runpath_var=LD_RUN_PATH
8949 hardcode_runpath_var=yes
8950 ld_shlibs=yes
8951 fi
8952 ;;
8953
8954 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8955 no_undefined_flag='${wl}-z,text'
8956 archive_cmds_need_lc=no
8957 hardcode_shlibpath_var=no
8958 runpath_var='LD_RUN_PATH'
8959
8960 if test "$GCC" = yes; then
8961 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 else
8964 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 fi
8967 ;;
8968
8969 sysv5* | sco3.2v5* | sco5v6*)
8970 # Note: We can NOT use -z defs as we might desire, because we do not
8971 # link with -lc, and that would cause any symbols used from libc to
8972 # always be unresolved, which means just about no library would
8973 # ever link correctly. If we're not using GNU ld we use -z text
8974 # though, which does catch some bad symbols but isn't as heavy-handed
8975 # as -z defs.
8976 no_undefined_flag='${wl}-z,text'
8977 allow_undefined_flag='${wl}-z,nodefs'
8978 archive_cmds_need_lc=no
8979 hardcode_shlibpath_var=no
8980 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8981 hardcode_libdir_separator=':'
8982 link_all_deplibs=yes
8983 export_dynamic_flag_spec='${wl}-Bexport'
8984 runpath_var='LD_RUN_PATH'
8985
8986 if test "$GCC" = yes; then
8987 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 else
8990 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992 fi
8993 ;;
8994
8995 uts4*)
8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_shlibpath_var=no
8999 ;;
9000
9001 *)
9002 ld_shlibs=no
9003 ;;
9004 esac
9005 fi
9006
9007 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9008 $as_echo "$ld_shlibs" >&6; }
9009 test "$ld_shlibs" = no && can_build_shared=no
9010
9011 #
9012 # Do we need to explicitly link libc?
9013 #
9014 case "x$archive_cmds_need_lc" in
9015 x|xyes)
9016 # Assume -lc should be added
9017 archive_cmds_need_lc=yes
9018
9019 if test "$enable_shared" = yes && test "$GCC" = yes; then
9020 case $archive_cmds in
9021 *'~'*)
9022 # FIXME: we may have to deal with multi-command sequences.
9023 ;;
9024 '$CC '*)
9025 # Test whether the compiler implicitly links with -lc since on some
9026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9027 # to ld, don't add -lc before -lgcc.
9028 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9029 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9030 $rm conftest*
9031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032
9033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034 (eval $ac_compile) 2>&5
9035 ac_status=$?
9036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } 2>conftest.err; then
9038 soname=conftest
9039 lib=conftest
9040 libobjs=conftest.$ac_objext
9041 deplibs=
9042 wl=$lt_prog_compiler_wl
9043 pic_flag=$lt_prog_compiler_pic
9044 compiler_flags=-v
9045 linker_flags=-v
9046 verstring=
9047 output_objdir=.
9048 libname=conftest
9049 lt_save_allow_undefined_flag=$allow_undefined_flag
9050 allow_undefined_flag=
9051 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9052 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9053 ac_status=$?
9054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }
9056 then
9057 archive_cmds_need_lc=no
9058 else
9059 archive_cmds_need_lc=yes
9060 fi
9061 allow_undefined_flag=$lt_save_allow_undefined_flag
9062 else
9063 cat conftest.err 1>&5
9064 fi
9065 $rm conftest*
9066 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9067 $as_echo "$archive_cmds_need_lc" >&6; }
9068 ;;
9069 esac
9070 fi
9071 ;;
9072 esac
9073
9074 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9075 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9076 library_names_spec=
9077 libname_spec='lib$name'
9078 soname_spec=
9079 shrext_cmds=".so"
9080 postinstall_cmds=
9081 postuninstall_cmds=
9082 finish_cmds=
9083 finish_eval=
9084 shlibpath_var=
9085 shlibpath_overrides_runpath=unknown
9086 version_type=none
9087 dynamic_linker="$host_os ld.so"
9088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9089
9090 if test "$GCC" = yes; then
9091 case $host_os in
9092 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9093 *) lt_awk_arg="/^libraries:/" ;;
9094 esac
9095 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9096 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9097 # if the path contains ";" then we assume it to be the separator
9098 # otherwise default to the standard path separator (i.e. ":") - it is
9099 # assumed that no part of a normal pathname contains ";" but that should
9100 # okay in the real world where ";" in dirpaths is itself problematic.
9101 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9102 else
9103 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9104 fi
9105 # Ok, now we have the path, separated by spaces, we can step through it
9106 # and add multilib dir if necessary.
9107 lt_tmp_lt_search_path_spec=
9108 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9109 for lt_sys_path in $lt_search_path_spec; do
9110 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9111 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9112 else
9113 test -d "$lt_sys_path" && \
9114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9115 fi
9116 done
9117 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9118 BEGIN {RS=" "; FS="/|\n";} {
9119 lt_foo="";
9120 lt_count=0;
9121 for (lt_i = NF; lt_i > 0; lt_i--) {
9122 if ($lt_i != "" && $lt_i != ".") {
9123 if ($lt_i == "..") {
9124 lt_count++;
9125 } else {
9126 if (lt_count == 0) {
9127 lt_foo="/" $lt_i lt_foo;
9128 } else {
9129 lt_count--;
9130 }
9131 }
9132 }
9133 }
9134 if (lt_foo != "") { lt_freq[lt_foo]++; }
9135 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9136 }'`
9137 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9138 else
9139 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9140 fi
9141 need_lib_prefix=unknown
9142 hardcode_into_libs=no
9143
9144 # when you set need_version to no, make sure it does not cause -set_version
9145 # flags to be left without arguments
9146 need_version=unknown
9147
9148 case $host_os in
9149 aix3*)
9150 version_type=linux
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9152 shlibpath_var=LIBPATH
9153
9154 # AIX 3 has no versioning support, so we append a major version to the name.
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 ;;
9157
9158 aix[4-9]*)
9159 version_type=linux
9160 need_lib_prefix=no
9161 need_version=no
9162 hardcode_into_libs=yes
9163 if test "$host_cpu" = ia64; then
9164 # AIX 5 supports IA64
9165 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 else
9168 # With GCC up to 2.95.x, collect2 would create an import file
9169 # for dependence libraries. The import file would start with
9170 # the line `#! .'. This would cause the generated library to
9171 # depend on `.', always an invalid library. This was fixed in
9172 # development snapshots of GCC prior to 3.0.
9173 case $host_os in
9174 aix4 | aix4.[01] | aix4.[01].*)
9175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9176 echo ' yes '
9177 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9178 :
9179 else
9180 can_build_shared=no
9181 fi
9182 ;;
9183 esac
9184 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9185 # soname into executable. Probably we can add versioning support to
9186 # collect2, so additional links can be useful in future.
9187 if test "$aix_use_runtimelinking" = yes; then
9188 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9189 # instead of lib<name>.a to let people know that these are not
9190 # typical AIX shared libraries.
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 else
9193 # We preserve .a as extension for shared libraries through AIX4.2
9194 # and later when we are not doing run time linking.
9195 library_names_spec='${libname}${release}.a $libname.a'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 fi
9198 shlibpath_var=LIBPATH
9199 fi
9200 ;;
9201
9202 amigaos*)
9203 library_names_spec='$libname.ixlibrary $libname.a'
9204 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9205 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'
9206 ;;
9207
9208 beos*)
9209 library_names_spec='${libname}${shared_ext}'
9210 dynamic_linker="$host_os ld.so"
9211 shlibpath_var=LIBRARY_PATH
9212 ;;
9213
9214 bsdi[45]*)
9215 version_type=linux
9216 need_version=no
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9222 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9223 # the default ld.so.conf also contains /usr/contrib/lib and
9224 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9225 # libtool to hard-code these into programs
9226 ;;
9227
9228 cygwin* | mingw* | pw32*)
9229 version_type=windows
9230 shrext_cmds=".dll"
9231 need_version=no
9232 need_lib_prefix=no
9233
9234 case $GCC,$host_os in
9235 yes,cygwin* | yes,mingw* | yes,pw32*)
9236 library_names_spec='$libname.dll.a'
9237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9238 postinstall_cmds='base_file=`basename \${file}`~
9239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9240 dldir=$destdir/`dirname \$dlpath`~
9241 test -d \$dldir || mkdir -p \$dldir~
9242 $install_prog $dir/$dlname \$dldir/$dlname~
9243 chmod a+x \$dldir/$dlname'
9244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9245 dlpath=$dir/\$dldll~
9246 $rm \$dlpath'
9247 shlibpath_overrides_runpath=yes
9248
9249 case $host_os in
9250 cygwin*)
9251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9254 ;;
9255 mingw*)
9256 # MinGW DLLs use traditional 'lib' prefix
9257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9259 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9260 # It is most probably a Windows format PATH printed by
9261 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9262 # path with ; separators, and with drive letters. We can handle the
9263 # drive letters (cygwin fileutils understands them), so leave them,
9264 # especially as we might pass files found there to a mingw objdump,
9265 # which wouldn't understand a cygwinified path. Ahh.
9266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9267 else
9268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9269 fi
9270 ;;
9271 pw32*)
9272 # pw32 DLLs use 'pw' prefix rather than 'lib'
9273 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9274 ;;
9275 esac
9276 ;;
9277
9278 *)
9279 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9280 ;;
9281 esac
9282 dynamic_linker='Win32 ld.exe'
9283 # FIXME: first we should search . and the directory the executable is in
9284 shlibpath_var=PATH
9285 ;;
9286
9287 darwin* | rhapsody*)
9288 dynamic_linker="$host_os dyld"
9289 version_type=darwin
9290 need_lib_prefix=no
9291 need_version=no
9292 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9293 soname_spec='${libname}${release}${major}$shared_ext'
9294 shlibpath_overrides_runpath=yes
9295 shlibpath_var=DYLD_LIBRARY_PATH
9296 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9297
9298 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9299 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9300 ;;
9301
9302 dgux*)
9303 version_type=linux
9304 need_lib_prefix=no
9305 need_version=no
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 ;;
9310
9311 freebsd1*)
9312 dynamic_linker=no
9313 ;;
9314
9315 freebsd* | dragonfly*)
9316 # DragonFly does not have aout. When/if they implement a new
9317 # versioning mechanism, adjust this.
9318 if test -x /usr/bin/objformat; then
9319 objformat=`/usr/bin/objformat`
9320 else
9321 case $host_os in
9322 freebsd[123]*) objformat=aout ;;
9323 *) objformat=elf ;;
9324 esac
9325 fi
9326 version_type=freebsd-$objformat
9327 case $version_type in
9328 freebsd-elf*)
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 need_version=no
9331 need_lib_prefix=no
9332 ;;
9333 freebsd-*)
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9335 need_version=yes
9336 ;;
9337 esac
9338 shlibpath_var=LD_LIBRARY_PATH
9339 case $host_os in
9340 freebsd2*)
9341 shlibpath_overrides_runpath=yes
9342 ;;
9343 freebsd3.[01]* | freebsdelf3.[01]*)
9344 shlibpath_overrides_runpath=yes
9345 hardcode_into_libs=yes
9346 ;;
9347 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9348 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9349 shlibpath_overrides_runpath=no
9350 hardcode_into_libs=yes
9351 ;;
9352 *) # from 4.6 on, and DragonFly
9353 shlibpath_overrides_runpath=yes
9354 hardcode_into_libs=yes
9355 ;;
9356 esac
9357 ;;
9358
9359 gnu*)
9360 version_type=linux
9361 need_lib_prefix=no
9362 need_version=no
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 hardcode_into_libs=yes
9367 ;;
9368
9369 hpux9* | hpux10* | hpux11*)
9370 # Give a soname corresponding to the major version so that dld.sl refuses to
9371 # link against other versions.
9372 version_type=sunos
9373 need_lib_prefix=no
9374 need_version=no
9375 case $host_cpu in
9376 ia64*)
9377 shrext_cmds='.so'
9378 hardcode_into_libs=yes
9379 dynamic_linker="$host_os dld.so"
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 if test "X$HPUX_IA64_MODE" = X32; then
9385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9386 else
9387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9388 fi
9389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9390 ;;
9391 hppa*64*)
9392 shrext_cmds='.sl'
9393 hardcode_into_libs=yes
9394 dynamic_linker="$host_os dld.sl"
9395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9401 ;;
9402 *)
9403 shrext_cmds='.sl'
9404 dynamic_linker="$host_os dld.sl"
9405 shlibpath_var=SHLIB_PATH
9406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 ;;
9410 esac
9411 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9412 postinstall_cmds='chmod 555 $lib'
9413 ;;
9414
9415 interix[3-9]*)
9416 version_type=linux
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 shlibpath_overrides_runpath=no
9424 hardcode_into_libs=yes
9425 ;;
9426
9427 irix5* | irix6* | nonstopux*)
9428 case $host_os in
9429 nonstopux*) version_type=nonstopux ;;
9430 *)
9431 if test "$lt_cv_prog_gnu_ld" = yes; then
9432 version_type=linux
9433 else
9434 version_type=irix
9435 fi ;;
9436 esac
9437 need_lib_prefix=no
9438 need_version=no
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9441 case $host_os in
9442 irix5* | nonstopux*)
9443 libsuff= shlibsuff=
9444 ;;
9445 *)
9446 case $LD in # libtool.m4 will add one of these switches to LD
9447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9448 libsuff= shlibsuff= libmagic=32-bit;;
9449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9450 libsuff=32 shlibsuff=N32 libmagic=N32;;
9451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9453 *) libsuff= shlibsuff= libmagic=never-match;;
9454 esac
9455 ;;
9456 esac
9457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9458 shlibpath_overrides_runpath=no
9459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9461 hardcode_into_libs=yes
9462 ;;
9463
9464 # No shared lib support for Linux oldld, aout, or coff.
9465 linux*oldld* | linux*aout* | linux*coff*)
9466 dynamic_linker=no
9467 ;;
9468
9469 # This must be Linux ELF.
9470 linux* | k*bsd*-gnu)
9471 version_type=linux
9472 need_lib_prefix=no
9473 need_version=no
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=no
9479 # This implies no fast_install, which is unacceptable.
9480 # Some rework will be needed to allow for fast_install
9481 # before this can be enabled.
9482 hardcode_into_libs=yes
9483
9484 # Append ld.so.conf contents to the search path
9485 if test -f /etc/ld.so.conf; then
9486 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' ' '`
9487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9488 fi
9489
9490 # We used to test for /lib/ld.so.1 and disable shared libraries on
9491 # powerpc, because MkLinux only supported shared libraries with the
9492 # GNU dynamic linker. Since this was broken with cross compilers,
9493 # most powerpc-linux boxes support dynamic linking these days and
9494 # people can always --disable-shared, the test was removed, and we
9495 # assume the GNU/Linux dynamic linker is in use.
9496 dynamic_linker='GNU/Linux ld.so'
9497 ;;
9498
9499 netbsd*)
9500 version_type=sunos
9501 need_lib_prefix=no
9502 need_version=no
9503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9506 dynamic_linker='NetBSD (a.out) ld.so'
9507 else
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 dynamic_linker='NetBSD ld.elf_so'
9511 fi
9512 shlibpath_var=LD_LIBRARY_PATH
9513 shlibpath_overrides_runpath=yes
9514 hardcode_into_libs=yes
9515 ;;
9516
9517 newsos6)
9518 version_type=linux
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 shlibpath_var=LD_LIBRARY_PATH
9521 shlibpath_overrides_runpath=yes
9522 ;;
9523
9524 nto-qnx*)
9525 version_type=linux
9526 need_lib_prefix=no
9527 need_version=no
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=yes
9532 ;;
9533
9534 openbsd*)
9535 version_type=sunos
9536 sys_lib_dlsearch_path_spec="/usr/lib"
9537 need_lib_prefix=no
9538 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9539 case $host_os in
9540 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9541 *) need_version=no ;;
9542 esac
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9547 case $host_os in
9548 openbsd2.[89] | openbsd2.[89].*)
9549 shlibpath_overrides_runpath=no
9550 ;;
9551 *)
9552 shlibpath_overrides_runpath=yes
9553 ;;
9554 esac
9555 else
9556 shlibpath_overrides_runpath=yes
9557 fi
9558 ;;
9559
9560 os2*)
9561 libname_spec='$name'
9562 shrext_cmds=".dll"
9563 need_lib_prefix=no
9564 library_names_spec='$libname${shared_ext} $libname.a'
9565 dynamic_linker='OS/2 ld.exe'
9566 shlibpath_var=LIBPATH
9567 ;;
9568
9569 osf3* | osf4* | osf5*)
9570 version_type=osf
9571 need_lib_prefix=no
9572 need_version=no
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9577 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9578 ;;
9579
9580 rdos*)
9581 dynamic_linker=no
9582 ;;
9583
9584 solaris*)
9585 version_type=linux
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 hardcode_into_libs=yes
9593 # ldd complains unless libraries are executable
9594 postinstall_cmds='chmod +x $lib'
9595 ;;
9596
9597 sunos4*)
9598 version_type=sunos
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 shlibpath_overrides_runpath=yes
9603 if test "$with_gnu_ld" = yes; then
9604 need_lib_prefix=no
9605 fi
9606 need_version=yes
9607 ;;
9608
9609 sysv4 | sysv4.3*)
9610 version_type=linux
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 case $host_vendor in
9615 sni)
9616 shlibpath_overrides_runpath=no
9617 need_lib_prefix=no
9618 export_dynamic_flag_spec='${wl}-Blargedynsym'
9619 runpath_var=LD_RUN_PATH
9620 ;;
9621 siemens)
9622 need_lib_prefix=no
9623 ;;
9624 motorola)
9625 need_lib_prefix=no
9626 need_version=no
9627 shlibpath_overrides_runpath=no
9628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9629 ;;
9630 esac
9631 ;;
9632
9633 sysv4*MP*)
9634 if test -d /usr/nec ;then
9635 version_type=linux
9636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9637 soname_spec='$libname${shared_ext}.$major'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 fi
9640 ;;
9641
9642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9643 version_type=freebsd-elf
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 hardcode_into_libs=yes
9650 if test "$with_gnu_ld" = yes; then
9651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9652 shlibpath_overrides_runpath=no
9653 else
9654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9655 shlibpath_overrides_runpath=yes
9656 case $host_os in
9657 sco3.2v5*)
9658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9659 ;;
9660 esac
9661 fi
9662 sys_lib_dlsearch_path_spec='/usr/lib'
9663 ;;
9664
9665 uts4*)
9666 version_type=linux
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 ;;
9671
9672 *)
9673 dynamic_linker=no
9674 ;;
9675 esac
9676 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9677 $as_echo "$dynamic_linker" >&6; }
9678 test "$dynamic_linker" = no && can_build_shared=no
9679
9680 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9681 $as_echo_n "(cached) " >&6
9682 else
9683 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9684 fi
9685
9686 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9687 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9688 $as_echo_n "(cached) " >&6
9689 else
9690 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9691 fi
9692
9693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9694
9695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9696 if test "$GCC" = yes; then
9697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9698 fi
9699
9700 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9701 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9702 hardcode_action=
9703 if test -n "$hardcode_libdir_flag_spec" || \
9704 test -n "$runpath_var" || \
9705 test "X$hardcode_automatic" = "Xyes" ; then
9706
9707 # We can hardcode non-existant directories.
9708 if test "$hardcode_direct" != no &&
9709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9710 # have to relink, otherwise we might link with an installed library
9711 # when we should be linking with a yet-to-be-installed one
9712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9713 test "$hardcode_minus_L" != no; then
9714 # Linking always hardcodes the temporary library directory.
9715 hardcode_action=relink
9716 else
9717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9718 hardcode_action=immediate
9719 fi
9720 else
9721 # We cannot hardcode anything, or else we can only hardcode existing
9722 # directories.
9723 hardcode_action=unsupported
9724 fi
9725 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9726 $as_echo "$hardcode_action" >&6; }
9727
9728 if test "$hardcode_action" = relink; then
9729 # Fast installation is not supported
9730 enable_fast_install=no
9731 elif test "$shlibpath_overrides_runpath" = yes ||
9732 test "$enable_shared" = no; then
9733 # Fast installation is not necessary
9734 enable_fast_install=needless
9735 fi
9736
9737 striplib=
9738 old_striplib=
9739 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9740 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9741 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9742 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9743 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9744 { $as_echo "$as_me:$LINENO: result: yes" >&5
9745 $as_echo "yes" >&6; }
9746 else
9747 # FIXME - insert some real tests, host_os isn't really good enough
9748 case $host_os in
9749 darwin*)
9750 if test -n "$STRIP" ; then
9751 striplib="$STRIP -x"
9752 old_striplib="$STRIP -S"
9753 { $as_echo "$as_me:$LINENO: result: yes" >&5
9754 $as_echo "yes" >&6; }
9755 else
9756 { $as_echo "$as_me:$LINENO: result: no" >&5
9757 $as_echo "no" >&6; }
9758 fi
9759 ;;
9760 *)
9761 { $as_echo "$as_me:$LINENO: result: no" >&5
9762 $as_echo "no" >&6; }
9763 ;;
9764 esac
9765 fi
9766
9767 if test "x$enable_dlopen" != xyes; then
9768 enable_dlopen=unknown
9769 enable_dlopen_self=unknown
9770 enable_dlopen_self_static=unknown
9771 else
9772 lt_cv_dlopen=no
9773 lt_cv_dlopen_libs=
9774
9775 case $host_os in
9776 beos*)
9777 lt_cv_dlopen="load_add_on"
9778 lt_cv_dlopen_libs=
9779 lt_cv_dlopen_self=yes
9780 ;;
9781
9782 mingw* | pw32*)
9783 lt_cv_dlopen="LoadLibrary"
9784 lt_cv_dlopen_libs=
9785 ;;
9786
9787 cygwin*)
9788 lt_cv_dlopen="dlopen"
9789 lt_cv_dlopen_libs=
9790 ;;
9791
9792 darwin*)
9793 # if libdl is installed we need to link against it
9794 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797 $as_echo_n "(cached) " >&6
9798 else
9799 ac_check_lib_save_LIBS=$LIBS
9800 LIBS="-ldl $LIBS"
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char dlopen ();
9815 int
9816 main ()
9817 {
9818 return dlopen ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9830 $as_echo "$ac_try_echo") >&5
9831 (eval "$ac_link") 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest$ac_exeext && {
9841 test "$cross_compiling" = yes ||
9842 $as_test_x conftest$ac_exeext
9843 }; then
9844 ac_cv_lib_dl_dlopen=yes
9845 else
9846 $as_echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_cv_lib_dl_dlopen=no
9850 fi
9851
9852 rm -rf conftest.dSYM
9853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9854 conftest$ac_exeext conftest.$ac_ext
9855 LIBS=$ac_check_lib_save_LIBS
9856 fi
9857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9859 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9861 else
9862
9863 lt_cv_dlopen="dyld"
9864 lt_cv_dlopen_libs=
9865 lt_cv_dlopen_self=yes
9866
9867 fi
9868
9869 ;;
9870
9871 *)
9872 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9873 $as_echo_n "checking for shl_load... " >&6; }
9874 if test "${ac_cv_func_shl_load+set}" = set; then
9875 $as_echo_n "(cached) " >&6
9876 else
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9885 #define shl_load innocuous_shl_load
9886
9887 /* System header to define __stub macros and hopefully few prototypes,
9888 which can conflict with char shl_load (); below.
9889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 <limits.h> exists even on freestanding compilers. */
9891
9892 #ifdef __STDC__
9893 # include <limits.h>
9894 #else
9895 # include <assert.h>
9896 #endif
9897
9898 #undef shl_load
9899
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char shl_load ();
9907 /* The GNU C library defines this for functions which it implements
9908 to always fail with ENOSYS. Some functions are actually named
9909 something starting with __ and the normal name is an alias. */
9910 #if defined __stub_shl_load || defined __stub___shl_load
9911 choke me
9912 #endif
9913
9914 int
9915 main ()
9916 {
9917 return shl_load ();
9918 ;
9919 return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927 esac
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext && {
9940 test "$cross_compiling" = yes ||
9941 $as_test_x conftest$ac_exeext
9942 }; then
9943 ac_cv_func_shl_load=yes
9944 else
9945 $as_echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_func_shl_load=no
9949 fi
9950
9951 rm -rf conftest.dSYM
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953 conftest$ac_exeext conftest.$ac_ext
9954 fi
9955 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9956 $as_echo "$ac_cv_func_shl_load" >&6; }
9957 if test "x$ac_cv_func_shl_load" = x""yes; then
9958 lt_cv_dlopen="shl_load"
9959 else
9960 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9961 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9963 $as_echo_n "(cached) " >&6
9964 else
9965 ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-ldld $LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9977 #ifdef __cplusplus
9978 extern "C"
9979 #endif
9980 char shl_load ();
9981 int
9982 main ()
9983 {
9984 return shl_load ();
9985 ;
9986 return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9991 case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994 esac
9995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9996 $as_echo "$ac_try_echo") >&5
9997 (eval "$ac_link") 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest$ac_exeext && {
10007 test "$cross_compiling" = yes ||
10008 $as_test_x conftest$ac_exeext
10009 }; then
10010 ac_cv_lib_dld_shl_load=yes
10011 else
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_cv_lib_dld_shl_load=no
10016 fi
10017
10018 rm -rf conftest.dSYM
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10022 fi
10023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10024 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10025 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10026 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10027 else
10028 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10029 $as_echo_n "checking for dlopen... " >&6; }
10030 if test "${ac_cv_func_dlopen+set}" = set; then
10031 $as_echo_n "(cached) " >&6
10032 else
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10041 #define dlopen innocuous_dlopen
10042
10043 /* System header to define __stub macros and hopefully few prototypes,
10044 which can conflict with char dlopen (); below.
10045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10046 <limits.h> exists even on freestanding compilers. */
10047
10048 #ifdef __STDC__
10049 # include <limits.h>
10050 #else
10051 # include <assert.h>
10052 #endif
10053
10054 #undef dlopen
10055
10056 /* Override any GCC internal prototype to avoid an error.
10057 Use char because int might match the return type of a GCC
10058 builtin and then its argument prototype would still apply. */
10059 #ifdef __cplusplus
10060 extern "C"
10061 #endif
10062 char dlopen ();
10063 /* The GNU C library defines this for functions which it implements
10064 to always fail with ENOSYS. Some functions are actually named
10065 something starting with __ and the normal name is an alias. */
10066 #if defined __stub_dlopen || defined __stub___dlopen
10067 choke me
10068 #endif
10069
10070 int
10071 main ()
10072 {
10073 return dlopen ();
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (ac_try="$ac_link"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10085 $as_echo "$ac_try_echo") >&5
10086 (eval "$ac_link") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest$ac_exeext && {
10096 test "$cross_compiling" = yes ||
10097 $as_test_x conftest$ac_exeext
10098 }; then
10099 ac_cv_func_dlopen=yes
10100 else
10101 $as_echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 ac_cv_func_dlopen=no
10105 fi
10106
10107 rm -rf conftest.dSYM
10108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10109 conftest$ac_exeext conftest.$ac_ext
10110 fi
10111 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10112 $as_echo "$ac_cv_func_dlopen" >&6; }
10113 if test "x$ac_cv_func_dlopen" = x""yes; then
10114 lt_cv_dlopen="dlopen"
10115 else
10116 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10119 $as_echo_n "(cached) " >&6
10120 else
10121 ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-ldl $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h. */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129
10130 /* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 char dlopen ();
10137 int
10138 main ()
10139 {
10140 return dlopen ();
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10152 $as_echo "$ac_try_echo") >&5
10153 (eval "$ac_link") 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest$ac_exeext && {
10163 test "$cross_compiling" = yes ||
10164 $as_test_x conftest$ac_exeext
10165 }; then
10166 ac_cv_lib_dl_dlopen=yes
10167 else
10168 $as_echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171 ac_cv_lib_dl_dlopen=no
10172 fi
10173
10174 rm -rf conftest.dSYM
10175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10183 else
10184 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10186 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10187 $as_echo_n "(cached) " >&6
10188 else
10189 ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-lsvld $LIBS"
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197
10198 /* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 char dlopen ();
10205 int
10206 main ()
10207 {
10208 return dlopen ();
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218 esac
10219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10220 $as_echo "$ac_try_echo") >&5
10221 (eval "$ac_link") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext && {
10231 test "$cross_compiling" = yes ||
10232 $as_test_x conftest$ac_exeext
10233 }; then
10234 ac_cv_lib_svld_dlopen=yes
10235 else
10236 $as_echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ac_cv_lib_svld_dlopen=no
10240 fi
10241
10242 rm -rf conftest.dSYM
10243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10248 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10249 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10251 else
10252 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10253 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10255 $as_echo_n "(cached) " >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-ldld $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10269 #ifdef __cplusplus
10270 extern "C"
10271 #endif
10272 char dld_link ();
10273 int
10274 main ()
10275 {
10276 return dld_link ();
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289 (eval "$ac_link") 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest$ac_exeext && {
10299 test "$cross_compiling" = yes ||
10300 $as_test_x conftest$ac_exeext
10301 }; then
10302 ac_cv_lib_dld_dld_link=yes
10303 else
10304 $as_echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307 ac_cv_lib_dld_dld_link=no
10308 fi
10309
10310 rm -rf conftest.dSYM
10311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10314 fi
10315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10316 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10317 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10319 fi
10320
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330
10331 fi
10332
10333
10334 fi
10335
10336 ;;
10337 esac
10338
10339 if test "x$lt_cv_dlopen" != xno; then
10340 enable_dlopen=yes
10341 else
10342 enable_dlopen=no
10343 fi
10344
10345 case $lt_cv_dlopen in
10346 dlopen)
10347 save_CPPFLAGS="$CPPFLAGS"
10348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10349
10350 save_LDFLAGS="$LDFLAGS"
10351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10352
10353 save_LIBS="$LIBS"
10354 LIBS="$lt_cv_dlopen_libs $LIBS"
10355
10356 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10357 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10358 if test "${lt_cv_dlopen_self+set}" = set; then
10359 $as_echo_n "(cached) " >&6
10360 else
10361 if test "$cross_compiling" = yes; then :
10362 lt_cv_dlopen_self=cross
10363 else
10364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10365 lt_status=$lt_dlunknown
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10367 "configure"
10368 #include "confdefs.h"
10369
10370 #if HAVE_DLFCN_H
10371 #include <dlfcn.h>
10372 #endif
10373
10374 #include <stdio.h>
10375
10376 #ifdef RTLD_GLOBAL
10377 # define LT_DLGLOBAL RTLD_GLOBAL
10378 #else
10379 # ifdef DL_GLOBAL
10380 # define LT_DLGLOBAL DL_GLOBAL
10381 # else
10382 # define LT_DLGLOBAL 0
10383 # endif
10384 #endif
10385
10386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10387 find out it does not work in some platform. */
10388 #ifndef LT_DLLAZY_OR_NOW
10389 # ifdef RTLD_LAZY
10390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10391 # else
10392 # ifdef DL_LAZY
10393 # define LT_DLLAZY_OR_NOW DL_LAZY
10394 # else
10395 # ifdef RTLD_NOW
10396 # define LT_DLLAZY_OR_NOW RTLD_NOW
10397 # else
10398 # ifdef DL_NOW
10399 # define LT_DLLAZY_OR_NOW DL_NOW
10400 # else
10401 # define LT_DLLAZY_OR_NOW 0
10402 # endif
10403 # endif
10404 # endif
10405 # endif
10406 #endif
10407
10408 #ifdef __cplusplus
10409 extern "C" void exit (int);
10410 #endif
10411
10412 void fnord() { int i=42;}
10413 int main ()
10414 {
10415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10416 int status = $lt_dlunknown;
10417
10418 if (self)
10419 {
10420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10422 /* dlclose (self); */
10423 }
10424 else
10425 puts (dlerror ());
10426
10427 exit (status);
10428 }
10429 EOF
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>&5
10432 ac_status=$?
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10435 (./conftest; exit; ) >&5 2>/dev/null
10436 lt_status=$?
10437 case x$lt_status in
10438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10441 esac
10442 else :
10443 # compilation failed
10444 lt_cv_dlopen_self=no
10445 fi
10446 fi
10447 rm -fr conftest*
10448
10449
10450 fi
10451 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10452 $as_echo "$lt_cv_dlopen_self" >&6; }
10453
10454 if test "x$lt_cv_dlopen_self" = xyes; then
10455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10456 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10457 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10458 if test "${lt_cv_dlopen_self_static+set}" = set; then
10459 $as_echo_n "(cached) " >&6
10460 else
10461 if test "$cross_compiling" = yes; then :
10462 lt_cv_dlopen_self_static=cross
10463 else
10464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465 lt_status=$lt_dlunknown
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10467 "configure"
10468 #include "confdefs.h"
10469
10470 #if HAVE_DLFCN_H
10471 #include <dlfcn.h>
10472 #endif
10473
10474 #include <stdio.h>
10475
10476 #ifdef RTLD_GLOBAL
10477 # define LT_DLGLOBAL RTLD_GLOBAL
10478 #else
10479 # ifdef DL_GLOBAL
10480 # define LT_DLGLOBAL DL_GLOBAL
10481 # else
10482 # define LT_DLGLOBAL 0
10483 # endif
10484 #endif
10485
10486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487 find out it does not work in some platform. */
10488 #ifndef LT_DLLAZY_OR_NOW
10489 # ifdef RTLD_LAZY
10490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10491 # else
10492 # ifdef DL_LAZY
10493 # define LT_DLLAZY_OR_NOW DL_LAZY
10494 # else
10495 # ifdef RTLD_NOW
10496 # define LT_DLLAZY_OR_NOW RTLD_NOW
10497 # else
10498 # ifdef DL_NOW
10499 # define LT_DLLAZY_OR_NOW DL_NOW
10500 # else
10501 # define LT_DLLAZY_OR_NOW 0
10502 # endif
10503 # endif
10504 # endif
10505 # endif
10506 #endif
10507
10508 #ifdef __cplusplus
10509 extern "C" void exit (int);
10510 #endif
10511
10512 void fnord() { int i=42;}
10513 int main ()
10514 {
10515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516 int status = $lt_dlunknown;
10517
10518 if (self)
10519 {
10520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522 /* dlclose (self); */
10523 }
10524 else
10525 puts (dlerror ());
10526
10527 exit (status);
10528 }
10529 EOF
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>&5
10532 ac_status=$?
10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10535 (./conftest; exit; ) >&5 2>/dev/null
10536 lt_status=$?
10537 case x$lt_status in
10538 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10539 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10540 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10541 esac
10542 else :
10543 # compilation failed
10544 lt_cv_dlopen_self_static=no
10545 fi
10546 fi
10547 rm -fr conftest*
10548
10549
10550 fi
10551 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10552 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10553 fi
10554
10555 CPPFLAGS="$save_CPPFLAGS"
10556 LDFLAGS="$save_LDFLAGS"
10557 LIBS="$save_LIBS"
10558 ;;
10559 esac
10560
10561 case $lt_cv_dlopen_self in
10562 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10563 *) enable_dlopen_self=unknown ;;
10564 esac
10565
10566 case $lt_cv_dlopen_self_static in
10567 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10568 *) enable_dlopen_self_static=unknown ;;
10569 esac
10570 fi
10571
10572
10573 # Report which library types will actually be built
10574 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10575 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10576 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10577 $as_echo "$can_build_shared" >&6; }
10578
10579 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10580 $as_echo_n "checking whether to build shared libraries... " >&6; }
10581 test "$can_build_shared" = "no" && enable_shared=no
10582
10583 # On AIX, shared libraries and static libraries use the same namespace, and
10584 # are all built from PIC.
10585 case $host_os in
10586 aix3*)
10587 test "$enable_shared" = yes && enable_static=no
10588 if test -n "$RANLIB"; then
10589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10590 postinstall_cmds='$RANLIB $lib'
10591 fi
10592 ;;
10593
10594 aix[4-9]*)
10595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10596 test "$enable_shared" = yes && enable_static=no
10597 fi
10598 ;;
10599 esac
10600 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10601 $as_echo "$enable_shared" >&6; }
10602
10603 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10604 $as_echo_n "checking whether to build static libraries... " >&6; }
10605 # Make sure either enable_shared or enable_static is yes.
10606 test "$enable_shared" = yes || enable_static=yes
10607 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10608 $as_echo "$enable_static" >&6; }
10609
10610 # The else clause should only fire when bootstrapping the
10611 # libtool distribution, otherwise you forgot to ship ltmain.sh
10612 # with your package, and you will get complaints that there are
10613 # no rules to generate ltmain.sh.
10614 if test -f "$ltmain"; then
10615 # See if we are running on zsh, and set the options which allow our commands through
10616 # without removal of \ escapes.
10617 if test -n "${ZSH_VERSION+set}" ; then
10618 setopt NO_GLOB_SUBST
10619 fi
10620 # Now quote all the things that may contain metacharacters while being
10621 # careful not to overquote the AC_SUBSTed values. We take copies of the
10622 # variables and quote the copies for generation of the libtool script.
10623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10624 SED SHELL STRIP \
10625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10627 deplibs_check_method reload_flag reload_cmds need_locks \
10628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10629 lt_cv_sys_global_symbol_to_c_name_address \
10630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10631 old_postinstall_cmds old_postuninstall_cmds \
10632 compiler \
10633 CC \
10634 LD \
10635 lt_prog_compiler_wl \
10636 lt_prog_compiler_pic \
10637 lt_prog_compiler_static \
10638 lt_prog_compiler_no_builtin_flag \
10639 export_dynamic_flag_spec \
10640 thread_safe_flag_spec \
10641 whole_archive_flag_spec \
10642 enable_shared_with_static_runtimes \
10643 old_archive_cmds \
10644 old_archive_from_new_cmds \
10645 predep_objects \
10646 postdep_objects \
10647 predeps \
10648 postdeps \
10649 compiler_lib_search_path \
10650 compiler_lib_search_dirs \
10651 archive_cmds \
10652 archive_expsym_cmds \
10653 postinstall_cmds \
10654 postuninstall_cmds \
10655 old_archive_from_expsyms_cmds \
10656 allow_undefined_flag \
10657 no_undefined_flag \
10658 export_symbols_cmds \
10659 hardcode_libdir_flag_spec \
10660 hardcode_libdir_flag_spec_ld \
10661 hardcode_libdir_separator \
10662 hardcode_automatic \
10663 module_cmds \
10664 module_expsym_cmds \
10665 lt_cv_prog_compiler_c_o \
10666 fix_srcfile_path \
10667 exclude_expsyms \
10668 include_expsyms; do
10669
10670 case $var in
10671 old_archive_cmds | \
10672 old_archive_from_new_cmds | \
10673 archive_cmds | \
10674 archive_expsym_cmds | \
10675 module_cmds | \
10676 module_expsym_cmds | \
10677 old_archive_from_expsyms_cmds | \
10678 export_symbols_cmds | \
10679 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10680 postinstall_cmds | postuninstall_cmds | \
10681 old_postinstall_cmds | old_postuninstall_cmds | \
10682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10683 # Double-quote double-evaled strings.
10684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10685 ;;
10686 *)
10687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10688 ;;
10689 esac
10690 done
10691
10692 case $lt_echo in
10693 *'\$0 --fallback-echo"')
10694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10695 ;;
10696 esac
10697
10698 cfgfile="${ofile}T"
10699 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10700 $rm -f "$cfgfile"
10701 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10702 $as_echo "$as_me: creating $ofile" >&6;}
10703
10704 cat <<__EOF__ >> "$cfgfile"
10705 #! $SHELL
10706
10707 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10708 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10710 #
10711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10712 # Free Software Foundation, Inc.
10713 #
10714 # This file is part of GNU Libtool:
10715 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10716 #
10717 # This program is free software; you can redistribute it and/or modify
10718 # it under the terms of the GNU General Public License as published by
10719 # the Free Software Foundation; either version 2 of the License, or
10720 # (at your option) any later version.
10721 #
10722 # This program is distributed in the hope that it will be useful, but
10723 # WITHOUT ANY WARRANTY; without even the implied warranty of
10724 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10725 # General Public License for more details.
10726 #
10727 # You should have received a copy of the GNU General Public License
10728 # along with this program; if not, write to the Free Software
10729 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10730 #
10731 # As a special exception to the GNU General Public License, if you
10732 # distribute this file as part of a program that contains a
10733 # configuration script generated by Autoconf, you may include it under
10734 # the same distribution terms that you use for the rest of that program.
10735
10736 # A sed program that does not truncate output.
10737 SED=$lt_SED
10738
10739 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10740 Xsed="$SED -e 1s/^X//"
10741
10742 # The HP-UX ksh and POSIX shell print the target directory to stdout
10743 # if CDPATH is set.
10744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10745
10746 # The names of the tagged configurations supported by this script.
10747 available_tags=
10748
10749 # ### BEGIN LIBTOOL CONFIG
10750
10751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10752
10753 # Shell to use when invoking shell scripts.
10754 SHELL=$lt_SHELL
10755
10756 # Whether or not to build shared libraries.
10757 build_libtool_libs=$enable_shared
10758
10759 # Whether or not to build static libraries.
10760 build_old_libs=$enable_static
10761
10762 # Whether or not to add -lc for building shared libraries.
10763 build_libtool_need_lc=$archive_cmds_need_lc
10764
10765 # Whether or not to disallow shared libs when runtime libs are static
10766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10767
10768 # Whether or not to optimize for fast installation.
10769 fast_install=$enable_fast_install
10770
10771 # The host system.
10772 host_alias=$host_alias
10773 host=$host
10774 host_os=$host_os
10775
10776 # The build system.
10777 build_alias=$build_alias
10778 build=$build
10779 build_os=$build_os
10780
10781 # An echo program that does not interpret backslashes.
10782 echo=$lt_echo
10783
10784 # The archiver.
10785 AR=$lt_AR
10786 AR_FLAGS=$lt_AR_FLAGS
10787
10788 # A C compiler.
10789 LTCC=$lt_LTCC
10790
10791 # LTCC compiler flags.
10792 LTCFLAGS=$lt_LTCFLAGS
10793
10794 # A language-specific compiler.
10795 CC=$lt_compiler
10796
10797 # Is the compiler the GNU C compiler?
10798 with_gcc=$GCC
10799
10800 # An ERE matcher.
10801 EGREP=$lt_EGREP
10802
10803 # The linker used to build libraries.
10804 LD=$lt_LD
10805
10806 # Whether we need hard or soft links.
10807 LN_S=$lt_LN_S
10808
10809 # A BSD-compatible nm program.
10810 NM=$lt_NM
10811
10812 # A symbol stripping program
10813 STRIP=$lt_STRIP
10814
10815 # Used to examine libraries when file_magic_cmd begins "file"
10816 MAGIC_CMD=$MAGIC_CMD
10817
10818 # Used on cygwin: DLL creation program.
10819 DLLTOOL="$DLLTOOL"
10820
10821 # Used on cygwin: object dumper.
10822 OBJDUMP="$OBJDUMP"
10823
10824 # Used on cygwin: assembler.
10825 AS="$AS"
10826
10827 # The name of the directory that contains temporary libtool files.
10828 objdir=$objdir
10829
10830 # How to create reloadable object files.
10831 reload_flag=$lt_reload_flag
10832 reload_cmds=$lt_reload_cmds
10833
10834 # How to pass a linker flag through the compiler.
10835 wl=$lt_lt_prog_compiler_wl
10836
10837 # Object file suffix (normally "o").
10838 objext="$ac_objext"
10839
10840 # Old archive suffix (normally "a").
10841 libext="$libext"
10842
10843 # Shared library suffix (normally ".so").
10844 shrext_cmds='$shrext_cmds'
10845
10846 # Executable file suffix (normally "").
10847 exeext="$exeext"
10848
10849 # Additional compiler flags for building library objects.
10850 pic_flag=$lt_lt_prog_compiler_pic
10851 pic_mode=$pic_mode
10852
10853 # What is the maximum length of a command?
10854 max_cmd_len=$lt_cv_sys_max_cmd_len
10855
10856 # Does compiler simultaneously support -c and -o options?
10857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10858
10859 # Must we lock files when doing compilation?
10860 need_locks=$lt_need_locks
10861
10862 # Do we need the lib prefix for modules?
10863 need_lib_prefix=$need_lib_prefix
10864
10865 # Do we need a version for libraries?
10866 need_version=$need_version
10867
10868 # Whether dlopen is supported.
10869 dlopen_support=$enable_dlopen
10870
10871 # Whether dlopen of programs is supported.
10872 dlopen_self=$enable_dlopen_self
10873
10874 # Whether dlopen of statically linked programs is supported.
10875 dlopen_self_static=$enable_dlopen_self_static
10876
10877 # Compiler flag to prevent dynamic linking.
10878 link_static_flag=$lt_lt_prog_compiler_static
10879
10880 # Compiler flag to turn off builtin functions.
10881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10882
10883 # Compiler flag to allow reflexive dlopens.
10884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10885
10886 # Compiler flag to generate shared objects directly from archives.
10887 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10888
10889 # Compiler flag to generate thread-safe objects.
10890 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10891
10892 # Library versioning type.
10893 version_type=$version_type
10894
10895 # Format of library name prefix.
10896 libname_spec=$lt_libname_spec
10897
10898 # List of archive names. First name is the real one, the rest are links.
10899 # The last name is the one that the linker finds with -lNAME.
10900 library_names_spec=$lt_library_names_spec
10901
10902 # The coded name of the library, if different from the real name.
10903 soname_spec=$lt_soname_spec
10904
10905 # Commands used to build and install an old-style archive.
10906 RANLIB=$lt_RANLIB
10907 old_archive_cmds=$lt_old_archive_cmds
10908 old_postinstall_cmds=$lt_old_postinstall_cmds
10909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10910
10911 # Create an old-style archive from a shared archive.
10912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10913
10914 # Create a temporary old-style archive to link instead of a shared archive.
10915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10916
10917 # Commands used to build and install a shared archive.
10918 archive_cmds=$lt_archive_cmds
10919 archive_expsym_cmds=$lt_archive_expsym_cmds
10920 postinstall_cmds=$lt_postinstall_cmds
10921 postuninstall_cmds=$lt_postuninstall_cmds
10922
10923 # Commands used to build a loadable module (assumed same as above if empty)
10924 module_cmds=$lt_module_cmds
10925 module_expsym_cmds=$lt_module_expsym_cmds
10926
10927 # Commands to strip libraries.
10928 old_striplib=$lt_old_striplib
10929 striplib=$lt_striplib
10930
10931 # Dependencies to place before the objects being linked to create a
10932 # shared library.
10933 predep_objects=$lt_predep_objects
10934
10935 # Dependencies to place after the objects being linked to create a
10936 # shared library.
10937 postdep_objects=$lt_postdep_objects
10938
10939 # Dependencies to place before the objects being linked to create a
10940 # shared library.
10941 predeps=$lt_predeps
10942
10943 # Dependencies to place after the objects being linked to create a
10944 # shared library.
10945 postdeps=$lt_postdeps
10946
10947 # The directories searched by this compiler when creating a shared
10948 # library
10949 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10950
10951 # The library search path used internally by the compiler when linking
10952 # a shared library.
10953 compiler_lib_search_path=$lt_compiler_lib_search_path
10954
10955 # Method to check whether dependent libraries are shared objects.
10956 deplibs_check_method=$lt_deplibs_check_method
10957
10958 # Command to use when deplibs_check_method == file_magic.
10959 file_magic_cmd=$lt_file_magic_cmd
10960
10961 # Flag that allows shared libraries with undefined symbols to be built.
10962 allow_undefined_flag=$lt_allow_undefined_flag
10963
10964 # Flag that forces no undefined symbols.
10965 no_undefined_flag=$lt_no_undefined_flag
10966
10967 # Commands used to finish a libtool library installation in a directory.
10968 finish_cmds=$lt_finish_cmds
10969
10970 # Same as above, but a single script fragment to be evaled but not shown.
10971 finish_eval=$lt_finish_eval
10972
10973 # Take the output of nm and produce a listing of raw symbols and C names.
10974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10975
10976 # Transform the output of nm in a proper C declaration
10977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10978
10979 # Transform the output of nm in a C name address pair
10980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10981
10982 # This is the shared library runtime path variable.
10983 runpath_var=$runpath_var
10984
10985 # This is the shared library path variable.
10986 shlibpath_var=$shlibpath_var
10987
10988 # Is shlibpath searched before the hard-coded library search path?
10989 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10990
10991 # How to hardcode a shared library path into an executable.
10992 hardcode_action=$hardcode_action
10993
10994 # Whether we should hardcode library paths into libraries.
10995 hardcode_into_libs=$hardcode_into_libs
10996
10997 # Flag to hardcode \$libdir into a binary during linking.
10998 # This must work even if \$libdir does not exist.
10999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11000
11001 # If ld is used when linking, flag to hardcode \$libdir into
11002 # a binary during linking. This must work even if \$libdir does
11003 # not exist.
11004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11005
11006 # Whether we need a single -rpath flag with a separated argument.
11007 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11008
11009 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11010 # resulting binary.
11011 hardcode_direct=$hardcode_direct
11012
11013 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11014 # resulting binary.
11015 hardcode_minus_L=$hardcode_minus_L
11016
11017 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11018 # the resulting binary.
11019 hardcode_shlibpath_var=$hardcode_shlibpath_var
11020
11021 # Set to yes if building a shared library automatically hardcodes DIR into the library
11022 # and all subsequent libraries and executables linked against it.
11023 hardcode_automatic=$hardcode_automatic
11024
11025 # Variables whose values should be saved in libtool wrapper scripts and
11026 # restored at relink time.
11027 variables_saved_for_relink="$variables_saved_for_relink"
11028
11029 # Whether libtool must link a program against all its dependency libraries.
11030 link_all_deplibs=$link_all_deplibs
11031
11032 # Compile-time system search path for libraries
11033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11034
11035 # Run-time system search path for libraries
11036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11037
11038 # Fix the shell variable \$srcfile for the compiler.
11039 fix_srcfile_path=$lt_fix_srcfile_path
11040
11041 # Set to yes if exported symbols are required.
11042 always_export_symbols=$always_export_symbols
11043
11044 # The commands to list exported symbols.
11045 export_symbols_cmds=$lt_export_symbols_cmds
11046
11047 # The commands to extract the exported symbol list from a shared archive.
11048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11049
11050 # Symbols that should not be listed in the preloaded symbols.
11051 exclude_expsyms=$lt_exclude_expsyms
11052
11053 # Symbols that must always be exported.
11054 include_expsyms=$lt_include_expsyms
11055
11056 # ### END LIBTOOL CONFIG
11057
11058 __EOF__
11059
11060
11061 case $host_os in
11062 aix3*)
11063 cat <<\EOF >> "$cfgfile"
11064
11065 # AIX sometimes has problems with the GCC collect2 program. For some
11066 # reason, if we set the COLLECT_NAMES environment variable, the problems
11067 # vanish in a puff of smoke.
11068 if test "X${COLLECT_NAMES+set}" != Xset; then
11069 COLLECT_NAMES=
11070 export COLLECT_NAMES
11071 fi
11072 EOF
11073 ;;
11074 esac
11075
11076 # We use sed instead of cat because bash on DJGPP gets confused if
11077 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11078 # text mode, it properly converts lines to CR/LF. This bash problem
11079 # is reportedly fixed, but why not run on old versions too?
11080 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11081
11082 mv -f "$cfgfile" "$ofile" || \
11083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11084 chmod +x "$ofile"
11085
11086 else
11087 # If there is no Makefile yet, we rely on a make rule to execute
11088 # `config.status --recheck' to rerun these tests and create the
11089 # libtool script then.
11090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11091 if test -f "$ltmain_in"; then
11092 test -f Makefile && make "$ltmain"
11093 fi
11094 fi
11095
11096
11097 ac_ext=c
11098 ac_cpp='$CPP $CPPFLAGS'
11099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11102
11103 CC="$lt_save_CC"
11104
11105
11106 # Check whether --with-tags was given.
11107 if test "${with_tags+set}" = set; then
11108 withval=$with_tags; tagnames="$withval"
11109 fi
11110
11111
11112 if test -f "$ltmain" && test -n "$tagnames"; then
11113 if test ! -f "${ofile}"; then
11114 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11115 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11116 fi
11117
11118 if test -z "$LTCC"; then
11119 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11120 if test -z "$LTCC"; then
11121 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11122 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11123 else
11124 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11125 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11126 fi
11127 fi
11128 if test -z "$LTCFLAGS"; then
11129 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11130 fi
11131
11132 # Extract list of available tagged configurations in $ofile.
11133 # Note that this assumes the entire list is on one line.
11134 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11135
11136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11137 for tagname in $tagnames; do
11138 IFS="$lt_save_ifs"
11139 # Check whether tagname contains only valid characters
11140 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11141 "") ;;
11142 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11143 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11144 { (exit 1); exit 1; }; }
11145 ;;
11146 esac
11147
11148 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11149 then
11150 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11151 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11152 { (exit 1); exit 1; }; }
11153 fi
11154
11155 # Update the list of available tags.
11156 if test -n "$tagname"; then
11157 echo appending configuration tag \"$tagname\" to $ofile
11158
11159 case $tagname in
11160 CXX)
11161 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11162 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11163 (test "X$CXX" != "Xg++"))) ; then
11164 ac_ext=cpp
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11169
11170
11171
11172
11173 archive_cmds_need_lc_CXX=no
11174 allow_undefined_flag_CXX=
11175 always_export_symbols_CXX=no
11176 archive_expsym_cmds_CXX=
11177 export_dynamic_flag_spec_CXX=
11178 hardcode_direct_CXX=no
11179 hardcode_libdir_flag_spec_CXX=
11180 hardcode_libdir_flag_spec_ld_CXX=
11181 hardcode_libdir_separator_CXX=
11182 hardcode_minus_L_CXX=no
11183 hardcode_shlibpath_var_CXX=unsupported
11184 hardcode_automatic_CXX=no
11185 module_cmds_CXX=
11186 module_expsym_cmds_CXX=
11187 link_all_deplibs_CXX=unknown
11188 old_archive_cmds_CXX=$old_archive_cmds
11189 no_undefined_flag_CXX=
11190 whole_archive_flag_spec_CXX=
11191 enable_shared_with_static_runtimes_CXX=no
11192
11193 # Dependencies to place before and after the object being linked:
11194 predep_objects_CXX=
11195 postdep_objects_CXX=
11196 predeps_CXX=
11197 postdeps_CXX=
11198 compiler_lib_search_path_CXX=
11199 compiler_lib_search_dirs_CXX=
11200
11201 # Source file extension for C++ test sources.
11202 ac_ext=cpp
11203
11204 # Object file extension for compiled C++ test sources.
11205 objext=o
11206 objext_CXX=$objext
11207
11208 # Code to be used in simple compile tests
11209 lt_simple_compile_test_code="int some_variable = 0;"
11210
11211 # Code to be used in simple link tests
11212 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11213
11214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11215
11216 # If no C compiler was specified, use CC.
11217 LTCC=${LTCC-"$CC"}
11218
11219 # If no C compiler flags were specified, use CFLAGS.
11220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11221
11222 # Allow CC to be a program name with arguments.
11223 compiler=$CC
11224
11225
11226 # save warnings/boilerplate of simple test code
11227 ac_outfile=conftest.$ac_objext
11228 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11230 _lt_compiler_boilerplate=`cat conftest.err`
11231 $rm conftest*
11232
11233 ac_outfile=conftest.$ac_objext
11234 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11236 _lt_linker_boilerplate=`cat conftest.err`
11237 $rm -r conftest*
11238
11239
11240 # Allow CC to be a program name with arguments.
11241 lt_save_CC=$CC
11242 lt_save_LD=$LD
11243 lt_save_GCC=$GCC
11244 GCC=$GXX
11245 lt_save_with_gnu_ld=$with_gnu_ld
11246 lt_save_path_LD=$lt_cv_path_LD
11247 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11248 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11249 else
11250 $as_unset lt_cv_prog_gnu_ld
11251 fi
11252 if test -n "${lt_cv_path_LDCXX+set}"; then
11253 lt_cv_path_LD=$lt_cv_path_LDCXX
11254 else
11255 $as_unset lt_cv_path_LD
11256 fi
11257 test -z "${LDCXX+set}" || LD=$LDCXX
11258 CC=${CXX-"c++"}
11259 compiler=$CC
11260 compiler_CXX=$CC
11261 for cc_temp in $compiler""; do
11262 case $cc_temp in
11263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11265 \-*) ;;
11266 *) break;;
11267 esac
11268 done
11269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11270
11271
11272 # We don't want -fno-exception wen compiling C++ code, so set the
11273 # no_builtin_flag separately
11274 if test "$GXX" = yes; then
11275 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11276 else
11277 lt_prog_compiler_no_builtin_flag_CXX=
11278 fi
11279
11280 if test "$GXX" = yes; then
11281 # Set up default GNU C++ configuration
11282
11283
11284 # Check whether --with-gnu-ld was given.
11285 if test "${with_gnu_ld+set}" = set; then
11286 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11287 else
11288 with_gnu_ld=no
11289 fi
11290
11291 ac_prog=ld
11292 if test "$GCC" = yes; then
11293 # Check if gcc -print-prog-name=ld gives a path.
11294 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11295 $as_echo_n "checking for ld used by $CC... " >&6; }
11296 case $host in
11297 *-*-mingw*)
11298 # gcc leaves a trailing carriage return which upsets mingw
11299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11300 *)
11301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11302 esac
11303 case $ac_prog in
11304 # Accept absolute paths.
11305 [\\/]* | ?:[\\/]*)
11306 re_direlt='/[^/][^/]*/\.\./'
11307 # Canonicalize the pathname of ld
11308 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11309 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11310 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11311 done
11312 test -z "$LD" && LD="$ac_prog"
11313 ;;
11314 "")
11315 # If it fails, then pretend we aren't using GCC.
11316 ac_prog=ld
11317 ;;
11318 *)
11319 # If it is relative, then search for the first ld in PATH.
11320 with_gnu_ld=unknown
11321 ;;
11322 esac
11323 elif test "$with_gnu_ld" = yes; then
11324 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11325 $as_echo_n "checking for GNU ld... " >&6; }
11326 else
11327 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11328 $as_echo_n "checking for non-GNU ld... " >&6; }
11329 fi
11330 if test "${lt_cv_path_LD+set}" = set; then
11331 $as_echo_n "(cached) " >&6
11332 else
11333 if test -z "$LD"; then
11334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11335 for ac_dir in $PATH; do
11336 IFS="$lt_save_ifs"
11337 test -z "$ac_dir" && ac_dir=.
11338 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11339 lt_cv_path_LD="$ac_dir/$ac_prog"
11340 # Check to see if the program is GNU ld. I'd rather use --version,
11341 # but apparently some variants of GNU ld only accept -v.
11342 # Break only if it was the GNU/non-GNU ld that we prefer.
11343 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11344 *GNU* | *'with BFD'*)
11345 test "$with_gnu_ld" != no && break
11346 ;;
11347 *)
11348 test "$with_gnu_ld" != yes && break
11349 ;;
11350 esac
11351 fi
11352 done
11353 IFS="$lt_save_ifs"
11354 else
11355 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11356 fi
11357 fi
11358
11359 LD="$lt_cv_path_LD"
11360 if test -n "$LD"; then
11361 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11362 $as_echo "$LD" >&6; }
11363 else
11364 { $as_echo "$as_me:$LINENO: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11368 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11369 { (exit 1); exit 1; }; }
11370 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11371 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11372 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11373 $as_echo_n "(cached) " >&6
11374 else
11375 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11376 case `$LD -v 2>&1 </dev/null` in
11377 *GNU* | *'with BFD'*)
11378 lt_cv_prog_gnu_ld=yes
11379 ;;
11380 *)
11381 lt_cv_prog_gnu_ld=no
11382 ;;
11383 esac
11384 fi
11385 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11386 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11387 with_gnu_ld=$lt_cv_prog_gnu_ld
11388
11389
11390
11391 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11392 # archiving commands below assume that GNU ld is being used.
11393 if test "$with_gnu_ld" = yes; then
11394 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11395 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11396
11397 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11399
11400 # If archive_cmds runs LD, not CC, wlarc should be empty
11401 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11402 # investigate it a little bit more. (MM)
11403 wlarc='${wl}'
11404
11405 # ancient GNU ld didn't support --whole-archive et. al.
11406 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11407 grep 'no-whole-archive' > /dev/null; then
11408 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11409 else
11410 whole_archive_flag_spec_CXX=
11411 fi
11412 else
11413 with_gnu_ld=no
11414 wlarc=
11415
11416 # A generic and very simple default shared library creation
11417 # command for GNU C++ for the case where it uses the native
11418 # linker, instead of GNU ld. If possible, this setting should
11419 # overridden to take advantage of the native linker features on
11420 # the platform it is being used on.
11421 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11422 fi
11423
11424 # Commands to make compiler produce verbose output that lists
11425 # what "hidden" libraries, object files and flags are used when
11426 # linking a shared library.
11427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11428
11429 else
11430 GXX=no
11431 with_gnu_ld=no
11432 wlarc=
11433 fi
11434
11435 # PORTME: fill in a description of your system's C++ link characteristics
11436 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11437 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11438 ld_shlibs_CXX=yes
11439 case $host_os in
11440 aix3*)
11441 # FIXME: insert proper C++ library support
11442 ld_shlibs_CXX=no
11443 ;;
11444 aix[4-9]*)
11445 if test "$host_cpu" = ia64; then
11446 # On IA64, the linker does run time linking by default, so we don't
11447 # have to do anything special.
11448 aix_use_runtimelinking=no
11449 exp_sym_flag='-Bexport'
11450 no_entry_flag=""
11451 else
11452 aix_use_runtimelinking=no
11453
11454 # Test if we are trying to use run time linking or normal
11455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11456 # need to do runtime linking.
11457 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11458 for ld_flag in $LDFLAGS; do
11459 case $ld_flag in
11460 *-brtl*)
11461 aix_use_runtimelinking=yes
11462 break
11463 ;;
11464 esac
11465 done
11466 ;;
11467 esac
11468
11469 exp_sym_flag='-bexport'
11470 no_entry_flag='-bnoentry'
11471 fi
11472
11473 # When large executables or shared objects are built, AIX ld can
11474 # have problems creating the table of contents. If linking a library
11475 # or program results in "error TOC overflow" add -mminimal-toc to
11476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11478
11479 archive_cmds_CXX=''
11480 hardcode_direct_CXX=yes
11481 hardcode_libdir_separator_CXX=':'
11482 link_all_deplibs_CXX=yes
11483
11484 if test "$GXX" = yes; then
11485 case $host_os in aix4.[012]|aix4.[012].*)
11486 # We only want to do this on AIX 4.2 and lower, the check
11487 # below for broken collect2 doesn't work under 4.3+
11488 collect2name=`${CC} -print-prog-name=collect2`
11489 if test -f "$collect2name" && \
11490 strings "$collect2name" | grep resolve_lib_name >/dev/null
11491 then
11492 # We have reworked collect2
11493 :
11494 else
11495 # We have old collect2
11496 hardcode_direct_CXX=unsupported
11497 # It fails to find uninstalled libraries when the uninstalled
11498 # path is not listed in the libpath. Setting hardcode_minus_L
11499 # to unsupported forces relinking
11500 hardcode_minus_L_CXX=yes
11501 hardcode_libdir_flag_spec_CXX='-L$libdir'
11502 hardcode_libdir_separator_CXX=
11503 fi
11504 ;;
11505 esac
11506 shared_flag='-shared'
11507 if test "$aix_use_runtimelinking" = yes; then
11508 shared_flag="$shared_flag "'${wl}-G'
11509 fi
11510 else
11511 # not using gcc
11512 if test "$host_cpu" = ia64; then
11513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11514 # chokes on -Wl,-G. The following line is correct:
11515 shared_flag='-G'
11516 else
11517 if test "$aix_use_runtimelinking" = yes; then
11518 shared_flag='${wl}-G'
11519 else
11520 shared_flag='${wl}-bM:SRE'
11521 fi
11522 fi
11523 fi
11524
11525 # It seems that -bexpall does not export symbols beginning with
11526 # underscore (_), so it is better to generate a list of symbols to export.
11527 always_export_symbols_CXX=yes
11528 if test "$aix_use_runtimelinking" = yes; then
11529 # Warning - without using the other runtime loading flags (-brtl),
11530 # -berok will link without error, but may produce a broken library.
11531 allow_undefined_flag_CXX='-berok'
11532 # Determine the default libpath from the value encoded in an empty executable.
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539
11540 int
11541 main ()
11542 {
11543
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_cxx_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11568 }; then
11569
11570 lt_aix_libpath_sed='
11571 /Import File Strings/,/^$/ {
11572 /^0/ {
11573 s/^0 *\(.*\)$/\1/
11574 p
11575 }
11576 }'
11577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11578 # Check for a 64-bit object if we didn't find anything.
11579 if test -z "$aix_libpath"; then
11580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11581 fi
11582 else
11583 $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586
11587 fi
11588
11589 rm -rf conftest.dSYM
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11593
11594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595
11596 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11597 else
11598 if test "$host_cpu" = ia64; then
11599 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11600 allow_undefined_flag_CXX="-z nodefs"
11601 archive_expsym_cmds_CXX="\$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"
11602 else
11603 # Determine the default libpath from the value encoded in an empty executable.
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610
11611 int
11612 main ()
11613 {
11614
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (ac_try="$ac_link"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624 esac
11625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626 $as_echo "$ac_try_echo") >&5
11627 (eval "$ac_link") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_cxx_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest$ac_exeext && {
11637 test "$cross_compiling" = yes ||
11638 $as_test_x conftest$ac_exeext
11639 }; then
11640
11641 lt_aix_libpath_sed='
11642 /Import File Strings/,/^$/ {
11643 /^0/ {
11644 s/^0 *\(.*\)$/\1/
11645 p
11646 }
11647 }'
11648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11649 # Check for a 64-bit object if we didn't find anything.
11650 if test -z "$aix_libpath"; then
11651 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11652 fi
11653 else
11654 $as_echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657
11658 fi
11659
11660 rm -rf conftest.dSYM
11661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11662 conftest$ac_exeext conftest.$ac_ext
11663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11664
11665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11666 # Warning - without using the other run time loading flags,
11667 # -berok will link without error, but may produce a broken library.
11668 no_undefined_flag_CXX=' ${wl}-bernotok'
11669 allow_undefined_flag_CXX=' ${wl}-berok'
11670 # Exported symbols can be pulled into shared objects from archives
11671 whole_archive_flag_spec_CXX='$convenience'
11672 archive_cmds_need_lc_CXX=yes
11673 # This is similar to how AIX traditionally builds its shared libraries.
11674 archive_expsym_cmds_CXX="\$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'
11675 fi
11676 fi
11677 ;;
11678
11679 beos*)
11680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11681 allow_undefined_flag_CXX=unsupported
11682 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11683 # support --undefined. This deserves some investigation. FIXME
11684 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11685 else
11686 ld_shlibs_CXX=no
11687 fi
11688 ;;
11689
11690 chorus*)
11691 case $cc_basename in
11692 *)
11693 # FIXME: insert proper C++ library support
11694 ld_shlibs_CXX=no
11695 ;;
11696 esac
11697 ;;
11698
11699 cygwin* | mingw* | pw32*)
11700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11701 # as there is no search path for DLLs.
11702 hardcode_libdir_flag_spec_CXX='-L$libdir'
11703 allow_undefined_flag_CXX=unsupported
11704 always_export_symbols_CXX=no
11705 enable_shared_with_static_runtimes_CXX=yes
11706
11707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11709 # If the export-symbols file already is a .def file (1st line
11710 # is EXPORTS), use it as is; otherwise, prepend...
11711 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11712 cp $export_symbols $output_objdir/$soname.def;
11713 else
11714 echo EXPORTS > $output_objdir/$soname.def;
11715 cat $export_symbols >> $output_objdir/$soname.def;
11716 fi~
11717 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11718 else
11719 ld_shlibs_CXX=no
11720 fi
11721 ;;
11722 darwin* | rhapsody*)
11723 archive_cmds_need_lc_CXX=no
11724 hardcode_direct_CXX=no
11725 hardcode_automatic_CXX=yes
11726 hardcode_shlibpath_var_CXX=unsupported
11727 whole_archive_flag_spec_CXX=''
11728 link_all_deplibs_CXX=yes
11729 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11730 if test "$GXX" = yes ; then
11731 output_verbose_link_cmd='echo'
11732 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11733 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11734 archive_expsym_cmds_CXX="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}"
11735 module_expsym_cmds_CXX="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}"
11736 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11737 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11738 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11739 fi
11740 else
11741 case $cc_basename in
11742 xlc*)
11743 output_verbose_link_cmd='echo'
11744 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11745 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11747 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11748 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11749 ;;
11750 *)
11751 ld_shlibs_CXX=no
11752 ;;
11753 esac
11754 fi
11755 ;;
11756
11757 dgux*)
11758 case $cc_basename in
11759 ec++*)
11760 # FIXME: insert proper C++ library support
11761 ld_shlibs_CXX=no
11762 ;;
11763 ghcx*)
11764 # Green Hills C++ Compiler
11765 # FIXME: insert proper C++ library support
11766 ld_shlibs_CXX=no
11767 ;;
11768 *)
11769 # FIXME: insert proper C++ library support
11770 ld_shlibs_CXX=no
11771 ;;
11772 esac
11773 ;;
11774 freebsd[12]*)
11775 # C++ shared libraries reported to be fairly broken before switch to ELF
11776 ld_shlibs_CXX=no
11777 ;;
11778 freebsd-elf*)
11779 archive_cmds_need_lc_CXX=no
11780 ;;
11781 freebsd* | dragonfly*)
11782 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11783 # conventions
11784 ld_shlibs_CXX=yes
11785 ;;
11786 gnu*)
11787 ;;
11788 hpux9*)
11789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11790 hardcode_libdir_separator_CXX=:
11791 export_dynamic_flag_spec_CXX='${wl}-E'
11792 hardcode_direct_CXX=yes
11793 hardcode_minus_L_CXX=yes # Not in the search PATH,
11794 # but as the default
11795 # location of the library.
11796
11797 case $cc_basename in
11798 CC*)
11799 # FIXME: insert proper C++ library support
11800 ld_shlibs_CXX=no
11801 ;;
11802 aCC*)
11803 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11804 # Commands to make compiler produce verbose output that lists
11805 # what "hidden" libraries, object files and flags are used when
11806 # linking a shared library.
11807 #
11808 # There doesn't appear to be a way to prevent this compiler from
11809 # explicitly linking system object files so we need to strip them
11810 # from the output so that they don't get included in the library
11811 # dependencies.
11812 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11813 ;;
11814 *)
11815 if test "$GXX" = yes; then
11816 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11817 else
11818 # FIXME: insert proper C++ library support
11819 ld_shlibs_CXX=no
11820 fi
11821 ;;
11822 esac
11823 ;;
11824 hpux10*|hpux11*)
11825 if test $with_gnu_ld = no; then
11826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11827 hardcode_libdir_separator_CXX=:
11828
11829 case $host_cpu in
11830 hppa*64*|ia64*) ;;
11831 *)
11832 export_dynamic_flag_spec_CXX='${wl}-E'
11833 ;;
11834 esac
11835 fi
11836 case $host_cpu in
11837 hppa*64*|ia64*)
11838 hardcode_direct_CXX=no
11839 hardcode_shlibpath_var_CXX=no
11840 ;;
11841 *)
11842 hardcode_direct_CXX=yes
11843 hardcode_minus_L_CXX=yes # Not in the search PATH,
11844 # but as the default
11845 # location of the library.
11846 ;;
11847 esac
11848
11849 case $cc_basename in
11850 CC*)
11851 # FIXME: insert proper C++ library support
11852 ld_shlibs_CXX=no
11853 ;;
11854 aCC*)
11855 case $host_cpu in
11856 hppa*64*)
11857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11858 ;;
11859 ia64*)
11860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861 ;;
11862 *)
11863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11864 ;;
11865 esac
11866 # Commands to make compiler produce verbose output that lists
11867 # what "hidden" libraries, object files and flags are used when
11868 # linking a shared library.
11869 #
11870 # There doesn't appear to be a way to prevent this compiler from
11871 # explicitly linking system object files so we need to strip them
11872 # from the output so that they don't get included in the library
11873 # dependencies.
11874 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11875 ;;
11876 *)
11877 if test "$GXX" = yes; then
11878 if test $with_gnu_ld = no; then
11879 case $host_cpu in
11880 hppa*64*)
11881 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882 ;;
11883 ia64*)
11884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885 ;;
11886 *)
11887 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888 ;;
11889 esac
11890 fi
11891 else
11892 # FIXME: insert proper C++ library support
11893 ld_shlibs_CXX=no
11894 fi
11895 ;;
11896 esac
11897 ;;
11898 interix[3-9]*)
11899 hardcode_direct_CXX=no
11900 hardcode_shlibpath_var_CXX=no
11901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11902 export_dynamic_flag_spec_CXX='${wl}-E'
11903 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11904 # Instead, shared libraries are loaded at an image base (0x10000000 by
11905 # default) and relocated if they conflict, which is a slow very memory
11906 # consuming and fragmenting process. To avoid this, we pick a random,
11907 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11908 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11909 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11910 archive_expsym_cmds_CXX='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'
11911 ;;
11912 irix5* | irix6*)
11913 case $cc_basename in
11914 CC*)
11915 # SGI C++
11916 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11917
11918 # Archives containing C++ object files must be created using
11919 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11920 # necessary to make sure instantiated templates are included
11921 # in the archive.
11922 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11923 ;;
11924 *)
11925 if test "$GXX" = yes; then
11926 if test "$with_gnu_ld" = no; then
11927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11928 else
11929 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11930 fi
11931 fi
11932 link_all_deplibs_CXX=yes
11933 ;;
11934 esac
11935 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11936 hardcode_libdir_separator_CXX=:
11937 ;;
11938 linux* | k*bsd*-gnu)
11939 case $cc_basename in
11940 KCC*)
11941 # Kuck and Associates, Inc. (KAI) C++ Compiler
11942
11943 # KCC will only create a shared library if the output file
11944 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11945 # to its proper name (with version) after linking.
11946 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11947 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11948 # Commands to make compiler produce verbose output that lists
11949 # what "hidden" libraries, object files and flags are used when
11950 # linking a shared library.
11951 #
11952 # There doesn't appear to be a way to prevent this compiler from
11953 # explicitly linking system object files so we need to strip them
11954 # from the output so that they don't get included in the library
11955 # dependencies.
11956 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11957
11958 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11959 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960
11961 # Archives containing C++ object files must be created using
11962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11964 ;;
11965 icpc*)
11966 # Intel C++
11967 with_gnu_ld=yes
11968 # version 8.0 and above of icpc choke on multiply defined symbols
11969 # if we add $predep_objects and $postdep_objects, however 7.1 and
11970 # earlier do not add the objects themselves.
11971 case `$CC -V 2>&1` in
11972 *"Version 7."*)
11973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11974 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11975 ;;
11976 *) # Version 8.0 or newer
11977 tmp_idyn=
11978 case $host_cpu in
11979 ia64*) tmp_idyn=' -i_dynamic';;
11980 esac
11981 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11982 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11983 ;;
11984 esac
11985 archive_cmds_need_lc_CXX=no
11986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11988 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11989 ;;
11990 pgCC* | pgcpp*)
11991 # Portland Group C++ compiler
11992 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11993 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11994
11995 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11996 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11997 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11998 ;;
11999 cxx*)
12000 # Compaq C++
12001 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12002 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12003
12004 runpath_var=LD_RUN_PATH
12005 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12006 hardcode_libdir_separator_CXX=:
12007
12008 # Commands to make compiler produce verbose output that lists
12009 # what "hidden" libraries, object files and flags are used when
12010 # linking a shared library.
12011 #
12012 # There doesn't appear to be a way to prevent this compiler from
12013 # explicitly linking system object files so we need to strip them
12014 # from the output so that they don't get included in the library
12015 # dependencies.
12016 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12017 ;;
12018 *)
12019 case `$CC -V 2>&1 | sed 5q` in
12020 *Sun\ C*)
12021 # Sun C++ 5.9
12022 no_undefined_flag_CXX=' -zdefs'
12023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12024 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12025 hardcode_libdir_flag_spec_CXX='-R$libdir'
12026 whole_archive_flag_spec_CXX='${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'
12027
12028 # Not sure whether something based on
12029 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12030 # would be better.
12031 output_verbose_link_cmd='echo'
12032
12033 # Archives containing C++ object files must be created using
12034 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12035 # necessary to make sure instantiated templates are included
12036 # in the archive.
12037 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12038 ;;
12039 esac
12040 ;;
12041 esac
12042 ;;
12043 lynxos*)
12044 # FIXME: insert proper C++ library support
12045 ld_shlibs_CXX=no
12046 ;;
12047 m88k*)
12048 # FIXME: insert proper C++ library support
12049 ld_shlibs_CXX=no
12050 ;;
12051 mvs*)
12052 case $cc_basename in
12053 cxx*)
12054 # FIXME: insert proper C++ library support
12055 ld_shlibs_CXX=no
12056 ;;
12057 *)
12058 # FIXME: insert proper C++ library support
12059 ld_shlibs_CXX=no
12060 ;;
12061 esac
12062 ;;
12063 netbsd*)
12064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12065 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12066 wlarc=
12067 hardcode_libdir_flag_spec_CXX='-R$libdir'
12068 hardcode_direct_CXX=yes
12069 hardcode_shlibpath_var_CXX=no
12070 fi
12071 # Workaround some broken pre-1.5 toolchains
12072 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12073 ;;
12074 openbsd2*)
12075 # C++ shared libraries are fairly broken
12076 ld_shlibs_CXX=no
12077 ;;
12078 openbsd*)
12079 if test -f /usr/libexec/ld.so; then
12080 hardcode_direct_CXX=yes
12081 hardcode_shlibpath_var_CXX=no
12082 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12085 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12086 export_dynamic_flag_spec_CXX='${wl}-E'
12087 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12088 fi
12089 output_verbose_link_cmd='echo'
12090 else
12091 ld_shlibs_CXX=no
12092 fi
12093 ;;
12094 osf3*)
12095 case $cc_basename in
12096 KCC*)
12097 # Kuck and Associates, Inc. (KAI) C++ Compiler
12098
12099 # KCC will only create a shared library if the output file
12100 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12101 # to its proper name (with version) after linking.
12102 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12103
12104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12105 hardcode_libdir_separator_CXX=:
12106
12107 # Archives containing C++ object files must be created using
12108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12110
12111 ;;
12112 RCC*)
12113 # Rational C++ 2.4.1
12114 # FIXME: insert proper C++ library support
12115 ld_shlibs_CXX=no
12116 ;;
12117 cxx*)
12118 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12119 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12120
12121 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12122 hardcode_libdir_separator_CXX=:
12123
12124 # Commands to make compiler produce verbose output that lists
12125 # what "hidden" libraries, object files and flags are used when
12126 # linking a shared library.
12127 #
12128 # There doesn't appear to be a way to prevent this compiler from
12129 # explicitly linking system object files so we need to strip them
12130 # from the output so that they don't get included in the library
12131 # dependencies.
12132 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12133 ;;
12134 *)
12135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12137 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12138
12139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12140 hardcode_libdir_separator_CXX=:
12141
12142 # Commands to make compiler produce verbose output that lists
12143 # what "hidden" libraries, object files and flags are used when
12144 # linking a shared library.
12145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12146
12147 else
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12150 fi
12151 ;;
12152 esac
12153 ;;
12154 osf4* | osf5*)
12155 case $cc_basename in
12156 KCC*)
12157 # Kuck and Associates, Inc. (KAI) C++ Compiler
12158
12159 # KCC will only create a shared library if the output file
12160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12161 # to its proper name (with version) after linking.
12162 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12163
12164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12165 hardcode_libdir_separator_CXX=:
12166
12167 # Archives containing C++ object files must be created using
12168 # the KAI C++ compiler.
12169 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12170 ;;
12171 RCC*)
12172 # Rational C++ 2.4.1
12173 # FIXME: insert proper C++ library support
12174 ld_shlibs_CXX=no
12175 ;;
12176 cxx*)
12177 allow_undefined_flag_CXX=' -expect_unresolved \*'
12178 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12179 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12180 echo "-hidden">> $lib.exp~
12181 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12182 $rm $lib.exp'
12183
12184 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12185 hardcode_libdir_separator_CXX=:
12186
12187 # Commands to make compiler produce verbose output that lists
12188 # what "hidden" libraries, object files and flags are used when
12189 # linking a shared library.
12190 #
12191 # There doesn't appear to be a way to prevent this compiler from
12192 # explicitly linking system object files so we need to strip them
12193 # from the output so that they don't get included in the library
12194 # dependencies.
12195 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12196 ;;
12197 *)
12198 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12200 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12201
12202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12203 hardcode_libdir_separator_CXX=:
12204
12205 # Commands to make compiler produce verbose output that lists
12206 # what "hidden" libraries, object files and flags are used when
12207 # linking a shared library.
12208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12209
12210 else
12211 # FIXME: insert proper C++ library support
12212 ld_shlibs_CXX=no
12213 fi
12214 ;;
12215 esac
12216 ;;
12217 psos*)
12218 # FIXME: insert proper C++ library support
12219 ld_shlibs_CXX=no
12220 ;;
12221 sunos4*)
12222 case $cc_basename in
12223 CC*)
12224 # Sun C++ 4.x
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12227 ;;
12228 lcc*)
12229 # Lucid
12230 # FIXME: insert proper C++ library support
12231 ld_shlibs_CXX=no
12232 ;;
12233 *)
12234 # FIXME: insert proper C++ library support
12235 ld_shlibs_CXX=no
12236 ;;
12237 esac
12238 ;;
12239 solaris*)
12240 case $cc_basename in
12241 CC*)
12242 # Sun C++ 4.2, 5.x and Centerline C++
12243 archive_cmds_need_lc_CXX=yes
12244 no_undefined_flag_CXX=' -zdefs'
12245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12246 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12247 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12248
12249 hardcode_libdir_flag_spec_CXX='-R$libdir'
12250 hardcode_shlibpath_var_CXX=no
12251 case $host_os in
12252 solaris2.[0-5] | solaris2.[0-5].*) ;;
12253 *)
12254 # The compiler driver will combine and reorder linker options,
12255 # but understands `-z linker_flag'.
12256 # Supported since Solaris 2.6 (maybe 2.5.1?)
12257 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12258 ;;
12259 esac
12260 link_all_deplibs_CXX=yes
12261
12262 output_verbose_link_cmd='echo'
12263
12264 # Archives containing C++ object files must be created using
12265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12266 # necessary to make sure instantiated templates are included
12267 # in the archive.
12268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12269 ;;
12270 gcx*)
12271 # Green Hills C++ Compiler
12272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12273
12274 # The C++ compiler must be used to create the archive.
12275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12276 ;;
12277 *)
12278 # GNU C++ compiler with Solaris linker
12279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12281 if $CC --version | grep -v '^2\.7' > /dev/null; then
12282 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12283 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12284 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12285
12286 # Commands to make compiler produce verbose output that lists
12287 # what "hidden" libraries, object files and flags are used when
12288 # linking a shared library.
12289 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12290 else
12291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12292 # platform.
12293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12294 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12296
12297 # Commands to make compiler produce verbose output that lists
12298 # what "hidden" libraries, object files and flags are used when
12299 # linking a shared library.
12300 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12301 fi
12302
12303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12304 case $host_os in
12305 solaris2.[0-5] | solaris2.[0-5].*) ;;
12306 *)
12307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12308 ;;
12309 esac
12310 fi
12311 ;;
12312 esac
12313 ;;
12314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12315 no_undefined_flag_CXX='${wl}-z,text'
12316 archive_cmds_need_lc_CXX=no
12317 hardcode_shlibpath_var_CXX=no
12318 runpath_var='LD_RUN_PATH'
12319
12320 case $cc_basename in
12321 CC*)
12322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 ;;
12325 *)
12326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328 ;;
12329 esac
12330 ;;
12331 sysv5* | sco3.2v5* | sco5v6*)
12332 # Note: We can NOT use -z defs as we might desire, because we do not
12333 # link with -lc, and that would cause any symbols used from libc to
12334 # always be unresolved, which means just about no library would
12335 # ever link correctly. If we're not using GNU ld we use -z text
12336 # though, which does catch some bad symbols but isn't as heavy-handed
12337 # as -z defs.
12338 # For security reasons, it is highly recommended that you always
12339 # use absolute paths for naming shared libraries, and exclude the
12340 # DT_RUNPATH tag from executables and libraries. But doing so
12341 # requires that you compile everything twice, which is a pain.
12342 # So that behaviour is only enabled if SCOABSPATH is set to a
12343 # non-empty value in the environment. Most likely only useful for
12344 # creating official distributions of packages.
12345 # This is a hack until libtool officially supports absolute path
12346 # names for shared libraries.
12347 no_undefined_flag_CXX='${wl}-z,text'
12348 allow_undefined_flag_CXX='${wl}-z,nodefs'
12349 archive_cmds_need_lc_CXX=no
12350 hardcode_shlibpath_var_CXX=no
12351 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12352 hardcode_libdir_separator_CXX=':'
12353 link_all_deplibs_CXX=yes
12354 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12355 runpath_var='LD_RUN_PATH'
12356
12357 case $cc_basename in
12358 CC*)
12359 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12360 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 ;;
12362 *)
12363 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12365 ;;
12366 esac
12367 ;;
12368 tandem*)
12369 case $cc_basename in
12370 NCC*)
12371 # NonStop-UX NCC 3.20
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12374 ;;
12375 *)
12376 # FIXME: insert proper C++ library support
12377 ld_shlibs_CXX=no
12378 ;;
12379 esac
12380 ;;
12381 vxworks*)
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385 *)
12386 # FIXME: insert proper C++ library support
12387 ld_shlibs_CXX=no
12388 ;;
12389 esac
12390 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12391 $as_echo "$ld_shlibs_CXX" >&6; }
12392 test "$ld_shlibs_CXX" = no && can_build_shared=no
12393
12394 GCC_CXX="$GXX"
12395 LD_CXX="$LD"
12396
12397 cat > conftest.$ac_ext <<EOF
12398 class Foo
12399 {
12400 public:
12401 Foo (void) { a = 0; }
12402 private:
12403 int a;
12404 };
12405 EOF
12406
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; then
12412 # Parse the compiler output and extract the necessary
12413 # objects, libraries and library flags.
12414
12415 # Sentinel used to keep track of whether or not we are before
12416 # the conftest object file.
12417 pre_test_object_deps_done=no
12418
12419 # The `*' in the case matches for architectures that use `case' in
12420 # $output_verbose_cmd can trigger glob expansion during the loop
12421 # eval without this substitution.
12422 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12423
12424 for p in `eval $output_verbose_link_cmd`; do
12425 case $p in
12426
12427 -L* | -R* | -l*)
12428 # Some compilers place space between "-{L,R}" and the path.
12429 # Remove the space.
12430 if test $p = "-L" \
12431 || test $p = "-R"; then
12432 prev=$p
12433 continue
12434 else
12435 prev=
12436 fi
12437
12438 if test "$pre_test_object_deps_done" = no; then
12439 case $p in
12440 -L* | -R*)
12441 # Internal compiler library paths should come after those
12442 # provided the user. The postdeps already come after the
12443 # user supplied libs so there is no need to process them.
12444 if test -z "$compiler_lib_search_path_CXX"; then
12445 compiler_lib_search_path_CXX="${prev}${p}"
12446 else
12447 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12448 fi
12449 ;;
12450 # The "-l" case would never come before the object being
12451 # linked, so don't bother handling this case.
12452 esac
12453 else
12454 if test -z "$postdeps_CXX"; then
12455 postdeps_CXX="${prev}${p}"
12456 else
12457 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12458 fi
12459 fi
12460 ;;
12461
12462 *.$objext)
12463 # This assumes that the test object file only shows up
12464 # once in the compiler output.
12465 if test "$p" = "conftest.$objext"; then
12466 pre_test_object_deps_done=yes
12467 continue
12468 fi
12469
12470 if test "$pre_test_object_deps_done" = no; then
12471 if test -z "$predep_objects_CXX"; then
12472 predep_objects_CXX="$p"
12473 else
12474 predep_objects_CXX="$predep_objects_CXX $p"
12475 fi
12476 else
12477 if test -z "$postdep_objects_CXX"; then
12478 postdep_objects_CXX="$p"
12479 else
12480 postdep_objects_CXX="$postdep_objects_CXX $p"
12481 fi
12482 fi
12483 ;;
12484
12485 *) ;; # Ignore the rest.
12486
12487 esac
12488 done
12489
12490 # Clean up.
12491 rm -f a.out a.exe
12492 else
12493 echo "libtool.m4: error: problem compiling CXX test program"
12494 fi
12495
12496 $rm -f confest.$objext
12497
12498 compiler_lib_search_dirs_CXX=
12499 if test -n "$compiler_lib_search_path_CXX"; then
12500 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12501 fi
12502
12503 # PORTME: override above test on systems where it is broken
12504 case $host_os in
12505 interix[3-9]*)
12506 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12507 # hack all around it, let's just trust "g++" to DTRT.
12508 predep_objects_CXX=
12509 postdep_objects_CXX=
12510 postdeps_CXX=
12511 ;;
12512
12513 linux*)
12514 case `$CC -V 2>&1 | sed 5q` in
12515 *Sun\ C*)
12516 # Sun C++ 5.9
12517 #
12518 # The more standards-conforming stlport4 library is
12519 # incompatible with the Cstd library. Avoid specifying
12520 # it if it's in CXXFLAGS. Ignore libCrun as
12521 # -library=stlport4 depends on it.
12522 case " $CXX $CXXFLAGS " in
12523 *" -library=stlport4 "*)
12524 solaris_use_stlport4=yes
12525 ;;
12526 esac
12527 if test "$solaris_use_stlport4" != yes; then
12528 postdeps_CXX='-library=Cstd -library=Crun'
12529 fi
12530 ;;
12531 esac
12532 ;;
12533
12534 solaris*)
12535 case $cc_basename in
12536 CC*)
12537 # The more standards-conforming stlport4 library is
12538 # incompatible with the Cstd library. Avoid specifying
12539 # it if it's in CXXFLAGS. Ignore libCrun as
12540 # -library=stlport4 depends on it.
12541 case " $CXX $CXXFLAGS " in
12542 *" -library=stlport4 "*)
12543 solaris_use_stlport4=yes
12544 ;;
12545 esac
12546
12547 # Adding this requires a known-good setup of shared libraries for
12548 # Sun compiler versions before 5.6, else PIC objects from an old
12549 # archive will be linked into the output, leading to subtle bugs.
12550 if test "$solaris_use_stlport4" != yes; then
12551 postdeps_CXX='-library=Cstd -library=Crun'
12552 fi
12553 ;;
12554 esac
12555 ;;
12556 esac
12557
12558 case " $postdeps_CXX " in
12559 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12560 esac
12561
12562 lt_prog_compiler_wl_CXX=
12563 lt_prog_compiler_pic_CXX=
12564 lt_prog_compiler_static_CXX=
12565
12566 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12568
12569 # C++ specific cases for pic, static, wl, etc.
12570 if test "$GXX" = yes; then
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 lt_prog_compiler_static_CXX='-static'
12573
12574 case $host_os in
12575 aix*)
12576 # All AIX code is PIC.
12577 if test "$host_cpu" = ia64; then
12578 # AIX 5 now supports IA64 processor
12579 lt_prog_compiler_static_CXX='-Bstatic'
12580 fi
12581 ;;
12582 amigaos*)
12583 # FIXME: we need at least 68020 code to build shared libraries, but
12584 # adding the `-m68020' flag to GCC prevents building anything better,
12585 # like `-m68040'.
12586 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12587 ;;
12588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12589 # PIC is the default for these OSes.
12590 ;;
12591 mingw* | cygwin* | os2* | pw32*)
12592 # This hack is so that the source file can tell whether it is being
12593 # built for inclusion in a dll (and should export symbols for example).
12594 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12595 # (--disable-auto-import) libraries
12596 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12597 ;;
12598 darwin* | rhapsody*)
12599 # PIC is the default on this platform
12600 # Common symbols not allowed in MH_DYLIB files
12601 lt_prog_compiler_pic_CXX='-fno-common'
12602 ;;
12603 *djgpp*)
12604 # DJGPP does not support shared libraries at all
12605 lt_prog_compiler_pic_CXX=
12606 ;;
12607 interix[3-9]*)
12608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12609 # Instead, we relocate shared libraries at runtime.
12610 ;;
12611 sysv4*MP*)
12612 if test -d /usr/nec; then
12613 lt_prog_compiler_pic_CXX=-Kconform_pic
12614 fi
12615 ;;
12616 hpux*)
12617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12618 # not for PA HP-UX.
12619 case $host_cpu in
12620 hppa*64*|ia64*)
12621 ;;
12622 *)
12623 lt_prog_compiler_pic_CXX='-fPIC'
12624 ;;
12625 esac
12626 ;;
12627 *)
12628 lt_prog_compiler_pic_CXX='-fPIC'
12629 ;;
12630 esac
12631 else
12632 case $host_os in
12633 aix[4-9]*)
12634 # All AIX code is PIC.
12635 if test "$host_cpu" = ia64; then
12636 # AIX 5 now supports IA64 processor
12637 lt_prog_compiler_static_CXX='-Bstatic'
12638 else
12639 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12640 fi
12641 ;;
12642 chorus*)
12643 case $cc_basename in
12644 cxch68*)
12645 # Green Hills C++ Compiler
12646 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12647 ;;
12648 esac
12649 ;;
12650 darwin*)
12651 # PIC is the default on this platform
12652 # Common symbols not allowed in MH_DYLIB files
12653 case $cc_basename in
12654 xlc*)
12655 lt_prog_compiler_pic_CXX='-qnocommon'
12656 lt_prog_compiler_wl_CXX='-Wl,'
12657 ;;
12658 esac
12659 ;;
12660 dgux*)
12661 case $cc_basename in
12662 ec++*)
12663 lt_prog_compiler_pic_CXX='-KPIC'
12664 ;;
12665 ghcx*)
12666 # Green Hills C++ Compiler
12667 lt_prog_compiler_pic_CXX='-pic'
12668 ;;
12669 *)
12670 ;;
12671 esac
12672 ;;
12673 freebsd* | dragonfly*)
12674 # FreeBSD uses GNU C++
12675 ;;
12676 hpux9* | hpux10* | hpux11*)
12677 case $cc_basename in
12678 CC*)
12679 lt_prog_compiler_wl_CXX='-Wl,'
12680 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12681 if test "$host_cpu" != ia64; then
12682 lt_prog_compiler_pic_CXX='+Z'
12683 fi
12684 ;;
12685 aCC*)
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12688 case $host_cpu in
12689 hppa*64*|ia64*)
12690 # +Z the default
12691 ;;
12692 *)
12693 lt_prog_compiler_pic_CXX='+Z'
12694 ;;
12695 esac
12696 ;;
12697 *)
12698 ;;
12699 esac
12700 ;;
12701 interix*)
12702 # This is c89, which is MS Visual C++ (no shared libs)
12703 # Anyone wants to do a port?
12704 ;;
12705 irix5* | irix6* | nonstopux*)
12706 case $cc_basename in
12707 CC*)
12708 lt_prog_compiler_wl_CXX='-Wl,'
12709 lt_prog_compiler_static_CXX='-non_shared'
12710 # CC pic flag -KPIC is the default.
12711 ;;
12712 *)
12713 ;;
12714 esac
12715 ;;
12716 linux* | k*bsd*-gnu)
12717 case $cc_basename in
12718 KCC*)
12719 # KAI C++ Compiler
12720 lt_prog_compiler_wl_CXX='--backend -Wl,'
12721 lt_prog_compiler_pic_CXX='-fPIC'
12722 ;;
12723 icpc* | ecpc*)
12724 # Intel C++
12725 lt_prog_compiler_wl_CXX='-Wl,'
12726 lt_prog_compiler_pic_CXX='-KPIC'
12727 lt_prog_compiler_static_CXX='-static'
12728 ;;
12729 pgCC* | pgcpp*)
12730 # Portland Group C++ compiler.
12731 lt_prog_compiler_wl_CXX='-Wl,'
12732 lt_prog_compiler_pic_CXX='-fpic'
12733 lt_prog_compiler_static_CXX='-Bstatic'
12734 ;;
12735 cxx*)
12736 # Compaq C++
12737 # Make sure the PIC flag is empty. It appears that all Alpha
12738 # Linux and Compaq Tru64 Unix objects are PIC.
12739 lt_prog_compiler_pic_CXX=
12740 lt_prog_compiler_static_CXX='-non_shared'
12741 ;;
12742 *)
12743 case `$CC -V 2>&1 | sed 5q` in
12744 *Sun\ C*)
12745 # Sun C++ 5.9
12746 lt_prog_compiler_pic_CXX='-KPIC'
12747 lt_prog_compiler_static_CXX='-Bstatic'
12748 lt_prog_compiler_wl_CXX='-Qoption ld '
12749 ;;
12750 esac
12751 ;;
12752 esac
12753 ;;
12754 lynxos*)
12755 ;;
12756 m88k*)
12757 ;;
12758 mvs*)
12759 case $cc_basename in
12760 cxx*)
12761 lt_prog_compiler_pic_CXX='-W c,exportall'
12762 ;;
12763 *)
12764 ;;
12765 esac
12766 ;;
12767 netbsd*)
12768 ;;
12769 osf3* | osf4* | osf5*)
12770 case $cc_basename in
12771 KCC*)
12772 lt_prog_compiler_wl_CXX='--backend -Wl,'
12773 ;;
12774 RCC*)
12775 # Rational C++ 2.4.1
12776 lt_prog_compiler_pic_CXX='-pic'
12777 ;;
12778 cxx*)
12779 # Digital/Compaq C++
12780 lt_prog_compiler_wl_CXX='-Wl,'
12781 # Make sure the PIC flag is empty. It appears that all Alpha
12782 # Linux and Compaq Tru64 Unix objects are PIC.
12783 lt_prog_compiler_pic_CXX=
12784 lt_prog_compiler_static_CXX='-non_shared'
12785 ;;
12786 *)
12787 ;;
12788 esac
12789 ;;
12790 psos*)
12791 ;;
12792 solaris*)
12793 case $cc_basename in
12794 CC*)
12795 # Sun C++ 4.2, 5.x and Centerline C++
12796 lt_prog_compiler_pic_CXX='-KPIC'
12797 lt_prog_compiler_static_CXX='-Bstatic'
12798 lt_prog_compiler_wl_CXX='-Qoption ld '
12799 ;;
12800 gcx*)
12801 # Green Hills C++ Compiler
12802 lt_prog_compiler_pic_CXX='-PIC'
12803 ;;
12804 *)
12805 ;;
12806 esac
12807 ;;
12808 sunos4*)
12809 case $cc_basename in
12810 CC*)
12811 # Sun C++ 4.x
12812 lt_prog_compiler_pic_CXX='-pic'
12813 lt_prog_compiler_static_CXX='-Bstatic'
12814 ;;
12815 lcc*)
12816 # Lucid
12817 lt_prog_compiler_pic_CXX='-pic'
12818 ;;
12819 *)
12820 ;;
12821 esac
12822 ;;
12823 tandem*)
12824 case $cc_basename in
12825 NCC*)
12826 # NonStop-UX NCC 3.20
12827 lt_prog_compiler_pic_CXX='-KPIC'
12828 ;;
12829 *)
12830 ;;
12831 esac
12832 ;;
12833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12834 case $cc_basename in
12835 CC*)
12836 lt_prog_compiler_wl_CXX='-Wl,'
12837 lt_prog_compiler_pic_CXX='-KPIC'
12838 lt_prog_compiler_static_CXX='-Bstatic'
12839 ;;
12840 esac
12841 ;;
12842 vxworks*)
12843 ;;
12844 *)
12845 lt_prog_compiler_can_build_shared_CXX=no
12846 ;;
12847 esac
12848 fi
12849
12850 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12851 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12852
12853 #
12854 # Check to make sure the PIC flag actually works.
12855 #
12856 if test -n "$lt_prog_compiler_pic_CXX"; then
12857
12858 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12859 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12860 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12861 $as_echo_n "(cached) " >&6
12862 else
12863 lt_cv_prog_compiler_pic_works_CXX=no
12864 ac_outfile=conftest.$ac_objext
12865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12867 # Insert the option either (1) after the last *FLAGS variable, or
12868 # (2) before a word containing "conftest.", or (3) at the end.
12869 # Note that $ac_compile itself does not contain backslashes and begins
12870 # with a dollar sign (not a hyphen), so the echo should work correctly.
12871 # The option is referenced via a variable to avoid confusing sed.
12872 lt_compile=`echo "$ac_compile" | $SED \
12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12875 -e 's:$: $lt_compiler_flag:'`
12876 (eval echo "\"\$as_me:12876: $lt_compile\"" >&5)
12877 (eval "$lt_compile" 2>conftest.err)
12878 ac_status=$?
12879 cat conftest.err >&5
12880 echo "$as_me:12880: \$? = $ac_status" >&5
12881 if (exit $ac_status) && test -s "$ac_outfile"; then
12882 # The compiler can only warn and ignore the option if not recognized
12883 # So say no if there are warnings other than the usual output.
12884 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12887 lt_cv_prog_compiler_pic_works_CXX=yes
12888 fi
12889 fi
12890 $rm conftest*
12891
12892 fi
12893 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12894 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12895
12896 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12897 case $lt_prog_compiler_pic_CXX in
12898 "" | " "*) ;;
12899 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12900 esac
12901 else
12902 lt_prog_compiler_pic_CXX=
12903 lt_prog_compiler_can_build_shared_CXX=no
12904 fi
12905
12906 fi
12907 case $host_os in
12908 # For platforms which do not support PIC, -DPIC is meaningless:
12909 *djgpp*)
12910 lt_prog_compiler_pic_CXX=
12911 ;;
12912 *)
12913 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12914 ;;
12915 esac
12916
12917 #
12918 # Check to make sure the static flag actually works.
12919 #
12920 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12921 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12922 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12923 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12924 $as_echo_n "(cached) " >&6
12925 else
12926 lt_cv_prog_compiler_static_works_CXX=no
12927 save_LDFLAGS="$LDFLAGS"
12928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12931 # The linker can only warn and ignore the option if not recognized
12932 # So say no if there are warnings
12933 if test -s conftest.err; then
12934 # Append any errors to the config.log.
12935 cat conftest.err 1>&5
12936 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12938 if diff conftest.exp conftest.er2 >/dev/null; then
12939 lt_cv_prog_compiler_static_works_CXX=yes
12940 fi
12941 else
12942 lt_cv_prog_compiler_static_works_CXX=yes
12943 fi
12944 fi
12945 $rm -r conftest*
12946 LDFLAGS="$save_LDFLAGS"
12947
12948 fi
12949 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12950 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12951
12952 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12953 :
12954 else
12955 lt_prog_compiler_static_CXX=
12956 fi
12957
12958
12959 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12961 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12962 $as_echo_n "(cached) " >&6
12963 else
12964 lt_cv_prog_compiler_c_o_CXX=no
12965 $rm -r conftest 2>/dev/null
12966 mkdir conftest
12967 cd conftest
12968 mkdir out
12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12970
12971 lt_compiler_flag="-o out/conftest2.$ac_objext"
12972 # Insert the option either (1) after the last *FLAGS variable, or
12973 # (2) before a word containing "conftest.", or (3) at the end.
12974 # Note that $ac_compile itself does not contain backslashes and begins
12975 # with a dollar sign (not a hyphen), so the echo should work correctly.
12976 lt_compile=`echo "$ac_compile" | $SED \
12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979 -e 's:$: $lt_compiler_flag:'`
12980 (eval echo "\"\$as_me:12980: $lt_compile\"" >&5)
12981 (eval "$lt_compile" 2>out/conftest.err)
12982 ac_status=$?
12983 cat out/conftest.err >&5
12984 echo "$as_me:12984: \$? = $ac_status" >&5
12985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12986 then
12987 # The compiler can only warn and ignore the option if not recognized
12988 # So say no if there are warnings
12989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12992 lt_cv_prog_compiler_c_o_CXX=yes
12993 fi
12994 fi
12995 chmod u+w . 2>&5
12996 $rm conftest*
12997 # SGI C++ compiler will create directory out/ii_files/ for
12998 # template instantiation
12999 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13000 $rm out/* && rmdir out
13001 cd ..
13002 rmdir conftest
13003 $rm conftest*
13004
13005 fi
13006 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13007 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13008
13009
13010 hard_links="nottested"
13011 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13012 # do not overwrite the value of need_locks provided by the user
13013 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13014 $as_echo_n "checking if we can lock with hard links... " >&6; }
13015 hard_links=yes
13016 $rm conftest*
13017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13018 touch conftest.a
13019 ln conftest.a conftest.b 2>&5 || hard_links=no
13020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13021 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13022 $as_echo "$hard_links" >&6; }
13023 if test "$hard_links" = no; then
13024 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13026 need_locks=warn
13027 fi
13028 else
13029 need_locks=no
13030 fi
13031
13032 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13034
13035 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13036 case $host_os in
13037 aix[4-9]*)
13038 # If we're using GNU nm, then we don't want the "-C" option.
13039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13040 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13041 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13042 else
13043 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13044 fi
13045 ;;
13046 pw32*)
13047 export_symbols_cmds_CXX="$ltdll_cmds"
13048 ;;
13049 cygwin* | mingw*)
13050 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13051 ;;
13052 *)
13053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13054 ;;
13055 esac
13056 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13057
13058 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13059 $as_echo "$ld_shlibs_CXX" >&6; }
13060 test "$ld_shlibs_CXX" = no && can_build_shared=no
13061
13062 #
13063 # Do we need to explicitly link libc?
13064 #
13065 case "x$archive_cmds_need_lc_CXX" in
13066 x|xyes)
13067 # Assume -lc should be added
13068 archive_cmds_need_lc_CXX=yes
13069
13070 if test "$enable_shared" = yes && test "$GCC" = yes; then
13071 case $archive_cmds_CXX in
13072 *'~'*)
13073 # FIXME: we may have to deal with multi-command sequences.
13074 ;;
13075 '$CC '*)
13076 # Test whether the compiler implicitly links with -lc since on some
13077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13078 # to ld, don't add -lc before -lgcc.
13079 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13081 $rm conftest*
13082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13083
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>&5
13086 ac_status=$?
13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } 2>conftest.err; then
13089 soname=conftest
13090 lib=conftest
13091 libobjs=conftest.$ac_objext
13092 deplibs=
13093 wl=$lt_prog_compiler_wl_CXX
13094 pic_flag=$lt_prog_compiler_pic_CXX
13095 compiler_flags=-v
13096 linker_flags=-v
13097 verstring=
13098 output_objdir=.
13099 libname=conftest
13100 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13101 allow_undefined_flag_CXX=
13102 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13103 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13104 ac_status=$?
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }
13107 then
13108 archive_cmds_need_lc_CXX=no
13109 else
13110 archive_cmds_need_lc_CXX=yes
13111 fi
13112 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13113 else
13114 cat conftest.err 1>&5
13115 fi
13116 $rm conftest*
13117 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13118 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13119 ;;
13120 esac
13121 fi
13122 ;;
13123 esac
13124
13125 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13126 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13127 library_names_spec=
13128 libname_spec='lib$name'
13129 soname_spec=
13130 shrext_cmds=".so"
13131 postinstall_cmds=
13132 postuninstall_cmds=
13133 finish_cmds=
13134 finish_eval=
13135 shlibpath_var=
13136 shlibpath_overrides_runpath=unknown
13137 version_type=none
13138 dynamic_linker="$host_os ld.so"
13139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13140
13141 need_lib_prefix=unknown
13142 hardcode_into_libs=no
13143
13144 # when you set need_version to no, make sure it does not cause -set_version
13145 # flags to be left without arguments
13146 need_version=unknown
13147
13148 case $host_os in
13149 aix3*)
13150 version_type=linux
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13152 shlibpath_var=LIBPATH
13153
13154 # AIX 3 has no versioning support, so we append a major version to the name.
13155 soname_spec='${libname}${release}${shared_ext}$major'
13156 ;;
13157
13158 aix[4-9]*)
13159 version_type=linux
13160 need_lib_prefix=no
13161 need_version=no
13162 hardcode_into_libs=yes
13163 if test "$host_cpu" = ia64; then
13164 # AIX 5 supports IA64
13165 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13166 shlibpath_var=LD_LIBRARY_PATH
13167 else
13168 # With GCC up to 2.95.x, collect2 would create an import file
13169 # for dependence libraries. The import file would start with
13170 # the line `#! .'. This would cause the generated library to
13171 # depend on `.', always an invalid library. This was fixed in
13172 # development snapshots of GCC prior to 3.0.
13173 case $host_os in
13174 aix4 | aix4.[01] | aix4.[01].*)
13175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13176 echo ' yes '
13177 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13178 :
13179 else
13180 can_build_shared=no
13181 fi
13182 ;;
13183 esac
13184 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13185 # soname into executable. Probably we can add versioning support to
13186 # collect2, so additional links can be useful in future.
13187 if test "$aix_use_runtimelinking" = yes; then
13188 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13189 # instead of lib<name>.a to let people know that these are not
13190 # typical AIX shared libraries.
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 else
13193 # We preserve .a as extension for shared libraries through AIX4.2
13194 # and later when we are not doing run time linking.
13195 library_names_spec='${libname}${release}.a $libname.a'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 fi
13198 shlibpath_var=LIBPATH
13199 fi
13200 ;;
13201
13202 amigaos*)
13203 library_names_spec='$libname.ixlibrary $libname.a'
13204 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13205 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'
13206 ;;
13207
13208 beos*)
13209 library_names_spec='${libname}${shared_ext}'
13210 dynamic_linker="$host_os ld.so"
13211 shlibpath_var=LIBRARY_PATH
13212 ;;
13213
13214 bsdi[45]*)
13215 version_type=linux
13216 need_version=no
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13222 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13223 # the default ld.so.conf also contains /usr/contrib/lib and
13224 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13225 # libtool to hard-code these into programs
13226 ;;
13227
13228 cygwin* | mingw* | pw32*)
13229 version_type=windows
13230 shrext_cmds=".dll"
13231 need_version=no
13232 need_lib_prefix=no
13233
13234 case $GCC,$host_os in
13235 yes,cygwin* | yes,mingw* | yes,pw32*)
13236 library_names_spec='$libname.dll.a'
13237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13238 postinstall_cmds='base_file=`basename \${file}`~
13239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13240 dldir=$destdir/`dirname \$dlpath`~
13241 test -d \$dldir || mkdir -p \$dldir~
13242 $install_prog $dir/$dlname \$dldir/$dlname~
13243 chmod a+x \$dldir/$dlname'
13244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13245 dlpath=$dir/\$dldll~
13246 $rm \$dlpath'
13247 shlibpath_overrides_runpath=yes
13248
13249 case $host_os in
13250 cygwin*)
13251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13253 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13254 ;;
13255 mingw*)
13256 # MinGW DLLs use traditional 'lib' prefix
13257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13259 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13260 # It is most probably a Windows format PATH printed by
13261 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13262 # path with ; separators, and with drive letters. We can handle the
13263 # drive letters (cygwin fileutils understands them), so leave them,
13264 # especially as we might pass files found there to a mingw objdump,
13265 # which wouldn't understand a cygwinified path. Ahh.
13266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13267 else
13268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13269 fi
13270 ;;
13271 pw32*)
13272 # pw32 DLLs use 'pw' prefix rather than 'lib'
13273 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13274 ;;
13275 esac
13276 ;;
13277
13278 *)
13279 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13280 ;;
13281 esac
13282 dynamic_linker='Win32 ld.exe'
13283 # FIXME: first we should search . and the directory the executable is in
13284 shlibpath_var=PATH
13285 ;;
13286
13287 darwin* | rhapsody*)
13288 dynamic_linker="$host_os dyld"
13289 version_type=darwin
13290 need_lib_prefix=no
13291 need_version=no
13292 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13293 soname_spec='${libname}${release}${major}$shared_ext'
13294 shlibpath_overrides_runpath=yes
13295 shlibpath_var=DYLD_LIBRARY_PATH
13296 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13297
13298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13299 ;;
13300
13301 dgux*)
13302 version_type=linux
13303 need_lib_prefix=no
13304 need_version=no
13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 shlibpath_var=LD_LIBRARY_PATH
13308 ;;
13309
13310 freebsd1*)
13311 dynamic_linker=no
13312 ;;
13313
13314 freebsd* | dragonfly*)
13315 # DragonFly does not have aout. When/if they implement a new
13316 # versioning mechanism, adjust this.
13317 if test -x /usr/bin/objformat; then
13318 objformat=`/usr/bin/objformat`
13319 else
13320 case $host_os in
13321 freebsd[123]*) objformat=aout ;;
13322 *) objformat=elf ;;
13323 esac
13324 fi
13325 version_type=freebsd-$objformat
13326 case $version_type in
13327 freebsd-elf*)
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13329 need_version=no
13330 need_lib_prefix=no
13331 ;;
13332 freebsd-*)
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13334 need_version=yes
13335 ;;
13336 esac
13337 shlibpath_var=LD_LIBRARY_PATH
13338 case $host_os in
13339 freebsd2*)
13340 shlibpath_overrides_runpath=yes
13341 ;;
13342 freebsd3.[01]* | freebsdelf3.[01]*)
13343 shlibpath_overrides_runpath=yes
13344 hardcode_into_libs=yes
13345 ;;
13346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13348 shlibpath_overrides_runpath=no
13349 hardcode_into_libs=yes
13350 ;;
13351 *) # from 4.6 on, and DragonFly
13352 shlibpath_overrides_runpath=yes
13353 hardcode_into_libs=yes
13354 ;;
13355 esac
13356 ;;
13357
13358 gnu*)
13359 version_type=linux
13360 need_lib_prefix=no
13361 need_version=no
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 hardcode_into_libs=yes
13366 ;;
13367
13368 hpux9* | hpux10* | hpux11*)
13369 # Give a soname corresponding to the major version so that dld.sl refuses to
13370 # link against other versions.
13371 version_type=sunos
13372 need_lib_prefix=no
13373 need_version=no
13374 case $host_cpu in
13375 ia64*)
13376 shrext_cmds='.so'
13377 hardcode_into_libs=yes
13378 dynamic_linker="$host_os dld.so"
13379 shlibpath_var=LD_LIBRARY_PATH
13380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 if test "X$HPUX_IA64_MODE" = X32; then
13384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13385 else
13386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13387 fi
13388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13389 ;;
13390 hppa*64*)
13391 shrext_cmds='.sl'
13392 hardcode_into_libs=yes
13393 dynamic_linker="$host_os dld.sl"
13394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13400 ;;
13401 *)
13402 shrext_cmds='.sl'
13403 dynamic_linker="$host_os dld.sl"
13404 shlibpath_var=SHLIB_PATH
13405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 ;;
13409 esac
13410 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13411 postinstall_cmds='chmod 555 $lib'
13412 ;;
13413
13414 interix[3-9]*)
13415 version_type=linux
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=no
13423 hardcode_into_libs=yes
13424 ;;
13425
13426 irix5* | irix6* | nonstopux*)
13427 case $host_os in
13428 nonstopux*) version_type=nonstopux ;;
13429 *)
13430 if test "$lt_cv_prog_gnu_ld" = yes; then
13431 version_type=linux
13432 else
13433 version_type=irix
13434 fi ;;
13435 esac
13436 need_lib_prefix=no
13437 need_version=no
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13440 case $host_os in
13441 irix5* | nonstopux*)
13442 libsuff= shlibsuff=
13443 ;;
13444 *)
13445 case $LD in # libtool.m4 will add one of these switches to LD
13446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13447 libsuff= shlibsuff= libmagic=32-bit;;
13448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13449 libsuff=32 shlibsuff=N32 libmagic=N32;;
13450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13452 *) libsuff= shlibsuff= libmagic=never-match;;
13453 esac
13454 ;;
13455 esac
13456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13457 shlibpath_overrides_runpath=no
13458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13460 hardcode_into_libs=yes
13461 ;;
13462
13463 # No shared lib support for Linux oldld, aout, or coff.
13464 linux*oldld* | linux*aout* | linux*coff*)
13465 dynamic_linker=no
13466 ;;
13467
13468 # This must be Linux ELF.
13469 linux* | k*bsd*-gnu)
13470 version_type=linux
13471 need_lib_prefix=no
13472 need_version=no
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath=no
13478 # This implies no fast_install, which is unacceptable.
13479 # Some rework will be needed to allow for fast_install
13480 # before this can be enabled.
13481 hardcode_into_libs=yes
13482
13483 # Append ld.so.conf contents to the search path
13484 if test -f /etc/ld.so.conf; then
13485 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' ' '`
13486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13487 fi
13488
13489 # We used to test for /lib/ld.so.1 and disable shared libraries on
13490 # powerpc, because MkLinux only supported shared libraries with the
13491 # GNU dynamic linker. Since this was broken with cross compilers,
13492 # most powerpc-linux boxes support dynamic linking these days and
13493 # people can always --disable-shared, the test was removed, and we
13494 # assume the GNU/Linux dynamic linker is in use.
13495 dynamic_linker='GNU/Linux ld.so'
13496 ;;
13497
13498 netbsd*)
13499 version_type=sunos
13500 need_lib_prefix=no
13501 need_version=no
13502 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13505 dynamic_linker='NetBSD (a.out) ld.so'
13506 else
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 dynamic_linker='NetBSD ld.elf_so'
13510 fi
13511 shlibpath_var=LD_LIBRARY_PATH
13512 shlibpath_overrides_runpath=yes
13513 hardcode_into_libs=yes
13514 ;;
13515
13516 newsos6)
13517 version_type=linux
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 shlibpath_overrides_runpath=yes
13521 ;;
13522
13523 nto-qnx*)
13524 version_type=linux
13525 need_lib_prefix=no
13526 need_version=no
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=yes
13531 ;;
13532
13533 openbsd*)
13534 version_type=sunos
13535 sys_lib_dlsearch_path_spec="/usr/lib"
13536 need_lib_prefix=no
13537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13538 case $host_os in
13539 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13540 *) need_version=no ;;
13541 esac
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13546 case $host_os in
13547 openbsd2.[89] | openbsd2.[89].*)
13548 shlibpath_overrides_runpath=no
13549 ;;
13550 *)
13551 shlibpath_overrides_runpath=yes
13552 ;;
13553 esac
13554 else
13555 shlibpath_overrides_runpath=yes
13556 fi
13557 ;;
13558
13559 os2*)
13560 libname_spec='$name'
13561 shrext_cmds=".dll"
13562 need_lib_prefix=no
13563 library_names_spec='$libname${shared_ext} $libname.a'
13564 dynamic_linker='OS/2 ld.exe'
13565 shlibpath_var=LIBPATH
13566 ;;
13567
13568 osf3* | osf4* | osf5*)
13569 version_type=osf
13570 need_lib_prefix=no
13571 need_version=no
13572 soname_spec='${libname}${release}${shared_ext}$major'
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13577 ;;
13578
13579 rdos*)
13580 dynamic_linker=no
13581 ;;
13582
13583 solaris*)
13584 version_type=linux
13585 need_lib_prefix=no
13586 need_version=no
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588 soname_spec='${libname}${release}${shared_ext}$major'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 shlibpath_overrides_runpath=yes
13591 hardcode_into_libs=yes
13592 # ldd complains unless libraries are executable
13593 postinstall_cmds='chmod +x $lib'
13594 ;;
13595
13596 sunos4*)
13597 version_type=sunos
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13600 shlibpath_var=LD_LIBRARY_PATH
13601 shlibpath_overrides_runpath=yes
13602 if test "$with_gnu_ld" = yes; then
13603 need_lib_prefix=no
13604 fi
13605 need_version=yes
13606 ;;
13607
13608 sysv4 | sysv4.3*)
13609 version_type=linux
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13613 case $host_vendor in
13614 sni)
13615 shlibpath_overrides_runpath=no
13616 need_lib_prefix=no
13617 export_dynamic_flag_spec='${wl}-Blargedynsym'
13618 runpath_var=LD_RUN_PATH
13619 ;;
13620 siemens)
13621 need_lib_prefix=no
13622 ;;
13623 motorola)
13624 need_lib_prefix=no
13625 need_version=no
13626 shlibpath_overrides_runpath=no
13627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13628 ;;
13629 esac
13630 ;;
13631
13632 sysv4*MP*)
13633 if test -d /usr/nec ;then
13634 version_type=linux
13635 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13636 soname_spec='$libname${shared_ext}.$major'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 fi
13639 ;;
13640
13641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13642 version_type=freebsd-elf
13643 need_lib_prefix=no
13644 need_version=no
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 shlibpath_var=LD_LIBRARY_PATH
13648 hardcode_into_libs=yes
13649 if test "$with_gnu_ld" = yes; then
13650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13651 shlibpath_overrides_runpath=no
13652 else
13653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13654 shlibpath_overrides_runpath=yes
13655 case $host_os in
13656 sco3.2v5*)
13657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13658 ;;
13659 esac
13660 fi
13661 sys_lib_dlsearch_path_spec='/usr/lib'
13662 ;;
13663
13664 uts4*)
13665 version_type=linux
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 ;;
13670
13671 *)
13672 dynamic_linker=no
13673 ;;
13674 esac
13675 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13676 $as_echo "$dynamic_linker" >&6; }
13677 test "$dynamic_linker" = no && can_build_shared=no
13678
13679 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13680 $as_echo_n "(cached) " >&6
13681 else
13682 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13683 fi
13684
13685 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13686 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13687 $as_echo_n "(cached) " >&6
13688 else
13689 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13690 fi
13691
13692 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13693
13694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13695 if test "$GCC" = yes; then
13696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13697 fi
13698
13699 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13700 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13701 hardcode_action_CXX=
13702 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13703 test -n "$runpath_var_CXX" || \
13704 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13705
13706 # We can hardcode non-existant directories.
13707 if test "$hardcode_direct_CXX" != no &&
13708 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13709 # have to relink, otherwise we might link with an installed library
13710 # when we should be linking with a yet-to-be-installed one
13711 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13712 test "$hardcode_minus_L_CXX" != no; then
13713 # Linking always hardcodes the temporary library directory.
13714 hardcode_action_CXX=relink
13715 else
13716 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13717 hardcode_action_CXX=immediate
13718 fi
13719 else
13720 # We cannot hardcode anything, or else we can only hardcode existing
13721 # directories.
13722 hardcode_action_CXX=unsupported
13723 fi
13724 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13725 $as_echo "$hardcode_action_CXX" >&6; }
13726
13727 if test "$hardcode_action_CXX" = relink; then
13728 # Fast installation is not supported
13729 enable_fast_install=no
13730 elif test "$shlibpath_overrides_runpath" = yes ||
13731 test "$enable_shared" = no; then
13732 # Fast installation is not necessary
13733 enable_fast_install=needless
13734 fi
13735
13736
13737 # The else clause should only fire when bootstrapping the
13738 # libtool distribution, otherwise you forgot to ship ltmain.sh
13739 # with your package, and you will get complaints that there are
13740 # no rules to generate ltmain.sh.
13741 if test -f "$ltmain"; then
13742 # See if we are running on zsh, and set the options which allow our commands through
13743 # without removal of \ escapes.
13744 if test -n "${ZSH_VERSION+set}" ; then
13745 setopt NO_GLOB_SUBST
13746 fi
13747 # Now quote all the things that may contain metacharacters while being
13748 # careful not to overquote the AC_SUBSTed values. We take copies of the
13749 # variables and quote the copies for generation of the libtool script.
13750 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13751 SED SHELL STRIP \
13752 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13753 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13754 deplibs_check_method reload_flag reload_cmds need_locks \
13755 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13756 lt_cv_sys_global_symbol_to_c_name_address \
13757 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13758 old_postinstall_cmds old_postuninstall_cmds \
13759 compiler_CXX \
13760 CC_CXX \
13761 LD_CXX \
13762 lt_prog_compiler_wl_CXX \
13763 lt_prog_compiler_pic_CXX \
13764 lt_prog_compiler_static_CXX \
13765 lt_prog_compiler_no_builtin_flag_CXX \
13766 export_dynamic_flag_spec_CXX \
13767 thread_safe_flag_spec_CXX \
13768 whole_archive_flag_spec_CXX \
13769 enable_shared_with_static_runtimes_CXX \
13770 old_archive_cmds_CXX \
13771 old_archive_from_new_cmds_CXX \
13772 predep_objects_CXX \
13773 postdep_objects_CXX \
13774 predeps_CXX \
13775 postdeps_CXX \
13776 compiler_lib_search_path_CXX \
13777 compiler_lib_search_dirs_CXX \
13778 archive_cmds_CXX \
13779 archive_expsym_cmds_CXX \
13780 postinstall_cmds_CXX \
13781 postuninstall_cmds_CXX \
13782 old_archive_from_expsyms_cmds_CXX \
13783 allow_undefined_flag_CXX \
13784 no_undefined_flag_CXX \
13785 export_symbols_cmds_CXX \
13786 hardcode_libdir_flag_spec_CXX \
13787 hardcode_libdir_flag_spec_ld_CXX \
13788 hardcode_libdir_separator_CXX \
13789 hardcode_automatic_CXX \
13790 module_cmds_CXX \
13791 module_expsym_cmds_CXX \
13792 lt_cv_prog_compiler_c_o_CXX \
13793 fix_srcfile_path_CXX \
13794 exclude_expsyms_CXX \
13795 include_expsyms_CXX; do
13796
13797 case $var in
13798 old_archive_cmds_CXX | \
13799 old_archive_from_new_cmds_CXX | \
13800 archive_cmds_CXX | \
13801 archive_expsym_cmds_CXX | \
13802 module_cmds_CXX | \
13803 module_expsym_cmds_CXX | \
13804 old_archive_from_expsyms_cmds_CXX | \
13805 export_symbols_cmds_CXX | \
13806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13807 postinstall_cmds | postuninstall_cmds | \
13808 old_postinstall_cmds | old_postuninstall_cmds | \
13809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13810 # Double-quote double-evaled strings.
13811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13812 ;;
13813 *)
13814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13815 ;;
13816 esac
13817 done
13818
13819 case $lt_echo in
13820 *'\$0 --fallback-echo"')
13821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13822 ;;
13823 esac
13824
13825 cfgfile="$ofile"
13826
13827 cat <<__EOF__ >> "$cfgfile"
13828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13829
13830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13831
13832 # Shell to use when invoking shell scripts.
13833 SHELL=$lt_SHELL
13834
13835 # Whether or not to build shared libraries.
13836 build_libtool_libs=$enable_shared
13837
13838 # Whether or not to build static libraries.
13839 build_old_libs=$enable_static
13840
13841 # Whether or not to add -lc for building shared libraries.
13842 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13843
13844 # Whether or not to disallow shared libs when runtime libs are static
13845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13846
13847 # Whether or not to optimize for fast installation.
13848 fast_install=$enable_fast_install
13849
13850 # The host system.
13851 host_alias=$host_alias
13852 host=$host
13853 host_os=$host_os
13854
13855 # The build system.
13856 build_alias=$build_alias
13857 build=$build
13858 build_os=$build_os
13859
13860 # An echo program that does not interpret backslashes.
13861 echo=$lt_echo
13862
13863 # The archiver.
13864 AR=$lt_AR
13865 AR_FLAGS=$lt_AR_FLAGS
13866
13867 # A C compiler.
13868 LTCC=$lt_LTCC
13869
13870 # LTCC compiler flags.
13871 LTCFLAGS=$lt_LTCFLAGS
13872
13873 # A language-specific compiler.
13874 CC=$lt_compiler_CXX
13875
13876 # Is the compiler the GNU C compiler?
13877 with_gcc=$GCC_CXX
13878
13879 # An ERE matcher.
13880 EGREP=$lt_EGREP
13881
13882 # The linker used to build libraries.
13883 LD=$lt_LD_CXX
13884
13885 # Whether we need hard or soft links.
13886 LN_S=$lt_LN_S
13887
13888 # A BSD-compatible nm program.
13889 NM=$lt_NM
13890
13891 # A symbol stripping program
13892 STRIP=$lt_STRIP
13893
13894 # Used to examine libraries when file_magic_cmd begins "file"
13895 MAGIC_CMD=$MAGIC_CMD
13896
13897 # Used on cygwin: DLL creation program.
13898 DLLTOOL="$DLLTOOL"
13899
13900 # Used on cygwin: object dumper.
13901 OBJDUMP="$OBJDUMP"
13902
13903 # Used on cygwin: assembler.
13904 AS="$AS"
13905
13906 # The name of the directory that contains temporary libtool files.
13907 objdir=$objdir
13908
13909 # How to create reloadable object files.
13910 reload_flag=$lt_reload_flag
13911 reload_cmds=$lt_reload_cmds
13912
13913 # How to pass a linker flag through the compiler.
13914 wl=$lt_lt_prog_compiler_wl_CXX
13915
13916 # Object file suffix (normally "o").
13917 objext="$ac_objext"
13918
13919 # Old archive suffix (normally "a").
13920 libext="$libext"
13921
13922 # Shared library suffix (normally ".so").
13923 shrext_cmds='$shrext_cmds'
13924
13925 # Executable file suffix (normally "").
13926 exeext="$exeext"
13927
13928 # Additional compiler flags for building library objects.
13929 pic_flag=$lt_lt_prog_compiler_pic_CXX
13930 pic_mode=$pic_mode
13931
13932 # What is the maximum length of a command?
13933 max_cmd_len=$lt_cv_sys_max_cmd_len
13934
13935 # Does compiler simultaneously support -c and -o options?
13936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13937
13938 # Must we lock files when doing compilation?
13939 need_locks=$lt_need_locks
13940
13941 # Do we need the lib prefix for modules?
13942 need_lib_prefix=$need_lib_prefix
13943
13944 # Do we need a version for libraries?
13945 need_version=$need_version
13946
13947 # Whether dlopen is supported.
13948 dlopen_support=$enable_dlopen
13949
13950 # Whether dlopen of programs is supported.
13951 dlopen_self=$enable_dlopen_self
13952
13953 # Whether dlopen of statically linked programs is supported.
13954 dlopen_self_static=$enable_dlopen_self_static
13955
13956 # Compiler flag to prevent dynamic linking.
13957 link_static_flag=$lt_lt_prog_compiler_static_CXX
13958
13959 # Compiler flag to turn off builtin functions.
13960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13961
13962 # Compiler flag to allow reflexive dlopens.
13963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13964
13965 # Compiler flag to generate shared objects directly from archives.
13966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13967
13968 # Compiler flag to generate thread-safe objects.
13969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13970
13971 # Library versioning type.
13972 version_type=$version_type
13973
13974 # Format of library name prefix.
13975 libname_spec=$lt_libname_spec
13976
13977 # List of archive names. First name is the real one, the rest are links.
13978 # The last name is the one that the linker finds with -lNAME.
13979 library_names_spec=$lt_library_names_spec
13980
13981 # The coded name of the library, if different from the real name.
13982 soname_spec=$lt_soname_spec
13983
13984 # Commands used to build and install an old-style archive.
13985 RANLIB=$lt_RANLIB
13986 old_archive_cmds=$lt_old_archive_cmds_CXX
13987 old_postinstall_cmds=$lt_old_postinstall_cmds
13988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13989
13990 # Create an old-style archive from a shared archive.
13991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13992
13993 # Create a temporary old-style archive to link instead of a shared archive.
13994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13995
13996 # Commands used to build and install a shared archive.
13997 archive_cmds=$lt_archive_cmds_CXX
13998 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13999 postinstall_cmds=$lt_postinstall_cmds
14000 postuninstall_cmds=$lt_postuninstall_cmds
14001
14002 # Commands used to build a loadable module (assumed same as above if empty)
14003 module_cmds=$lt_module_cmds_CXX
14004 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14005
14006 # Commands to strip libraries.
14007 old_striplib=$lt_old_striplib
14008 striplib=$lt_striplib
14009
14010 # Dependencies to place before the objects being linked to create a
14011 # shared library.
14012 predep_objects=$lt_predep_objects_CXX
14013
14014 # Dependencies to place after the objects being linked to create a
14015 # shared library.
14016 postdep_objects=$lt_postdep_objects_CXX
14017
14018 # Dependencies to place before the objects being linked to create a
14019 # shared library.
14020 predeps=$lt_predeps_CXX
14021
14022 # Dependencies to place after the objects being linked to create a
14023 # shared library.
14024 postdeps=$lt_postdeps_CXX
14025
14026 # The directories searched by this compiler when creating a shared
14027 # library
14028 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14029
14030 # The library search path used internally by the compiler when linking
14031 # a shared library.
14032 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14033
14034 # Method to check whether dependent libraries are shared objects.
14035 deplibs_check_method=$lt_deplibs_check_method
14036
14037 # Command to use when deplibs_check_method == file_magic.
14038 file_magic_cmd=$lt_file_magic_cmd
14039
14040 # Flag that allows shared libraries with undefined symbols to be built.
14041 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14042
14043 # Flag that forces no undefined symbols.
14044 no_undefined_flag=$lt_no_undefined_flag_CXX
14045
14046 # Commands used to finish a libtool library installation in a directory.
14047 finish_cmds=$lt_finish_cmds
14048
14049 # Same as above, but a single script fragment to be evaled but not shown.
14050 finish_eval=$lt_finish_eval
14051
14052 # Take the output of nm and produce a listing of raw symbols and C names.
14053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14054
14055 # Transform the output of nm in a proper C declaration
14056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14057
14058 # Transform the output of nm in a C name address pair
14059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14060
14061 # This is the shared library runtime path variable.
14062 runpath_var=$runpath_var
14063
14064 # This is the shared library path variable.
14065 shlibpath_var=$shlibpath_var
14066
14067 # Is shlibpath searched before the hard-coded library search path?
14068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14069
14070 # How to hardcode a shared library path into an executable.
14071 hardcode_action=$hardcode_action_CXX
14072
14073 # Whether we should hardcode library paths into libraries.
14074 hardcode_into_libs=$hardcode_into_libs
14075
14076 # Flag to hardcode \$libdir into a binary during linking.
14077 # This must work even if \$libdir does not exist.
14078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14079
14080 # If ld is used when linking, flag to hardcode \$libdir into
14081 # a binary during linking. This must work even if \$libdir does
14082 # not exist.
14083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14084
14085 # Whether we need a single -rpath flag with a separated argument.
14086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14087
14088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14089 # resulting binary.
14090 hardcode_direct=$hardcode_direct_CXX
14091
14092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14093 # resulting binary.
14094 hardcode_minus_L=$hardcode_minus_L_CXX
14095
14096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14097 # the resulting binary.
14098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14099
14100 # Set to yes if building a shared library automatically hardcodes DIR into the library
14101 # and all subsequent libraries and executables linked against it.
14102 hardcode_automatic=$hardcode_automatic_CXX
14103
14104 # Variables whose values should be saved in libtool wrapper scripts and
14105 # restored at relink time.
14106 variables_saved_for_relink="$variables_saved_for_relink"
14107
14108 # Whether libtool must link a program against all its dependency libraries.
14109 link_all_deplibs=$link_all_deplibs_CXX
14110
14111 # Compile-time system search path for libraries
14112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14113
14114 # Run-time system search path for libraries
14115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14116
14117 # Fix the shell variable \$srcfile for the compiler.
14118 fix_srcfile_path=$lt_fix_srcfile_path
14119
14120 # Set to yes if exported symbols are required.
14121 always_export_symbols=$always_export_symbols_CXX
14122
14123 # The commands to list exported symbols.
14124 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14125
14126 # The commands to extract the exported symbol list from a shared archive.
14127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14128
14129 # Symbols that should not be listed in the preloaded symbols.
14130 exclude_expsyms=$lt_exclude_expsyms_CXX
14131
14132 # Symbols that must always be exported.
14133 include_expsyms=$lt_include_expsyms_CXX
14134
14135 # ### END LIBTOOL TAG CONFIG: $tagname
14136
14137 __EOF__
14138
14139
14140 else
14141 # If there is no Makefile yet, we rely on a make rule to execute
14142 # `config.status --recheck' to rerun these tests and create the
14143 # libtool script then.
14144 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14145 if test -f "$ltmain_in"; then
14146 test -f Makefile && make "$ltmain"
14147 fi
14148 fi
14149
14150
14151 ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157 CC=$lt_save_CC
14158 LDCXX=$LD
14159 LD=$lt_save_LD
14160 GCC=$lt_save_GCC
14161 with_gnu_ldcxx=$with_gnu_ld
14162 with_gnu_ld=$lt_save_with_gnu_ld
14163 lt_cv_path_LDCXX=$lt_cv_path_LD
14164 lt_cv_path_LD=$lt_save_path_LD
14165 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14166 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14167
14168 else
14169 tagname=""
14170 fi
14171 ;;
14172
14173 F77)
14174 if test -n "$F77" && test "X$F77" != "Xno"; then
14175
14176 ac_ext=f
14177 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14178 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14180
14181
14182 archive_cmds_need_lc_F77=no
14183 allow_undefined_flag_F77=
14184 always_export_symbols_F77=no
14185 archive_expsym_cmds_F77=
14186 export_dynamic_flag_spec_F77=
14187 hardcode_direct_F77=no
14188 hardcode_libdir_flag_spec_F77=
14189 hardcode_libdir_flag_spec_ld_F77=
14190 hardcode_libdir_separator_F77=
14191 hardcode_minus_L_F77=no
14192 hardcode_automatic_F77=no
14193 module_cmds_F77=
14194 module_expsym_cmds_F77=
14195 link_all_deplibs_F77=unknown
14196 old_archive_cmds_F77=$old_archive_cmds
14197 no_undefined_flag_F77=
14198 whole_archive_flag_spec_F77=
14199 enable_shared_with_static_runtimes_F77=no
14200
14201 # Source file extension for f77 test sources.
14202 ac_ext=f
14203
14204 # Object file extension for compiled f77 test sources.
14205 objext=o
14206 objext_F77=$objext
14207
14208 # Code to be used in simple compile tests
14209 lt_simple_compile_test_code="\
14210 subroutine t
14211 return
14212 end
14213 "
14214
14215 # Code to be used in simple link tests
14216 lt_simple_link_test_code="\
14217 program t
14218 end
14219 "
14220
14221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14222
14223 # If no C compiler was specified, use CC.
14224 LTCC=${LTCC-"$CC"}
14225
14226 # If no C compiler flags were specified, use CFLAGS.
14227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14228
14229 # Allow CC to be a program name with arguments.
14230 compiler=$CC
14231
14232
14233 # save warnings/boilerplate of simple test code
14234 ac_outfile=conftest.$ac_objext
14235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14237 _lt_compiler_boilerplate=`cat conftest.err`
14238 $rm conftest*
14239
14240 ac_outfile=conftest.$ac_objext
14241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14243 _lt_linker_boilerplate=`cat conftest.err`
14244 $rm -r conftest*
14245
14246
14247 # Allow CC to be a program name with arguments.
14248 lt_save_CC="$CC"
14249 CC=${F77-"f77"}
14250 compiler=$CC
14251 compiler_F77=$CC
14252 for cc_temp in $compiler""; do
14253 case $cc_temp in
14254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14256 \-*) ;;
14257 *) break;;
14258 esac
14259 done
14260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14261
14262
14263 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14264 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14265 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14266 $as_echo "$can_build_shared" >&6; }
14267
14268 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14269 $as_echo_n "checking whether to build shared libraries... " >&6; }
14270 test "$can_build_shared" = "no" && enable_shared=no
14271
14272 # On AIX, shared libraries and static libraries use the same namespace, and
14273 # are all built from PIC.
14274 case $host_os in
14275 aix3*)
14276 test "$enable_shared" = yes && enable_static=no
14277 if test -n "$RANLIB"; then
14278 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14279 postinstall_cmds='$RANLIB $lib'
14280 fi
14281 ;;
14282 aix[4-9]*)
14283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14284 test "$enable_shared" = yes && enable_static=no
14285 fi
14286 ;;
14287 esac
14288 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14289 $as_echo "$enable_shared" >&6; }
14290
14291 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14292 $as_echo_n "checking whether to build static libraries... " >&6; }
14293 # Make sure either enable_shared or enable_static is yes.
14294 test "$enable_shared" = yes || enable_static=yes
14295 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14296 $as_echo "$enable_static" >&6; }
14297
14298 GCC_F77="$G77"
14299 LD_F77="$LD"
14300
14301 lt_prog_compiler_wl_F77=
14302 lt_prog_compiler_pic_F77=
14303 lt_prog_compiler_static_F77=
14304
14305 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14306 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14307
14308 if test "$GCC" = yes; then
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 lt_prog_compiler_static_F77='-static'
14311
14312 case $host_os in
14313 aix*)
14314 # All AIX code is PIC.
14315 if test "$host_cpu" = ia64; then
14316 # AIX 5 now supports IA64 processor
14317 lt_prog_compiler_static_F77='-Bstatic'
14318 fi
14319 ;;
14320
14321 amigaos*)
14322 # FIXME: we need at least 68020 code to build shared libraries, but
14323 # adding the `-m68020' flag to GCC prevents building anything better,
14324 # like `-m68040'.
14325 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14326 ;;
14327
14328 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14329 # PIC is the default for these OSes.
14330 ;;
14331
14332 mingw* | cygwin* | pw32* | os2*)
14333 # This hack is so that the source file can tell whether it is being
14334 # built for inclusion in a dll (and should export symbols for example).
14335 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14336 # (--disable-auto-import) libraries
14337 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14338 ;;
14339
14340 darwin* | rhapsody*)
14341 # PIC is the default on this platform
14342 # Common symbols not allowed in MH_DYLIB files
14343 lt_prog_compiler_pic_F77='-fno-common'
14344 ;;
14345
14346 interix[3-9]*)
14347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14348 # Instead, we relocate shared libraries at runtime.
14349 ;;
14350
14351 msdosdjgpp*)
14352 # Just because we use GCC doesn't mean we suddenly get shared libraries
14353 # on systems that don't support them.
14354 lt_prog_compiler_can_build_shared_F77=no
14355 enable_shared=no
14356 ;;
14357
14358 sysv4*MP*)
14359 if test -d /usr/nec; then
14360 lt_prog_compiler_pic_F77=-Kconform_pic
14361 fi
14362 ;;
14363
14364 hpux*)
14365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14366 # not for PA HP-UX.
14367 case $host_cpu in
14368 hppa*64*|ia64*)
14369 # +Z the default
14370 ;;
14371 *)
14372 lt_prog_compiler_pic_F77='-fPIC'
14373 ;;
14374 esac
14375 ;;
14376
14377 *)
14378 lt_prog_compiler_pic_F77='-fPIC'
14379 ;;
14380 esac
14381 else
14382 # PORTME Check for flag to pass linker flags through the system compiler.
14383 case $host_os in
14384 aix*)
14385 lt_prog_compiler_wl_F77='-Wl,'
14386 if test "$host_cpu" = ia64; then
14387 # AIX 5 now supports IA64 processor
14388 lt_prog_compiler_static_F77='-Bstatic'
14389 else
14390 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14391 fi
14392 ;;
14393 darwin*)
14394 # PIC is the default on this platform
14395 # Common symbols not allowed in MH_DYLIB files
14396 case $cc_basename in
14397 xlc*)
14398 lt_prog_compiler_pic_F77='-qnocommon'
14399 lt_prog_compiler_wl_F77='-Wl,'
14400 ;;
14401 esac
14402 ;;
14403
14404 mingw* | cygwin* | pw32* | os2*)
14405 # This hack is so that the source file can tell whether it is being
14406 # built for inclusion in a dll (and should export symbols for example).
14407 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14408 ;;
14409
14410 hpux9* | hpux10* | hpux11*)
14411 lt_prog_compiler_wl_F77='-Wl,'
14412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14413 # not for PA HP-UX.
14414 case $host_cpu in
14415 hppa*64*|ia64*)
14416 # +Z the default
14417 ;;
14418 *)
14419 lt_prog_compiler_pic_F77='+Z'
14420 ;;
14421 esac
14422 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14423 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14424 ;;
14425
14426 irix5* | irix6* | nonstopux*)
14427 lt_prog_compiler_wl_F77='-Wl,'
14428 # PIC (with -KPIC) is the default.
14429 lt_prog_compiler_static_F77='-non_shared'
14430 ;;
14431
14432 newsos6)
14433 lt_prog_compiler_pic_F77='-KPIC'
14434 lt_prog_compiler_static_F77='-Bstatic'
14435 ;;
14436
14437 linux* | k*bsd*-gnu)
14438 case $cc_basename in
14439 icc* | ecc*)
14440 lt_prog_compiler_wl_F77='-Wl,'
14441 lt_prog_compiler_pic_F77='-KPIC'
14442 lt_prog_compiler_static_F77='-static'
14443 ;;
14444 pgcc* | pgf77* | pgf90* | pgf95*)
14445 # Portland Group compilers (*not* the Pentium gcc compiler,
14446 # which looks to be a dead project)
14447 lt_prog_compiler_wl_F77='-Wl,'
14448 lt_prog_compiler_pic_F77='-fpic'
14449 lt_prog_compiler_static_F77='-Bstatic'
14450 ;;
14451 ccc*)
14452 lt_prog_compiler_wl_F77='-Wl,'
14453 # All Alpha code is PIC.
14454 lt_prog_compiler_static_F77='-non_shared'
14455 ;;
14456 *)
14457 case `$CC -V 2>&1 | sed 5q` in
14458 *Sun\ C*)
14459 # Sun C 5.9
14460 lt_prog_compiler_pic_F77='-KPIC'
14461 lt_prog_compiler_static_F77='-Bstatic'
14462 lt_prog_compiler_wl_F77='-Wl,'
14463 ;;
14464 *Sun\ F*)
14465 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14466 lt_prog_compiler_pic_F77='-KPIC'
14467 lt_prog_compiler_static_F77='-Bstatic'
14468 lt_prog_compiler_wl_F77=''
14469 ;;
14470 esac
14471 ;;
14472 esac
14473 ;;
14474
14475 osf3* | osf4* | osf5*)
14476 lt_prog_compiler_wl_F77='-Wl,'
14477 # All OSF/1 code is PIC.
14478 lt_prog_compiler_static_F77='-non_shared'
14479 ;;
14480
14481 rdos*)
14482 lt_prog_compiler_static_F77='-non_shared'
14483 ;;
14484
14485 solaris*)
14486 lt_prog_compiler_pic_F77='-KPIC'
14487 lt_prog_compiler_static_F77='-Bstatic'
14488 case $cc_basename in
14489 f77* | f90* | f95*)
14490 lt_prog_compiler_wl_F77='-Qoption ld ';;
14491 *)
14492 lt_prog_compiler_wl_F77='-Wl,';;
14493 esac
14494 ;;
14495
14496 sunos4*)
14497 lt_prog_compiler_wl_F77='-Qoption ld '
14498 lt_prog_compiler_pic_F77='-PIC'
14499 lt_prog_compiler_static_F77='-Bstatic'
14500 ;;
14501
14502 sysv4 | sysv4.2uw2* | sysv4.3*)
14503 lt_prog_compiler_wl_F77='-Wl,'
14504 lt_prog_compiler_pic_F77='-KPIC'
14505 lt_prog_compiler_static_F77='-Bstatic'
14506 ;;
14507
14508 sysv4*MP*)
14509 if test -d /usr/nec ;then
14510 lt_prog_compiler_pic_F77='-Kconform_pic'
14511 lt_prog_compiler_static_F77='-Bstatic'
14512 fi
14513 ;;
14514
14515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14516 lt_prog_compiler_wl_F77='-Wl,'
14517 lt_prog_compiler_pic_F77='-KPIC'
14518 lt_prog_compiler_static_F77='-Bstatic'
14519 ;;
14520
14521 unicos*)
14522 lt_prog_compiler_wl_F77='-Wl,'
14523 lt_prog_compiler_can_build_shared_F77=no
14524 ;;
14525
14526 uts4*)
14527 lt_prog_compiler_pic_F77='-pic'
14528 lt_prog_compiler_static_F77='-Bstatic'
14529 ;;
14530
14531 *)
14532 lt_prog_compiler_can_build_shared_F77=no
14533 ;;
14534 esac
14535 fi
14536
14537 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14538 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14539
14540 #
14541 # Check to make sure the PIC flag actually works.
14542 #
14543 if test -n "$lt_prog_compiler_pic_F77"; then
14544
14545 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14546 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14547 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14548 $as_echo_n "(cached) " >&6
14549 else
14550 lt_cv_prog_compiler_pic_works_F77=no
14551 ac_outfile=conftest.$ac_objext
14552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14553 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14554 # Insert the option either (1) after the last *FLAGS variable, or
14555 # (2) before a word containing "conftest.", or (3) at the end.
14556 # Note that $ac_compile itself does not contain backslashes and begins
14557 # with a dollar sign (not a hyphen), so the echo should work correctly.
14558 # The option is referenced via a variable to avoid confusing sed.
14559 lt_compile=`echo "$ac_compile" | $SED \
14560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562 -e 's:$: $lt_compiler_flag:'`
14563 (eval echo "\"\$as_me:14563: $lt_compile\"" >&5)
14564 (eval "$lt_compile" 2>conftest.err)
14565 ac_status=$?
14566 cat conftest.err >&5
14567 echo "$as_me:14567: \$? = $ac_status" >&5
14568 if (exit $ac_status) && test -s "$ac_outfile"; then
14569 # The compiler can only warn and ignore the option if not recognized
14570 # So say no if there are warnings other than the usual output.
14571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14574 lt_cv_prog_compiler_pic_works_F77=yes
14575 fi
14576 fi
14577 $rm conftest*
14578
14579 fi
14580 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14581 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14582
14583 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14584 case $lt_prog_compiler_pic_F77 in
14585 "" | " "*) ;;
14586 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14587 esac
14588 else
14589 lt_prog_compiler_pic_F77=
14590 lt_prog_compiler_can_build_shared_F77=no
14591 fi
14592
14593 fi
14594 case $host_os in
14595 # For platforms which do not support PIC, -DPIC is meaningless:
14596 *djgpp*)
14597 lt_prog_compiler_pic_F77=
14598 ;;
14599 *)
14600 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14601 ;;
14602 esac
14603
14604 #
14605 # Check to make sure the static flag actually works.
14606 #
14607 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14608 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14609 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14610 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14611 $as_echo_n "(cached) " >&6
14612 else
14613 lt_cv_prog_compiler_static_works_F77=no
14614 save_LDFLAGS="$LDFLAGS"
14615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14616 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14618 # The linker can only warn and ignore the option if not recognized
14619 # So say no if there are warnings
14620 if test -s conftest.err; then
14621 # Append any errors to the config.log.
14622 cat conftest.err 1>&5
14623 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14625 if diff conftest.exp conftest.er2 >/dev/null; then
14626 lt_cv_prog_compiler_static_works_F77=yes
14627 fi
14628 else
14629 lt_cv_prog_compiler_static_works_F77=yes
14630 fi
14631 fi
14632 $rm -r conftest*
14633 LDFLAGS="$save_LDFLAGS"
14634
14635 fi
14636 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14637 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14638
14639 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14640 :
14641 else
14642 lt_prog_compiler_static_F77=
14643 fi
14644
14645
14646 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14647 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14648 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14649 $as_echo_n "(cached) " >&6
14650 else
14651 lt_cv_prog_compiler_c_o_F77=no
14652 $rm -r conftest 2>/dev/null
14653 mkdir conftest
14654 cd conftest
14655 mkdir out
14656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14657
14658 lt_compiler_flag="-o out/conftest2.$ac_objext"
14659 # Insert the option either (1) after the last *FLAGS variable, or
14660 # (2) before a word containing "conftest.", or (3) at the end.
14661 # Note that $ac_compile itself does not contain backslashes and begins
14662 # with a dollar sign (not a hyphen), so the echo should work correctly.
14663 lt_compile=`echo "$ac_compile" | $SED \
14664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14666 -e 's:$: $lt_compiler_flag:'`
14667 (eval echo "\"\$as_me:14667: $lt_compile\"" >&5)
14668 (eval "$lt_compile" 2>out/conftest.err)
14669 ac_status=$?
14670 cat out/conftest.err >&5
14671 echo "$as_me:14671: \$? = $ac_status" >&5
14672 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14673 then
14674 # The compiler can only warn and ignore the option if not recognized
14675 # So say no if there are warnings
14676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14679 lt_cv_prog_compiler_c_o_F77=yes
14680 fi
14681 fi
14682 chmod u+w . 2>&5
14683 $rm conftest*
14684 # SGI C++ compiler will create directory out/ii_files/ for
14685 # template instantiation
14686 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14687 $rm out/* && rmdir out
14688 cd ..
14689 rmdir conftest
14690 $rm conftest*
14691
14692 fi
14693 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14694 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14695
14696
14697 hard_links="nottested"
14698 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14699 # do not overwrite the value of need_locks provided by the user
14700 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14701 $as_echo_n "checking if we can lock with hard links... " >&6; }
14702 hard_links=yes
14703 $rm conftest*
14704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14705 touch conftest.a
14706 ln conftest.a conftest.b 2>&5 || hard_links=no
14707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14708 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14709 $as_echo "$hard_links" >&6; }
14710 if test "$hard_links" = no; then
14711 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14712 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14713 need_locks=warn
14714 fi
14715 else
14716 need_locks=no
14717 fi
14718
14719 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14720 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14721
14722 runpath_var=
14723 allow_undefined_flag_F77=
14724 enable_shared_with_static_runtimes_F77=no
14725 archive_cmds_F77=
14726 archive_expsym_cmds_F77=
14727 old_archive_From_new_cmds_F77=
14728 old_archive_from_expsyms_cmds_F77=
14729 export_dynamic_flag_spec_F77=
14730 whole_archive_flag_spec_F77=
14731 thread_safe_flag_spec_F77=
14732 hardcode_libdir_flag_spec_F77=
14733 hardcode_libdir_flag_spec_ld_F77=
14734 hardcode_libdir_separator_F77=
14735 hardcode_direct_F77=no
14736 hardcode_minus_L_F77=no
14737 hardcode_shlibpath_var_F77=unsupported
14738 link_all_deplibs_F77=unknown
14739 hardcode_automatic_F77=no
14740 module_cmds_F77=
14741 module_expsym_cmds_F77=
14742 always_export_symbols_F77=no
14743 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14744 # include_expsyms should be a list of space-separated symbols to be *always*
14745 # included in the symbol list
14746 include_expsyms_F77=
14747 # exclude_expsyms can be an extended regexp of symbols to exclude
14748 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14749 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14750 # as well as any symbol that contains `d'.
14751 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14752 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14753 # platforms (ab)use it in PIC code, but their linkers get confused if
14754 # the symbol is explicitly referenced. Since portable code cannot
14755 # rely on this symbol name, it's probably fine to never include it in
14756 # preloaded symbol tables.
14757 # Exclude shared library initialization/finalization symbols.
14758 extract_expsyms_cmds=
14759 # Just being paranoid about ensuring that cc_basename is set.
14760 for cc_temp in $compiler""; do
14761 case $cc_temp in
14762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14764 \-*) ;;
14765 *) break;;
14766 esac
14767 done
14768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14769
14770 case $host_os in
14771 cygwin* | mingw* | pw32*)
14772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14773 # When not using gcc, we currently assume that we are using
14774 # Microsoft Visual C++.
14775 if test "$GCC" != yes; then
14776 with_gnu_ld=no
14777 fi
14778 ;;
14779 interix*)
14780 # we just hope/assume this is gcc and not c89 (= MSVC++)
14781 with_gnu_ld=yes
14782 ;;
14783 openbsd*)
14784 with_gnu_ld=no
14785 ;;
14786 esac
14787
14788 ld_shlibs_F77=yes
14789 if test "$with_gnu_ld" = yes; then
14790 # If archive_cmds runs LD, not CC, wlarc should be empty
14791 wlarc='${wl}'
14792
14793 # Set some defaults for GNU ld with shared library support. These
14794 # are reset later if shared libraries are not supported. Putting them
14795 # here allows them to be overridden if necessary.
14796 runpath_var=LD_RUN_PATH
14797 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14798 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14799 # ancient GNU ld didn't support --whole-archive et. al.
14800 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14801 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14802 else
14803 whole_archive_flag_spec_F77=
14804 fi
14805 supports_anon_versioning=no
14806 case `$LD -v 2>/dev/null` in
14807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14810 *\ 2.11.*) ;; # other 2.11 versions
14811 *) supports_anon_versioning=yes ;;
14812 esac
14813
14814 # See if GNU ld supports shared libraries.
14815 case $host_os in
14816 aix[3-9]*)
14817 # On AIX/PPC, the GNU linker is very broken
14818 if test "$host_cpu" != ia64; then
14819 ld_shlibs_F77=no
14820 cat <<EOF 1>&2
14821
14822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14823 *** to be unable to reliably create shared libraries on AIX.
14824 *** Therefore, libtool is disabling shared libraries support. If you
14825 *** really care for shared libraries, you may want to modify your PATH
14826 *** so that a non-GNU linker is found, and then restart.
14827
14828 EOF
14829 fi
14830 ;;
14831
14832 amigaos*)
14833 archive_cmds_F77='$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)'
14834 hardcode_libdir_flag_spec_F77='-L$libdir'
14835 hardcode_minus_L_F77=yes
14836
14837 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14838 # that the semantics of dynamic libraries on AmigaOS, at least up
14839 # to version 4, is to share data among multiple programs linked
14840 # with the same dynamic library. Since this doesn't match the
14841 # behavior of shared libraries on other platforms, we can't use
14842 # them.
14843 ld_shlibs_F77=no
14844 ;;
14845
14846 beos*)
14847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848 allow_undefined_flag_F77=unsupported
14849 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14850 # support --undefined. This deserves some investigation. FIXME
14851 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852 else
14853 ld_shlibs_F77=no
14854 fi
14855 ;;
14856
14857 cygwin* | mingw* | pw32*)
14858 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14859 # as there is no search path for DLLs.
14860 hardcode_libdir_flag_spec_F77='-L$libdir'
14861 allow_undefined_flag_F77=unsupported
14862 always_export_symbols_F77=no
14863 enable_shared_with_static_runtimes_F77=yes
14864 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14865
14866 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14867 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14868 # If the export-symbols file already is a .def file (1st line
14869 # is EXPORTS), use it as is; otherwise, prepend...
14870 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14871 cp $export_symbols $output_objdir/$soname.def;
14872 else
14873 echo EXPORTS > $output_objdir/$soname.def;
14874 cat $export_symbols >> $output_objdir/$soname.def;
14875 fi~
14876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14877 else
14878 ld_shlibs_F77=no
14879 fi
14880 ;;
14881
14882 interix[3-9]*)
14883 hardcode_direct_F77=no
14884 hardcode_shlibpath_var_F77=no
14885 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14886 export_dynamic_flag_spec_F77='${wl}-E'
14887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14888 # Instead, shared libraries are loaded at an image base (0x10000000 by
14889 # default) and relocated if they conflict, which is a slow very memory
14890 # consuming and fragmenting process. To avoid this, we pick a random,
14891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14893 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14894 archive_expsym_cmds_F77='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'
14895 ;;
14896
14897 gnu* | linux* | k*bsd*-gnu)
14898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14899 tmp_addflag=
14900 case $cc_basename,$host_cpu in
14901 pgcc*) # Portland Group C compiler
14902 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14903 tmp_addflag=' $pic_flag'
14904 ;;
14905 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14906 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14907 tmp_addflag=' $pic_flag -Mnomain' ;;
14908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14909 tmp_addflag=' -i_dynamic' ;;
14910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14911 tmp_addflag=' -i_dynamic -nofor_main' ;;
14912 ifc* | ifort*) # Intel Fortran compiler
14913 tmp_addflag=' -nofor_main' ;;
14914 esac
14915 case `$CC -V 2>&1 | sed 5q` in
14916 *Sun\ C*) # Sun C 5.9
14917 whole_archive_flag_spec_F77='${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'
14918 tmp_sharedflag='-G' ;;
14919 *Sun\ F*) # Sun Fortran 8.3
14920 tmp_sharedflag='-G' ;;
14921 *)
14922 tmp_sharedflag='-shared' ;;
14923 esac
14924 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14925
14926 if test $supports_anon_versioning = yes; then
14927 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14929 $echo "local: *; };" >> $output_objdir/$libname.ver~
14930 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14931 fi
14932 else
14933 ld_shlibs_F77=no
14934 fi
14935 ;;
14936
14937 netbsd*)
14938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14939 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14940 wlarc=
14941 else
14942 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14944 fi
14945 ;;
14946
14947 solaris*)
14948 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14949 ld_shlibs_F77=no
14950 cat <<EOF 1>&2
14951
14952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14953 *** create shared libraries on Solaris systems. Therefore, libtool
14954 *** is disabling shared libraries support. We urge you to upgrade GNU
14955 *** binutils to release 2.9.1 or newer. Another option is to modify
14956 *** your PATH or compiler configuration so that the native linker is
14957 *** used, and then restart.
14958
14959 EOF
14960 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14963 else
14964 ld_shlibs_F77=no
14965 fi
14966 ;;
14967
14968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14969 case `$LD -v 2>&1` in
14970 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14971 ld_shlibs_F77=no
14972 cat <<_LT_EOF 1>&2
14973
14974 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14975 *** reliably create shared libraries on SCO systems. Therefore, libtool
14976 *** is disabling shared libraries support. We urge you to upgrade GNU
14977 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14978 *** your PATH or compiler configuration so that the native linker is
14979 *** used, and then restart.
14980
14981 _LT_EOF
14982 ;;
14983 *)
14984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14985 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14986 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14987 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14988 else
14989 ld_shlibs_F77=no
14990 fi
14991 ;;
14992 esac
14993 ;;
14994
14995 sunos4*)
14996 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14997 wlarc=
14998 hardcode_direct_F77=yes
14999 hardcode_shlibpath_var_F77=no
15000 ;;
15001
15002 *)
15003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15004 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15006 else
15007 ld_shlibs_F77=no
15008 fi
15009 ;;
15010 esac
15011
15012 if test "$ld_shlibs_F77" = no; then
15013 runpath_var=
15014 hardcode_libdir_flag_spec_F77=
15015 export_dynamic_flag_spec_F77=
15016 whole_archive_flag_spec_F77=
15017 fi
15018 else
15019 # PORTME fill in a description of your system's linker (not GNU ld)
15020 case $host_os in
15021 aix3*)
15022 allow_undefined_flag_F77=unsupported
15023 always_export_symbols_F77=yes
15024 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15025 # Note: this linker hardcodes the directories in LIBPATH if there
15026 # are no directories specified by -L.
15027 hardcode_minus_L_F77=yes
15028 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15029 # Neither direct hardcoding nor static linking is supported with a
15030 # broken collect2.
15031 hardcode_direct_F77=unsupported
15032 fi
15033 ;;
15034
15035 aix[4-9]*)
15036 if test "$host_cpu" = ia64; then
15037 # On IA64, the linker does run time linking by default, so we don't
15038 # have to do anything special.
15039 aix_use_runtimelinking=no
15040 exp_sym_flag='-Bexport'
15041 no_entry_flag=""
15042 else
15043 # If we're using GNU nm, then we don't want the "-C" option.
15044 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15045 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15046 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15047 else
15048 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15049 fi
15050 aix_use_runtimelinking=no
15051
15052 # Test if we are trying to use run time linking or normal
15053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15054 # need to do runtime linking.
15055 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15056 for ld_flag in $LDFLAGS; do
15057 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15058 aix_use_runtimelinking=yes
15059 break
15060 fi
15061 done
15062 ;;
15063 esac
15064
15065 exp_sym_flag='-bexport'
15066 no_entry_flag='-bnoentry'
15067 fi
15068
15069 # When large executables or shared objects are built, AIX ld can
15070 # have problems creating the table of contents. If linking a library
15071 # or program results in "error TOC overflow" add -mminimal-toc to
15072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15074
15075 archive_cmds_F77=''
15076 hardcode_direct_F77=yes
15077 hardcode_libdir_separator_F77=':'
15078 link_all_deplibs_F77=yes
15079
15080 if test "$GCC" = yes; then
15081 case $host_os in aix4.[012]|aix4.[012].*)
15082 # We only want to do this on AIX 4.2 and lower, the check
15083 # below for broken collect2 doesn't work under 4.3+
15084 collect2name=`${CC} -print-prog-name=collect2`
15085 if test -f "$collect2name" && \
15086 strings "$collect2name" | grep resolve_lib_name >/dev/null
15087 then
15088 # We have reworked collect2
15089 :
15090 else
15091 # We have old collect2
15092 hardcode_direct_F77=unsupported
15093 # It fails to find uninstalled libraries when the uninstalled
15094 # path is not listed in the libpath. Setting hardcode_minus_L
15095 # to unsupported forces relinking
15096 hardcode_minus_L_F77=yes
15097 hardcode_libdir_flag_spec_F77='-L$libdir'
15098 hardcode_libdir_separator_F77=
15099 fi
15100 ;;
15101 esac
15102 shared_flag='-shared'
15103 if test "$aix_use_runtimelinking" = yes; then
15104 shared_flag="$shared_flag "'${wl}-G'
15105 fi
15106 else
15107 # not using gcc
15108 if test "$host_cpu" = ia64; then
15109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15110 # chokes on -Wl,-G. The following line is correct:
15111 shared_flag='-G'
15112 else
15113 if test "$aix_use_runtimelinking" = yes; then
15114 shared_flag='${wl}-G'
15115 else
15116 shared_flag='${wl}-bM:SRE'
15117 fi
15118 fi
15119 fi
15120
15121 # It seems that -bexpall does not export symbols beginning with
15122 # underscore (_), so it is better to generate a list of symbols to export.
15123 always_export_symbols_F77=yes
15124 if test "$aix_use_runtimelinking" = yes; then
15125 # Warning - without using the other runtime loading flags (-brtl),
15126 # -berok will link without error, but may produce a broken library.
15127 allow_undefined_flag_F77='-berok'
15128 # Determine the default libpath from the value encoded in an empty executable.
15129 cat >conftest.$ac_ext <<_ACEOF
15130 program main
15131
15132 end
15133 _ACEOF
15134 rm -f conftest.$ac_objext conftest$ac_exeext
15135 if { (ac_try="$ac_link"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139 esac
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142 (eval "$ac_link") 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_f77_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest$ac_exeext && {
15152 test "$cross_compiling" = yes ||
15153 $as_test_x conftest$ac_exeext
15154 }; then
15155
15156 lt_aix_libpath_sed='
15157 /Import File Strings/,/^$/ {
15158 /^0/ {
15159 s/^0 *\(.*\)$/\1/
15160 p
15161 }
15162 }'
15163 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15164 # Check for a 64-bit object if we didn't find anything.
15165 if test -z "$aix_libpath"; then
15166 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15167 fi
15168 else
15169 $as_echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172
15173 fi
15174
15175 rm -rf conftest.dSYM
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15179
15180 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15181 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15182 else
15183 if test "$host_cpu" = ia64; then
15184 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15185 allow_undefined_flag_F77="-z nodefs"
15186 archive_expsym_cmds_F77="\$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"
15187 else
15188 # Determine the default libpath from the value encoded in an empty executable.
15189 cat >conftest.$ac_ext <<_ACEOF
15190 program main
15191
15192 end
15193 _ACEOF
15194 rm -f conftest.$ac_objext conftest$ac_exeext
15195 if { (ac_try="$ac_link"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15199 esac
15200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15201 $as_echo "$ac_try_echo") >&5
15202 (eval "$ac_link") 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && {
15209 test -z "$ac_f77_werror_flag" ||
15210 test ! -s conftest.err
15211 } && test -s conftest$ac_exeext && {
15212 test "$cross_compiling" = yes ||
15213 $as_test_x conftest$ac_exeext
15214 }; then
15215
15216 lt_aix_libpath_sed='
15217 /Import File Strings/,/^$/ {
15218 /^0/ {
15219 s/^0 *\(.*\)$/\1/
15220 p
15221 }
15222 }'
15223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15224 # Check for a 64-bit object if we didn't find anything.
15225 if test -z "$aix_libpath"; then
15226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15227 fi
15228 else
15229 $as_echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232
15233 fi
15234
15235 rm -rf conftest.dSYM
15236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15237 conftest$ac_exeext conftest.$ac_ext
15238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15239
15240 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15241 # Warning - without using the other run time loading flags,
15242 # -berok will link without error, but may produce a broken library.
15243 no_undefined_flag_F77=' ${wl}-bernotok'
15244 allow_undefined_flag_F77=' ${wl}-berok'
15245 # Exported symbols can be pulled into shared objects from archives
15246 whole_archive_flag_spec_F77='$convenience'
15247 archive_cmds_need_lc_F77=yes
15248 # This is similar to how AIX traditionally builds its shared libraries.
15249 archive_expsym_cmds_F77="\$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'
15250 fi
15251 fi
15252 ;;
15253
15254 amigaos*)
15255 archive_cmds_F77='$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)'
15256 hardcode_libdir_flag_spec_F77='-L$libdir'
15257 hardcode_minus_L_F77=yes
15258 # see comment about different semantics on the GNU ld section
15259 ld_shlibs_F77=no
15260 ;;
15261
15262 bsdi[45]*)
15263 export_dynamic_flag_spec_F77=-rdynamic
15264 ;;
15265
15266 cygwin* | mingw* | pw32*)
15267 # When not using gcc, we currently assume that we are using
15268 # Microsoft Visual C++.
15269 # hardcode_libdir_flag_spec is actually meaningless, as there is
15270 # no search path for DLLs.
15271 hardcode_libdir_flag_spec_F77=' '
15272 allow_undefined_flag_F77=unsupported
15273 # Tell ltmain to make .lib files, not .a files.
15274 libext=lib
15275 # Tell ltmain to make .dll files, not .so files.
15276 shrext_cmds=".dll"
15277 # FIXME: Setting linknames here is a bad hack.
15278 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15279 # The linker will automatically build a .lib file if we build a DLL.
15280 old_archive_From_new_cmds_F77='true'
15281 # FIXME: Should let the user specify the lib program.
15282 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15283 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15284 enable_shared_with_static_runtimes_F77=yes
15285 ;;
15286
15287 darwin* | rhapsody*)
15288 case $host_os in
15289 rhapsody* | darwin1.[012])
15290 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15291 ;;
15292 *) # Darwin 1.3 on
15293 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15294 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15295 else
15296 case ${MACOSX_DEPLOYMENT_TARGET} in
15297 10.[012])
15298 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15299 ;;
15300 10.*)
15301 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15302 ;;
15303 esac
15304 fi
15305 ;;
15306 esac
15307 archive_cmds_need_lc_F77=no
15308 hardcode_direct_F77=no
15309 hardcode_automatic_F77=yes
15310 hardcode_shlibpath_var_F77=unsupported
15311 whole_archive_flag_spec_F77=''
15312 link_all_deplibs_F77=yes
15313 if test "$GCC" = yes ; then
15314 output_verbose_link_cmd='echo'
15315 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15316 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15317 archive_expsym_cmds_F77="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}"
15318 module_expsym_cmds_F77="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}"
15319 else
15320 case $cc_basename in
15321 xlc*)
15322 output_verbose_link_cmd='echo'
15323 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15324 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15325 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15326 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15327 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15328 ;;
15329 *)
15330 ld_shlibs_F77=no
15331 ;;
15332 esac
15333 fi
15334 ;;
15335
15336 dgux*)
15337 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15338 hardcode_libdir_flag_spec_F77='-L$libdir'
15339 hardcode_shlibpath_var_F77=no
15340 ;;
15341
15342 freebsd1*)
15343 ld_shlibs_F77=no
15344 ;;
15345
15346 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15347 # support. Future versions do this automatically, but an explicit c++rt0.o
15348 # does not break anything, and helps significantly (at the cost of a little
15349 # extra space).
15350 freebsd2.2*)
15351 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15352 hardcode_libdir_flag_spec_F77='-R$libdir'
15353 hardcode_direct_F77=yes
15354 hardcode_shlibpath_var_F77=no
15355 ;;
15356
15357 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15358 freebsd2*)
15359 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15360 hardcode_direct_F77=yes
15361 hardcode_minus_L_F77=yes
15362 hardcode_shlibpath_var_F77=no
15363 ;;
15364
15365 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15366 freebsd* | dragonfly*)
15367 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15368 hardcode_libdir_flag_spec_F77='-R$libdir'
15369 hardcode_direct_F77=yes
15370 hardcode_shlibpath_var_F77=no
15371 ;;
15372
15373 hpux9*)
15374 if test "$GCC" = yes; then
15375 archive_cmds_F77='$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'
15376 else
15377 archive_cmds_F77='$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'
15378 fi
15379 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15380 hardcode_libdir_separator_F77=:
15381 hardcode_direct_F77=yes
15382
15383 # hardcode_minus_L: Not really in the search PATH,
15384 # but as the default location of the library.
15385 hardcode_minus_L_F77=yes
15386 export_dynamic_flag_spec_F77='${wl}-E'
15387 ;;
15388
15389 hpux10*)
15390 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15391 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15392 else
15393 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15394 fi
15395 if test "$with_gnu_ld" = no; then
15396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15397 hardcode_libdir_separator_F77=:
15398
15399 hardcode_direct_F77=yes
15400 export_dynamic_flag_spec_F77='${wl}-E'
15401
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L_F77=yes
15405 fi
15406 ;;
15407
15408 hpux11*)
15409 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15410 case $host_cpu in
15411 hppa*64*)
15412 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15413 ;;
15414 ia64*)
15415 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15416 ;;
15417 *)
15418 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15419 ;;
15420 esac
15421 else
15422 case $host_cpu in
15423 hppa*64*)
15424 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15425 ;;
15426 ia64*)
15427 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15428 ;;
15429 *)
15430 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15431 ;;
15432 esac
15433 fi
15434 if test "$with_gnu_ld" = no; then
15435 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15436 hardcode_libdir_separator_F77=:
15437
15438 case $host_cpu in
15439 hppa*64*|ia64*)
15440 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15441 hardcode_direct_F77=no
15442 hardcode_shlibpath_var_F77=no
15443 ;;
15444 *)
15445 hardcode_direct_F77=yes
15446 export_dynamic_flag_spec_F77='${wl}-E'
15447
15448 # hardcode_minus_L: Not really in the search PATH,
15449 # but as the default location of the library.
15450 hardcode_minus_L_F77=yes
15451 ;;
15452 esac
15453 fi
15454 ;;
15455
15456 irix5* | irix6* | nonstopux*)
15457 if test "$GCC" = yes; then
15458 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15459 else
15460 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15461 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15462 fi
15463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464 hardcode_libdir_separator_F77=:
15465 link_all_deplibs_F77=yes
15466 ;;
15467
15468 netbsd*)
15469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15470 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15471 else
15472 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15473 fi
15474 hardcode_libdir_flag_spec_F77='-R$libdir'
15475 hardcode_direct_F77=yes
15476 hardcode_shlibpath_var_F77=no
15477 ;;
15478
15479 newsos6)
15480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15481 hardcode_direct_F77=yes
15482 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15483 hardcode_libdir_separator_F77=:
15484 hardcode_shlibpath_var_F77=no
15485 ;;
15486
15487 openbsd*)
15488 if test -f /usr/libexec/ld.so; then
15489 hardcode_direct_F77=yes
15490 hardcode_shlibpath_var_F77=no
15491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15492 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15493 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15494 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15495 export_dynamic_flag_spec_F77='${wl}-E'
15496 else
15497 case $host_os in
15498 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15499 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_libdir_flag_spec_F77='-R$libdir'
15501 ;;
15502 *)
15503 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15504 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15505 ;;
15506 esac
15507 fi
15508 else
15509 ld_shlibs_F77=no
15510 fi
15511 ;;
15512
15513 os2*)
15514 hardcode_libdir_flag_spec_F77='-L$libdir'
15515 hardcode_minus_L_F77=yes
15516 allow_undefined_flag_F77=unsupported
15517 archive_cmds_F77='$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'
15518 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15519 ;;
15520
15521 osf3*)
15522 if test "$GCC" = yes; then
15523 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15524 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15525 else
15526 allow_undefined_flag_F77=' -expect_unresolved \*'
15527 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15528 fi
15529 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15530 hardcode_libdir_separator_F77=:
15531 ;;
15532
15533 osf4* | osf5*) # as osf3* with the addition of -msym flag
15534 if test "$GCC" = yes; then
15535 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15536 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15537 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15538 else
15539 allow_undefined_flag_F77=' -expect_unresolved \*'
15540 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15541 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15542 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15543
15544 # Both c and cxx compiler support -rpath directly
15545 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15546 fi
15547 hardcode_libdir_separator_F77=:
15548 ;;
15549
15550 solaris*)
15551 no_undefined_flag_F77=' -z text'
15552 if test "$GCC" = yes; then
15553 wlarc='${wl}'
15554 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15556 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15557 else
15558 wlarc=''
15559 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15562 fi
15563 hardcode_libdir_flag_spec_F77='-R$libdir'
15564 hardcode_shlibpath_var_F77=no
15565 case $host_os in
15566 solaris2.[0-5] | solaris2.[0-5].*) ;;
15567 *)
15568 # The compiler driver will combine and reorder linker options,
15569 # but understands `-z linker_flag'. GCC discards it without `$wl',
15570 # but is careful enough not to reorder.
15571 # Supported since Solaris 2.6 (maybe 2.5.1?)
15572 if test "$GCC" = yes; then
15573 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15574 else
15575 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15576 fi
15577 ;;
15578 esac
15579 link_all_deplibs_F77=yes
15580 ;;
15581
15582 sunos4*)
15583 if test "x$host_vendor" = xsequent; then
15584 # Use $CC to link under sequent, because it throws in some extra .o
15585 # files that make .init and .fini sections work.
15586 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15587 else
15588 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15589 fi
15590 hardcode_libdir_flag_spec_F77='-L$libdir'
15591 hardcode_direct_F77=yes
15592 hardcode_minus_L_F77=yes
15593 hardcode_shlibpath_var_F77=no
15594 ;;
15595
15596 sysv4)
15597 case $host_vendor in
15598 sni)
15599 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600 hardcode_direct_F77=yes # is this really true???
15601 ;;
15602 siemens)
15603 ## LD is ld it makes a PLAMLIB
15604 ## CC just makes a GrossModule.
15605 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15606 reload_cmds_F77='$CC -r -o $output$reload_objs'
15607 hardcode_direct_F77=no
15608 ;;
15609 motorola)
15610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15612 ;;
15613 esac
15614 runpath_var='LD_RUN_PATH'
15615 hardcode_shlibpath_var_F77=no
15616 ;;
15617
15618 sysv4.3*)
15619 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_shlibpath_var_F77=no
15621 export_dynamic_flag_spec_F77='-Bexport'
15622 ;;
15623
15624 sysv4*MP*)
15625 if test -d /usr/nec; then
15626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627 hardcode_shlibpath_var_F77=no
15628 runpath_var=LD_RUN_PATH
15629 hardcode_runpath_var=yes
15630 ld_shlibs_F77=yes
15631 fi
15632 ;;
15633
15634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15635 no_undefined_flag_F77='${wl}-z,text'
15636 archive_cmds_need_lc_F77=no
15637 hardcode_shlibpath_var_F77=no
15638 runpath_var='LD_RUN_PATH'
15639
15640 if test "$GCC" = yes; then
15641 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643 else
15644 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 fi
15647 ;;
15648
15649 sysv5* | sco3.2v5* | sco5v6*)
15650 # Note: We can NOT use -z defs as we might desire, because we do not
15651 # link with -lc, and that would cause any symbols used from libc to
15652 # always be unresolved, which means just about no library would
15653 # ever link correctly. If we're not using GNU ld we use -z text
15654 # though, which does catch some bad symbols but isn't as heavy-handed
15655 # as -z defs.
15656 no_undefined_flag_F77='${wl}-z,text'
15657 allow_undefined_flag_F77='${wl}-z,nodefs'
15658 archive_cmds_need_lc_F77=no
15659 hardcode_shlibpath_var_F77=no
15660 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15661 hardcode_libdir_separator_F77=':'
15662 link_all_deplibs_F77=yes
15663 export_dynamic_flag_spec_F77='${wl}-Bexport'
15664 runpath_var='LD_RUN_PATH'
15665
15666 if test "$GCC" = yes; then
15667 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 else
15670 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15672 fi
15673 ;;
15674
15675 uts4*)
15676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_libdir_flag_spec_F77='-L$libdir'
15678 hardcode_shlibpath_var_F77=no
15679 ;;
15680
15681 *)
15682 ld_shlibs_F77=no
15683 ;;
15684 esac
15685 fi
15686
15687 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15688 $as_echo "$ld_shlibs_F77" >&6; }
15689 test "$ld_shlibs_F77" = no && can_build_shared=no
15690
15691 #
15692 # Do we need to explicitly link libc?
15693 #
15694 case "x$archive_cmds_need_lc_F77" in
15695 x|xyes)
15696 # Assume -lc should be added
15697 archive_cmds_need_lc_F77=yes
15698
15699 if test "$enable_shared" = yes && test "$GCC" = yes; then
15700 case $archive_cmds_F77 in
15701 *'~'*)
15702 # FIXME: we may have to deal with multi-command sequences.
15703 ;;
15704 '$CC '*)
15705 # Test whether the compiler implicitly links with -lc since on some
15706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15707 # to ld, don't add -lc before -lgcc.
15708 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15709 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15710 $rm conftest*
15711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15712
15713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15714 (eval $ac_compile) 2>&5
15715 ac_status=$?
15716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } 2>conftest.err; then
15718 soname=conftest
15719 lib=conftest
15720 libobjs=conftest.$ac_objext
15721 deplibs=
15722 wl=$lt_prog_compiler_wl_F77
15723 pic_flag=$lt_prog_compiler_pic_F77
15724 compiler_flags=-v
15725 linker_flags=-v
15726 verstring=
15727 output_objdir=.
15728 libname=conftest
15729 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15730 allow_undefined_flag_F77=
15731 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15732 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15733 ac_status=$?
15734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }
15736 then
15737 archive_cmds_need_lc_F77=no
15738 else
15739 archive_cmds_need_lc_F77=yes
15740 fi
15741 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15742 else
15743 cat conftest.err 1>&5
15744 fi
15745 $rm conftest*
15746 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15747 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15748 ;;
15749 esac
15750 fi
15751 ;;
15752 esac
15753
15754 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15755 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15756 library_names_spec=
15757 libname_spec='lib$name'
15758 soname_spec=
15759 shrext_cmds=".so"
15760 postinstall_cmds=
15761 postuninstall_cmds=
15762 finish_cmds=
15763 finish_eval=
15764 shlibpath_var=
15765 shlibpath_overrides_runpath=unknown
15766 version_type=none
15767 dynamic_linker="$host_os ld.so"
15768 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15769
15770 need_lib_prefix=unknown
15771 hardcode_into_libs=no
15772
15773 # when you set need_version to no, make sure it does not cause -set_version
15774 # flags to be left without arguments
15775 need_version=unknown
15776
15777 case $host_os in
15778 aix3*)
15779 version_type=linux
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15781 shlibpath_var=LIBPATH
15782
15783 # AIX 3 has no versioning support, so we append a major version to the name.
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 ;;
15786
15787 aix[4-9]*)
15788 version_type=linux
15789 need_lib_prefix=no
15790 need_version=no
15791 hardcode_into_libs=yes
15792 if test "$host_cpu" = ia64; then
15793 # AIX 5 supports IA64
15794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 else
15797 # With GCC up to 2.95.x, collect2 would create an import file
15798 # for dependence libraries. The import file would start with
15799 # the line `#! .'. This would cause the generated library to
15800 # depend on `.', always an invalid library. This was fixed in
15801 # development snapshots of GCC prior to 3.0.
15802 case $host_os in
15803 aix4 | aix4.[01] | aix4.[01].*)
15804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15805 echo ' yes '
15806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15807 :
15808 else
15809 can_build_shared=no
15810 fi
15811 ;;
15812 esac
15813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15814 # soname into executable. Probably we can add versioning support to
15815 # collect2, so additional links can be useful in future.
15816 if test "$aix_use_runtimelinking" = yes; then
15817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15818 # instead of lib<name>.a to let people know that these are not
15819 # typical AIX shared libraries.
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 else
15822 # We preserve .a as extension for shared libraries through AIX4.2
15823 # and later when we are not doing run time linking.
15824 library_names_spec='${libname}${release}.a $libname.a'
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 fi
15827 shlibpath_var=LIBPATH
15828 fi
15829 ;;
15830
15831 amigaos*)
15832 library_names_spec='$libname.ixlibrary $libname.a'
15833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15834 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'
15835 ;;
15836
15837 beos*)
15838 library_names_spec='${libname}${shared_ext}'
15839 dynamic_linker="$host_os ld.so"
15840 shlibpath_var=LIBRARY_PATH
15841 ;;
15842
15843 bsdi[45]*)
15844 version_type=linux
15845 need_version=no
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15852 # the default ld.so.conf also contains /usr/contrib/lib and
15853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15854 # libtool to hard-code these into programs
15855 ;;
15856
15857 cygwin* | mingw* | pw32*)
15858 version_type=windows
15859 shrext_cmds=".dll"
15860 need_version=no
15861 need_lib_prefix=no
15862
15863 case $GCC,$host_os in
15864 yes,cygwin* | yes,mingw* | yes,pw32*)
15865 library_names_spec='$libname.dll.a'
15866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15867 postinstall_cmds='base_file=`basename \${file}`~
15868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15869 dldir=$destdir/`dirname \$dlpath`~
15870 test -d \$dldir || mkdir -p \$dldir~
15871 $install_prog $dir/$dlname \$dldir/$dlname~
15872 chmod a+x \$dldir/$dlname'
15873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15874 dlpath=$dir/\$dldll~
15875 $rm \$dlpath'
15876 shlibpath_overrides_runpath=yes
15877
15878 case $host_os in
15879 cygwin*)
15880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15883 ;;
15884 mingw*)
15885 # MinGW DLLs use traditional 'lib' prefix
15886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15888 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15889 # It is most probably a Windows format PATH printed by
15890 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15891 # path with ; separators, and with drive letters. We can handle the
15892 # drive letters (cygwin fileutils understands them), so leave them,
15893 # especially as we might pass files found there to a mingw objdump,
15894 # which wouldn't understand a cygwinified path. Ahh.
15895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15896 else
15897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15898 fi
15899 ;;
15900 pw32*)
15901 # pw32 DLLs use 'pw' prefix rather than 'lib'
15902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903 ;;
15904 esac
15905 ;;
15906
15907 *)
15908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15909 ;;
15910 esac
15911 dynamic_linker='Win32 ld.exe'
15912 # FIXME: first we should search . and the directory the executable is in
15913 shlibpath_var=PATH
15914 ;;
15915
15916 darwin* | rhapsody*)
15917 dynamic_linker="$host_os dyld"
15918 version_type=darwin
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15922 soname_spec='${libname}${release}${major}$shared_ext'
15923 shlibpath_overrides_runpath=yes
15924 shlibpath_var=DYLD_LIBRARY_PATH
15925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15926
15927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15928 ;;
15929
15930 dgux*)
15931 version_type=linux
15932 need_lib_prefix=no
15933 need_version=no
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 ;;
15938
15939 freebsd1*)
15940 dynamic_linker=no
15941 ;;
15942
15943 freebsd* | dragonfly*)
15944 # DragonFly does not have aout. When/if they implement a new
15945 # versioning mechanism, adjust this.
15946 if test -x /usr/bin/objformat; then
15947 objformat=`/usr/bin/objformat`
15948 else
15949 case $host_os in
15950 freebsd[123]*) objformat=aout ;;
15951 *) objformat=elf ;;
15952 esac
15953 fi
15954 version_type=freebsd-$objformat
15955 case $version_type in
15956 freebsd-elf*)
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15958 need_version=no
15959 need_lib_prefix=no
15960 ;;
15961 freebsd-*)
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15963 need_version=yes
15964 ;;
15965 esac
15966 shlibpath_var=LD_LIBRARY_PATH
15967 case $host_os in
15968 freebsd2*)
15969 shlibpath_overrides_runpath=yes
15970 ;;
15971 freebsd3.[01]* | freebsdelf3.[01]*)
15972 shlibpath_overrides_runpath=yes
15973 hardcode_into_libs=yes
15974 ;;
15975 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15976 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15977 shlibpath_overrides_runpath=no
15978 hardcode_into_libs=yes
15979 ;;
15980 *) # from 4.6 on, and DragonFly
15981 shlibpath_overrides_runpath=yes
15982 hardcode_into_libs=yes
15983 ;;
15984 esac
15985 ;;
15986
15987 gnu*)
15988 version_type=linux
15989 need_lib_prefix=no
15990 need_version=no
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 hardcode_into_libs=yes
15995 ;;
15996
15997 hpux9* | hpux10* | hpux11*)
15998 # Give a soname corresponding to the major version so that dld.sl refuses to
15999 # link against other versions.
16000 version_type=sunos
16001 need_lib_prefix=no
16002 need_version=no
16003 case $host_cpu in
16004 ia64*)
16005 shrext_cmds='.so'
16006 hardcode_into_libs=yes
16007 dynamic_linker="$host_os dld.so"
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 if test "X$HPUX_IA64_MODE" = X32; then
16013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16014 else
16015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16016 fi
16017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018 ;;
16019 hppa*64*)
16020 shrext_cmds='.sl'
16021 hardcode_into_libs=yes
16022 dynamic_linker="$host_os dld.sl"
16023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16029 ;;
16030 *)
16031 shrext_cmds='.sl'
16032 dynamic_linker="$host_os dld.sl"
16033 shlibpath_var=SHLIB_PATH
16034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 ;;
16038 esac
16039 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16040 postinstall_cmds='chmod 555 $lib'
16041 ;;
16042
16043 interix[3-9]*)
16044 version_type=linux
16045 need_lib_prefix=no
16046 need_version=no
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 hardcode_into_libs=yes
16053 ;;
16054
16055 irix5* | irix6* | nonstopux*)
16056 case $host_os in
16057 nonstopux*) version_type=nonstopux ;;
16058 *)
16059 if test "$lt_cv_prog_gnu_ld" = yes; then
16060 version_type=linux
16061 else
16062 version_type=irix
16063 fi ;;
16064 esac
16065 need_lib_prefix=no
16066 need_version=no
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16069 case $host_os in
16070 irix5* | nonstopux*)
16071 libsuff= shlibsuff=
16072 ;;
16073 *)
16074 case $LD in # libtool.m4 will add one of these switches to LD
16075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16076 libsuff= shlibsuff= libmagic=32-bit;;
16077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16078 libsuff=32 shlibsuff=N32 libmagic=N32;;
16079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16081 *) libsuff= shlibsuff= libmagic=never-match;;
16082 esac
16083 ;;
16084 esac
16085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16086 shlibpath_overrides_runpath=no
16087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16089 hardcode_into_libs=yes
16090 ;;
16091
16092 # No shared lib support for Linux oldld, aout, or coff.
16093 linux*oldld* | linux*aout* | linux*coff*)
16094 dynamic_linker=no
16095 ;;
16096
16097 # This must be Linux ELF.
16098 linux* | k*bsd*-gnu)
16099 version_type=linux
16100 need_lib_prefix=no
16101 need_version=no
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 shlibpath_overrides_runpath=no
16107 # This implies no fast_install, which is unacceptable.
16108 # Some rework will be needed to allow for fast_install
16109 # before this can be enabled.
16110 hardcode_into_libs=yes
16111
16112 # Append ld.so.conf contents to the search path
16113 if test -f /etc/ld.so.conf; then
16114 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' ' '`
16115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16116 fi
16117
16118 # We used to test for /lib/ld.so.1 and disable shared libraries on
16119 # powerpc, because MkLinux only supported shared libraries with the
16120 # GNU dynamic linker. Since this was broken with cross compilers,
16121 # most powerpc-linux boxes support dynamic linking these days and
16122 # people can always --disable-shared, the test was removed, and we
16123 # assume the GNU/Linux dynamic linker is in use.
16124 dynamic_linker='GNU/Linux ld.so'
16125 ;;
16126
16127 netbsd*)
16128 version_type=sunos
16129 need_lib_prefix=no
16130 need_version=no
16131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16134 dynamic_linker='NetBSD (a.out) ld.so'
16135 else
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 dynamic_linker='NetBSD ld.elf_so'
16139 fi
16140 shlibpath_var=LD_LIBRARY_PATH
16141 shlibpath_overrides_runpath=yes
16142 hardcode_into_libs=yes
16143 ;;
16144
16145 newsos6)
16146 version_type=linux
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 ;;
16151
16152 nto-qnx*)
16153 version_type=linux
16154 need_lib_prefix=no
16155 need_version=no
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 ;;
16161
16162 openbsd*)
16163 version_type=sunos
16164 sys_lib_dlsearch_path_spec="/usr/lib"
16165 need_lib_prefix=no
16166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16167 case $host_os in
16168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16169 *) need_version=no ;;
16170 esac
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16175 case $host_os in
16176 openbsd2.[89] | openbsd2.[89].*)
16177 shlibpath_overrides_runpath=no
16178 ;;
16179 *)
16180 shlibpath_overrides_runpath=yes
16181 ;;
16182 esac
16183 else
16184 shlibpath_overrides_runpath=yes
16185 fi
16186 ;;
16187
16188 os2*)
16189 libname_spec='$name'
16190 shrext_cmds=".dll"
16191 need_lib_prefix=no
16192 library_names_spec='$libname${shared_ext} $libname.a'
16193 dynamic_linker='OS/2 ld.exe'
16194 shlibpath_var=LIBPATH
16195 ;;
16196
16197 osf3* | osf4* | osf5*)
16198 version_type=osf
16199 need_lib_prefix=no
16200 need_version=no
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16206 ;;
16207
16208 rdos*)
16209 dynamic_linker=no
16210 ;;
16211
16212 solaris*)
16213 version_type=linux
16214 need_lib_prefix=no
16215 need_version=no
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes
16220 hardcode_into_libs=yes
16221 # ldd complains unless libraries are executable
16222 postinstall_cmds='chmod +x $lib'
16223 ;;
16224
16225 sunos4*)
16226 version_type=sunos
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 if test "$with_gnu_ld" = yes; then
16232 need_lib_prefix=no
16233 fi
16234 need_version=yes
16235 ;;
16236
16237 sysv4 | sysv4.3*)
16238 version_type=linux
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 case $host_vendor in
16243 sni)
16244 shlibpath_overrides_runpath=no
16245 need_lib_prefix=no
16246 export_dynamic_flag_spec='${wl}-Blargedynsym'
16247 runpath_var=LD_RUN_PATH
16248 ;;
16249 siemens)
16250 need_lib_prefix=no
16251 ;;
16252 motorola)
16253 need_lib_prefix=no
16254 need_version=no
16255 shlibpath_overrides_runpath=no
16256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16257 ;;
16258 esac
16259 ;;
16260
16261 sysv4*MP*)
16262 if test -d /usr/nec ;then
16263 version_type=linux
16264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16265 soname_spec='$libname${shared_ext}.$major'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 fi
16268 ;;
16269
16270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16271 version_type=freebsd-elf
16272 need_lib_prefix=no
16273 need_version=no
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 shlibpath_var=LD_LIBRARY_PATH
16277 hardcode_into_libs=yes
16278 if test "$with_gnu_ld" = yes; then
16279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16280 shlibpath_overrides_runpath=no
16281 else
16282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16283 shlibpath_overrides_runpath=yes
16284 case $host_os in
16285 sco3.2v5*)
16286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16287 ;;
16288 esac
16289 fi
16290 sys_lib_dlsearch_path_spec='/usr/lib'
16291 ;;
16292
16293 uts4*)
16294 version_type=linux
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 ;;
16299
16300 *)
16301 dynamic_linker=no
16302 ;;
16303 esac
16304 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16305 $as_echo "$dynamic_linker" >&6; }
16306 test "$dynamic_linker" = no && can_build_shared=no
16307
16308 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16309 $as_echo_n "(cached) " >&6
16310 else
16311 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16312 fi
16313
16314 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16315 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16316 $as_echo_n "(cached) " >&6
16317 else
16318 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16319 fi
16320
16321 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16322
16323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16324 if test "$GCC" = yes; then
16325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16326 fi
16327
16328 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16330 hardcode_action_F77=
16331 if test -n "$hardcode_libdir_flag_spec_F77" || \
16332 test -n "$runpath_var_F77" || \
16333 test "X$hardcode_automatic_F77" = "Xyes" ; then
16334
16335 # We can hardcode non-existant directories.
16336 if test "$hardcode_direct_F77" != no &&
16337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16338 # have to relink, otherwise we might link with an installed library
16339 # when we should be linking with a yet-to-be-installed one
16340 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16341 test "$hardcode_minus_L_F77" != no; then
16342 # Linking always hardcodes the temporary library directory.
16343 hardcode_action_F77=relink
16344 else
16345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16346 hardcode_action_F77=immediate
16347 fi
16348 else
16349 # We cannot hardcode anything, or else we can only hardcode existing
16350 # directories.
16351 hardcode_action_F77=unsupported
16352 fi
16353 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16354 $as_echo "$hardcode_action_F77" >&6; }
16355
16356 if test "$hardcode_action_F77" = relink; then
16357 # Fast installation is not supported
16358 enable_fast_install=no
16359 elif test "$shlibpath_overrides_runpath" = yes ||
16360 test "$enable_shared" = no; then
16361 # Fast installation is not necessary
16362 enable_fast_install=needless
16363 fi
16364
16365
16366 # The else clause should only fire when bootstrapping the
16367 # libtool distribution, otherwise you forgot to ship ltmain.sh
16368 # with your package, and you will get complaints that there are
16369 # no rules to generate ltmain.sh.
16370 if test -f "$ltmain"; then
16371 # See if we are running on zsh, and set the options which allow our commands through
16372 # without removal of \ escapes.
16373 if test -n "${ZSH_VERSION+set}" ; then
16374 setopt NO_GLOB_SUBST
16375 fi
16376 # Now quote all the things that may contain metacharacters while being
16377 # careful not to overquote the AC_SUBSTed values. We take copies of the
16378 # variables and quote the copies for generation of the libtool script.
16379 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16380 SED SHELL STRIP \
16381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16383 deplibs_check_method reload_flag reload_cmds need_locks \
16384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16385 lt_cv_sys_global_symbol_to_c_name_address \
16386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16387 old_postinstall_cmds old_postuninstall_cmds \
16388 compiler_F77 \
16389 CC_F77 \
16390 LD_F77 \
16391 lt_prog_compiler_wl_F77 \
16392 lt_prog_compiler_pic_F77 \
16393 lt_prog_compiler_static_F77 \
16394 lt_prog_compiler_no_builtin_flag_F77 \
16395 export_dynamic_flag_spec_F77 \
16396 thread_safe_flag_spec_F77 \
16397 whole_archive_flag_spec_F77 \
16398 enable_shared_with_static_runtimes_F77 \
16399 old_archive_cmds_F77 \
16400 old_archive_from_new_cmds_F77 \
16401 predep_objects_F77 \
16402 postdep_objects_F77 \
16403 predeps_F77 \
16404 postdeps_F77 \
16405 compiler_lib_search_path_F77 \
16406 compiler_lib_search_dirs_F77 \
16407 archive_cmds_F77 \
16408 archive_expsym_cmds_F77 \
16409 postinstall_cmds_F77 \
16410 postuninstall_cmds_F77 \
16411 old_archive_from_expsyms_cmds_F77 \
16412 allow_undefined_flag_F77 \
16413 no_undefined_flag_F77 \
16414 export_symbols_cmds_F77 \
16415 hardcode_libdir_flag_spec_F77 \
16416 hardcode_libdir_flag_spec_ld_F77 \
16417 hardcode_libdir_separator_F77 \
16418 hardcode_automatic_F77 \
16419 module_cmds_F77 \
16420 module_expsym_cmds_F77 \
16421 lt_cv_prog_compiler_c_o_F77 \
16422 fix_srcfile_path_F77 \
16423 exclude_expsyms_F77 \
16424 include_expsyms_F77; do
16425
16426 case $var in
16427 old_archive_cmds_F77 | \
16428 old_archive_from_new_cmds_F77 | \
16429 archive_cmds_F77 | \
16430 archive_expsym_cmds_F77 | \
16431 module_cmds_F77 | \
16432 module_expsym_cmds_F77 | \
16433 old_archive_from_expsyms_cmds_F77 | \
16434 export_symbols_cmds_F77 | \
16435 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16436 postinstall_cmds | postuninstall_cmds | \
16437 old_postinstall_cmds | old_postuninstall_cmds | \
16438 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16439 # Double-quote double-evaled strings.
16440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16441 ;;
16442 *)
16443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16444 ;;
16445 esac
16446 done
16447
16448 case $lt_echo in
16449 *'\$0 --fallback-echo"')
16450 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16451 ;;
16452 esac
16453
16454 cfgfile="$ofile"
16455
16456 cat <<__EOF__ >> "$cfgfile"
16457 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16458
16459 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16460
16461 # Shell to use when invoking shell scripts.
16462 SHELL=$lt_SHELL
16463
16464 # Whether or not to build shared libraries.
16465 build_libtool_libs=$enable_shared
16466
16467 # Whether or not to build static libraries.
16468 build_old_libs=$enable_static
16469
16470 # Whether or not to add -lc for building shared libraries.
16471 build_libtool_need_lc=$archive_cmds_need_lc_F77
16472
16473 # Whether or not to disallow shared libs when runtime libs are static
16474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16475
16476 # Whether or not to optimize for fast installation.
16477 fast_install=$enable_fast_install
16478
16479 # The host system.
16480 host_alias=$host_alias
16481 host=$host
16482 host_os=$host_os
16483
16484 # The build system.
16485 build_alias=$build_alias
16486 build=$build
16487 build_os=$build_os
16488
16489 # An echo program that does not interpret backslashes.
16490 echo=$lt_echo
16491
16492 # The archiver.
16493 AR=$lt_AR
16494 AR_FLAGS=$lt_AR_FLAGS
16495
16496 # A C compiler.
16497 LTCC=$lt_LTCC
16498
16499 # LTCC compiler flags.
16500 LTCFLAGS=$lt_LTCFLAGS
16501
16502 # A language-specific compiler.
16503 CC=$lt_compiler_F77
16504
16505 # Is the compiler the GNU C compiler?
16506 with_gcc=$GCC_F77
16507
16508 # An ERE matcher.
16509 EGREP=$lt_EGREP
16510
16511 # The linker used to build libraries.
16512 LD=$lt_LD_F77
16513
16514 # Whether we need hard or soft links.
16515 LN_S=$lt_LN_S
16516
16517 # A BSD-compatible nm program.
16518 NM=$lt_NM
16519
16520 # A symbol stripping program
16521 STRIP=$lt_STRIP
16522
16523 # Used to examine libraries when file_magic_cmd begins "file"
16524 MAGIC_CMD=$MAGIC_CMD
16525
16526 # Used on cygwin: DLL creation program.
16527 DLLTOOL="$DLLTOOL"
16528
16529 # Used on cygwin: object dumper.
16530 OBJDUMP="$OBJDUMP"
16531
16532 # Used on cygwin: assembler.
16533 AS="$AS"
16534
16535 # The name of the directory that contains temporary libtool files.
16536 objdir=$objdir
16537
16538 # How to create reloadable object files.
16539 reload_flag=$lt_reload_flag
16540 reload_cmds=$lt_reload_cmds
16541
16542 # How to pass a linker flag through the compiler.
16543 wl=$lt_lt_prog_compiler_wl_F77
16544
16545 # Object file suffix (normally "o").
16546 objext="$ac_objext"
16547
16548 # Old archive suffix (normally "a").
16549 libext="$libext"
16550
16551 # Shared library suffix (normally ".so").
16552 shrext_cmds='$shrext_cmds'
16553
16554 # Executable file suffix (normally "").
16555 exeext="$exeext"
16556
16557 # Additional compiler flags for building library objects.
16558 pic_flag=$lt_lt_prog_compiler_pic_F77
16559 pic_mode=$pic_mode
16560
16561 # What is the maximum length of a command?
16562 max_cmd_len=$lt_cv_sys_max_cmd_len
16563
16564 # Does compiler simultaneously support -c and -o options?
16565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16566
16567 # Must we lock files when doing compilation?
16568 need_locks=$lt_need_locks
16569
16570 # Do we need the lib prefix for modules?
16571 need_lib_prefix=$need_lib_prefix
16572
16573 # Do we need a version for libraries?
16574 need_version=$need_version
16575
16576 # Whether dlopen is supported.
16577 dlopen_support=$enable_dlopen
16578
16579 # Whether dlopen of programs is supported.
16580 dlopen_self=$enable_dlopen_self
16581
16582 # Whether dlopen of statically linked programs is supported.
16583 dlopen_self_static=$enable_dlopen_self_static
16584
16585 # Compiler flag to prevent dynamic linking.
16586 link_static_flag=$lt_lt_prog_compiler_static_F77
16587
16588 # Compiler flag to turn off builtin functions.
16589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16590
16591 # Compiler flag to allow reflexive dlopens.
16592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16593
16594 # Compiler flag to generate shared objects directly from archives.
16595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16596
16597 # Compiler flag to generate thread-safe objects.
16598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16599
16600 # Library versioning type.
16601 version_type=$version_type
16602
16603 # Format of library name prefix.
16604 libname_spec=$lt_libname_spec
16605
16606 # List of archive names. First name is the real one, the rest are links.
16607 # The last name is the one that the linker finds with -lNAME.
16608 library_names_spec=$lt_library_names_spec
16609
16610 # The coded name of the library, if different from the real name.
16611 soname_spec=$lt_soname_spec
16612
16613 # Commands used to build and install an old-style archive.
16614 RANLIB=$lt_RANLIB
16615 old_archive_cmds=$lt_old_archive_cmds_F77
16616 old_postinstall_cmds=$lt_old_postinstall_cmds
16617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16618
16619 # Create an old-style archive from a shared archive.
16620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16621
16622 # Create a temporary old-style archive to link instead of a shared archive.
16623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16624
16625 # Commands used to build and install a shared archive.
16626 archive_cmds=$lt_archive_cmds_F77
16627 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16628 postinstall_cmds=$lt_postinstall_cmds
16629 postuninstall_cmds=$lt_postuninstall_cmds
16630
16631 # Commands used to build a loadable module (assumed same as above if empty)
16632 module_cmds=$lt_module_cmds_F77
16633 module_expsym_cmds=$lt_module_expsym_cmds_F77
16634
16635 # Commands to strip libraries.
16636 old_striplib=$lt_old_striplib
16637 striplib=$lt_striplib
16638
16639 # Dependencies to place before the objects being linked to create a
16640 # shared library.
16641 predep_objects=$lt_predep_objects_F77
16642
16643 # Dependencies to place after the objects being linked to create a
16644 # shared library.
16645 postdep_objects=$lt_postdep_objects_F77
16646
16647 # Dependencies to place before the objects being linked to create a
16648 # shared library.
16649 predeps=$lt_predeps_F77
16650
16651 # Dependencies to place after the objects being linked to create a
16652 # shared library.
16653 postdeps=$lt_postdeps_F77
16654
16655 # The directories searched by this compiler when creating a shared
16656 # library
16657 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16658
16659 # The library search path used internally by the compiler when linking
16660 # a shared library.
16661 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16662
16663 # Method to check whether dependent libraries are shared objects.
16664 deplibs_check_method=$lt_deplibs_check_method
16665
16666 # Command to use when deplibs_check_method == file_magic.
16667 file_magic_cmd=$lt_file_magic_cmd
16668
16669 # Flag that allows shared libraries with undefined symbols to be built.
16670 allow_undefined_flag=$lt_allow_undefined_flag_F77
16671
16672 # Flag that forces no undefined symbols.
16673 no_undefined_flag=$lt_no_undefined_flag_F77
16674
16675 # Commands used to finish a libtool library installation in a directory.
16676 finish_cmds=$lt_finish_cmds
16677
16678 # Same as above, but a single script fragment to be evaled but not shown.
16679 finish_eval=$lt_finish_eval
16680
16681 # Take the output of nm and produce a listing of raw symbols and C names.
16682 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16683
16684 # Transform the output of nm in a proper C declaration
16685 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16686
16687 # Transform the output of nm in a C name address pair
16688 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16689
16690 # This is the shared library runtime path variable.
16691 runpath_var=$runpath_var
16692
16693 # This is the shared library path variable.
16694 shlibpath_var=$shlibpath_var
16695
16696 # Is shlibpath searched before the hard-coded library search path?
16697 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16698
16699 # How to hardcode a shared library path into an executable.
16700 hardcode_action=$hardcode_action_F77
16701
16702 # Whether we should hardcode library paths into libraries.
16703 hardcode_into_libs=$hardcode_into_libs
16704
16705 # Flag to hardcode \$libdir into a binary during linking.
16706 # This must work even if \$libdir does not exist.
16707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16708
16709 # If ld is used when linking, flag to hardcode \$libdir into
16710 # a binary during linking. This must work even if \$libdir does
16711 # not exist.
16712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16713
16714 # Whether we need a single -rpath flag with a separated argument.
16715 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16716
16717 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16718 # resulting binary.
16719 hardcode_direct=$hardcode_direct_F77
16720
16721 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16722 # resulting binary.
16723 hardcode_minus_L=$hardcode_minus_L_F77
16724
16725 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16726 # the resulting binary.
16727 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16728
16729 # Set to yes if building a shared library automatically hardcodes DIR into the library
16730 # and all subsequent libraries and executables linked against it.
16731 hardcode_automatic=$hardcode_automatic_F77
16732
16733 # Variables whose values should be saved in libtool wrapper scripts and
16734 # restored at relink time.
16735 variables_saved_for_relink="$variables_saved_for_relink"
16736
16737 # Whether libtool must link a program against all its dependency libraries.
16738 link_all_deplibs=$link_all_deplibs_F77
16739
16740 # Compile-time system search path for libraries
16741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16742
16743 # Run-time system search path for libraries
16744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16745
16746 # Fix the shell variable \$srcfile for the compiler.
16747 fix_srcfile_path=$lt_fix_srcfile_path
16748
16749 # Set to yes if exported symbols are required.
16750 always_export_symbols=$always_export_symbols_F77
16751
16752 # The commands to list exported symbols.
16753 export_symbols_cmds=$lt_export_symbols_cmds_F77
16754
16755 # The commands to extract the exported symbol list from a shared archive.
16756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16757
16758 # Symbols that should not be listed in the preloaded symbols.
16759 exclude_expsyms=$lt_exclude_expsyms_F77
16760
16761 # Symbols that must always be exported.
16762 include_expsyms=$lt_include_expsyms_F77
16763
16764 # ### END LIBTOOL TAG CONFIG: $tagname
16765
16766 __EOF__
16767
16768
16769 else
16770 # If there is no Makefile yet, we rely on a make rule to execute
16771 # `config.status --recheck' to rerun these tests and create the
16772 # libtool script then.
16773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16774 if test -f "$ltmain_in"; then
16775 test -f Makefile && make "$ltmain"
16776 fi
16777 fi
16778
16779
16780 ac_ext=c
16781 ac_cpp='$CPP $CPPFLAGS'
16782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16785
16786 CC="$lt_save_CC"
16787
16788 else
16789 tagname=""
16790 fi
16791 ;;
16792
16793 GCJ)
16794 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16795
16796
16797 # Source file extension for Java test sources.
16798 ac_ext=java
16799
16800 # Object file extension for compiled Java test sources.
16801 objext=o
16802 objext_GCJ=$objext
16803
16804 # Code to be used in simple compile tests
16805 lt_simple_compile_test_code="class foo {}"
16806
16807 # Code to be used in simple link tests
16808 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16809
16810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16811
16812 # If no C compiler was specified, use CC.
16813 LTCC=${LTCC-"$CC"}
16814
16815 # If no C compiler flags were specified, use CFLAGS.
16816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16817
16818 # Allow CC to be a program name with arguments.
16819 compiler=$CC
16820
16821
16822 # save warnings/boilerplate of simple test code
16823 ac_outfile=conftest.$ac_objext
16824 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16826 _lt_compiler_boilerplate=`cat conftest.err`
16827 $rm conftest*
16828
16829 ac_outfile=conftest.$ac_objext
16830 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16832 _lt_linker_boilerplate=`cat conftest.err`
16833 $rm -r conftest*
16834
16835
16836 # Allow CC to be a program name with arguments.
16837 lt_save_CC="$CC"
16838 CC=${GCJ-"gcj"}
16839 compiler=$CC
16840 compiler_GCJ=$CC
16841 for cc_temp in $compiler""; do
16842 case $cc_temp in
16843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16845 \-*) ;;
16846 *) break;;
16847 esac
16848 done
16849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16850
16851
16852 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16853 archive_cmds_need_lc_GCJ=no
16854
16855 old_archive_cmds_GCJ=$old_archive_cmds
16856
16857
16858 lt_prog_compiler_no_builtin_flag_GCJ=
16859
16860 if test "$GCC" = yes; then
16861 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16862
16863
16864 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16865 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16866 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16867 $as_echo_n "(cached) " >&6
16868 else
16869 lt_cv_prog_compiler_rtti_exceptions=no
16870 ac_outfile=conftest.$ac_objext
16871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16872 lt_compiler_flag="-fno-rtti -fno-exceptions"
16873 # Insert the option either (1) after the last *FLAGS variable, or
16874 # (2) before a word containing "conftest.", or (3) at the end.
16875 # Note that $ac_compile itself does not contain backslashes and begins
16876 # with a dollar sign (not a hyphen), so the echo should work correctly.
16877 # The option is referenced via a variable to avoid confusing sed.
16878 lt_compile=`echo "$ac_compile" | $SED \
16879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16881 -e 's:$: $lt_compiler_flag:'`
16882 (eval echo "\"\$as_me:16882: $lt_compile\"" >&5)
16883 (eval "$lt_compile" 2>conftest.err)
16884 ac_status=$?
16885 cat conftest.err >&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 if (exit $ac_status) && test -s "$ac_outfile"; then
16888 # The compiler can only warn and ignore the option if not recognized
16889 # So say no if there are warnings other than the usual output.
16890 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16893 lt_cv_prog_compiler_rtti_exceptions=yes
16894 fi
16895 fi
16896 $rm conftest*
16897
16898 fi
16899 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16900 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16901
16902 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16903 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16904 else
16905 :
16906 fi
16907
16908 fi
16909
16910 lt_prog_compiler_wl_GCJ=
16911 lt_prog_compiler_pic_GCJ=
16912 lt_prog_compiler_static_GCJ=
16913
16914 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16916
16917 if test "$GCC" = yes; then
16918 lt_prog_compiler_wl_GCJ='-Wl,'
16919 lt_prog_compiler_static_GCJ='-static'
16920
16921 case $host_os in
16922 aix*)
16923 # All AIX code is PIC.
16924 if test "$host_cpu" = ia64; then
16925 # AIX 5 now supports IA64 processor
16926 lt_prog_compiler_static_GCJ='-Bstatic'
16927 fi
16928 ;;
16929
16930 amigaos*)
16931 # FIXME: we need at least 68020 code to build shared libraries, but
16932 # adding the `-m68020' flag to GCC prevents building anything better,
16933 # like `-m68040'.
16934 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16935 ;;
16936
16937 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16938 # PIC is the default for these OSes.
16939 ;;
16940
16941 mingw* | cygwin* | pw32* | os2*)
16942 # This hack is so that the source file can tell whether it is being
16943 # built for inclusion in a dll (and should export symbols for example).
16944 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16945 # (--disable-auto-import) libraries
16946
16947 ;;
16948
16949 darwin* | rhapsody*)
16950 # PIC is the default on this platform
16951 # Common symbols not allowed in MH_DYLIB files
16952 lt_prog_compiler_pic_GCJ='-fno-common'
16953 ;;
16954
16955 interix[3-9]*)
16956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16957 # Instead, we relocate shared libraries at runtime.
16958 ;;
16959
16960 msdosdjgpp*)
16961 # Just because we use GCC doesn't mean we suddenly get shared libraries
16962 # on systems that don't support them.
16963 lt_prog_compiler_can_build_shared_GCJ=no
16964 enable_shared=no
16965 ;;
16966
16967 sysv4*MP*)
16968 if test -d /usr/nec; then
16969 lt_prog_compiler_pic_GCJ=-Kconform_pic
16970 fi
16971 ;;
16972
16973 hpux*)
16974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16975 # not for PA HP-UX.
16976 case $host_cpu in
16977 hppa*64*|ia64*)
16978 # +Z the default
16979 ;;
16980 *)
16981 lt_prog_compiler_pic_GCJ='-fPIC'
16982 ;;
16983 esac
16984 ;;
16985
16986 *)
16987 lt_prog_compiler_pic_GCJ='-fPIC'
16988 ;;
16989 esac
16990 else
16991 # PORTME Check for flag to pass linker flags through the system compiler.
16992 case $host_os in
16993 aix*)
16994 lt_prog_compiler_wl_GCJ='-Wl,'
16995 if test "$host_cpu" = ia64; then
16996 # AIX 5 now supports IA64 processor
16997 lt_prog_compiler_static_GCJ='-Bstatic'
16998 else
16999 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17000 fi
17001 ;;
17002 darwin*)
17003 # PIC is the default on this platform
17004 # Common symbols not allowed in MH_DYLIB files
17005 case $cc_basename in
17006 xlc*)
17007 lt_prog_compiler_pic_GCJ='-qnocommon'
17008 lt_prog_compiler_wl_GCJ='-Wl,'
17009 ;;
17010 esac
17011 ;;
17012
17013 mingw* | cygwin* | pw32* | os2*)
17014 # This hack is so that the source file can tell whether it is being
17015 # built for inclusion in a dll (and should export symbols for example).
17016
17017 ;;
17018
17019 hpux9* | hpux10* | hpux11*)
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17022 # not for PA HP-UX.
17023 case $host_cpu in
17024 hppa*64*|ia64*)
17025 # +Z the default
17026 ;;
17027 *)
17028 lt_prog_compiler_pic_GCJ='+Z'
17029 ;;
17030 esac
17031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17032 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17033 ;;
17034
17035 irix5* | irix6* | nonstopux*)
17036 lt_prog_compiler_wl_GCJ='-Wl,'
17037 # PIC (with -KPIC) is the default.
17038 lt_prog_compiler_static_GCJ='-non_shared'
17039 ;;
17040
17041 newsos6)
17042 lt_prog_compiler_pic_GCJ='-KPIC'
17043 lt_prog_compiler_static_GCJ='-Bstatic'
17044 ;;
17045
17046 linux* | k*bsd*-gnu)
17047 case $cc_basename in
17048 icc* | ecc*)
17049 lt_prog_compiler_wl_GCJ='-Wl,'
17050 lt_prog_compiler_pic_GCJ='-KPIC'
17051 lt_prog_compiler_static_GCJ='-static'
17052 ;;
17053 pgcc* | pgf77* | pgf90* | pgf95*)
17054 # Portland Group compilers (*not* the Pentium gcc compiler,
17055 # which looks to be a dead project)
17056 lt_prog_compiler_wl_GCJ='-Wl,'
17057 lt_prog_compiler_pic_GCJ='-fpic'
17058 lt_prog_compiler_static_GCJ='-Bstatic'
17059 ;;
17060 ccc*)
17061 lt_prog_compiler_wl_GCJ='-Wl,'
17062 # All Alpha code is PIC.
17063 lt_prog_compiler_static_GCJ='-non_shared'
17064 ;;
17065 *)
17066 case `$CC -V 2>&1 | sed 5q` in
17067 *Sun\ C*)
17068 # Sun C 5.9
17069 lt_prog_compiler_pic_GCJ='-KPIC'
17070 lt_prog_compiler_static_GCJ='-Bstatic'
17071 lt_prog_compiler_wl_GCJ='-Wl,'
17072 ;;
17073 *Sun\ F*)
17074 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17075 lt_prog_compiler_pic_GCJ='-KPIC'
17076 lt_prog_compiler_static_GCJ='-Bstatic'
17077 lt_prog_compiler_wl_GCJ=''
17078 ;;
17079 esac
17080 ;;
17081 esac
17082 ;;
17083
17084 osf3* | osf4* | osf5*)
17085 lt_prog_compiler_wl_GCJ='-Wl,'
17086 # All OSF/1 code is PIC.
17087 lt_prog_compiler_static_GCJ='-non_shared'
17088 ;;
17089
17090 rdos*)
17091 lt_prog_compiler_static_GCJ='-non_shared'
17092 ;;
17093
17094 solaris*)
17095 lt_prog_compiler_pic_GCJ='-KPIC'
17096 lt_prog_compiler_static_GCJ='-Bstatic'
17097 case $cc_basename in
17098 f77* | f90* | f95*)
17099 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17100 *)
17101 lt_prog_compiler_wl_GCJ='-Wl,';;
17102 esac
17103 ;;
17104
17105 sunos4*)
17106 lt_prog_compiler_wl_GCJ='-Qoption ld '
17107 lt_prog_compiler_pic_GCJ='-PIC'
17108 lt_prog_compiler_static_GCJ='-Bstatic'
17109 ;;
17110
17111 sysv4 | sysv4.2uw2* | sysv4.3*)
17112 lt_prog_compiler_wl_GCJ='-Wl,'
17113 lt_prog_compiler_pic_GCJ='-KPIC'
17114 lt_prog_compiler_static_GCJ='-Bstatic'
17115 ;;
17116
17117 sysv4*MP*)
17118 if test -d /usr/nec ;then
17119 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17120 lt_prog_compiler_static_GCJ='-Bstatic'
17121 fi
17122 ;;
17123
17124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17125 lt_prog_compiler_wl_GCJ='-Wl,'
17126 lt_prog_compiler_pic_GCJ='-KPIC'
17127 lt_prog_compiler_static_GCJ='-Bstatic'
17128 ;;
17129
17130 unicos*)
17131 lt_prog_compiler_wl_GCJ='-Wl,'
17132 lt_prog_compiler_can_build_shared_GCJ=no
17133 ;;
17134
17135 uts4*)
17136 lt_prog_compiler_pic_GCJ='-pic'
17137 lt_prog_compiler_static_GCJ='-Bstatic'
17138 ;;
17139
17140 *)
17141 lt_prog_compiler_can_build_shared_GCJ=no
17142 ;;
17143 esac
17144 fi
17145
17146 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17147 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17148
17149 #
17150 # Check to make sure the PIC flag actually works.
17151 #
17152 if test -n "$lt_prog_compiler_pic_GCJ"; then
17153
17154 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17155 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17156 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17157 $as_echo_n "(cached) " >&6
17158 else
17159 lt_cv_prog_compiler_pic_works_GCJ=no
17160 ac_outfile=conftest.$ac_objext
17161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17162 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17163 # Insert the option either (1) after the last *FLAGS variable, or
17164 # (2) before a word containing "conftest.", or (3) at the end.
17165 # Note that $ac_compile itself does not contain backslashes and begins
17166 # with a dollar sign (not a hyphen), so the echo should work correctly.
17167 # The option is referenced via a variable to avoid confusing sed.
17168 lt_compile=`echo "$ac_compile" | $SED \
17169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17171 -e 's:$: $lt_compiler_flag:'`
17172 (eval echo "\"\$as_me:17172: $lt_compile\"" >&5)
17173 (eval "$lt_compile" 2>conftest.err)
17174 ac_status=$?
17175 cat conftest.err >&5
17176 echo "$as_me:17176: \$? = $ac_status" >&5
17177 if (exit $ac_status) && test -s "$ac_outfile"; then
17178 # The compiler can only warn and ignore the option if not recognized
17179 # So say no if there are warnings other than the usual output.
17180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17183 lt_cv_prog_compiler_pic_works_GCJ=yes
17184 fi
17185 fi
17186 $rm conftest*
17187
17188 fi
17189 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17190 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17191
17192 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17193 case $lt_prog_compiler_pic_GCJ in
17194 "" | " "*) ;;
17195 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17196 esac
17197 else
17198 lt_prog_compiler_pic_GCJ=
17199 lt_prog_compiler_can_build_shared_GCJ=no
17200 fi
17201
17202 fi
17203 case $host_os in
17204 # For platforms which do not support PIC, -DPIC is meaningless:
17205 *djgpp*)
17206 lt_prog_compiler_pic_GCJ=
17207 ;;
17208 *)
17209 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17210 ;;
17211 esac
17212
17213 #
17214 # Check to make sure the static flag actually works.
17215 #
17216 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17217 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17219 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17220 $as_echo_n "(cached) " >&6
17221 else
17222 lt_cv_prog_compiler_static_works_GCJ=no
17223 save_LDFLAGS="$LDFLAGS"
17224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17227 # The linker can only warn and ignore the option if not recognized
17228 # So say no if there are warnings
17229 if test -s conftest.err; then
17230 # Append any errors to the config.log.
17231 cat conftest.err 1>&5
17232 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17234 if diff conftest.exp conftest.er2 >/dev/null; then
17235 lt_cv_prog_compiler_static_works_GCJ=yes
17236 fi
17237 else
17238 lt_cv_prog_compiler_static_works_GCJ=yes
17239 fi
17240 fi
17241 $rm -r conftest*
17242 LDFLAGS="$save_LDFLAGS"
17243
17244 fi
17245 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17246 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17247
17248 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17249 :
17250 else
17251 lt_prog_compiler_static_GCJ=
17252 fi
17253
17254
17255 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17257 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17258 $as_echo_n "(cached) " >&6
17259 else
17260 lt_cv_prog_compiler_c_o_GCJ=no
17261 $rm -r conftest 2>/dev/null
17262 mkdir conftest
17263 cd conftest
17264 mkdir out
17265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17266
17267 lt_compiler_flag="-o out/conftest2.$ac_objext"
17268 # Insert the option either (1) after the last *FLAGS variable, or
17269 # (2) before a word containing "conftest.", or (3) at the end.
17270 # Note that $ac_compile itself does not contain backslashes and begins
17271 # with a dollar sign (not a hyphen), so the echo should work correctly.
17272 lt_compile=`echo "$ac_compile" | $SED \
17273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17275 -e 's:$: $lt_compiler_flag:'`
17276 (eval echo "\"\$as_me:17276: $lt_compile\"" >&5)
17277 (eval "$lt_compile" 2>out/conftest.err)
17278 ac_status=$?
17279 cat out/conftest.err >&5
17280 echo "$as_me:17280: \$? = $ac_status" >&5
17281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17282 then
17283 # The compiler can only warn and ignore the option if not recognized
17284 # So say no if there are warnings
17285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17288 lt_cv_prog_compiler_c_o_GCJ=yes
17289 fi
17290 fi
17291 chmod u+w . 2>&5
17292 $rm conftest*
17293 # SGI C++ compiler will create directory out/ii_files/ for
17294 # template instantiation
17295 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17296 $rm out/* && rmdir out
17297 cd ..
17298 rmdir conftest
17299 $rm conftest*
17300
17301 fi
17302 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17303 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17304
17305
17306 hard_links="nottested"
17307 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17308 # do not overwrite the value of need_locks provided by the user
17309 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17310 $as_echo_n "checking if we can lock with hard links... " >&6; }
17311 hard_links=yes
17312 $rm conftest*
17313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17314 touch conftest.a
17315 ln conftest.a conftest.b 2>&5 || hard_links=no
17316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17317 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17318 $as_echo "$hard_links" >&6; }
17319 if test "$hard_links" = no; then
17320 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17321 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17322 need_locks=warn
17323 fi
17324 else
17325 need_locks=no
17326 fi
17327
17328 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17329 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17330
17331 runpath_var=
17332 allow_undefined_flag_GCJ=
17333 enable_shared_with_static_runtimes_GCJ=no
17334 archive_cmds_GCJ=
17335 archive_expsym_cmds_GCJ=
17336 old_archive_From_new_cmds_GCJ=
17337 old_archive_from_expsyms_cmds_GCJ=
17338 export_dynamic_flag_spec_GCJ=
17339 whole_archive_flag_spec_GCJ=
17340 thread_safe_flag_spec_GCJ=
17341 hardcode_libdir_flag_spec_GCJ=
17342 hardcode_libdir_flag_spec_ld_GCJ=
17343 hardcode_libdir_separator_GCJ=
17344 hardcode_direct_GCJ=no
17345 hardcode_minus_L_GCJ=no
17346 hardcode_shlibpath_var_GCJ=unsupported
17347 link_all_deplibs_GCJ=unknown
17348 hardcode_automatic_GCJ=no
17349 module_cmds_GCJ=
17350 module_expsym_cmds_GCJ=
17351 always_export_symbols_GCJ=no
17352 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17353 # include_expsyms should be a list of space-separated symbols to be *always*
17354 # included in the symbol list
17355 include_expsyms_GCJ=
17356 # exclude_expsyms can be an extended regexp of symbols to exclude
17357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17359 # as well as any symbol that contains `d'.
17360 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17362 # platforms (ab)use it in PIC code, but their linkers get confused if
17363 # the symbol is explicitly referenced. Since portable code cannot
17364 # rely on this symbol name, it's probably fine to never include it in
17365 # preloaded symbol tables.
17366 # Exclude shared library initialization/finalization symbols.
17367 extract_expsyms_cmds=
17368 # Just being paranoid about ensuring that cc_basename is set.
17369 for cc_temp in $compiler""; do
17370 case $cc_temp in
17371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17373 \-*) ;;
17374 *) break;;
17375 esac
17376 done
17377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17378
17379 case $host_os in
17380 cygwin* | mingw* | pw32*)
17381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17382 # When not using gcc, we currently assume that we are using
17383 # Microsoft Visual C++.
17384 if test "$GCC" != yes; then
17385 with_gnu_ld=no
17386 fi
17387 ;;
17388 interix*)
17389 # we just hope/assume this is gcc and not c89 (= MSVC++)
17390 with_gnu_ld=yes
17391 ;;
17392 openbsd*)
17393 with_gnu_ld=no
17394 ;;
17395 esac
17396
17397 ld_shlibs_GCJ=yes
17398 if test "$with_gnu_ld" = yes; then
17399 # If archive_cmds runs LD, not CC, wlarc should be empty
17400 wlarc='${wl}'
17401
17402 # Set some defaults for GNU ld with shared library support. These
17403 # are reset later if shared libraries are not supported. Putting them
17404 # here allows them to be overridden if necessary.
17405 runpath_var=LD_RUN_PATH
17406 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17407 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17408 # ancient GNU ld didn't support --whole-archive et. al.
17409 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17410 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17411 else
17412 whole_archive_flag_spec_GCJ=
17413 fi
17414 supports_anon_versioning=no
17415 case `$LD -v 2>/dev/null` in
17416 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17419 *\ 2.11.*) ;; # other 2.11 versions
17420 *) supports_anon_versioning=yes ;;
17421 esac
17422
17423 # See if GNU ld supports shared libraries.
17424 case $host_os in
17425 aix[3-9]*)
17426 # On AIX/PPC, the GNU linker is very broken
17427 if test "$host_cpu" != ia64; then
17428 ld_shlibs_GCJ=no
17429 cat <<EOF 1>&2
17430
17431 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17432 *** to be unable to reliably create shared libraries on AIX.
17433 *** Therefore, libtool is disabling shared libraries support. If you
17434 *** really care for shared libraries, you may want to modify your PATH
17435 *** so that a non-GNU linker is found, and then restart.
17436
17437 EOF
17438 fi
17439 ;;
17440
17441 amigaos*)
17442 archive_cmds_GCJ='$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)'
17443 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17444 hardcode_minus_L_GCJ=yes
17445
17446 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17447 # that the semantics of dynamic libraries on AmigaOS, at least up
17448 # to version 4, is to share data among multiple programs linked
17449 # with the same dynamic library. Since this doesn't match the
17450 # behavior of shared libraries on other platforms, we can't use
17451 # them.
17452 ld_shlibs_GCJ=no
17453 ;;
17454
17455 beos*)
17456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17457 allow_undefined_flag_GCJ=unsupported
17458 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17459 # support --undefined. This deserves some investigation. FIXME
17460 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461 else
17462 ld_shlibs_GCJ=no
17463 fi
17464 ;;
17465
17466 cygwin* | mingw* | pw32*)
17467 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17468 # as there is no search path for DLLs.
17469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17470 allow_undefined_flag_GCJ=unsupported
17471 always_export_symbols_GCJ=no
17472 enable_shared_with_static_runtimes_GCJ=yes
17473 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17474
17475 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17476 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17477 # If the export-symbols file already is a .def file (1st line
17478 # is EXPORTS), use it as is; otherwise, prepend...
17479 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17480 cp $export_symbols $output_objdir/$soname.def;
17481 else
17482 echo EXPORTS > $output_objdir/$soname.def;
17483 cat $export_symbols >> $output_objdir/$soname.def;
17484 fi~
17485 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17486 else
17487 ld_shlibs_GCJ=no
17488 fi
17489 ;;
17490
17491 interix[3-9]*)
17492 hardcode_direct_GCJ=no
17493 hardcode_shlibpath_var_GCJ=no
17494 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17495 export_dynamic_flag_spec_GCJ='${wl}-E'
17496 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17497 # Instead, shared libraries are loaded at an image base (0x10000000 by
17498 # default) and relocated if they conflict, which is a slow very memory
17499 # consuming and fragmenting process. To avoid this, we pick a random,
17500 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17501 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17502 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17503 archive_expsym_cmds_GCJ='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'
17504 ;;
17505
17506 gnu* | linux* | k*bsd*-gnu)
17507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17508 tmp_addflag=
17509 case $cc_basename,$host_cpu in
17510 pgcc*) # Portland Group C compiler
17511 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17512 tmp_addflag=' $pic_flag'
17513 ;;
17514 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17515 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17516 tmp_addflag=' $pic_flag -Mnomain' ;;
17517 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17518 tmp_addflag=' -i_dynamic' ;;
17519 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17520 tmp_addflag=' -i_dynamic -nofor_main' ;;
17521 ifc* | ifort*) # Intel Fortran compiler
17522 tmp_addflag=' -nofor_main' ;;
17523 esac
17524 case `$CC -V 2>&1 | sed 5q` in
17525 *Sun\ C*) # Sun C 5.9
17526 whole_archive_flag_spec_GCJ='${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'
17527 tmp_sharedflag='-G' ;;
17528 *Sun\ F*) # Sun Fortran 8.3
17529 tmp_sharedflag='-G' ;;
17530 *)
17531 tmp_sharedflag='-shared' ;;
17532 esac
17533 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534
17535 if test $supports_anon_versioning = yes; then
17536 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17538 $echo "local: *; };" >> $output_objdir/$libname.ver~
17539 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17540 fi
17541 else
17542 ld_shlibs_GCJ=no
17543 fi
17544 ;;
17545
17546 netbsd*)
17547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17548 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17549 wlarc=
17550 else
17551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17553 fi
17554 ;;
17555
17556 solaris*)
17557 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17558 ld_shlibs_GCJ=no
17559 cat <<EOF 1>&2
17560
17561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17562 *** create shared libraries on Solaris systems. Therefore, libtool
17563 *** is disabling shared libraries support. We urge you to upgrade GNU
17564 *** binutils to release 2.9.1 or newer. Another option is to modify
17565 *** your PATH or compiler configuration so that the native linker is
17566 *** used, and then restart.
17567
17568 EOF
17569 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17570 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17571 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17572 else
17573 ld_shlibs_GCJ=no
17574 fi
17575 ;;
17576
17577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17578 case `$LD -v 2>&1` in
17579 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17580 ld_shlibs_GCJ=no
17581 cat <<_LT_EOF 1>&2
17582
17583 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17584 *** reliably create shared libraries on SCO systems. Therefore, libtool
17585 *** is disabling shared libraries support. We urge you to upgrade GNU
17586 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17587 *** your PATH or compiler configuration so that the native linker is
17588 *** used, and then restart.
17589
17590 _LT_EOF
17591 ;;
17592 *)
17593 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17594 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17595 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17596 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17597 else
17598 ld_shlibs_GCJ=no
17599 fi
17600 ;;
17601 esac
17602 ;;
17603
17604 sunos4*)
17605 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17606 wlarc=
17607 hardcode_direct_GCJ=yes
17608 hardcode_shlibpath_var_GCJ=no
17609 ;;
17610
17611 *)
17612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17613 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17615 else
17616 ld_shlibs_GCJ=no
17617 fi
17618 ;;
17619 esac
17620
17621 if test "$ld_shlibs_GCJ" = no; then
17622 runpath_var=
17623 hardcode_libdir_flag_spec_GCJ=
17624 export_dynamic_flag_spec_GCJ=
17625 whole_archive_flag_spec_GCJ=
17626 fi
17627 else
17628 # PORTME fill in a description of your system's linker (not GNU ld)
17629 case $host_os in
17630 aix3*)
17631 allow_undefined_flag_GCJ=unsupported
17632 always_export_symbols_GCJ=yes
17633 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17634 # Note: this linker hardcodes the directories in LIBPATH if there
17635 # are no directories specified by -L.
17636 hardcode_minus_L_GCJ=yes
17637 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17638 # Neither direct hardcoding nor static linking is supported with a
17639 # broken collect2.
17640 hardcode_direct_GCJ=unsupported
17641 fi
17642 ;;
17643
17644 aix[4-9]*)
17645 if test "$host_cpu" = ia64; then
17646 # On IA64, the linker does run time linking by default, so we don't
17647 # have to do anything special.
17648 aix_use_runtimelinking=no
17649 exp_sym_flag='-Bexport'
17650 no_entry_flag=""
17651 else
17652 # If we're using GNU nm, then we don't want the "-C" option.
17653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17655 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17656 else
17657 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17658 fi
17659 aix_use_runtimelinking=no
17660
17661 # Test if we are trying to use run time linking or normal
17662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17663 # need to do runtime linking.
17664 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17665 for ld_flag in $LDFLAGS; do
17666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17667 aix_use_runtimelinking=yes
17668 break
17669 fi
17670 done
17671 ;;
17672 esac
17673
17674 exp_sym_flag='-bexport'
17675 no_entry_flag='-bnoentry'
17676 fi
17677
17678 # When large executables or shared objects are built, AIX ld can
17679 # have problems creating the table of contents. If linking a library
17680 # or program results in "error TOC overflow" add -mminimal-toc to
17681 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17682 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17683
17684 archive_cmds_GCJ=''
17685 hardcode_direct_GCJ=yes
17686 hardcode_libdir_separator_GCJ=':'
17687 link_all_deplibs_GCJ=yes
17688
17689 if test "$GCC" = yes; then
17690 case $host_os in aix4.[012]|aix4.[012].*)
17691 # We only want to do this on AIX 4.2 and lower, the check
17692 # below for broken collect2 doesn't work under 4.3+
17693 collect2name=`${CC} -print-prog-name=collect2`
17694 if test -f "$collect2name" && \
17695 strings "$collect2name" | grep resolve_lib_name >/dev/null
17696 then
17697 # We have reworked collect2
17698 :
17699 else
17700 # We have old collect2
17701 hardcode_direct_GCJ=unsupported
17702 # It fails to find uninstalled libraries when the uninstalled
17703 # path is not listed in the libpath. Setting hardcode_minus_L
17704 # to unsupported forces relinking
17705 hardcode_minus_L_GCJ=yes
17706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17707 hardcode_libdir_separator_GCJ=
17708 fi
17709 ;;
17710 esac
17711 shared_flag='-shared'
17712 if test "$aix_use_runtimelinking" = yes; then
17713 shared_flag="$shared_flag "'${wl}-G'
17714 fi
17715 else
17716 # not using gcc
17717 if test "$host_cpu" = ia64; then
17718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17719 # chokes on -Wl,-G. The following line is correct:
17720 shared_flag='-G'
17721 else
17722 if test "$aix_use_runtimelinking" = yes; then
17723 shared_flag='${wl}-G'
17724 else
17725 shared_flag='${wl}-bM:SRE'
17726 fi
17727 fi
17728 fi
17729
17730 # It seems that -bexpall does not export symbols beginning with
17731 # underscore (_), so it is better to generate a list of symbols to export.
17732 always_export_symbols_GCJ=yes
17733 if test "$aix_use_runtimelinking" = yes; then
17734 # Warning - without using the other runtime loading flags (-brtl),
17735 # -berok will link without error, but may produce a broken library.
17736 allow_undefined_flag_GCJ='-berok'
17737 # Determine the default libpath from the value encoded in an empty executable.
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744
17745 int
17746 main ()
17747 {
17748
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext conftest$ac_exeext
17754 if { (ac_try="$ac_link"
17755 case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758 esac
17759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17760 $as_echo "$ac_try_echo") >&5
17761 (eval "$ac_link") 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } && {
17768 test -z "$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17770 } && test -s conftest$ac_exeext && {
17771 test "$cross_compiling" = yes ||
17772 $as_test_x conftest$ac_exeext
17773 }; then
17774
17775 lt_aix_libpath_sed='
17776 /Import File Strings/,/^$/ {
17777 /^0/ {
17778 s/^0 *\(.*\)$/\1/
17779 p
17780 }
17781 }'
17782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17783 # Check for a 64-bit object if we didn't find anything.
17784 if test -z "$aix_libpath"; then
17785 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17786 fi
17787 else
17788 $as_echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791
17792 fi
17793
17794 rm -rf conftest.dSYM
17795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17796 conftest$ac_exeext conftest.$ac_ext
17797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17798
17799 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17800 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17801 else
17802 if test "$host_cpu" = ia64; then
17803 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17804 allow_undefined_flag_GCJ="-z nodefs"
17805 archive_expsym_cmds_GCJ="\$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"
17806 else
17807 # Determine the default libpath from the value encoded in an empty executable.
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814
17815 int
17816 main ()
17817 {
17818
17819 ;
17820 return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828 esac
17829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17830 $as_echo "$ac_try_echo") >&5
17831 (eval "$ac_link") 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest$ac_exeext && {
17841 test "$cross_compiling" = yes ||
17842 $as_test_x conftest$ac_exeext
17843 }; then
17844
17845 lt_aix_libpath_sed='
17846 /Import File Strings/,/^$/ {
17847 /^0/ {
17848 s/^0 *\(.*\)$/\1/
17849 p
17850 }
17851 }'
17852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17853 # Check for a 64-bit object if we didn't find anything.
17854 if test -z "$aix_libpath"; then
17855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17856 fi
17857 else
17858 $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17860
17861
17862 fi
17863
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17868
17869 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17870 # Warning - without using the other run time loading flags,
17871 # -berok will link without error, but may produce a broken library.
17872 no_undefined_flag_GCJ=' ${wl}-bernotok'
17873 allow_undefined_flag_GCJ=' ${wl}-berok'
17874 # Exported symbols can be pulled into shared objects from archives
17875 whole_archive_flag_spec_GCJ='$convenience'
17876 archive_cmds_need_lc_GCJ=yes
17877 # This is similar to how AIX traditionally builds its shared libraries.
17878 archive_expsym_cmds_GCJ="\$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'
17879 fi
17880 fi
17881 ;;
17882
17883 amigaos*)
17884 archive_cmds_GCJ='$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)'
17885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17886 hardcode_minus_L_GCJ=yes
17887 # see comment about different semantics on the GNU ld section
17888 ld_shlibs_GCJ=no
17889 ;;
17890
17891 bsdi[45]*)
17892 export_dynamic_flag_spec_GCJ=-rdynamic
17893 ;;
17894
17895 cygwin* | mingw* | pw32*)
17896 # When not using gcc, we currently assume that we are using
17897 # Microsoft Visual C++.
17898 # hardcode_libdir_flag_spec is actually meaningless, as there is
17899 # no search path for DLLs.
17900 hardcode_libdir_flag_spec_GCJ=' '
17901 allow_undefined_flag_GCJ=unsupported
17902 # Tell ltmain to make .lib files, not .a files.
17903 libext=lib
17904 # Tell ltmain to make .dll files, not .so files.
17905 shrext_cmds=".dll"
17906 # FIXME: Setting linknames here is a bad hack.
17907 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17908 # The linker will automatically build a .lib file if we build a DLL.
17909 old_archive_From_new_cmds_GCJ='true'
17910 # FIXME: Should let the user specify the lib program.
17911 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17912 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17913 enable_shared_with_static_runtimes_GCJ=yes
17914 ;;
17915
17916 darwin* | rhapsody*)
17917 case $host_os in
17918 rhapsody* | darwin1.[012])
17919 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17920 ;;
17921 *) # Darwin 1.3 on
17922 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17923 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17924 else
17925 case ${MACOSX_DEPLOYMENT_TARGET} in
17926 10.[012])
17927 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17928 ;;
17929 10.*)
17930 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17931 ;;
17932 esac
17933 fi
17934 ;;
17935 esac
17936 archive_cmds_need_lc_GCJ=no
17937 hardcode_direct_GCJ=no
17938 hardcode_automatic_GCJ=yes
17939 hardcode_shlibpath_var_GCJ=unsupported
17940 whole_archive_flag_spec_GCJ=''
17941 link_all_deplibs_GCJ=yes
17942 if test "$GCC" = yes ; then
17943 output_verbose_link_cmd='echo'
17944 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17945 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17946 archive_expsym_cmds_GCJ="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}"
17947 module_expsym_cmds_GCJ="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}"
17948 else
17949 case $cc_basename in
17950 xlc*)
17951 output_verbose_link_cmd='echo'
17952 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17953 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17954 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17955 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17956 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17957 ;;
17958 *)
17959 ld_shlibs_GCJ=no
17960 ;;
17961 esac
17962 fi
17963 ;;
17964
17965 dgux*)
17966 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968 hardcode_shlibpath_var_GCJ=no
17969 ;;
17970
17971 freebsd1*)
17972 ld_shlibs_GCJ=no
17973 ;;
17974
17975 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17976 # support. Future versions do this automatically, but an explicit c++rt0.o
17977 # does not break anything, and helps significantly (at the cost of a little
17978 # extra space).
17979 freebsd2.2*)
17980 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17982 hardcode_direct_GCJ=yes
17983 hardcode_shlibpath_var_GCJ=no
17984 ;;
17985
17986 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17987 freebsd2*)
17988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17989 hardcode_direct_GCJ=yes
17990 hardcode_minus_L_GCJ=yes
17991 hardcode_shlibpath_var_GCJ=no
17992 ;;
17993
17994 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17995 freebsd* | dragonfly*)
17996 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998 hardcode_direct_GCJ=yes
17999 hardcode_shlibpath_var_GCJ=no
18000 ;;
18001
18002 hpux9*)
18003 if test "$GCC" = yes; then
18004 archive_cmds_GCJ='$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'
18005 else
18006 archive_cmds_GCJ='$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'
18007 fi
18008 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18009 hardcode_libdir_separator_GCJ=:
18010 hardcode_direct_GCJ=yes
18011
18012 # hardcode_minus_L: Not really in the search PATH,
18013 # but as the default location of the library.
18014 hardcode_minus_L_GCJ=yes
18015 export_dynamic_flag_spec_GCJ='${wl}-E'
18016 ;;
18017
18018 hpux10*)
18019 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18020 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18021 else
18022 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18023 fi
18024 if test "$with_gnu_ld" = no; then
18025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18026 hardcode_libdir_separator_GCJ=:
18027
18028 hardcode_direct_GCJ=yes
18029 export_dynamic_flag_spec_GCJ='${wl}-E'
18030
18031 # hardcode_minus_L: Not really in the search PATH,
18032 # but as the default location of the library.
18033 hardcode_minus_L_GCJ=yes
18034 fi
18035 ;;
18036
18037 hpux11*)
18038 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18039 case $host_cpu in
18040 hppa*64*)
18041 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18042 ;;
18043 ia64*)
18044 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18045 ;;
18046 *)
18047 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18048 ;;
18049 esac
18050 else
18051 case $host_cpu in
18052 hppa*64*)
18053 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18054 ;;
18055 ia64*)
18056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18057 ;;
18058 *)
18059 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18060 ;;
18061 esac
18062 fi
18063 if test "$with_gnu_ld" = no; then
18064 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18065 hardcode_libdir_separator_GCJ=:
18066
18067 case $host_cpu in
18068 hppa*64*|ia64*)
18069 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18070 hardcode_direct_GCJ=no
18071 hardcode_shlibpath_var_GCJ=no
18072 ;;
18073 *)
18074 hardcode_direct_GCJ=yes
18075 export_dynamic_flag_spec_GCJ='${wl}-E'
18076
18077 # hardcode_minus_L: Not really in the search PATH,
18078 # but as the default location of the library.
18079 hardcode_minus_L_GCJ=yes
18080 ;;
18081 esac
18082 fi
18083 ;;
18084
18085 irix5* | irix6* | nonstopux*)
18086 if test "$GCC" = yes; then
18087 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18088 else
18089 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18090 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18091 fi
18092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093 hardcode_libdir_separator_GCJ=:
18094 link_all_deplibs_GCJ=yes
18095 ;;
18096
18097 netbsd*)
18098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18100 else
18101 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18102 fi
18103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104 hardcode_direct_GCJ=yes
18105 hardcode_shlibpath_var_GCJ=no
18106 ;;
18107
18108 newsos6)
18109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18110 hardcode_direct_GCJ=yes
18111 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112 hardcode_libdir_separator_GCJ=:
18113 hardcode_shlibpath_var_GCJ=no
18114 ;;
18115
18116 openbsd*)
18117 if test -f /usr/libexec/ld.so; then
18118 hardcode_direct_GCJ=yes
18119 hardcode_shlibpath_var_GCJ=no
18120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18124 export_dynamic_flag_spec_GCJ='${wl}-E'
18125 else
18126 case $host_os in
18127 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18128 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18130 ;;
18131 *)
18132 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18134 ;;
18135 esac
18136 fi
18137 else
18138 ld_shlibs_GCJ=no
18139 fi
18140 ;;
18141
18142 os2*)
18143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18144 hardcode_minus_L_GCJ=yes
18145 allow_undefined_flag_GCJ=unsupported
18146 archive_cmds_GCJ='$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'
18147 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18148 ;;
18149
18150 osf3*)
18151 if test "$GCC" = yes; then
18152 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18153 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18154 else
18155 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18156 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18157 fi
18158 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18159 hardcode_libdir_separator_GCJ=:
18160 ;;
18161
18162 osf4* | osf5*) # as osf3* with the addition of -msym flag
18163 if test "$GCC" = yes; then
18164 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18165 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18166 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18167 else
18168 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18169 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18170 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18171 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18172
18173 # Both c and cxx compiler support -rpath directly
18174 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18175 fi
18176 hardcode_libdir_separator_GCJ=:
18177 ;;
18178
18179 solaris*)
18180 no_undefined_flag_GCJ=' -z text'
18181 if test "$GCC" = yes; then
18182 wlarc='${wl}'
18183 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18184 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18185 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18186 else
18187 wlarc=''
18188 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18190 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18191 fi
18192 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193 hardcode_shlibpath_var_GCJ=no
18194 case $host_os in
18195 solaris2.[0-5] | solaris2.[0-5].*) ;;
18196 *)
18197 # The compiler driver will combine and reorder linker options,
18198 # but understands `-z linker_flag'. GCC discards it without `$wl',
18199 # but is careful enough not to reorder.
18200 # Supported since Solaris 2.6 (maybe 2.5.1?)
18201 if test "$GCC" = yes; then
18202 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18203 else
18204 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18205 fi
18206 ;;
18207 esac
18208 link_all_deplibs_GCJ=yes
18209 ;;
18210
18211 sunos4*)
18212 if test "x$host_vendor" = xsequent; then
18213 # Use $CC to link under sequent, because it throws in some extra .o
18214 # files that make .init and .fini sections work.
18215 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18216 else
18217 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18218 fi
18219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18220 hardcode_direct_GCJ=yes
18221 hardcode_minus_L_GCJ=yes
18222 hardcode_shlibpath_var_GCJ=no
18223 ;;
18224
18225 sysv4)
18226 case $host_vendor in
18227 sni)
18228 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229 hardcode_direct_GCJ=yes # is this really true???
18230 ;;
18231 siemens)
18232 ## LD is ld it makes a PLAMLIB
18233 ## CC just makes a GrossModule.
18234 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18235 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18236 hardcode_direct_GCJ=no
18237 ;;
18238 motorola)
18239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18241 ;;
18242 esac
18243 runpath_var='LD_RUN_PATH'
18244 hardcode_shlibpath_var_GCJ=no
18245 ;;
18246
18247 sysv4.3*)
18248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249 hardcode_shlibpath_var_GCJ=no
18250 export_dynamic_flag_spec_GCJ='-Bexport'
18251 ;;
18252
18253 sysv4*MP*)
18254 if test -d /usr/nec; then
18255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256 hardcode_shlibpath_var_GCJ=no
18257 runpath_var=LD_RUN_PATH
18258 hardcode_runpath_var=yes
18259 ld_shlibs_GCJ=yes
18260 fi
18261 ;;
18262
18263 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18264 no_undefined_flag_GCJ='${wl}-z,text'
18265 archive_cmds_need_lc_GCJ=no
18266 hardcode_shlibpath_var_GCJ=no
18267 runpath_var='LD_RUN_PATH'
18268
18269 if test "$GCC" = yes; then
18270 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18272 else
18273 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 fi
18276 ;;
18277
18278 sysv5* | sco3.2v5* | sco5v6*)
18279 # Note: We can NOT use -z defs as we might desire, because we do not
18280 # link with -lc, and that would cause any symbols used from libc to
18281 # always be unresolved, which means just about no library would
18282 # ever link correctly. If we're not using GNU ld we use -z text
18283 # though, which does catch some bad symbols but isn't as heavy-handed
18284 # as -z defs.
18285 no_undefined_flag_GCJ='${wl}-z,text'
18286 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18287 archive_cmds_need_lc_GCJ=no
18288 hardcode_shlibpath_var_GCJ=no
18289 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18290 hardcode_libdir_separator_GCJ=':'
18291 link_all_deplibs_GCJ=yes
18292 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18293 runpath_var='LD_RUN_PATH'
18294
18295 if test "$GCC" = yes; then
18296 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18297 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18298 else
18299 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 fi
18302 ;;
18303
18304 uts4*)
18305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307 hardcode_shlibpath_var_GCJ=no
18308 ;;
18309
18310 *)
18311 ld_shlibs_GCJ=no
18312 ;;
18313 esac
18314 fi
18315
18316 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18317 $as_echo "$ld_shlibs_GCJ" >&6; }
18318 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18319
18320 #
18321 # Do we need to explicitly link libc?
18322 #
18323 case "x$archive_cmds_need_lc_GCJ" in
18324 x|xyes)
18325 # Assume -lc should be added
18326 archive_cmds_need_lc_GCJ=yes
18327
18328 if test "$enable_shared" = yes && test "$GCC" = yes; then
18329 case $archive_cmds_GCJ in
18330 *'~'*)
18331 # FIXME: we may have to deal with multi-command sequences.
18332 ;;
18333 '$CC '*)
18334 # Test whether the compiler implicitly links with -lc since on some
18335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18336 # to ld, don't add -lc before -lgcc.
18337 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18338 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18339 $rm conftest*
18340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18341
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>&5
18344 ac_status=$?
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } 2>conftest.err; then
18347 soname=conftest
18348 lib=conftest
18349 libobjs=conftest.$ac_objext
18350 deplibs=
18351 wl=$lt_prog_compiler_wl_GCJ
18352 pic_flag=$lt_prog_compiler_pic_GCJ
18353 compiler_flags=-v
18354 linker_flags=-v
18355 verstring=
18356 output_objdir=.
18357 libname=conftest
18358 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18359 allow_undefined_flag_GCJ=
18360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18361 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18362 ac_status=$?
18363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }
18365 then
18366 archive_cmds_need_lc_GCJ=no
18367 else
18368 archive_cmds_need_lc_GCJ=yes
18369 fi
18370 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18371 else
18372 cat conftest.err 1>&5
18373 fi
18374 $rm conftest*
18375 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18376 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18377 ;;
18378 esac
18379 fi
18380 ;;
18381 esac
18382
18383 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18384 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18385 library_names_spec=
18386 libname_spec='lib$name'
18387 soname_spec=
18388 shrext_cmds=".so"
18389 postinstall_cmds=
18390 postuninstall_cmds=
18391 finish_cmds=
18392 finish_eval=
18393 shlibpath_var=
18394 shlibpath_overrides_runpath=unknown
18395 version_type=none
18396 dynamic_linker="$host_os ld.so"
18397 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18398
18399 need_lib_prefix=unknown
18400 hardcode_into_libs=no
18401
18402 # when you set need_version to no, make sure it does not cause -set_version
18403 # flags to be left without arguments
18404 need_version=unknown
18405
18406 case $host_os in
18407 aix3*)
18408 version_type=linux
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18410 shlibpath_var=LIBPATH
18411
18412 # AIX 3 has no versioning support, so we append a major version to the name.
18413 soname_spec='${libname}${release}${shared_ext}$major'
18414 ;;
18415
18416 aix[4-9]*)
18417 version_type=linux
18418 need_lib_prefix=no
18419 need_version=no
18420 hardcode_into_libs=yes
18421 if test "$host_cpu" = ia64; then
18422 # AIX 5 supports IA64
18423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18424 shlibpath_var=LD_LIBRARY_PATH
18425 else
18426 # With GCC up to 2.95.x, collect2 would create an import file
18427 # for dependence libraries. The import file would start with
18428 # the line `#! .'. This would cause the generated library to
18429 # depend on `.', always an invalid library. This was fixed in
18430 # development snapshots of GCC prior to 3.0.
18431 case $host_os in
18432 aix4 | aix4.[01] | aix4.[01].*)
18433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18434 echo ' yes '
18435 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18436 :
18437 else
18438 can_build_shared=no
18439 fi
18440 ;;
18441 esac
18442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18443 # soname into executable. Probably we can add versioning support to
18444 # collect2, so additional links can be useful in future.
18445 if test "$aix_use_runtimelinking" = yes; then
18446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18447 # instead of lib<name>.a to let people know that these are not
18448 # typical AIX shared libraries.
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 else
18451 # We preserve .a as extension for shared libraries through AIX4.2
18452 # and later when we are not doing run time linking.
18453 library_names_spec='${libname}${release}.a $libname.a'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 fi
18456 shlibpath_var=LIBPATH
18457 fi
18458 ;;
18459
18460 amigaos*)
18461 library_names_spec='$libname.ixlibrary $libname.a'
18462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18463 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'
18464 ;;
18465
18466 beos*)
18467 library_names_spec='${libname}${shared_ext}'
18468 dynamic_linker="$host_os ld.so"
18469 shlibpath_var=LIBRARY_PATH
18470 ;;
18471
18472 bsdi[45]*)
18473 version_type=linux
18474 need_version=no
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18481 # the default ld.so.conf also contains /usr/contrib/lib and
18482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18483 # libtool to hard-code these into programs
18484 ;;
18485
18486 cygwin* | mingw* | pw32*)
18487 version_type=windows
18488 shrext_cmds=".dll"
18489 need_version=no
18490 need_lib_prefix=no
18491
18492 case $GCC,$host_os in
18493 yes,cygwin* | yes,mingw* | yes,pw32*)
18494 library_names_spec='$libname.dll.a'
18495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18496 postinstall_cmds='base_file=`basename \${file}`~
18497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18498 dldir=$destdir/`dirname \$dlpath`~
18499 test -d \$dldir || mkdir -p \$dldir~
18500 $install_prog $dir/$dlname \$dldir/$dlname~
18501 chmod a+x \$dldir/$dlname'
18502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503 dlpath=$dir/\$dldll~
18504 $rm \$dlpath'
18505 shlibpath_overrides_runpath=yes
18506
18507 case $host_os in
18508 cygwin*)
18509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18512 ;;
18513 mingw*)
18514 # MinGW DLLs use traditional 'lib' prefix
18515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518 # It is most probably a Windows format PATH printed by
18519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18520 # path with ; separators, and with drive letters. We can handle the
18521 # drive letters (cygwin fileutils understands them), so leave them,
18522 # especially as we might pass files found there to a mingw objdump,
18523 # which wouldn't understand a cygwinified path. Ahh.
18524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18525 else
18526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18527 fi
18528 ;;
18529 pw32*)
18530 # pw32 DLLs use 'pw' prefix rather than 'lib'
18531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18532 ;;
18533 esac
18534 ;;
18535
18536 *)
18537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18538 ;;
18539 esac
18540 dynamic_linker='Win32 ld.exe'
18541 # FIXME: first we should search . and the directory the executable is in
18542 shlibpath_var=PATH
18543 ;;
18544
18545 darwin* | rhapsody*)
18546 dynamic_linker="$host_os dyld"
18547 version_type=darwin
18548 need_lib_prefix=no
18549 need_version=no
18550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551 soname_spec='${libname}${release}${major}$shared_ext'
18552 shlibpath_overrides_runpath=yes
18553 shlibpath_var=DYLD_LIBRARY_PATH
18554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18555
18556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18557 ;;
18558
18559 dgux*)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 shlibpath_var=LD_LIBRARY_PATH
18566 ;;
18567
18568 freebsd1*)
18569 dynamic_linker=no
18570 ;;
18571
18572 freebsd* | dragonfly*)
18573 # DragonFly does not have aout. When/if they implement a new
18574 # versioning mechanism, adjust this.
18575 if test -x /usr/bin/objformat; then
18576 objformat=`/usr/bin/objformat`
18577 else
18578 case $host_os in
18579 freebsd[123]*) objformat=aout ;;
18580 *) objformat=elf ;;
18581 esac
18582 fi
18583 version_type=freebsd-$objformat
18584 case $version_type in
18585 freebsd-elf*)
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18587 need_version=no
18588 need_lib_prefix=no
18589 ;;
18590 freebsd-*)
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18592 need_version=yes
18593 ;;
18594 esac
18595 shlibpath_var=LD_LIBRARY_PATH
18596 case $host_os in
18597 freebsd2*)
18598 shlibpath_overrides_runpath=yes
18599 ;;
18600 freebsd3.[01]* | freebsdelf3.[01]*)
18601 shlibpath_overrides_runpath=yes
18602 hardcode_into_libs=yes
18603 ;;
18604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18606 shlibpath_overrides_runpath=no
18607 hardcode_into_libs=yes
18608 ;;
18609 *) # from 4.6 on, and DragonFly
18610 shlibpath_overrides_runpath=yes
18611 hardcode_into_libs=yes
18612 ;;
18613 esac
18614 ;;
18615
18616 gnu*)
18617 version_type=linux
18618 need_lib_prefix=no
18619 need_version=no
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 hardcode_into_libs=yes
18624 ;;
18625
18626 hpux9* | hpux10* | hpux11*)
18627 # Give a soname corresponding to the major version so that dld.sl refuses to
18628 # link against other versions.
18629 version_type=sunos
18630 need_lib_prefix=no
18631 need_version=no
18632 case $host_cpu in
18633 ia64*)
18634 shrext_cmds='.so'
18635 hardcode_into_libs=yes
18636 dynamic_linker="$host_os dld.so"
18637 shlibpath_var=LD_LIBRARY_PATH
18638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640 soname_spec='${libname}${release}${shared_ext}$major'
18641 if test "X$HPUX_IA64_MODE" = X32; then
18642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18643 else
18644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18645 fi
18646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18647 ;;
18648 hppa*64*)
18649 shrext_cmds='.sl'
18650 hardcode_into_libs=yes
18651 dynamic_linker="$host_os dld.sl"
18652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 soname_spec='${libname}${release}${shared_ext}$major'
18656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18658 ;;
18659 *)
18660 shrext_cmds='.sl'
18661 dynamic_linker="$host_os dld.sl"
18662 shlibpath_var=SHLIB_PATH
18663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18665 soname_spec='${libname}${release}${shared_ext}$major'
18666 ;;
18667 esac
18668 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18669 postinstall_cmds='chmod 555 $lib'
18670 ;;
18671
18672 interix[3-9]*)
18673 version_type=linux
18674 need_lib_prefix=no
18675 need_version=no
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath=no
18681 hardcode_into_libs=yes
18682 ;;
18683
18684 irix5* | irix6* | nonstopux*)
18685 case $host_os in
18686 nonstopux*) version_type=nonstopux ;;
18687 *)
18688 if test "$lt_cv_prog_gnu_ld" = yes; then
18689 version_type=linux
18690 else
18691 version_type=irix
18692 fi ;;
18693 esac
18694 need_lib_prefix=no
18695 need_version=no
18696 soname_spec='${libname}${release}${shared_ext}$major'
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18698 case $host_os in
18699 irix5* | nonstopux*)
18700 libsuff= shlibsuff=
18701 ;;
18702 *)
18703 case $LD in # libtool.m4 will add one of these switches to LD
18704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18705 libsuff= shlibsuff= libmagic=32-bit;;
18706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18707 libsuff=32 shlibsuff=N32 libmagic=N32;;
18708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18710 *) libsuff= shlibsuff= libmagic=never-match;;
18711 esac
18712 ;;
18713 esac
18714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18715 shlibpath_overrides_runpath=no
18716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18718 hardcode_into_libs=yes
18719 ;;
18720
18721 # No shared lib support for Linux oldld, aout, or coff.
18722 linux*oldld* | linux*aout* | linux*coff*)
18723 dynamic_linker=no
18724 ;;
18725
18726 # This must be Linux ELF.
18727 linux* | k*bsd*-gnu)
18728 version_type=linux
18729 need_lib_prefix=no
18730 need_version=no
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18734 shlibpath_var=LD_LIBRARY_PATH
18735 shlibpath_overrides_runpath=no
18736 # This implies no fast_install, which is unacceptable.
18737 # Some rework will be needed to allow for fast_install
18738 # before this can be enabled.
18739 hardcode_into_libs=yes
18740
18741 # Append ld.so.conf contents to the search path
18742 if test -f /etc/ld.so.conf; then
18743 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' ' '`
18744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18745 fi
18746
18747 # We used to test for /lib/ld.so.1 and disable shared libraries on
18748 # powerpc, because MkLinux only supported shared libraries with the
18749 # GNU dynamic linker. Since this was broken with cross compilers,
18750 # most powerpc-linux boxes support dynamic linking these days and
18751 # people can always --disable-shared, the test was removed, and we
18752 # assume the GNU/Linux dynamic linker is in use.
18753 dynamic_linker='GNU/Linux ld.so'
18754 ;;
18755
18756 netbsd*)
18757 version_type=sunos
18758 need_lib_prefix=no
18759 need_version=no
18760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18763 dynamic_linker='NetBSD (a.out) ld.so'
18764 else
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 dynamic_linker='NetBSD ld.elf_so'
18768 fi
18769 shlibpath_var=LD_LIBRARY_PATH
18770 shlibpath_overrides_runpath=yes
18771 hardcode_into_libs=yes
18772 ;;
18773
18774 newsos6)
18775 version_type=linux
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 shlibpath_var=LD_LIBRARY_PATH
18778 shlibpath_overrides_runpath=yes
18779 ;;
18780
18781 nto-qnx*)
18782 version_type=linux
18783 need_lib_prefix=no
18784 need_version=no
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 shlibpath_var=LD_LIBRARY_PATH
18788 shlibpath_overrides_runpath=yes
18789 ;;
18790
18791 openbsd*)
18792 version_type=sunos
18793 sys_lib_dlsearch_path_spec="/usr/lib"
18794 need_lib_prefix=no
18795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18796 case $host_os in
18797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18798 *) need_version=no ;;
18799 esac
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18802 shlibpath_var=LD_LIBRARY_PATH
18803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18804 case $host_os in
18805 openbsd2.[89] | openbsd2.[89].*)
18806 shlibpath_overrides_runpath=no
18807 ;;
18808 *)
18809 shlibpath_overrides_runpath=yes
18810 ;;
18811 esac
18812 else
18813 shlibpath_overrides_runpath=yes
18814 fi
18815 ;;
18816
18817 os2*)
18818 libname_spec='$name'
18819 shrext_cmds=".dll"
18820 need_lib_prefix=no
18821 library_names_spec='$libname${shared_ext} $libname.a'
18822 dynamic_linker='OS/2 ld.exe'
18823 shlibpath_var=LIBPATH
18824 ;;
18825
18826 osf3* | osf4* | osf5*)
18827 version_type=osf
18828 need_lib_prefix=no
18829 need_version=no
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18832 shlibpath_var=LD_LIBRARY_PATH
18833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18835 ;;
18836
18837 rdos*)
18838 dynamic_linker=no
18839 ;;
18840
18841 solaris*)
18842 version_type=linux
18843 need_lib_prefix=no
18844 need_version=no
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846 soname_spec='${libname}${release}${shared_ext}$major'
18847 shlibpath_var=LD_LIBRARY_PATH
18848 shlibpath_overrides_runpath=yes
18849 hardcode_into_libs=yes
18850 # ldd complains unless libraries are executable
18851 postinstall_cmds='chmod +x $lib'
18852 ;;
18853
18854 sunos4*)
18855 version_type=sunos
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18858 shlibpath_var=LD_LIBRARY_PATH
18859 shlibpath_overrides_runpath=yes
18860 if test "$with_gnu_ld" = yes; then
18861 need_lib_prefix=no
18862 fi
18863 need_version=yes
18864 ;;
18865
18866 sysv4 | sysv4.3*)
18867 version_type=linux
18868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869 soname_spec='${libname}${release}${shared_ext}$major'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 case $host_vendor in
18872 sni)
18873 shlibpath_overrides_runpath=no
18874 need_lib_prefix=no
18875 export_dynamic_flag_spec='${wl}-Blargedynsym'
18876 runpath_var=LD_RUN_PATH
18877 ;;
18878 siemens)
18879 need_lib_prefix=no
18880 ;;
18881 motorola)
18882 need_lib_prefix=no
18883 need_version=no
18884 shlibpath_overrides_runpath=no
18885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18886 ;;
18887 esac
18888 ;;
18889
18890 sysv4*MP*)
18891 if test -d /usr/nec ;then
18892 version_type=linux
18893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18894 soname_spec='$libname${shared_ext}.$major'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 fi
18897 ;;
18898
18899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18900 version_type=freebsd-elf
18901 need_lib_prefix=no
18902 need_version=no
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 shlibpath_var=LD_LIBRARY_PATH
18906 hardcode_into_libs=yes
18907 if test "$with_gnu_ld" = yes; then
18908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18909 shlibpath_overrides_runpath=no
18910 else
18911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18912 shlibpath_overrides_runpath=yes
18913 case $host_os in
18914 sco3.2v5*)
18915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18916 ;;
18917 esac
18918 fi
18919 sys_lib_dlsearch_path_spec='/usr/lib'
18920 ;;
18921
18922 uts4*)
18923 version_type=linux
18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 shlibpath_var=LD_LIBRARY_PATH
18927 ;;
18928
18929 *)
18930 dynamic_linker=no
18931 ;;
18932 esac
18933 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18934 $as_echo "$dynamic_linker" >&6; }
18935 test "$dynamic_linker" = no && can_build_shared=no
18936
18937 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18938 $as_echo_n "(cached) " >&6
18939 else
18940 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18941 fi
18942
18943 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18944 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18945 $as_echo_n "(cached) " >&6
18946 else
18947 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18948 fi
18949
18950 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18951
18952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18953 if test "$GCC" = yes; then
18954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18955 fi
18956
18957 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18958 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18959 hardcode_action_GCJ=
18960 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18961 test -n "$runpath_var_GCJ" || \
18962 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18963
18964 # We can hardcode non-existant directories.
18965 if test "$hardcode_direct_GCJ" != no &&
18966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18967 # have to relink, otherwise we might link with an installed library
18968 # when we should be linking with a yet-to-be-installed one
18969 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18970 test "$hardcode_minus_L_GCJ" != no; then
18971 # Linking always hardcodes the temporary library directory.
18972 hardcode_action_GCJ=relink
18973 else
18974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18975 hardcode_action_GCJ=immediate
18976 fi
18977 else
18978 # We cannot hardcode anything, or else we can only hardcode existing
18979 # directories.
18980 hardcode_action_GCJ=unsupported
18981 fi
18982 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18983 $as_echo "$hardcode_action_GCJ" >&6; }
18984
18985 if test "$hardcode_action_GCJ" = relink; then
18986 # Fast installation is not supported
18987 enable_fast_install=no
18988 elif test "$shlibpath_overrides_runpath" = yes ||
18989 test "$enable_shared" = no; then
18990 # Fast installation is not necessary
18991 enable_fast_install=needless
18992 fi
18993
18994
18995 # The else clause should only fire when bootstrapping the
18996 # libtool distribution, otherwise you forgot to ship ltmain.sh
18997 # with your package, and you will get complaints that there are
18998 # no rules to generate ltmain.sh.
18999 if test -f "$ltmain"; then
19000 # See if we are running on zsh, and set the options which allow our commands through
19001 # without removal of \ escapes.
19002 if test -n "${ZSH_VERSION+set}" ; then
19003 setopt NO_GLOB_SUBST
19004 fi
19005 # Now quote all the things that may contain metacharacters while being
19006 # careful not to overquote the AC_SUBSTed values. We take copies of the
19007 # variables and quote the copies for generation of the libtool script.
19008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19009 SED SHELL STRIP \
19010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19012 deplibs_check_method reload_flag reload_cmds need_locks \
19013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19014 lt_cv_sys_global_symbol_to_c_name_address \
19015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19016 old_postinstall_cmds old_postuninstall_cmds \
19017 compiler_GCJ \
19018 CC_GCJ \
19019 LD_GCJ \
19020 lt_prog_compiler_wl_GCJ \
19021 lt_prog_compiler_pic_GCJ \
19022 lt_prog_compiler_static_GCJ \
19023 lt_prog_compiler_no_builtin_flag_GCJ \
19024 export_dynamic_flag_spec_GCJ \
19025 thread_safe_flag_spec_GCJ \
19026 whole_archive_flag_spec_GCJ \
19027 enable_shared_with_static_runtimes_GCJ \
19028 old_archive_cmds_GCJ \
19029 old_archive_from_new_cmds_GCJ \
19030 predep_objects_GCJ \
19031 postdep_objects_GCJ \
19032 predeps_GCJ \
19033 postdeps_GCJ \
19034 compiler_lib_search_path_GCJ \
19035 compiler_lib_search_dirs_GCJ \
19036 archive_cmds_GCJ \
19037 archive_expsym_cmds_GCJ \
19038 postinstall_cmds_GCJ \
19039 postuninstall_cmds_GCJ \
19040 old_archive_from_expsyms_cmds_GCJ \
19041 allow_undefined_flag_GCJ \
19042 no_undefined_flag_GCJ \
19043 export_symbols_cmds_GCJ \
19044 hardcode_libdir_flag_spec_GCJ \
19045 hardcode_libdir_flag_spec_ld_GCJ \
19046 hardcode_libdir_separator_GCJ \
19047 hardcode_automatic_GCJ \
19048 module_cmds_GCJ \
19049 module_expsym_cmds_GCJ \
19050 lt_cv_prog_compiler_c_o_GCJ \
19051 fix_srcfile_path_GCJ \
19052 exclude_expsyms_GCJ \
19053 include_expsyms_GCJ; do
19054
19055 case $var in
19056 old_archive_cmds_GCJ | \
19057 old_archive_from_new_cmds_GCJ | \
19058 archive_cmds_GCJ | \
19059 archive_expsym_cmds_GCJ | \
19060 module_cmds_GCJ | \
19061 module_expsym_cmds_GCJ | \
19062 old_archive_from_expsyms_cmds_GCJ | \
19063 export_symbols_cmds_GCJ | \
19064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19065 postinstall_cmds | postuninstall_cmds | \
19066 old_postinstall_cmds | old_postuninstall_cmds | \
19067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19068 # Double-quote double-evaled strings.
19069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19070 ;;
19071 *)
19072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19073 ;;
19074 esac
19075 done
19076
19077 case $lt_echo in
19078 *'\$0 --fallback-echo"')
19079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19080 ;;
19081 esac
19082
19083 cfgfile="$ofile"
19084
19085 cat <<__EOF__ >> "$cfgfile"
19086 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19087
19088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19089
19090 # Shell to use when invoking shell scripts.
19091 SHELL=$lt_SHELL
19092
19093 # Whether or not to build shared libraries.
19094 build_libtool_libs=$enable_shared
19095
19096 # Whether or not to build static libraries.
19097 build_old_libs=$enable_static
19098
19099 # Whether or not to add -lc for building shared libraries.
19100 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19101
19102 # Whether or not to disallow shared libs when runtime libs are static
19103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19104
19105 # Whether or not to optimize for fast installation.
19106 fast_install=$enable_fast_install
19107
19108 # The host system.
19109 host_alias=$host_alias
19110 host=$host
19111 host_os=$host_os
19112
19113 # The build system.
19114 build_alias=$build_alias
19115 build=$build
19116 build_os=$build_os
19117
19118 # An echo program that does not interpret backslashes.
19119 echo=$lt_echo
19120
19121 # The archiver.
19122 AR=$lt_AR
19123 AR_FLAGS=$lt_AR_FLAGS
19124
19125 # A C compiler.
19126 LTCC=$lt_LTCC
19127
19128 # LTCC compiler flags.
19129 LTCFLAGS=$lt_LTCFLAGS
19130
19131 # A language-specific compiler.
19132 CC=$lt_compiler_GCJ
19133
19134 # Is the compiler the GNU C compiler?
19135 with_gcc=$GCC_GCJ
19136
19137 # An ERE matcher.
19138 EGREP=$lt_EGREP
19139
19140 # The linker used to build libraries.
19141 LD=$lt_LD_GCJ
19142
19143 # Whether we need hard or soft links.
19144 LN_S=$lt_LN_S
19145
19146 # A BSD-compatible nm program.
19147 NM=$lt_NM
19148
19149 # A symbol stripping program
19150 STRIP=$lt_STRIP
19151
19152 # Used to examine libraries when file_magic_cmd begins "file"
19153 MAGIC_CMD=$MAGIC_CMD
19154
19155 # Used on cygwin: DLL creation program.
19156 DLLTOOL="$DLLTOOL"
19157
19158 # Used on cygwin: object dumper.
19159 OBJDUMP="$OBJDUMP"
19160
19161 # Used on cygwin: assembler.
19162 AS="$AS"
19163
19164 # The name of the directory that contains temporary libtool files.
19165 objdir=$objdir
19166
19167 # How to create reloadable object files.
19168 reload_flag=$lt_reload_flag
19169 reload_cmds=$lt_reload_cmds
19170
19171 # How to pass a linker flag through the compiler.
19172 wl=$lt_lt_prog_compiler_wl_GCJ
19173
19174 # Object file suffix (normally "o").
19175 objext="$ac_objext"
19176
19177 # Old archive suffix (normally "a").
19178 libext="$libext"
19179
19180 # Shared library suffix (normally ".so").
19181 shrext_cmds='$shrext_cmds'
19182
19183 # Executable file suffix (normally "").
19184 exeext="$exeext"
19185
19186 # Additional compiler flags for building library objects.
19187 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19188 pic_mode=$pic_mode
19189
19190 # What is the maximum length of a command?
19191 max_cmd_len=$lt_cv_sys_max_cmd_len
19192
19193 # Does compiler simultaneously support -c and -o options?
19194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19195
19196 # Must we lock files when doing compilation?
19197 need_locks=$lt_need_locks
19198
19199 # Do we need the lib prefix for modules?
19200 need_lib_prefix=$need_lib_prefix
19201
19202 # Do we need a version for libraries?
19203 need_version=$need_version
19204
19205 # Whether dlopen is supported.
19206 dlopen_support=$enable_dlopen
19207
19208 # Whether dlopen of programs is supported.
19209 dlopen_self=$enable_dlopen_self
19210
19211 # Whether dlopen of statically linked programs is supported.
19212 dlopen_self_static=$enable_dlopen_self_static
19213
19214 # Compiler flag to prevent dynamic linking.
19215 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19216
19217 # Compiler flag to turn off builtin functions.
19218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19219
19220 # Compiler flag to allow reflexive dlopens.
19221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19222
19223 # Compiler flag to generate shared objects directly from archives.
19224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19225
19226 # Compiler flag to generate thread-safe objects.
19227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19228
19229 # Library versioning type.
19230 version_type=$version_type
19231
19232 # Format of library name prefix.
19233 libname_spec=$lt_libname_spec
19234
19235 # List of archive names. First name is the real one, the rest are links.
19236 # The last name is the one that the linker finds with -lNAME.
19237 library_names_spec=$lt_library_names_spec
19238
19239 # The coded name of the library, if different from the real name.
19240 soname_spec=$lt_soname_spec
19241
19242 # Commands used to build and install an old-style archive.
19243 RANLIB=$lt_RANLIB
19244 old_archive_cmds=$lt_old_archive_cmds_GCJ
19245 old_postinstall_cmds=$lt_old_postinstall_cmds
19246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19247
19248 # Create an old-style archive from a shared archive.
19249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19250
19251 # Create a temporary old-style archive to link instead of a shared archive.
19252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19253
19254 # Commands used to build and install a shared archive.
19255 archive_cmds=$lt_archive_cmds_GCJ
19256 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19257 postinstall_cmds=$lt_postinstall_cmds
19258 postuninstall_cmds=$lt_postuninstall_cmds
19259
19260 # Commands used to build a loadable module (assumed same as above if empty)
19261 module_cmds=$lt_module_cmds_GCJ
19262 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19263
19264 # Commands to strip libraries.
19265 old_striplib=$lt_old_striplib
19266 striplib=$lt_striplib
19267
19268 # Dependencies to place before the objects being linked to create a
19269 # shared library.
19270 predep_objects=$lt_predep_objects_GCJ
19271
19272 # Dependencies to place after the objects being linked to create a
19273 # shared library.
19274 postdep_objects=$lt_postdep_objects_GCJ
19275
19276 # Dependencies to place before the objects being linked to create a
19277 # shared library.
19278 predeps=$lt_predeps_GCJ
19279
19280 # Dependencies to place after the objects being linked to create a
19281 # shared library.
19282 postdeps=$lt_postdeps_GCJ
19283
19284 # The directories searched by this compiler when creating a shared
19285 # library
19286 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19287
19288 # The library search path used internally by the compiler when linking
19289 # a shared library.
19290 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19291
19292 # Method to check whether dependent libraries are shared objects.
19293 deplibs_check_method=$lt_deplibs_check_method
19294
19295 # Command to use when deplibs_check_method == file_magic.
19296 file_magic_cmd=$lt_file_magic_cmd
19297
19298 # Flag that allows shared libraries with undefined symbols to be built.
19299 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19300
19301 # Flag that forces no undefined symbols.
19302 no_undefined_flag=$lt_no_undefined_flag_GCJ
19303
19304 # Commands used to finish a libtool library installation in a directory.
19305 finish_cmds=$lt_finish_cmds
19306
19307 # Same as above, but a single script fragment to be evaled but not shown.
19308 finish_eval=$lt_finish_eval
19309
19310 # Take the output of nm and produce a listing of raw symbols and C names.
19311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19312
19313 # Transform the output of nm in a proper C declaration
19314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19315
19316 # Transform the output of nm in a C name address pair
19317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19318
19319 # This is the shared library runtime path variable.
19320 runpath_var=$runpath_var
19321
19322 # This is the shared library path variable.
19323 shlibpath_var=$shlibpath_var
19324
19325 # Is shlibpath searched before the hard-coded library search path?
19326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19327
19328 # How to hardcode a shared library path into an executable.
19329 hardcode_action=$hardcode_action_GCJ
19330
19331 # Whether we should hardcode library paths into libraries.
19332 hardcode_into_libs=$hardcode_into_libs
19333
19334 # Flag to hardcode \$libdir into a binary during linking.
19335 # This must work even if \$libdir does not exist.
19336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19337
19338 # If ld is used when linking, flag to hardcode \$libdir into
19339 # a binary during linking. This must work even if \$libdir does
19340 # not exist.
19341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19342
19343 # Whether we need a single -rpath flag with a separated argument.
19344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19345
19346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19347 # resulting binary.
19348 hardcode_direct=$hardcode_direct_GCJ
19349
19350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19351 # resulting binary.
19352 hardcode_minus_L=$hardcode_minus_L_GCJ
19353
19354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19355 # the resulting binary.
19356 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19357
19358 # Set to yes if building a shared library automatically hardcodes DIR into the library
19359 # and all subsequent libraries and executables linked against it.
19360 hardcode_automatic=$hardcode_automatic_GCJ
19361
19362 # Variables whose values should be saved in libtool wrapper scripts and
19363 # restored at relink time.
19364 variables_saved_for_relink="$variables_saved_for_relink"
19365
19366 # Whether libtool must link a program against all its dependency libraries.
19367 link_all_deplibs=$link_all_deplibs_GCJ
19368
19369 # Compile-time system search path for libraries
19370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19371
19372 # Run-time system search path for libraries
19373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19374
19375 # Fix the shell variable \$srcfile for the compiler.
19376 fix_srcfile_path=$lt_fix_srcfile_path
19377
19378 # Set to yes if exported symbols are required.
19379 always_export_symbols=$always_export_symbols_GCJ
19380
19381 # The commands to list exported symbols.
19382 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19383
19384 # The commands to extract the exported symbol list from a shared archive.
19385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19386
19387 # Symbols that should not be listed in the preloaded symbols.
19388 exclude_expsyms=$lt_exclude_expsyms_GCJ
19389
19390 # Symbols that must always be exported.
19391 include_expsyms=$lt_include_expsyms_GCJ
19392
19393 # ### END LIBTOOL TAG CONFIG: $tagname
19394
19395 __EOF__
19396
19397
19398 else
19399 # If there is no Makefile yet, we rely on a make rule to execute
19400 # `config.status --recheck' to rerun these tests and create the
19401 # libtool script then.
19402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19403 if test -f "$ltmain_in"; then
19404 test -f Makefile && make "$ltmain"
19405 fi
19406 fi
19407
19408
19409 ac_ext=c
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414
19415 CC="$lt_save_CC"
19416
19417 else
19418 tagname=""
19419 fi
19420 ;;
19421
19422 RC)
19423
19424
19425 # Source file extension for RC test sources.
19426 ac_ext=rc
19427
19428 # Object file extension for compiled RC test sources.
19429 objext=o
19430 objext_RC=$objext
19431
19432 # Code to be used in simple compile tests
19433 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19434
19435 # Code to be used in simple link tests
19436 lt_simple_link_test_code="$lt_simple_compile_test_code"
19437
19438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19439
19440 # If no C compiler was specified, use CC.
19441 LTCC=${LTCC-"$CC"}
19442
19443 # If no C compiler flags were specified, use CFLAGS.
19444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19445
19446 # Allow CC to be a program name with arguments.
19447 compiler=$CC
19448
19449
19450 # save warnings/boilerplate of simple test code
19451 ac_outfile=conftest.$ac_objext
19452 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19453 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19454 _lt_compiler_boilerplate=`cat conftest.err`
19455 $rm conftest*
19456
19457 ac_outfile=conftest.$ac_objext
19458 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19459 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19460 _lt_linker_boilerplate=`cat conftest.err`
19461 $rm -r conftest*
19462
19463
19464 # Allow CC to be a program name with arguments.
19465 lt_save_CC="$CC"
19466 CC=${RC-"windres"}
19467 compiler=$CC
19468 compiler_RC=$CC
19469 for cc_temp in $compiler""; do
19470 case $cc_temp in
19471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19473 \-*) ;;
19474 *) break;;
19475 esac
19476 done
19477 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19478
19479 lt_cv_prog_compiler_c_o_RC=yes
19480
19481 # The else clause should only fire when bootstrapping the
19482 # libtool distribution, otherwise you forgot to ship ltmain.sh
19483 # with your package, and you will get complaints that there are
19484 # no rules to generate ltmain.sh.
19485 if test -f "$ltmain"; then
19486 # See if we are running on zsh, and set the options which allow our commands through
19487 # without removal of \ escapes.
19488 if test -n "${ZSH_VERSION+set}" ; then
19489 setopt NO_GLOB_SUBST
19490 fi
19491 # Now quote all the things that may contain metacharacters while being
19492 # careful not to overquote the AC_SUBSTed values. We take copies of the
19493 # variables and quote the copies for generation of the libtool script.
19494 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19495 SED SHELL STRIP \
19496 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19497 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19498 deplibs_check_method reload_flag reload_cmds need_locks \
19499 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19500 lt_cv_sys_global_symbol_to_c_name_address \
19501 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19502 old_postinstall_cmds old_postuninstall_cmds \
19503 compiler_RC \
19504 CC_RC \
19505 LD_RC \
19506 lt_prog_compiler_wl_RC \
19507 lt_prog_compiler_pic_RC \
19508 lt_prog_compiler_static_RC \
19509 lt_prog_compiler_no_builtin_flag_RC \
19510 export_dynamic_flag_spec_RC \
19511 thread_safe_flag_spec_RC \
19512 whole_archive_flag_spec_RC \
19513 enable_shared_with_static_runtimes_RC \
19514 old_archive_cmds_RC \
19515 old_archive_from_new_cmds_RC \
19516 predep_objects_RC \
19517 postdep_objects_RC \
19518 predeps_RC \
19519 postdeps_RC \
19520 compiler_lib_search_path_RC \
19521 compiler_lib_search_dirs_RC \
19522 archive_cmds_RC \
19523 archive_expsym_cmds_RC \
19524 postinstall_cmds_RC \
19525 postuninstall_cmds_RC \
19526 old_archive_from_expsyms_cmds_RC \
19527 allow_undefined_flag_RC \
19528 no_undefined_flag_RC \
19529 export_symbols_cmds_RC \
19530 hardcode_libdir_flag_spec_RC \
19531 hardcode_libdir_flag_spec_ld_RC \
19532 hardcode_libdir_separator_RC \
19533 hardcode_automatic_RC \
19534 module_cmds_RC \
19535 module_expsym_cmds_RC \
19536 lt_cv_prog_compiler_c_o_RC \
19537 fix_srcfile_path_RC \
19538 exclude_expsyms_RC \
19539 include_expsyms_RC; do
19540
19541 case $var in
19542 old_archive_cmds_RC | \
19543 old_archive_from_new_cmds_RC | \
19544 archive_cmds_RC | \
19545 archive_expsym_cmds_RC | \
19546 module_cmds_RC | \
19547 module_expsym_cmds_RC | \
19548 old_archive_from_expsyms_cmds_RC | \
19549 export_symbols_cmds_RC | \
19550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19551 postinstall_cmds | postuninstall_cmds | \
19552 old_postinstall_cmds | old_postuninstall_cmds | \
19553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19554 # Double-quote double-evaled strings.
19555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19556 ;;
19557 *)
19558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19559 ;;
19560 esac
19561 done
19562
19563 case $lt_echo in
19564 *'\$0 --fallback-echo"')
19565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19566 ;;
19567 esac
19568
19569 cfgfile="$ofile"
19570
19571 cat <<__EOF__ >> "$cfgfile"
19572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19573
19574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19575
19576 # Shell to use when invoking shell scripts.
19577 SHELL=$lt_SHELL
19578
19579 # Whether or not to build shared libraries.
19580 build_libtool_libs=$enable_shared
19581
19582 # Whether or not to build static libraries.
19583 build_old_libs=$enable_static
19584
19585 # Whether or not to add -lc for building shared libraries.
19586 build_libtool_need_lc=$archive_cmds_need_lc_RC
19587
19588 # Whether or not to disallow shared libs when runtime libs are static
19589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19590
19591 # Whether or not to optimize for fast installation.
19592 fast_install=$enable_fast_install
19593
19594 # The host system.
19595 host_alias=$host_alias
19596 host=$host
19597 host_os=$host_os
19598
19599 # The build system.
19600 build_alias=$build_alias
19601 build=$build
19602 build_os=$build_os
19603
19604 # An echo program that does not interpret backslashes.
19605 echo=$lt_echo
19606
19607 # The archiver.
19608 AR=$lt_AR
19609 AR_FLAGS=$lt_AR_FLAGS
19610
19611 # A C compiler.
19612 LTCC=$lt_LTCC
19613
19614 # LTCC compiler flags.
19615 LTCFLAGS=$lt_LTCFLAGS
19616
19617 # A language-specific compiler.
19618 CC=$lt_compiler_RC
19619
19620 # Is the compiler the GNU C compiler?
19621 with_gcc=$GCC_RC
19622
19623 # An ERE matcher.
19624 EGREP=$lt_EGREP
19625
19626 # The linker used to build libraries.
19627 LD=$lt_LD_RC
19628
19629 # Whether we need hard or soft links.
19630 LN_S=$lt_LN_S
19631
19632 # A BSD-compatible nm program.
19633 NM=$lt_NM
19634
19635 # A symbol stripping program
19636 STRIP=$lt_STRIP
19637
19638 # Used to examine libraries when file_magic_cmd begins "file"
19639 MAGIC_CMD=$MAGIC_CMD
19640
19641 # Used on cygwin: DLL creation program.
19642 DLLTOOL="$DLLTOOL"
19643
19644 # Used on cygwin: object dumper.
19645 OBJDUMP="$OBJDUMP"
19646
19647 # Used on cygwin: assembler.
19648 AS="$AS"
19649
19650 # The name of the directory that contains temporary libtool files.
19651 objdir=$objdir
19652
19653 # How to create reloadable object files.
19654 reload_flag=$lt_reload_flag
19655 reload_cmds=$lt_reload_cmds
19656
19657 # How to pass a linker flag through the compiler.
19658 wl=$lt_lt_prog_compiler_wl_RC
19659
19660 # Object file suffix (normally "o").
19661 objext="$ac_objext"
19662
19663 # Old archive suffix (normally "a").
19664 libext="$libext"
19665
19666 # Shared library suffix (normally ".so").
19667 shrext_cmds='$shrext_cmds'
19668
19669 # Executable file suffix (normally "").
19670 exeext="$exeext"
19671
19672 # Additional compiler flags for building library objects.
19673 pic_flag=$lt_lt_prog_compiler_pic_RC
19674 pic_mode=$pic_mode
19675
19676 # What is the maximum length of a command?
19677 max_cmd_len=$lt_cv_sys_max_cmd_len
19678
19679 # Does compiler simultaneously support -c and -o options?
19680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19681
19682 # Must we lock files when doing compilation?
19683 need_locks=$lt_need_locks
19684
19685 # Do we need the lib prefix for modules?
19686 need_lib_prefix=$need_lib_prefix
19687
19688 # Do we need a version for libraries?
19689 need_version=$need_version
19690
19691 # Whether dlopen is supported.
19692 dlopen_support=$enable_dlopen
19693
19694 # Whether dlopen of programs is supported.
19695 dlopen_self=$enable_dlopen_self
19696
19697 # Whether dlopen of statically linked programs is supported.
19698 dlopen_self_static=$enable_dlopen_self_static
19699
19700 # Compiler flag to prevent dynamic linking.
19701 link_static_flag=$lt_lt_prog_compiler_static_RC
19702
19703 # Compiler flag to turn off builtin functions.
19704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19705
19706 # Compiler flag to allow reflexive dlopens.
19707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19708
19709 # Compiler flag to generate shared objects directly from archives.
19710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19711
19712 # Compiler flag to generate thread-safe objects.
19713 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19714
19715 # Library versioning type.
19716 version_type=$version_type
19717
19718 # Format of library name prefix.
19719 libname_spec=$lt_libname_spec
19720
19721 # List of archive names. First name is the real one, the rest are links.
19722 # The last name is the one that the linker finds with -lNAME.
19723 library_names_spec=$lt_library_names_spec
19724
19725 # The coded name of the library, if different from the real name.
19726 soname_spec=$lt_soname_spec
19727
19728 # Commands used to build and install an old-style archive.
19729 RANLIB=$lt_RANLIB
19730 old_archive_cmds=$lt_old_archive_cmds_RC
19731 old_postinstall_cmds=$lt_old_postinstall_cmds
19732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19733
19734 # Create an old-style archive from a shared archive.
19735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19736
19737 # Create a temporary old-style archive to link instead of a shared archive.
19738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19739
19740 # Commands used to build and install a shared archive.
19741 archive_cmds=$lt_archive_cmds_RC
19742 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19743 postinstall_cmds=$lt_postinstall_cmds
19744 postuninstall_cmds=$lt_postuninstall_cmds
19745
19746 # Commands used to build a loadable module (assumed same as above if empty)
19747 module_cmds=$lt_module_cmds_RC
19748 module_expsym_cmds=$lt_module_expsym_cmds_RC
19749
19750 # Commands to strip libraries.
19751 old_striplib=$lt_old_striplib
19752 striplib=$lt_striplib
19753
19754 # Dependencies to place before the objects being linked to create a
19755 # shared library.
19756 predep_objects=$lt_predep_objects_RC
19757
19758 # Dependencies to place after the objects being linked to create a
19759 # shared library.
19760 postdep_objects=$lt_postdep_objects_RC
19761
19762 # Dependencies to place before the objects being linked to create a
19763 # shared library.
19764 predeps=$lt_predeps_RC
19765
19766 # Dependencies to place after the objects being linked to create a
19767 # shared library.
19768 postdeps=$lt_postdeps_RC
19769
19770 # The directories searched by this compiler when creating a shared
19771 # library
19772 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19773
19774 # The library search path used internally by the compiler when linking
19775 # a shared library.
19776 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19777
19778 # Method to check whether dependent libraries are shared objects.
19779 deplibs_check_method=$lt_deplibs_check_method
19780
19781 # Command to use when deplibs_check_method == file_magic.
19782 file_magic_cmd=$lt_file_magic_cmd
19783
19784 # Flag that allows shared libraries with undefined symbols to be built.
19785 allow_undefined_flag=$lt_allow_undefined_flag_RC
19786
19787 # Flag that forces no undefined symbols.
19788 no_undefined_flag=$lt_no_undefined_flag_RC
19789
19790 # Commands used to finish a libtool library installation in a directory.
19791 finish_cmds=$lt_finish_cmds
19792
19793 # Same as above, but a single script fragment to be evaled but not shown.
19794 finish_eval=$lt_finish_eval
19795
19796 # Take the output of nm and produce a listing of raw symbols and C names.
19797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19798
19799 # Transform the output of nm in a proper C declaration
19800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19801
19802 # Transform the output of nm in a C name address pair
19803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19804
19805 # This is the shared library runtime path variable.
19806 runpath_var=$runpath_var
19807
19808 # This is the shared library path variable.
19809 shlibpath_var=$shlibpath_var
19810
19811 # Is shlibpath searched before the hard-coded library search path?
19812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19813
19814 # How to hardcode a shared library path into an executable.
19815 hardcode_action=$hardcode_action_RC
19816
19817 # Whether we should hardcode library paths into libraries.
19818 hardcode_into_libs=$hardcode_into_libs
19819
19820 # Flag to hardcode \$libdir into a binary during linking.
19821 # This must work even if \$libdir does not exist.
19822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19823
19824 # If ld is used when linking, flag to hardcode \$libdir into
19825 # a binary during linking. This must work even if \$libdir does
19826 # not exist.
19827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19828
19829 # Whether we need a single -rpath flag with a separated argument.
19830 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19831
19832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19833 # resulting binary.
19834 hardcode_direct=$hardcode_direct_RC
19835
19836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19837 # resulting binary.
19838 hardcode_minus_L=$hardcode_minus_L_RC
19839
19840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19841 # the resulting binary.
19842 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19843
19844 # Set to yes if building a shared library automatically hardcodes DIR into the library
19845 # and all subsequent libraries and executables linked against it.
19846 hardcode_automatic=$hardcode_automatic_RC
19847
19848 # Variables whose values should be saved in libtool wrapper scripts and
19849 # restored at relink time.
19850 variables_saved_for_relink="$variables_saved_for_relink"
19851
19852 # Whether libtool must link a program against all its dependency libraries.
19853 link_all_deplibs=$link_all_deplibs_RC
19854
19855 # Compile-time system search path for libraries
19856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19857
19858 # Run-time system search path for libraries
19859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19860
19861 # Fix the shell variable \$srcfile for the compiler.
19862 fix_srcfile_path=$lt_fix_srcfile_path
19863
19864 # Set to yes if exported symbols are required.
19865 always_export_symbols=$always_export_symbols_RC
19866
19867 # The commands to list exported symbols.
19868 export_symbols_cmds=$lt_export_symbols_cmds_RC
19869
19870 # The commands to extract the exported symbol list from a shared archive.
19871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19872
19873 # Symbols that should not be listed in the preloaded symbols.
19874 exclude_expsyms=$lt_exclude_expsyms_RC
19875
19876 # Symbols that must always be exported.
19877 include_expsyms=$lt_include_expsyms_RC
19878
19879 # ### END LIBTOOL TAG CONFIG: $tagname
19880
19881 __EOF__
19882
19883
19884 else
19885 # If there is no Makefile yet, we rely on a make rule to execute
19886 # `config.status --recheck' to rerun these tests and create the
19887 # libtool script then.
19888 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19889 if test -f "$ltmain_in"; then
19890 test -f Makefile && make "$ltmain"
19891 fi
19892 fi
19893
19894
19895 ac_ext=c
19896 ac_cpp='$CPP $CPPFLAGS'
19897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19900
19901 CC="$lt_save_CC"
19902
19903 ;;
19904
19905 *)
19906 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19907 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19908 { (exit 1); exit 1; }; }
19909 ;;
19910 esac
19911
19912 # Append the new tag name to the list of available tags.
19913 if test -n "$tagname" ; then
19914 available_tags="$available_tags $tagname"
19915 fi
19916 fi
19917 done
19918 IFS="$lt_save_ifs"
19919
19920 # Now substitute the updated list of available tags.
19921 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19922 mv "${ofile}T" "$ofile"
19923 chmod +x "$ofile"
19924 else
19925 rm -f "${ofile}T"
19926 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19927 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19928 { (exit 1); exit 1; }; }
19929 fi
19930 fi
19931
19932
19933
19934 # This can be used to rebuild libtool when needed
19935 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19936
19937 # Always use our own libtool.
19938 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19939
19940 # Prevent multiple expansion
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961 ac_ext=c
19962 ac_cpp='$CPP $CPPFLAGS'
19963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19966 if test -n "$ac_tool_prefix"; then
19967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19970 $as_echo_n "checking for $ac_word... " >&6; }
19971 if test "${ac_cv_prog_CC+set}" = set; then
19972 $as_echo_n "(cached) " >&6
19973 else
19974 if test -n "$CC"; then
19975 ac_cv_prog_CC="$CC" # Let the user override the test.
19976 else
19977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19978 for as_dir in $PATH
19979 do
19980 IFS=$as_save_IFS
19981 test -z "$as_dir" && as_dir=.
19982 for ac_exec_ext in '' $ac_executable_extensions; do
19983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 break 2
19987 fi
19988 done
19989 done
19990 IFS=$as_save_IFS
19991
19992 fi
19993 fi
19994 CC=$ac_cv_prog_CC
19995 if test -n "$CC"; then
19996 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19997 $as_echo "$CC" >&6; }
19998 else
19999 { $as_echo "$as_me:$LINENO: result: no" >&5
20000 $as_echo "no" >&6; }
20001 fi
20002
20003
20004 fi
20005 if test -z "$ac_cv_prog_CC"; then
20006 ac_ct_CC=$CC
20007 # Extract the first word of "gcc", so it can be a program name with args.
20008 set dummy gcc; ac_word=$2
20009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20010 $as_echo_n "checking for $ac_word... " >&6; }
20011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20012 $as_echo_n "(cached) " >&6
20013 else
20014 if test -n "$ac_ct_CC"; then
20015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20016 else
20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20018 for as_dir in $PATH
20019 do
20020 IFS=$as_save_IFS
20021 test -z "$as_dir" && as_dir=.
20022 for ac_exec_ext in '' $ac_executable_extensions; do
20023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20024 ac_cv_prog_ac_ct_CC="gcc"
20025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20026 break 2
20027 fi
20028 done
20029 done
20030 IFS=$as_save_IFS
20031
20032 fi
20033 fi
20034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20035 if test -n "$ac_ct_CC"; then
20036 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20037 $as_echo "$ac_ct_CC" >&6; }
20038 else
20039 { $as_echo "$as_me:$LINENO: result: no" >&5
20040 $as_echo "no" >&6; }
20041 fi
20042
20043 if test "x$ac_ct_CC" = x; then
20044 CC=""
20045 else
20046 case $cross_compiling:$ac_tool_warned in
20047 yes:)
20048 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20050 ac_tool_warned=yes ;;
20051 esac
20052 CC=$ac_ct_CC
20053 fi
20054 else
20055 CC="$ac_cv_prog_CC"
20056 fi
20057
20058 if test -z "$CC"; then
20059 if test -n "$ac_tool_prefix"; then
20060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20061 set dummy ${ac_tool_prefix}cc; ac_word=$2
20062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20063 $as_echo_n "checking for $ac_word... " >&6; }
20064 if test "${ac_cv_prog_CC+set}" = set; then
20065 $as_echo_n "(cached) " >&6
20066 else
20067 if test -n "$CC"; then
20068 ac_cv_prog_CC="$CC" # Let the user override the test.
20069 else
20070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071 for as_dir in $PATH
20072 do
20073 IFS=$as_save_IFS
20074 test -z "$as_dir" && as_dir=.
20075 for ac_exec_ext in '' $ac_executable_extensions; do
20076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20077 ac_cv_prog_CC="${ac_tool_prefix}cc"
20078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20079 break 2
20080 fi
20081 done
20082 done
20083 IFS=$as_save_IFS
20084
20085 fi
20086 fi
20087 CC=$ac_cv_prog_CC
20088 if test -n "$CC"; then
20089 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20090 $as_echo "$CC" >&6; }
20091 else
20092 { $as_echo "$as_me:$LINENO: result: no" >&5
20093 $as_echo "no" >&6; }
20094 fi
20095
20096
20097 fi
20098 fi
20099 if test -z "$CC"; then
20100 # Extract the first word of "cc", so it can be a program name with args.
20101 set dummy cc; ac_word=$2
20102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20103 $as_echo_n "checking for $ac_word... " >&6; }
20104 if test "${ac_cv_prog_CC+set}" = set; then
20105 $as_echo_n "(cached) " >&6
20106 else
20107 if test -n "$CC"; then
20108 ac_cv_prog_CC="$CC" # Let the user override the test.
20109 else
20110 ac_prog_rejected=no
20111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20112 for as_dir in $PATH
20113 do
20114 IFS=$as_save_IFS
20115 test -z "$as_dir" && as_dir=.
20116 for ac_exec_ext in '' $ac_executable_extensions; do
20117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20119 ac_prog_rejected=yes
20120 continue
20121 fi
20122 ac_cv_prog_CC="cc"
20123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20124 break 2
20125 fi
20126 done
20127 done
20128 IFS=$as_save_IFS
20129
20130 if test $ac_prog_rejected = yes; then
20131 # We found a bogon in the path, so make sure we never use it.
20132 set dummy $ac_cv_prog_CC
20133 shift
20134 if test $# != 0; then
20135 # We chose a different compiler from the bogus one.
20136 # However, it has the same basename, so the bogon will be chosen
20137 # first if we set CC to just the basename; use the full file name.
20138 shift
20139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20140 fi
20141 fi
20142 fi
20143 fi
20144 CC=$ac_cv_prog_CC
20145 if test -n "$CC"; then
20146 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20147 $as_echo "$CC" >&6; }
20148 else
20149 { $as_echo "$as_me:$LINENO: result: no" >&5
20150 $as_echo "no" >&6; }
20151 fi
20152
20153
20154 fi
20155 if test -z "$CC"; then
20156 if test -n "$ac_tool_prefix"; then
20157 for ac_prog in cl.exe
20158 do
20159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20162 $as_echo_n "checking for $ac_word... " >&6; }
20163 if test "${ac_cv_prog_CC+set}" = set; then
20164 $as_echo_n "(cached) " >&6
20165 else
20166 if test -n "$CC"; then
20167 ac_cv_prog_CC="$CC" # Let the user override the test.
20168 else
20169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170 for as_dir in $PATH
20171 do
20172 IFS=$as_save_IFS
20173 test -z "$as_dir" && as_dir=.
20174 for ac_exec_ext in '' $ac_executable_extensions; do
20175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20178 break 2
20179 fi
20180 done
20181 done
20182 IFS=$as_save_IFS
20183
20184 fi
20185 fi
20186 CC=$ac_cv_prog_CC
20187 if test -n "$CC"; then
20188 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20189 $as_echo "$CC" >&6; }
20190 else
20191 { $as_echo "$as_me:$LINENO: result: no" >&5
20192 $as_echo "no" >&6; }
20193 fi
20194
20195
20196 test -n "$CC" && break
20197 done
20198 fi
20199 if test -z "$CC"; then
20200 ac_ct_CC=$CC
20201 for ac_prog in cl.exe
20202 do
20203 # Extract the first word of "$ac_prog", so it can be a program name with args.
20204 set dummy $ac_prog; ac_word=$2
20205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20206 $as_echo_n "checking for $ac_word... " >&6; }
20207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20208 $as_echo_n "(cached) " >&6
20209 else
20210 if test -n "$ac_ct_CC"; then
20211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20212 else
20213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20214 for as_dir in $PATH
20215 do
20216 IFS=$as_save_IFS
20217 test -z "$as_dir" && as_dir=.
20218 for ac_exec_ext in '' $ac_executable_extensions; do
20219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20220 ac_cv_prog_ac_ct_CC="$ac_prog"
20221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20222 break 2
20223 fi
20224 done
20225 done
20226 IFS=$as_save_IFS
20227
20228 fi
20229 fi
20230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20231 if test -n "$ac_ct_CC"; then
20232 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20233 $as_echo "$ac_ct_CC" >&6; }
20234 else
20235 { $as_echo "$as_me:$LINENO: result: no" >&5
20236 $as_echo "no" >&6; }
20237 fi
20238
20239
20240 test -n "$ac_ct_CC" && break
20241 done
20242
20243 if test "x$ac_ct_CC" = x; then
20244 CC=""
20245 else
20246 case $cross_compiling:$ac_tool_warned in
20247 yes:)
20248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20250 ac_tool_warned=yes ;;
20251 esac
20252 CC=$ac_ct_CC
20253 fi
20254 fi
20255
20256 fi
20257
20258
20259 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20261 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20262 See \`config.log' for more details." >&5
20263 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20264 See \`config.log' for more details." >&2;}
20265 { (exit 1); exit 1; }; }; }
20266
20267 # Provide some information about the compiler.
20268 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20269 set X $ac_compile
20270 ac_compiler=$2
20271 { (ac_try="$ac_compiler --version >&5"
20272 case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20275 esac
20276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20277 $as_echo "$ac_try_echo") >&5
20278 (eval "$ac_compiler --version >&5") 2>&5
20279 ac_status=$?
20280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }
20282 { (ac_try="$ac_compiler -v >&5"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20288 $as_echo "$ac_try_echo") >&5
20289 (eval "$ac_compiler -v >&5") 2>&5
20290 ac_status=$?
20291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }
20293 { (ac_try="$ac_compiler -V >&5"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_compiler -V >&5") 2>&5
20301 ac_status=$?
20302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }
20304
20305 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20306 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20307 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20308 $as_echo_n "(cached) " >&6
20309 else
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h. */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316
20317 int
20318 main ()
20319 {
20320 #ifndef __GNUC__
20321 choke me
20322 #endif
20323
20324 ;
20325 return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20335 $as_echo "$ac_try_echo") >&5
20336 (eval "$ac_compile") 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest.$ac_objext; then
20346 ac_compiler_gnu=yes
20347 else
20348 $as_echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ac_compiler_gnu=no
20352 fi
20353
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20356
20357 fi
20358 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20359 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20360 if test $ac_compiler_gnu = yes; then
20361 GCC=yes
20362 else
20363 GCC=
20364 fi
20365 ac_test_CFLAGS=${CFLAGS+set}
20366 ac_save_CFLAGS=$CFLAGS
20367 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20368 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20369 if test "${ac_cv_prog_cc_g+set}" = set; then
20370 $as_echo_n "(cached) " >&6
20371 else
20372 ac_save_c_werror_flag=$ac_c_werror_flag
20373 ac_c_werror_flag=yes
20374 ac_cv_prog_cc_g=no
20375 CFLAGS="-g"
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382
20383 int
20384 main ()
20385 {
20386
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (ac_try="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20398 $as_echo "$ac_try_echo") >&5
20399 (eval "$ac_compile") 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && {
20406 test -z "$ac_c_werror_flag" ||
20407 test ! -s conftest.err
20408 } && test -s conftest.$ac_objext; then
20409 ac_cv_prog_cc_g=yes
20410 else
20411 $as_echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 CFLAGS=""
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h. */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421
20422 int
20423 main ()
20424 {
20425
20426 ;
20427 return 0;
20428 }
20429 _ACEOF
20430 rm -f conftest.$ac_objext
20431 if { (ac_try="$ac_compile"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435 esac
20436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20437 $as_echo "$ac_try_echo") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.$ac_objext; then
20448 :
20449 else
20450 $as_echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453 ac_c_werror_flag=$ac_save_c_werror_flag
20454 CFLAGS="-g"
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461
20462 int
20463 main ()
20464 {
20465
20466 ;
20467 return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475 esac
20476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20477 $as_echo "$ac_try_echo") >&5
20478 (eval "$ac_compile") 2>conftest.er1
20479 ac_status=$?
20480 grep -v '^ *+' conftest.er1 >conftest.err
20481 rm -f conftest.er1
20482 cat conftest.err >&5
20483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest.$ac_objext; then
20488 ac_cv_prog_cc_g=yes
20489 else
20490 $as_echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493
20494 fi
20495
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 fi
20498
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 fi
20501
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 ac_c_werror_flag=$ac_save_c_werror_flag
20504 fi
20505 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20506 $as_echo "$ac_cv_prog_cc_g" >&6; }
20507 if test "$ac_test_CFLAGS" = set; then
20508 CFLAGS=$ac_save_CFLAGS
20509 elif test $ac_cv_prog_cc_g = yes; then
20510 if test "$GCC" = yes; then
20511 CFLAGS="-g -O2"
20512 else
20513 CFLAGS="-g"
20514 fi
20515 else
20516 if test "$GCC" = yes; then
20517 CFLAGS="-O2"
20518 else
20519 CFLAGS=
20520 fi
20521 fi
20522 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20523 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20524 if test "${ac_cv_prog_cc_c89+set}" = set; then
20525 $as_echo_n "(cached) " >&6
20526 else
20527 ac_cv_prog_cc_c89=no
20528 ac_save_CC=$CC
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h. */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20535 #include <stdarg.h>
20536 #include <stdio.h>
20537 #include <sys/types.h>
20538 #include <sys/stat.h>
20539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20540 struct buf { int x; };
20541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20542 static char *e (p, i)
20543 char **p;
20544 int i;
20545 {
20546 return p[i];
20547 }
20548 static char *f (char * (*g) (char **, int), char **p, ...)
20549 {
20550 char *s;
20551 va_list v;
20552 va_start (v,p);
20553 s = g (p, va_arg (v,int));
20554 va_end (v);
20555 return s;
20556 }
20557
20558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20559 function prototypes and stuff, but not '\xHH' hex character constants.
20560 These don't provoke an error unfortunately, instead are silently treated
20561 as 'x'. The following induces an error, until -std is added to get
20562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20563 array size at least. It's necessary to write '\x00'==0 to get something
20564 that's true only with -std. */
20565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20566
20567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20568 inside strings and character constants. */
20569 #define FOO(x) 'x'
20570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20571
20572 int test (int i, double x);
20573 struct s1 {int (*f) (int a);};
20574 struct s2 {int (*f) (double a);};
20575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20576 int argc;
20577 char **argv;
20578 int
20579 main ()
20580 {
20581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20582 ;
20583 return 0;
20584 }
20585 _ACEOF
20586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20588 do
20589 CC="$ac_save_CC $ac_arg"
20590 rm -f conftest.$ac_objext
20591 if { (ac_try="$ac_compile"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595 esac
20596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20597 $as_echo "$ac_try_echo") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20608 ac_cv_prog_cc_c89=$ac_arg
20609 else
20610 $as_echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext
20617 test "x$ac_cv_prog_cc_c89" != "xno" && break
20618 done
20619 rm -f conftest.$ac_ext
20620 CC=$ac_save_CC
20621
20622 fi
20623 # AC_CACHE_VAL
20624 case "x$ac_cv_prog_cc_c89" in
20625 x)
20626 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20627 $as_echo "none needed" >&6; } ;;
20628 xno)
20629 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20630 $as_echo "unsupported" >&6; } ;;
20631 *)
20632 CC="$CC $ac_cv_prog_cc_c89"
20633 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20635 esac
20636
20637
20638 ac_ext=c
20639 ac_cpp='$CPP $CPPFLAGS'
20640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643
20644 depcc="$CC" am_compiler_list=
20645
20646 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20647 $as_echo_n "checking dependency style of $depcc... " >&6; }
20648 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20649 $as_echo_n "(cached) " >&6
20650 else
20651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20652 # We make a subdir and do the tests there. Otherwise we can end up
20653 # making bogus files that we don't know about and never remove. For
20654 # instance it was reported that on HP-UX the gcc test will end up
20655 # making a dummy file named `D' -- because `-MD' means `put the output
20656 # in D'.
20657 mkdir conftest.dir
20658 # Copy depcomp to subdir because otherwise we won't find it if we're
20659 # using a relative directory.
20660 cp "$am_depcomp" conftest.dir
20661 cd conftest.dir
20662 # We will build objects and dependencies in a subdirectory because
20663 # it helps to detect inapplicable dependency modes. For instance
20664 # both Tru64's cc and ICC support -MD to output dependencies as a
20665 # side effect of compilation, but ICC will put the dependencies in
20666 # the current directory while Tru64 will put them in the object
20667 # directory.
20668 mkdir sub
20669
20670 am_cv_CC_dependencies_compiler_type=none
20671 if test "$am_compiler_list" = ""; then
20672 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20673 fi
20674 for depmode in $am_compiler_list; do
20675 # Setup a source with many dependencies, because some compilers
20676 # like to wrap large dependency lists on column 80 (with \), and
20677 # we should not choose a depcomp mode which is confused by this.
20678 #
20679 # We need to recreate these files for each test, as the compiler may
20680 # overwrite some of them when testing with obscure command lines.
20681 # This happens at least with the AIX C compiler.
20682 : > sub/conftest.c
20683 for i in 1 2 3 4 5 6; do
20684 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20685 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20686 # Solaris 8's {/usr,}/bin/sh.
20687 touch sub/conftst$i.h
20688 done
20689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20690
20691 case $depmode in
20692 nosideeffect)
20693 # after this tag, mechanisms are not by side-effect, so they'll
20694 # only be used when explicitly requested
20695 if test "x$enable_dependency_tracking" = xyes; then
20696 continue
20697 else
20698 break
20699 fi
20700 ;;
20701 none) break ;;
20702 esac
20703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20704 # mode. It turns out that the SunPro C++ compiler does not properly
20705 # handle `-M -o', and we need to detect this.
20706 if depmode=$depmode \
20707 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20709 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20710 >/dev/null 2>conftest.err &&
20711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20713 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20715 # icc doesn't choke on unknown options, it will just issue warnings
20716 # or remarks (even with -Werror). So we grep stderr for any message
20717 # that says an option was ignored or not supported.
20718 # When given -MP, icc 7.0 and 7.1 complain thusly:
20719 # icc: Command line warning: ignoring option '-M'; no argument required
20720 # The diagnosis changed in icc 8.0:
20721 # icc: Command line remark: option '-MP' not supported
20722 if (grep 'ignoring option' conftest.err ||
20723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20724 am_cv_CC_dependencies_compiler_type=$depmode
20725 break
20726 fi
20727 fi
20728 done
20729
20730 cd ..
20731 rm -rf conftest.dir
20732 else
20733 am_cv_CC_dependencies_compiler_type=none
20734 fi
20735
20736 fi
20737 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20738 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20739 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20740
20741 if
20742 test "x$enable_dependency_tracking" != xno \
20743 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20744 am__fastdepCC_TRUE=
20745 am__fastdepCC_FALSE='#'
20746 else
20747 am__fastdepCC_TRUE='#'
20748 am__fastdepCC_FALSE=
20749 fi
20750
20751
20752
20753
20754
20755
20756
20757 # Check whether --with-xorg-module-dir was given.
20758 if test "${with_xorg_module_dir+set}" = set; then
20759 withval=$with_xorg_module_dir; moduledir="$withval"
20760 else
20761 moduledir="$libdir/xorg/modules"
20762 fi
20763
20764
20765 # Checks for extensions
20766
20767 SAVE_CFLAGS="$CFLAGS"
20768 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775
20776 #include "xorg-server.h"
20777 #if !defined RANDR
20778 #error RANDR not defined
20779 #endif
20780
20781 int
20782 main ()
20783 {
20784
20785 ;
20786 return 0;
20787 }
20788 _ACEOF
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20796 $as_echo "$ac_try_echo") >&5
20797 (eval "$ac_compile") 2>conftest.er1
20798 ac_status=$?
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -f conftest.er1
20801 cat conftest.err >&5
20802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } && {
20804 test -z "$ac_c_werror_flag" ||
20805 test ! -s conftest.err
20806 } && test -s conftest.$ac_objext; then
20807 _EXT_CHECK=yes
20808 else
20809 $as_echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20811
20812 _EXT_CHECK=no
20813 fi
20814
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20816 CFLAGS="$SAVE_CFLAGS"
20817 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20818 $as_echo_n "checking if RANDR is defined... " >&6; }
20819 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20820 $as_echo "$_EXT_CHECK" >&6; }
20821 if test "$_EXT_CHECK" != no; then
20822 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20823 fi
20824
20825
20826 SAVE_CFLAGS="$CFLAGS"
20827 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20828 cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h. */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20834
20835 #include "xorg-server.h"
20836 #if !defined RENDER
20837 #error RENDER not defined
20838 #endif
20839
20840 int
20841 main ()
20842 {
20843
20844 ;
20845 return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20853 esac
20854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20855 $as_echo "$ac_try_echo") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20866 _EXT_CHECK=yes
20867 else
20868 $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 _EXT_CHECK=no
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875 CFLAGS="$SAVE_CFLAGS"
20876 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20877 $as_echo_n "checking if RENDER is defined... " >&6; }
20878 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20879 $as_echo "$_EXT_CHECK" >&6; }
20880 if test "$_EXT_CHECK" != no; then
20881 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20882 fi
20883
20884
20885 SAVE_CFLAGS="$CFLAGS"
20886 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20887 cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h. */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893
20894 #include "xorg-server.h"
20895 #if !defined DPMSExtension
20896 #error DPMSExtension not defined
20897 #endif
20898
20899 int
20900 main ()
20901 {
20902
20903 ;
20904 return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20912 esac
20913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20914 $as_echo "$ac_try_echo") >&5
20915 (eval "$ac_compile") 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest.$ac_objext; then
20925 _EXT_CHECK=yes
20926 else
20927 $as_echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 _EXT_CHECK=no
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 CFLAGS="$SAVE_CFLAGS"
20935 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20936 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
20937 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20938 $as_echo "$_EXT_CHECK" >&6; }
20939 if test "$_EXT_CHECK" != no; then
20940 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20941 fi
20942
20943
20944 SAVE_CFLAGS="$CFLAGS"
20945 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h. */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20952
20953 #include "xorg-server.h"
20954 #if !defined XINERAMA
20955 #error XINERAMA not defined
20956 #endif
20957
20958 int
20959 main ()
20960 {
20961
20962 ;
20963 return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971 esac
20972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20973 $as_echo "$ac_try_echo") >&5
20974 (eval "$ac_compile") 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest.$ac_objext; then
20984 _EXT_CHECK=yes
20985 else
20986 $as_echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 _EXT_CHECK=no
20990 fi
20991
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 CFLAGS="$SAVE_CFLAGS"
20994 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
20995 $as_echo_n "checking if XINERAMA is defined... " >&6; }
20996 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20997 $as_echo "$_EXT_CHECK" >&6; }
20998 if test "$_EXT_CHECK" != no; then
20999 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
21000 fi
21001
21002
21003 SAVE_CFLAGS="$CFLAGS"
21004 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011
21012 #include "xorg-server.h"
21013 #if !defined XV
21014 #error XV not defined
21015 #endif
21016
21017 int
21018 main ()
21019 {
21020
21021 ;
21022 return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21030 esac
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033 (eval "$ac_compile") 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest.$ac_objext; then
21043 _EXT_CHECK=yes
21044 else
21045 $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 _EXT_CHECK=no
21049 fi
21050
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 CFLAGS="$SAVE_CFLAGS"
21053 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21054 $as_echo_n "checking if XV is defined... " >&6; }
21055 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21056 $as_echo "$_EXT_CHECK" >&6; }
21057 if test "$_EXT_CHECK" != no; then
21058 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21059 fi
21060
21061
21062 # Checks for pkg-config packages
21063
21064
21065 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21066 if test -n "$ac_tool_prefix"; then
21067 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21068 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21070 $as_echo_n "checking for $ac_word... " >&6; }
21071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21072 $as_echo_n "(cached) " >&6
21073 else
21074 case $PKG_CONFIG in
21075 [\\/]* | ?:[\\/]*)
21076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21077 ;;
21078 *)
21079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21080 for as_dir in $PATH
21081 do
21082 IFS=$as_save_IFS
21083 test -z "$as_dir" && as_dir=.
21084 for ac_exec_ext in '' $ac_executable_extensions; do
21085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21088 break 2
21089 fi
21090 done
21091 done
21092 IFS=$as_save_IFS
21093
21094 ;;
21095 esac
21096 fi
21097 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21098 if test -n "$PKG_CONFIG"; then
21099 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21100 $as_echo "$PKG_CONFIG" >&6; }
21101 else
21102 { $as_echo "$as_me:$LINENO: result: no" >&5
21103 $as_echo "no" >&6; }
21104 fi
21105
21106
21107 fi
21108 if test -z "$ac_cv_path_PKG_CONFIG"; then
21109 ac_pt_PKG_CONFIG=$PKG_CONFIG
21110 # Extract the first word of "pkg-config", so it can be a program name with args.
21111 set dummy pkg-config; ac_word=$2
21112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21113 $as_echo_n "checking for $ac_word... " >&6; }
21114 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21115 $as_echo_n "(cached) " >&6
21116 else
21117 case $ac_pt_PKG_CONFIG in
21118 [\\/]* | ?:[\\/]*)
21119 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21120 ;;
21121 *)
21122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21123 for as_dir in $PATH
21124 do
21125 IFS=$as_save_IFS
21126 test -z "$as_dir" && as_dir=.
21127 for ac_exec_ext in '' $ac_executable_extensions; do
21128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21129 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21131 break 2
21132 fi
21133 done
21134 done
21135 IFS=$as_save_IFS
21136
21137 ;;
21138 esac
21139 fi
21140 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21141 if test -n "$ac_pt_PKG_CONFIG"; then
21142 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21143 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21144 else
21145 { $as_echo "$as_me:$LINENO: result: no" >&5
21146 $as_echo "no" >&6; }
21147 fi
21148
21149 if test "x$ac_pt_PKG_CONFIG" = x; then
21150 PKG_CONFIG=""
21151 else
21152 case $cross_compiling:$ac_tool_warned in
21153 yes:)
21154 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21156 ac_tool_warned=yes ;;
21157 esac
21158 PKG_CONFIG=$ac_pt_PKG_CONFIG
21159 fi
21160 else
21161 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21162 fi
21163
21164 fi
21165 if test -n "$PKG_CONFIG"; then
21166 _pkg_min_version=0.9.0
21167 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21168 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21169 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21170 { $as_echo "$as_me:$LINENO: result: yes" >&5
21171 $as_echo "yes" >&6; }
21172 else
21173 { $as_echo "$as_me:$LINENO: result: no" >&5
21174 $as_echo "no" >&6; }
21175 PKG_CONFIG=""
21176 fi
21177
21178 fi
21179
21180 pkg_failed=no
21181 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21182 $as_echo_n "checking for XORG... " >&6; }
21183
21184 if test -n "$XORG_CFLAGS"; then
21185 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21186 elif test -n "$PKG_CONFIG"; then
21187 if test -n "$PKG_CONFIG" && \
21188 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21189 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
21190 ac_status=$?
21191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; then
21193 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21194 else
21195 pkg_failed=yes
21196 fi
21197 else
21198 pkg_failed=untried
21199 fi
21200 if test -n "$XORG_LIBS"; then
21201 pkg_cv_XORG_LIBS="$XORG_LIBS"
21202 elif test -n "$PKG_CONFIG"; then
21203 if test -n "$PKG_CONFIG" && \
21204 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21205 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
21206 ac_status=$?
21207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; then
21209 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21210 else
21211 pkg_failed=yes
21212 fi
21213 else
21214 pkg_failed=untried
21215 fi
21216
21217
21218
21219 if test $pkg_failed = yes; then
21220
21221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21222 _pkg_short_errors_supported=yes
21223 else
21224 _pkg_short_errors_supported=no
21225 fi
21226 if test $_pkg_short_errors_supported = yes; then
21227 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21228 else
21229 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21230 fi
21231 # Put the nasty error message in config.log where it belongs
21232 echo "$XORG_PKG_ERRORS" >&5
21233
21234 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
21235
21236 $XORG_PKG_ERRORS
21237
21238 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21239 installed software in a non-standard prefix.
21240
21241 Alternatively, you may set the environment variables XORG_CFLAGS
21242 and XORG_LIBS to avoid the need to call pkg-config.
21243 See the pkg-config man page for more details.
21244 " >&5
21245 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
21246
21247 $XORG_PKG_ERRORS
21248
21249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21250 installed software in a non-standard prefix.
21251
21252 Alternatively, you may set the environment variables XORG_CFLAGS
21253 and XORG_LIBS to avoid the need to call pkg-config.
21254 See the pkg-config man page for more details.
21255 " >&2;}
21256 { (exit 1); exit 1; }; }
21257 elif test $pkg_failed = untried; then
21258 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21260 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21261 is in your PATH or set the PKG_CONFIG environment variable to the full
21262 path to pkg-config.
21263
21264 Alternatively, you may set the environment variables XORG_CFLAGS
21265 and XORG_LIBS to avoid the need to call pkg-config.
21266 See the pkg-config man page for more details.
21267
21268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21269 See \`config.log' for more details." >&5
21270 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21271 is in your PATH or set the PKG_CONFIG environment variable to the full
21272 path to pkg-config.
21273
21274 Alternatively, you may set the environment variables XORG_CFLAGS
21275 and XORG_LIBS to avoid the need to call pkg-config.
21276 See the pkg-config man page for more details.
21277
21278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21279 See \`config.log' for more details." >&2;}
21280 { (exit 1); exit 1; }; }; }
21281 else
21282 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21283 XORG_LIBS=$pkg_cv_XORG_LIBS
21284 { $as_echo "$as_me:$LINENO: result: yes" >&5
21285 $as_echo "yes" >&6; }
21286 :
21287 fi
21288 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21289
21290 if test -n "$PKG_CONFIG" && \
21291 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5
21292 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
21293 ac_status=$?
21294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; then
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_XORG_SERVER_1_1_0 1
21299 _ACEOF
21300
21301 fi
21302
21303 if test -n "$PKG_CONFIG" && \
21304 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901\"") >&5
21305 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901") 2>&5
21306 ac_status=$?
21307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; then
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_XORG_SERVER_1_0_99_901 1
21312 _ACEOF
21313
21314 fi
21315
21316 if test -n "$PKG_CONFIG" && \
21317 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\"") >&5
21318 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
21319 ac_status=$?
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; then
21322
21323 cat >>confdefs.h <<\_ACEOF
21324 #define HAVE_XORG_SERVER_1_2_0 1
21325 _ACEOF
21326
21327 fi
21328
21329
21330 # Checks for libraries.
21331
21332 # Checks for header files.
21333 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21334 $as_echo_n "checking for ANSI C header files... " >&6; }
21335 if test "${ac_cv_header_stdc+set}" = set; then
21336 $as_echo_n "(cached) " >&6
21337 else
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <stdlib.h>
21345 #include <stdarg.h>
21346 #include <string.h>
21347 #include <float.h>
21348
21349 int
21350 main ()
21351 {
21352
21353 ;
21354 return 0;
21355 }
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (ac_try="$ac_compile"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362 esac
21363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21364 $as_echo "$ac_try_echo") >&5
21365 (eval "$ac_compile") 2>conftest.er1
21366 ac_status=$?
21367 grep -v '^ *+' conftest.er1 >conftest.err
21368 rm -f conftest.er1
21369 cat conftest.err >&5
21370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } && {
21372 test -z "$ac_c_werror_flag" ||
21373 test ! -s conftest.err
21374 } && test -s conftest.$ac_objext; then
21375 ac_cv_header_stdc=yes
21376 else
21377 $as_echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 ac_cv_header_stdc=no
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384
21385 if test $ac_cv_header_stdc = yes; then
21386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h. */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 #include <string.h>
21394
21395 _ACEOF
21396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21397 $EGREP "memchr" >/dev/null 2>&1; then
21398 :
21399 else
21400 ac_cv_header_stdc=no
21401 fi
21402 rm -f conftest*
21403
21404 fi
21405
21406 if test $ac_cv_header_stdc = yes; then
21407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h. */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include <stdlib.h>
21415
21416 _ACEOF
21417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21418 $EGREP "free" >/dev/null 2>&1; then
21419 :
21420 else
21421 ac_cv_header_stdc=no
21422 fi
21423 rm -f conftest*
21424
21425 fi
21426
21427 if test $ac_cv_header_stdc = yes; then
21428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21429 if test "$cross_compiling" = yes; then
21430 :
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <ctype.h>
21439 #include <stdlib.h>
21440 #if ((' ' & 0x0FF) == 0x020)
21441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21443 #else
21444 # define ISLOWER(c) \
21445 (('a' <= (c) && (c) <= 'i') \
21446 || ('j' <= (c) && (c) <= 'r') \
21447 || ('s' <= (c) && (c) <= 'z'))
21448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21449 #endif
21450
21451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21452 int
21453 main ()
21454 {
21455 int i;
21456 for (i = 0; i < 256; i++)
21457 if (XOR (islower (i), ISLOWER (i))
21458 || toupper (i) != TOUPPER (i))
21459 return 2;
21460 return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21470 $as_echo "$ac_try_echo") >&5
21471 (eval "$ac_link") 2>&5
21472 ac_status=$?
21473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21475 { (case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478 esac
21479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21480 $as_echo "$ac_try_echo") >&5
21481 (eval "$ac_try") 2>&5
21482 ac_status=$?
21483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 :
21486 else
21487 $as_echo "$as_me: program exited with status $ac_status" >&5
21488 $as_echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491 ( exit $ac_status )
21492 ac_cv_header_stdc=no
21493 fi
21494 rm -rf conftest.dSYM
21495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21496 fi
21497
21498
21499 fi
21500 fi
21501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21502 $as_echo "$ac_cv_header_stdc" >&6; }
21503 if test $ac_cv_header_stdc = yes; then
21504
21505 cat >>confdefs.h <<\_ACEOF
21506 #define STDC_HEADERS 1
21507 _ACEOF
21508
21509 fi
21510
21511 save_CFLAGS="$CFLAGS"
21512 CFLAGS="$XORG_CFLAGS"
21513 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21514 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21515 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21516 $as_echo_n "(cached) " >&6
21517 else
21518 cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h. */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 #include "xorg-server.h"
21525
21526 int
21527 main ()
21528 {
21529 #ifndef XSERVER_LIBPCIACCESS
21530 (void) XSERVER_LIBPCIACCESS;
21531 #endif
21532
21533 ;
21534 return 0;
21535 }
21536 _ACEOF
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542 esac
21543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21544 $as_echo "$ac_try_echo") >&5
21545 (eval "$ac_compile") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest.$ac_objext; then
21555 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21556 else
21557 $as_echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21561 fi
21562
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 fi
21565 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21566 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21567 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21568 XSERVER_LIBPCIACCESS=yes
21569 else
21570 XSERVER_LIBPCIACCESS=no
21571 fi
21572
21573 CFLAGS="$save_CFLAGS"
21574
21575 if test x$XSERVER_LIBPCIACCESS = xyes; then
21576
21577 pkg_failed=no
21578 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21579 $as_echo_n "checking for PCIACCESS... " >&6; }
21580
21581 if test -n "$PCIACCESS_CFLAGS"; then
21582 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21583 elif test -n "$PKG_CONFIG"; then
21584 if test -n "$PKG_CONFIG" && \
21585 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21586 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21587 ac_status=$?
21588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; then
21590 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21591 else
21592 pkg_failed=yes
21593 fi
21594 else
21595 pkg_failed=untried
21596 fi
21597 if test -n "$PCIACCESS_LIBS"; then
21598 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21599 elif test -n "$PKG_CONFIG"; then
21600 if test -n "$PKG_CONFIG" && \
21601 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21602 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21603 ac_status=$?
21604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; then
21606 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21607 else
21608 pkg_failed=yes
21609 fi
21610 else
21611 pkg_failed=untried
21612 fi
21613
21614
21615
21616 if test $pkg_failed = yes; then
21617
21618 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21619 _pkg_short_errors_supported=yes
21620 else
21621 _pkg_short_errors_supported=no
21622 fi
21623 if test $_pkg_short_errors_supported = yes; then
21624 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21625 else
21626 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21627 fi
21628 # Put the nasty error message in config.log where it belongs
21629 echo "$PCIACCESS_PKG_ERRORS" >&5
21630
21631 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21632
21633 $PCIACCESS_PKG_ERRORS
21634
21635 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21636 installed software in a non-standard prefix.
21637
21638 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21639 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21640 See the pkg-config man page for more details.
21641 " >&5
21642 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21643
21644 $PCIACCESS_PKG_ERRORS
21645
21646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21647 installed software in a non-standard prefix.
21648
21649 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21650 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21651 See the pkg-config man page for more details.
21652 " >&2;}
21653 { (exit 1); exit 1; }; }
21654 elif test $pkg_failed = untried; then
21655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21657 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21658 is in your PATH or set the PKG_CONFIG environment variable to the full
21659 path to pkg-config.
21660
21661 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21662 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21663 See the pkg-config man page for more details.
21664
21665 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21666 See \`config.log' for more details." >&5
21667 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21668 is in your PATH or set the PKG_CONFIG environment variable to the full
21669 path to pkg-config.
21670
21671 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21672 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21673 See the pkg-config man page for more details.
21674
21675 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21676 See \`config.log' for more details." >&2;}
21677 { (exit 1); exit 1; }; }; }
21678 else
21679 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21680 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21681 { $as_echo "$as_me:$LINENO: result: yes" >&5
21682 $as_echo "yes" >&6; }
21683 :
21684 fi
21685 fi
21686
21687 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21688 XSERVER_LIBPCIACCESS_TRUE=
21689 XSERVER_LIBPCIACCESS_FALSE='#'
21690 else
21691 XSERVER_LIBPCIACCESS_TRUE='#'
21692 XSERVER_LIBPCIACCESS_FALSE=
21693 fi
21694
21695
21696
21697
21698
21699 DRIVER_NAME=vmware
21700
21701
21702
21703
21704
21705 if test x$APP_MAN_SUFFIX = x ; then
21706 APP_MAN_SUFFIX=1
21707 fi
21708 if test x$APP_MAN_DIR = x ; then
21709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21710 fi
21711
21712 if test x$LIB_MAN_SUFFIX = x ; then
21713 LIB_MAN_SUFFIX=3
21714 fi
21715 if test x$LIB_MAN_DIR = x ; then
21716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21717 fi
21718
21719 if test x$FILE_MAN_SUFFIX = x ; then
21720 case $host_os in
21721 solaris*) FILE_MAN_SUFFIX=4 ;;
21722 *) FILE_MAN_SUFFIX=5 ;;
21723 esac
21724 fi
21725 if test x$FILE_MAN_DIR = x ; then
21726 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21727 fi
21728
21729 if test x$MISC_MAN_SUFFIX = x ; then
21730 case $host_os in
21731 solaris*) MISC_MAN_SUFFIX=5 ;;
21732 *) MISC_MAN_SUFFIX=7 ;;
21733 esac
21734 fi
21735 if test x$MISC_MAN_DIR = x ; then
21736 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21737 fi
21738
21739 if test x$DRIVER_MAN_SUFFIX = x ; then
21740 case $host_os in
21741 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21742 *) DRIVER_MAN_SUFFIX=4 ;;
21743 esac
21744 fi
21745 if test x$DRIVER_MAN_DIR = x ; then
21746 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21747 fi
21748
21749 if test x$ADMIN_MAN_SUFFIX = x ; then
21750 case $host_os in
21751 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21752 *) ADMIN_MAN_SUFFIX=8 ;;
21753 esac
21754 fi
21755 if test x$ADMIN_MAN_DIR = x ; then
21756 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21757 fi
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775 # Check whether --with-release-version was given.
21776 if test "${with_release_version+set}" = set; then
21777 withval=$with_release_version; RELEASE_VERSION="$withval"
21778 else
21779 RELEASE_VERSION=""
21780 fi
21781
21782 if test "x$RELEASE_VERSION" != "x"; then
21783 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21784 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21785 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21786 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21787 fi
21788
21789 cat >>confdefs.h <<_ACEOF
21790 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21791 _ACEOF
21792
21793 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21794 if test "x$PVM" = "x"; then
21795 PVM="0"
21796 fi
21797
21798 cat >>confdefs.h <<_ACEOF
21799 #define PACKAGE_VERSION_MINOR $PVM
21800 _ACEOF
21801
21802 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21803 if test "x$PVP" = "x"; then
21804 PVP="0"
21805 fi
21806
21807 cat >>confdefs.h <<_ACEOF
21808 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21809 _ACEOF
21810
21811
21812
21813 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21814
21815 cat >confcache <<\_ACEOF
21816 # This file is a shell script that caches the results of configure
21817 # tests run on this system so they can be shared between configure
21818 # scripts and configure runs, see configure's option --config-cache.
21819 # It is not useful on other systems. If it contains results you don't
21820 # want to keep, you may remove or edit it.
21821 #
21822 # config.status only pays attention to the cache file if you give it
21823 # the --recheck option to rerun configure.
21824 #
21825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21827 # following values.
21828
21829 _ACEOF
21830
21831 # The following way of writing the cache mishandles newlines in values,
21832 # but we know of no workaround that is simple, portable, and efficient.
21833 # So, we kill variables containing newlines.
21834 # Ultrix sh set writes to stderr and can't be redirected directly,
21835 # and sets the high bit in the cache file unless we assign to the vars.
21836 (
21837 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21838 eval ac_val=\$$ac_var
21839 case $ac_val in #(
21840 *${as_nl}*)
21841 case $ac_var in #(
21842 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21844 esac
21845 case $ac_var in #(
21846 _ | IFS | as_nl) ;; #(
21847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21848 *) $as_unset $ac_var ;;
21849 esac ;;
21850 esac
21851 done
21852
21853 (set) 2>&1 |
21854 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21855 *${as_nl}ac_space=\ *)
21856 # `set' does not quote correctly, so add quotes (double-quote
21857 # substitution turns \\\\ into \\, and sed turns \\ into \).
21858 sed -n \
21859 "s/'/'\\\\''/g;
21860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21861 ;; #(
21862 *)
21863 # `set' quotes correctly as required by POSIX, so do not add quotes.
21864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21865 ;;
21866 esac |
21867 sort
21868 ) |
21869 sed '
21870 /^ac_cv_env_/b end
21871 t clear
21872 :clear
21873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21874 t end
21875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21876 :end' >>confcache
21877 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21878 if test -w "$cache_file"; then
21879 test "x$cache_file" != "x/dev/null" &&
21880 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21881 $as_echo "$as_me: updating cache $cache_file" >&6;}
21882 cat confcache >$cache_file
21883 else
21884 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21885 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21886 fi
21887 fi
21888 rm -f confcache
21889
21890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21891 # Let make expand exec_prefix.
21892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21893
21894 DEFS=-DHAVE_CONFIG_H
21895
21896 ac_libobjs=
21897 ac_ltlibobjs=
21898 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21899 # 1. Remove the extension, and $U if already installed.
21900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21901 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21903 # will be set to the directory where LIBOBJS objects are built.
21904 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21905 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21906 done
21907 LIBOBJS=$ac_libobjs
21908
21909 LTLIBOBJS=$ac_ltlibobjs
21910
21911
21912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21913 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21914 Usually this means the macro was only invoked conditionally." >&5
21915 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21916 Usually this means the macro was only invoked conditionally." >&2;}
21917 { (exit 1); exit 1; }; }
21918 fi
21919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21920 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21921 Usually this means the macro was only invoked conditionally." >&5
21922 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21923 Usually this means the macro was only invoked conditionally." >&2;}
21924 { (exit 1); exit 1; }; }
21925 fi
21926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21927 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21928 Usually this means the macro was only invoked conditionally." >&5
21929 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21930 Usually this means the macro was only invoked conditionally." >&2;}
21931 { (exit 1); exit 1; }; }
21932 fi
21933 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21934 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21935 Usually this means the macro was only invoked conditionally." >&5
21936 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21937 Usually this means the macro was only invoked conditionally." >&2;}
21938 { (exit 1); exit 1; }; }
21939 fi
21940 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21941 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21942 Usually this means the macro was only invoked conditionally." >&5
21943 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21944 Usually this means the macro was only invoked conditionally." >&2;}
21945 { (exit 1); exit 1; }; }
21946 fi
21947 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21948 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21949 Usually this means the macro was only invoked conditionally." >&5
21950 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21951 Usually this means the macro was only invoked conditionally." >&2;}
21952 { (exit 1); exit 1; }; }
21953 fi
21954
21955 : ${CONFIG_STATUS=./config.status}
21956 ac_write_fail=0
21957 ac_clean_files_save=$ac_clean_files
21958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21959 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21960 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21961 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21962 #! $SHELL
21963 # Generated by $as_me.
21964 # Run this file to recreate the current configuration.
21965 # Compiler output produced by configure, useful for debugging
21966 # configure, is in config.log if it exists.
21967
21968 debug=false
21969 ac_cs_recheck=false
21970 ac_cs_silent=false
21971 SHELL=\${CONFIG_SHELL-$SHELL}
21972 _ACEOF
21973
21974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21975 ## --------------------- ##
21976 ## M4sh Initialization. ##
21977 ## --------------------- ##
21978
21979 # Be more Bourne compatible
21980 DUALCASE=1; export DUALCASE # for MKS sh
21981 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21982 emulate sh
21983 NULLCMD=:
21984 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21985 # is contrary to our usage. Disable this feature.
21986 alias -g '${1+"$@"}'='"$@"'
21987 setopt NO_GLOB_SUBST
21988 else
21989 case `(set -o) 2>/dev/null` in
21990 *posix*) set -o posix ;;
21991 esac
21992
21993 fi
21994
21995
21996
21997
21998 # PATH needs CR
21999 # Avoid depending upon Character Ranges.
22000 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22001 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22002 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22003 as_cr_digits='0123456789'
22004 as_cr_alnum=$as_cr_Letters$as_cr_digits
22005
22006 as_nl='
22007 '
22008 export as_nl
22009 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22010 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22013 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22014 as_echo='printf %s\n'
22015 as_echo_n='printf %s'
22016 else
22017 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22018 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22019 as_echo_n='/usr/ucb/echo -n'
22020 else
22021 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22022 as_echo_n_body='eval
22023 arg=$1;
22024 case $arg in
22025 *"$as_nl"*)
22026 expr "X$arg" : "X\\(.*\\)$as_nl";
22027 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22028 esac;
22029 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22030 '
22031 export as_echo_n_body
22032 as_echo_n='sh -c $as_echo_n_body as_echo'
22033 fi
22034 export as_echo_body
22035 as_echo='sh -c $as_echo_body as_echo'
22036 fi
22037
22038 # The user is always right.
22039 if test "${PATH_SEPARATOR+set}" != set; then
22040 PATH_SEPARATOR=:
22041 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22042 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22043 PATH_SEPARATOR=';'
22044 }
22045 fi
22046
22047 # Support unset when possible.
22048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22049 as_unset=unset
22050 else
22051 as_unset=false
22052 fi
22053
22054
22055 # IFS
22056 # We need space, tab and new line, in precisely that order. Quoting is
22057 # there to prevent editors from complaining about space-tab.
22058 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22059 # splitting by setting IFS to empty value.)
22060 IFS=" "" $as_nl"
22061
22062 # Find who we are. Look in the path if we contain no directory separator.
22063 case $0 in
22064 *[\\/]* ) as_myself=$0 ;;
22065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22066 for as_dir in $PATH
22067 do
22068 IFS=$as_save_IFS
22069 test -z "$as_dir" && as_dir=.
22070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22071 done
22072 IFS=$as_save_IFS
22073
22074 ;;
22075 esac
22076 # We did not find ourselves, most probably we were run as `sh COMMAND'
22077 # in which case we are not to be found in the path.
22078 if test "x$as_myself" = x; then
22079 as_myself=$0
22080 fi
22081 if test ! -f "$as_myself"; then
22082 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22083 { (exit 1); exit 1; }
22084 fi
22085
22086 # Work around bugs in pre-3.0 UWIN ksh.
22087 for as_var in ENV MAIL MAILPATH
22088 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22089 done
22090 PS1='$ '
22091 PS2='> '
22092 PS4='+ '
22093
22094 # NLS nuisances.
22095 LC_ALL=C
22096 export LC_ALL
22097 LANGUAGE=C
22098 export LANGUAGE
22099
22100 # Required to use basename.
22101 if expr a : '\(a\)' >/dev/null 2>&1 &&
22102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22103 as_expr=expr
22104 else
22105 as_expr=false
22106 fi
22107
22108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22109 as_basename=basename
22110 else
22111 as_basename=false
22112 fi
22113
22114
22115 # Name of the executable.
22116 as_me=`$as_basename -- "$0" ||
22117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22118 X"$0" : 'X\(//\)$' \| \
22119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22120 $as_echo X/"$0" |
22121 sed '/^.*\/\([^/][^/]*\)\/*$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\/\(\/\/\)$/{
22126 s//\1/
22127 q
22128 }
22129 /^X\/\(\/\).*/{
22130 s//\1/
22131 q
22132 }
22133 s/.*/./; q'`
22134
22135 # CDPATH.
22136 $as_unset CDPATH
22137
22138
22139
22140 as_lineno_1=$LINENO
22141 as_lineno_2=$LINENO
22142 test "x$as_lineno_1" != "x$as_lineno_2" &&
22143 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22144
22145 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22146 # uniformly replaced by the line number. The first 'sed' inserts a
22147 # line-number line after each line using $LINENO; the second 'sed'
22148 # does the real work. The second script uses 'N' to pair each
22149 # line-number line with the line containing $LINENO, and appends
22150 # trailing '-' during substitution so that $LINENO is not a special
22151 # case at line end.
22152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22153 # scripts with optimization help from Paolo Bonzini. Blame Lee
22154 # E. McMahon (1931-1989) for sed's syntax. :-)
22155 sed -n '
22156 p
22157 /[$]LINENO/=
22158 ' <$as_myself |
22159 sed '
22160 s/[$]LINENO.*/&-/
22161 t lineno
22162 b
22163 :lineno
22164 N
22165 :loop
22166 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22167 t loop
22168 s/-\n.*//
22169 ' >$as_me.lineno &&
22170 chmod +x "$as_me.lineno" ||
22171 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22172 { (exit 1); exit 1; }; }
22173
22174 # Don't try to exec as it changes $[0], causing all sort of problems
22175 # (the dirname of $[0] is not the place where we might find the
22176 # original and so on. Autoconf is especially sensitive to this).
22177 . "./$as_me.lineno"
22178 # Exit status is that of the last command.
22179 exit
22180 }
22181
22182
22183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22184 as_dirname=dirname
22185 else
22186 as_dirname=false
22187 fi
22188
22189 ECHO_C= ECHO_N= ECHO_T=
22190 case `echo -n x` in
22191 -n*)
22192 case `echo 'x\c'` in
22193 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22194 *) ECHO_C='\c';;
22195 esac;;
22196 *)
22197 ECHO_N='-n';;
22198 esac
22199 if expr a : '\(a\)' >/dev/null 2>&1 &&
22200 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22201 as_expr=expr
22202 else
22203 as_expr=false
22204 fi
22205
22206 rm -f conf$$ conf$$.exe conf$$.file
22207 if test -d conf$$.dir; then
22208 rm -f conf$$.dir/conf$$.file
22209 else
22210 rm -f conf$$.dir
22211 mkdir conf$$.dir 2>/dev/null
22212 fi
22213 if (echo >conf$$.file) 2>/dev/null; then
22214 if ln -s conf$$.file conf$$ 2>/dev/null; then
22215 as_ln_s='ln -s'
22216 # ... but there are two gotchas:
22217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22219 # In both cases, we have to default to `cp -p'.
22220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22221 as_ln_s='cp -p'
22222 elif ln conf$$.file conf$$ 2>/dev/null; then
22223 as_ln_s=ln
22224 else
22225 as_ln_s='cp -p'
22226 fi
22227 else
22228 as_ln_s='cp -p'
22229 fi
22230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22231 rmdir conf$$.dir 2>/dev/null
22232
22233 if mkdir -p . 2>/dev/null; then
22234 as_mkdir_p=:
22235 else
22236 test -d ./-p && rmdir ./-p
22237 as_mkdir_p=false
22238 fi
22239
22240 if test -x / >/dev/null 2>&1; then
22241 as_test_x='test -x'
22242 else
22243 if ls -dL / >/dev/null 2>&1; then
22244 as_ls_L_option=L
22245 else
22246 as_ls_L_option=
22247 fi
22248 as_test_x='
22249 eval sh -c '\''
22250 if test -d "$1"; then
22251 test -d "$1/.";
22252 else
22253 case $1 in
22254 -*)set "./$1";;
22255 esac;
22256 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22257 ???[sx]*):;;*)false;;esac;fi
22258 '\'' sh
22259 '
22260 fi
22261 as_executable_p=$as_test_x
22262
22263 # Sed expression to map a string onto a valid CPP name.
22264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22265
22266 # Sed expression to map a string onto a valid variable name.
22267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22268
22269
22270 exec 6>&1
22271
22272 # Save the log message, to keep $[0] and so on meaningful, and to
22273 # report actual input values of CONFIG_FILES etc. instead of their
22274 # values after options handling.
22275 ac_log="
22276 This file was extended by xf86-video-vmware $as_me 10.16.8, which was
22277 generated by GNU Autoconf 2.63. Invocation command line was
22278
22279 CONFIG_FILES = $CONFIG_FILES
22280 CONFIG_HEADERS = $CONFIG_HEADERS
22281 CONFIG_LINKS = $CONFIG_LINKS
22282 CONFIG_COMMANDS = $CONFIG_COMMANDS
22283 $ $0 $@
22284
22285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22286 "
22287
22288 _ACEOF
22289
22290 case $ac_config_files in *"
22291 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22292 esac
22293
22294 case $ac_config_headers in *"
22295 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22296 esac
22297
22298
22299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22300 # Files that config.status was made for.
22301 config_files="$ac_config_files"
22302 config_headers="$ac_config_headers"
22303 config_commands="$ac_config_commands"
22304
22305 _ACEOF
22306
22307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22308 ac_cs_usage="\
22309 \`$as_me' instantiates files from templates according to the
22310 current configuration.
22311
22312 Usage: $0 [OPTION]... [FILE]...
22313
22314 -h, --help print this help, then exit
22315 -V, --version print version number and configuration settings, then exit
22316 -q, --quiet, --silent
22317 do not print progress messages
22318 -d, --debug don't remove temporary files
22319 --recheck update $as_me by reconfiguring in the same conditions
22320 --file=FILE[:TEMPLATE]
22321 instantiate the configuration file FILE
22322 --header=FILE[:TEMPLATE]
22323 instantiate the configuration header FILE
22324
22325 Configuration files:
22326 $config_files
22327
22328 Configuration headers:
22329 $config_headers
22330
22331 Configuration commands:
22332 $config_commands
22333
22334 Report bugs to <bug-autoconf (at] gnu.org>."
22335
22336 _ACEOF
22337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22338 ac_cs_version="\\
22339 xf86-video-vmware config.status 10.16.8
22340 configured by $0, generated by GNU Autoconf 2.63,
22341 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22342
22343 Copyright (C) 2008 Free Software Foundation, Inc.
22344 This config.status script is free software; the Free Software Foundation
22345 gives unlimited permission to copy, distribute and modify it."
22346
22347 ac_pwd='$ac_pwd'
22348 srcdir='$srcdir'
22349 INSTALL='$INSTALL'
22350 MKDIR_P='$MKDIR_P'
22351 AWK='$AWK'
22352 test -n "\$AWK" || AWK=awk
22353 _ACEOF
22354
22355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22356 # The default lists apply if the user does not specify any file.
22357 ac_need_defaults=:
22358 while test $# != 0
22359 do
22360 case $1 in
22361 --*=*)
22362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22364 ac_shift=:
22365 ;;
22366 *)
22367 ac_option=$1
22368 ac_optarg=$2
22369 ac_shift=shift
22370 ;;
22371 esac
22372
22373 case $ac_option in
22374 # Handling of the options.
22375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22376 ac_cs_recheck=: ;;
22377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22378 $as_echo "$ac_cs_version"; exit ;;
22379 --debug | --debu | --deb | --de | --d | -d )
22380 debug=: ;;
22381 --file | --fil | --fi | --f )
22382 $ac_shift
22383 case $ac_optarg in
22384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22385 esac
22386 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22387 ac_need_defaults=false;;
22388 --header | --heade | --head | --hea )
22389 $ac_shift
22390 case $ac_optarg in
22391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22392 esac
22393 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22394 ac_need_defaults=false;;
22395 --he | --h)
22396 # Conflict between --help and --header
22397 { $as_echo "$as_me: error: ambiguous option: $1
22398 Try \`$0 --help' for more information." >&2
22399 { (exit 1); exit 1; }; };;
22400 --help | --hel | -h )
22401 $as_echo "$ac_cs_usage"; exit ;;
22402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22404 ac_cs_silent=: ;;
22405
22406 # This is an error.
22407 -*) { $as_echo "$as_me: error: unrecognized option: $1
22408 Try \`$0 --help' for more information." >&2
22409 { (exit 1); exit 1; }; } ;;
22410
22411 *) ac_config_targets="$ac_config_targets $1"
22412 ac_need_defaults=false ;;
22413
22414 esac
22415 shift
22416 done
22417
22418 ac_configure_extra_args=
22419
22420 if $ac_cs_silent; then
22421 exec 6>/dev/null
22422 ac_configure_extra_args="$ac_configure_extra_args --silent"
22423 fi
22424
22425 _ACEOF
22426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22427 if \$ac_cs_recheck; then
22428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22429 shift
22430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22431 CONFIG_SHELL='$SHELL'
22432 export CONFIG_SHELL
22433 exec "\$@"
22434 fi
22435
22436 _ACEOF
22437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22438 exec 5>>config.log
22439 {
22440 echo
22441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22442 ## Running $as_me. ##
22443 _ASBOX
22444 $as_echo "$ac_log"
22445 } >&5
22446
22447 _ACEOF
22448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22449 #
22450 # INIT-COMMANDS
22451 #
22452 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22453
22454 _ACEOF
22455
22456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22457
22458 # Handling of arguments.
22459 for ac_config_target in $ac_config_targets
22460 do
22461 case $ac_config_target in
22462 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22464 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22465 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22466 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22467
22468 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22469 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22470 { (exit 1); exit 1; }; };;
22471 esac
22472 done
22473
22474
22475 # If the user did not use the arguments to specify the items to instantiate,
22476 # then the envvar interface is used. Set only those that are not.
22477 # We use the long form for the default assignment because of an extremely
22478 # bizarre bug on SunOS 4.1.3.
22479 if $ac_need_defaults; then
22480 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22481 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22482 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22483 fi
22484
22485 # Have a temporary directory for convenience. Make it in the build tree
22486 # simply because there is no reason against having it here, and in addition,
22487 # creating and moving files from /tmp can sometimes cause problems.
22488 # Hook for its removal unless debugging.
22489 # Note that there is a small window in which the directory will not be cleaned:
22490 # after its creation but before its name has been assigned to `$tmp'.
22491 $debug ||
22492 {
22493 tmp=
22494 trap 'exit_status=$?
22495 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22496 ' 0
22497 trap '{ (exit 1); exit 1; }' 1 2 13 15
22498 }
22499 # Create a (secure) tmp directory for tmp files.
22500
22501 {
22502 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22503 test -n "$tmp" && test -d "$tmp"
22504 } ||
22505 {
22506 tmp=./conf$$-$RANDOM
22507 (umask 077 && mkdir "$tmp")
22508 } ||
22509 {
22510 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22511 { (exit 1); exit 1; }
22512 }
22513
22514 # Set up the scripts for CONFIG_FILES section.
22515 # No need to generate them if there are no CONFIG_FILES.
22516 # This happens for instance with `./config.status config.h'.
22517 if test -n "$CONFIG_FILES"; then
22518
22519
22520 ac_cr='
'
22522 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22523 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22524 ac_cs_awk_cr='\\r'
22525 else
22526 ac_cs_awk_cr=$ac_cr
22527 fi
22528
22529 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22530 _ACEOF
22531
22532
22533 {
22534 echo "cat >conf$$subs.awk <<_ACEOF" &&
22535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22536 echo "_ACEOF"
22537 } >conf$$subs.sh ||
22538 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22539 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22540 { (exit 1); exit 1; }; }
22541 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22542 ac_delim='%!_!# '
22543 for ac_last_try in false false false false false :; do
22544 . ./conf$$subs.sh ||
22545 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22546 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22547 { (exit 1); exit 1; }; }
22548
22549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22550 if test $ac_delim_n = $ac_delim_num; then
22551 break
22552 elif $ac_last_try; then
22553 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22554 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22555 { (exit 1); exit 1; }; }
22556 else
22557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22558 fi
22559 done
22560 rm -f conf$$subs.sh
22561
22562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22563 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22564 _ACEOF
22565 sed -n '
22566 h
22567 s/^/S["/; s/!.*/"]=/
22568 p
22569 g
22570 s/^[^!]*!//
22571 :repl
22572 t repl
22573 s/'"$ac_delim"'$//
22574 t delim
22575 :nl
22576 h
22577 s/\(.\{148\}\).*/\1/
22578 t more1
22579 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22580 p
22581 n
22582 b repl
22583 :more1
22584 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22585 p
22586 g
22587 s/.\{148\}//
22588 t nl
22589 :delim
22590 h
22591 s/\(.\{148\}\).*/\1/
22592 t more2
22593 s/["\\]/\\&/g; s/^/"/; s/$/"/
22594 p
22595 b
22596 :more2
22597 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22598 p
22599 g
22600 s/.\{148\}//
22601 t delim
22602 ' <conf$$subs.awk | sed '
22603 /^[^""]/{
22604 N
22605 s/\n//
22606 }
22607 ' >>$CONFIG_STATUS || ac_write_fail=1
22608 rm -f conf$$subs.awk
22609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22610 _ACAWK
22611 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22612 for (key in S) S_is_set[key] = 1
22613 FS = ""
22614
22615 }
22616 {
22617 line = $ 0
22618 nfields = split(line, field, "@")
22619 substed = 0
22620 len = length(field[1])
22621 for (i = 2; i < nfields; i++) {
22622 key = field[i]
22623 keylen = length(key)
22624 if (S_is_set[key]) {
22625 value = S[key]
22626 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22627 len += length(value) + length(field[++i])
22628 substed = 1
22629 } else
22630 len += 1 + keylen
22631 }
22632
22633 print line
22634 }
22635
22636 _ACAWK
22637 _ACEOF
22638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22639 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22641 else
22642 cat
22643 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22644 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22645 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22646 { (exit 1); exit 1; }; }
22647 _ACEOF
22648
22649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22651 # trailing colons and then remove the whole line if VPATH becomes empty
22652 # (actually we leave an empty line to preserve line numbers).
22653 if test "x$srcdir" = x.; then
22654 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22655 s/:*\$(srcdir):*/:/
22656 s/:*\${srcdir}:*/:/
22657 s/:*@srcdir@:*/:/
22658 s/^\([^=]*=[ ]*\):*/\1/
22659 s/:*$//
22660 s/^[^=]*=[ ]*$//
22661 }'
22662 fi
22663
22664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22665 fi # test -n "$CONFIG_FILES"
22666
22667 # Set up the scripts for CONFIG_HEADERS section.
22668 # No need to generate them if there are no CONFIG_HEADERS.
22669 # This happens for instance with `./config.status Makefile'.
22670 if test -n "$CONFIG_HEADERS"; then
22671 cat >"$tmp/defines.awk" <<\_ACAWK ||
22672 BEGIN {
22673 _ACEOF
22674
22675 # Transform confdefs.h into an awk script `defines.awk', embedded as
22676 # here-document in config.status, that substitutes the proper values into
22677 # config.h.in to produce config.h.
22678
22679 # Create a delimiter string that does not exist in confdefs.h, to ease
22680 # handling of long lines.
22681 ac_delim='%!_!# '
22682 for ac_last_try in false false :; do
22683 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22684 if test -z "$ac_t"; then
22685 break
22686 elif $ac_last_try; then
22687 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22688 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22689 { (exit 1); exit 1; }; }
22690 else
22691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22692 fi
22693 done
22694
22695 # For the awk script, D is an array of macro values keyed by name,
22696 # likewise P contains macro parameters if any. Preserve backslash
22697 # newline sequences.
22698
22699 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22700 sed -n '
22701 s/.\{148\}/&'"$ac_delim"'/g
22702 t rset
22703 :rset
22704 s/^[ ]*#[ ]*define[ ][ ]*/ /
22705 t def
22706 d
22707 :def
22708 s/\\$//
22709 t bsnl
22710 s/["\\]/\\&/g
22711 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22712 D["\1"]=" \3"/p
22713 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22714 d
22715 :bsnl
22716 s/["\\]/\\&/g
22717 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22718 D["\1"]=" \3\\\\\\n"\\/p
22719 t cont
22720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22721 t cont
22722 d
22723 :cont
22724 n
22725 s/.\{148\}/&'"$ac_delim"'/g
22726 t clear
22727 :clear
22728 s/\\$//
22729 t bsnlc
22730 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22731 d
22732 :bsnlc
22733 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22734 b cont
22735 ' <confdefs.h | sed '
22736 s/'"$ac_delim"'/"\\\
22737 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22738
22739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22740 for (key in D) D_is_set[key] = 1
22741 FS = ""
22742 }
22743 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22744 line = \$ 0
22745 split(line, arg, " ")
22746 if (arg[1] == "#") {
22747 defundef = arg[2]
22748 mac1 = arg[3]
22749 } else {
22750 defundef = substr(arg[1], 2)
22751 mac1 = arg[2]
22752 }
22753 split(mac1, mac2, "(") #)
22754 macro = mac2[1]
22755 prefix = substr(line, 1, index(line, defundef) - 1)
22756 if (D_is_set[macro]) {
22757 # Preserve the white space surrounding the "#".
22758 print prefix "define", macro P[macro] D[macro]
22759 next
22760 } else {
22761 # Replace #undef with comments. This is necessary, for example,
22762 # in the case of _POSIX_SOURCE, which is predefined and required
22763 # on some systems where configure will not decide to define it.
22764 if (defundef == "undef") {
22765 print "/*", prefix defundef, macro, "*/"
22766 next
22767 }
22768 }
22769 }
22770 { print }
22771 _ACAWK
22772 _ACEOF
22773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22774 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22775 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22776 { (exit 1); exit 1; }; }
22777 fi # test -n "$CONFIG_HEADERS"
22778
22779
22780 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22781 shift
22782 for ac_tag
22783 do
22784 case $ac_tag in
22785 :[FHLC]) ac_mode=$ac_tag; continue;;
22786 esac
22787 case $ac_mode$ac_tag in
22788 :[FHL]*:*);;
22789 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22790 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22791 { (exit 1); exit 1; }; };;
22792 :[FH]-) ac_tag=-:-;;
22793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22794 esac
22795 ac_save_IFS=$IFS
22796 IFS=:
22797 set x $ac_tag
22798 IFS=$ac_save_IFS
22799 shift
22800 ac_file=$1
22801 shift
22802
22803 case $ac_mode in
22804 :L) ac_source=$1;;
22805 :[FH])
22806 ac_file_inputs=
22807 for ac_f
22808 do
22809 case $ac_f in
22810 -) ac_f="$tmp/stdin";;
22811 *) # Look for the file first in the build tree, then in the source tree
22812 # (if the path is not absolute). The absolute path cannot be DOS-style,
22813 # because $ac_f cannot contain `:'.
22814 test -f "$ac_f" ||
22815 case $ac_f in
22816 [\\/$]*) false;;
22817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22818 esac ||
22819 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22820 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22821 { (exit 1); exit 1; }; };;
22822 esac
22823 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22824 ac_file_inputs="$ac_file_inputs '$ac_f'"
22825 done
22826
22827 # Let's still pretend it is `configure' which instantiates (i.e., don't
22828 # use $as_me), people would be surprised to read:
22829 # /* config.h. Generated by config.status. */
22830 configure_input='Generated from '`
22831 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22832 `' by configure.'
22833 if test x"$ac_file" != x-; then
22834 configure_input="$ac_file. $configure_input"
22835 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22836 $as_echo "$as_me: creating $ac_file" >&6;}
22837 fi
22838 # Neutralize special characters interpreted by sed in replacement strings.
22839 case $configure_input in #(
22840 *\&* | *\|* | *\\* )
22841 ac_sed_conf_input=`$as_echo "$configure_input" |
22842 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22843 *) ac_sed_conf_input=$configure_input;;
22844 esac
22845
22846 case $ac_tag in
22847 *:-:* | *:-) cat >"$tmp/stdin" \
22848 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22849 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22850 { (exit 1); exit 1; }; } ;;
22851 esac
22852 ;;
22853 esac
22854
22855 ac_dir=`$as_dirname -- "$ac_file" ||
22856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22857 X"$ac_file" : 'X\(//\)[^/]' \| \
22858 X"$ac_file" : 'X\(//\)$' \| \
22859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22860 $as_echo X"$ac_file" |
22861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22862 s//\1/
22863 q
22864 }
22865 /^X\(\/\/\)[^/].*/{
22866 s//\1/
22867 q
22868 }
22869 /^X\(\/\/\)$/{
22870 s//\1/
22871 q
22872 }
22873 /^X\(\/\).*/{
22874 s//\1/
22875 q
22876 }
22877 s/.*/./; q'`
22878 { as_dir="$ac_dir"
22879 case $as_dir in #(
22880 -*) as_dir=./$as_dir;;
22881 esac
22882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22883 as_dirs=
22884 while :; do
22885 case $as_dir in #(
22886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22887 *) as_qdir=$as_dir;;
22888 esac
22889 as_dirs="'$as_qdir' $as_dirs"
22890 as_dir=`$as_dirname -- "$as_dir" ||
22891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22892 X"$as_dir" : 'X\(//\)[^/]' \| \
22893 X"$as_dir" : 'X\(//\)$' \| \
22894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22895 $as_echo X"$as_dir" |
22896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22897 s//\1/
22898 q
22899 }
22900 /^X\(\/\/\)[^/].*/{
22901 s//\1/
22902 q
22903 }
22904 /^X\(\/\/\)$/{
22905 s//\1/
22906 q
22907 }
22908 /^X\(\/\).*/{
22909 s//\1/
22910 q
22911 }
22912 s/.*/./; q'`
22913 test -d "$as_dir" && break
22914 done
22915 test -z "$as_dirs" || eval "mkdir $as_dirs"
22916 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22917 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22918 { (exit 1); exit 1; }; }; }
22919 ac_builddir=.
22920
22921 case "$ac_dir" in
22922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22923 *)
22924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22925 # A ".." for each directory in $ac_dir_suffix.
22926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22927 case $ac_top_builddir_sub in
22928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22930 esac ;;
22931 esac
22932 ac_abs_top_builddir=$ac_pwd
22933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22934 # for backward compatibility:
22935 ac_top_builddir=$ac_top_build_prefix
22936
22937 case $srcdir in
22938 .) # We are building in place.
22939 ac_srcdir=.
22940 ac_top_srcdir=$ac_top_builddir_sub
22941 ac_abs_top_srcdir=$ac_pwd ;;
22942 [\\/]* | ?:[\\/]* ) # Absolute name.
22943 ac_srcdir=$srcdir$ac_dir_suffix;
22944 ac_top_srcdir=$srcdir
22945 ac_abs_top_srcdir=$srcdir ;;
22946 *) # Relative name.
22947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22948 ac_top_srcdir=$ac_top_build_prefix$srcdir
22949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22950 esac
22951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22952
22953
22954 case $ac_mode in
22955 :F)
22956 #
22957 # CONFIG_FILE
22958 #
22959
22960 case $INSTALL in
22961 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22962 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22963 esac
22964 ac_MKDIR_P=$MKDIR_P
22965 case $MKDIR_P in
22966 [\\/$]* | ?:[\\/]* ) ;;
22967 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22968 esac
22969 _ACEOF
22970
22971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22972 # If the template does not know about datarootdir, expand it.
22973 # FIXME: This hack should be removed a few years after 2.60.
22974 ac_datarootdir_hack=; ac_datarootdir_seen=
22975
22976 ac_sed_dataroot='
22977 /datarootdir/ {
22978 p
22979 q
22980 }
22981 /@datadir@/p
22982 /@docdir@/p
22983 /@infodir@/p
22984 /@localedir@/p
22985 /@mandir@/p
22986 '
22987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22988 *datarootdir*) ac_datarootdir_seen=yes;;
22989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22990 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22991 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22992 _ACEOF
22993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22994 ac_datarootdir_hack='
22995 s&@datadir@&$datadir&g
22996 s&@docdir@&$docdir&g
22997 s&@infodir@&$infodir&g
22998 s&@localedir@&$localedir&g
22999 s&@mandir@&$mandir&g
23000 s&\\\${datarootdir}&$datarootdir&g' ;;
23001 esac
23002 _ACEOF
23003
23004 # Neutralize VPATH when `$srcdir' = `.'.
23005 # Shell code in configure.ac might set extrasub.
23006 # FIXME: do we really want to maintain this feature?
23007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23008 ac_sed_extra="$ac_vpsub
23009 $extrasub
23010 _ACEOF
23011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23012 :t
23013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23014 s|@configure_input@|$ac_sed_conf_input|;t t
23015 s&@top_builddir@&$ac_top_builddir_sub&;t t
23016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23017 s&@srcdir@&$ac_srcdir&;t t
23018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23019 s&@top_srcdir@&$ac_top_srcdir&;t t
23020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23021 s&@builddir@&$ac_builddir&;t t
23022 s&@abs_builddir@&$ac_abs_builddir&;t t
23023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23024 s&@INSTALL@&$ac_INSTALL&;t t
23025 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23026 $ac_datarootdir_hack
23027 "
23028 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23029 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23030 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23031 { (exit 1); exit 1; }; }
23032
23033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23034 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23037 which seems to be undefined. Please make sure it is defined." >&5
23038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23039 which seems to be undefined. Please make sure it is defined." >&2;}
23040
23041 rm -f "$tmp/stdin"
23042 case $ac_file in
23043 -) cat "$tmp/out" && rm -f "$tmp/out";;
23044 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23045 esac \
23046 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23047 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23048 { (exit 1); exit 1; }; }
23049 ;;
23050 :H)
23051 #
23052 # CONFIG_HEADER
23053 #
23054 if test x"$ac_file" != x-; then
23055 {
23056 $as_echo "/* $configure_input */" \
23057 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23058 } >"$tmp/config.h" \
23059 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23060 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23061 { (exit 1); exit 1; }; }
23062 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23063 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23064 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23065 else
23066 rm -f "$ac_file"
23067 mv "$tmp/config.h" "$ac_file" \
23068 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23069 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23070 { (exit 1); exit 1; }; }
23071 fi
23072 else
23073 $as_echo "/* $configure_input */" \
23074 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23075 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23076 $as_echo "$as_me: error: could not create -" >&2;}
23077 { (exit 1); exit 1; }; }
23078 fi
23079 # Compute "$ac_file"'s index in $config_headers.
23080 _am_arg="$ac_file"
23081 _am_stamp_count=1
23082 for _am_header in $config_headers :; do
23083 case $_am_header in
23084 $_am_arg | $_am_arg:* )
23085 break ;;
23086 * )
23087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23088 esac
23089 done
23090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23092 X"$_am_arg" : 'X\(//\)[^/]' \| \
23093 X"$_am_arg" : 'X\(//\)$' \| \
23094 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23095 $as_echo X"$_am_arg" |
23096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23097 s//\1/
23098 q
23099 }
23100 /^X\(\/\/\)[^/].*/{
23101 s//\1/
23102 q
23103 }
23104 /^X\(\/\/\)$/{
23105 s//\1/
23106 q
23107 }
23108 /^X\(\/\).*/{
23109 s//\1/
23110 q
23111 }
23112 s/.*/./; q'`/stamp-h$_am_stamp_count
23113 ;;
23114
23115 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23116 $as_echo "$as_me: executing $ac_file commands" >&6;}
23117 ;;
23118 esac
23119
23120
23121 case $ac_file$ac_mode in
23122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23123 # Strip MF so we end up with the name of the file.
23124 mf=`echo "$mf" | sed -e 's/:.*$//'`
23125 # Check whether this is an Automake generated Makefile or not.
23126 # We used to match only the files named `Makefile.in', but
23127 # some people rename them; so instead we look at the file content.
23128 # Grep'ing the first line is not enough: some people post-process
23129 # each Makefile.in and add a new line on top of each file to say so.
23130 # Grep'ing the whole file is not good either: AIX grep has a line
23131 # limit of 2048, but all sed's we know have understand at least 4000.
23132 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23133 dirpart=`$as_dirname -- "$mf" ||
23134 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23135 X"$mf" : 'X\(//\)[^/]' \| \
23136 X"$mf" : 'X\(//\)$' \| \
23137 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23138 $as_echo X"$mf" |
23139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23140 s//\1/
23141 q
23142 }
23143 /^X\(\/\/\)[^/].*/{
23144 s//\1/
23145 q
23146 }
23147 /^X\(\/\/\)$/{
23148 s//\1/
23149 q
23150 }
23151 /^X\(\/\).*/{
23152 s//\1/
23153 q
23154 }
23155 s/.*/./; q'`
23156 else
23157 continue
23158 fi
23159 # Extract the definition of DEPDIR, am__include, and am__quote
23160 # from the Makefile without running `make'.
23161 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23162 test -z "$DEPDIR" && continue
23163 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23164 test -z "am__include" && continue
23165 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23166 # When using ansi2knr, U may be empty or an underscore; expand it
23167 U=`sed -n 's/^U = //p' < "$mf"`
23168 # Find all dependency output files, they are included files with
23169 # $(DEPDIR) in their names. We invoke sed twice because it is the
23170 # simplest approach to changing $(DEPDIR) to its actual value in the
23171 # expansion.
23172 for file in `sed -n "
23173 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23175 # Make sure the directory exists.
23176 test -f "$dirpart/$file" && continue
23177 fdir=`$as_dirname -- "$file" ||
23178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23179 X"$file" : 'X\(//\)[^/]' \| \
23180 X"$file" : 'X\(//\)$' \| \
23181 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23182 $as_echo X"$file" |
23183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23184 s//\1/
23185 q
23186 }
23187 /^X\(\/\/\)[^/].*/{
23188 s//\1/
23189 q
23190 }
23191 /^X\(\/\/\)$/{
23192 s//\1/
23193 q
23194 }
23195 /^X\(\/\).*/{
23196 s//\1/
23197 q
23198 }
23199 s/.*/./; q'`
23200 { as_dir=$dirpart/$fdir
23201 case $as_dir in #(
23202 -*) as_dir=./$as_dir;;
23203 esac
23204 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23205 as_dirs=
23206 while :; do
23207 case $as_dir in #(
23208 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23209 *) as_qdir=$as_dir;;
23210 esac
23211 as_dirs="'$as_qdir' $as_dirs"
23212 as_dir=`$as_dirname -- "$as_dir" ||
23213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23214 X"$as_dir" : 'X\(//\)[^/]' \| \
23215 X"$as_dir" : 'X\(//\)$' \| \
23216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23217 $as_echo X"$as_dir" |
23218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23219 s//\1/
23220 q
23221 }
23222 /^X\(\/\/\)[^/].*/{
23223 s//\1/
23224 q
23225 }
23226 /^X\(\/\/\)$/{
23227 s//\1/
23228 q
23229 }
23230 /^X\(\/\).*/{
23231 s//\1/
23232 q
23233 }
23234 s/.*/./; q'`
23235 test -d "$as_dir" && break
23236 done
23237 test -z "$as_dirs" || eval "mkdir $as_dirs"
23238 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23239 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23240 { (exit 1); exit 1; }; }; }
23241 # echo "creating $dirpart/$file"
23242 echo '# dummy' > "$dirpart/$file"
23243 done
23244 done
23245 ;;
23246
23247 esac
23248 done # for ac_tag
23249
23250
23251 { (exit 0); exit 0; }
23252 _ACEOF
23253 chmod +x $CONFIG_STATUS
23254 ac_clean_files=$ac_clean_files_save
23255
23256 test $ac_write_fail = 0 ||
23257 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23258 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23259 { (exit 1); exit 1; }; }
23260
23261
23262 # configure is writing to config.log, and then calls config.status.
23263 # config.status does its own redirection, appending to config.log.
23264 # Unfortunately, on DOS this fails, as config.log is still kept open
23265 # by configure, so config.status won't be able to write to it; its
23266 # output is simply discarded. So we exec the FD to /dev/null,
23267 # effectively closing config.log, so it can be properly (re)opened and
23268 # appended to by config.status. When coming back to configure, we
23269 # need to make the FD available again.
23270 if test "$no_create" != yes; then
23271 ac_cs_success=:
23272 ac_config_status_args=
23273 test "$silent" = yes &&
23274 ac_config_status_args="$ac_config_status_args --quiet"
23275 exec 5>/dev/null
23276 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23277 exec 5>>config.log
23278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23279 # would make configure fail if this is the last instruction.
23280 $ac_cs_success || { (exit 1); exit 1; }
23281 fi
23282 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23283 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23284 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23285 fi
23286
23287