configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xf86-video-ast 0.89.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 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='xf86-video-ast'
730 PACKAGE_TARNAME='xf86-video-ast'
731 PACKAGE_VERSION='0.89.8'
732 PACKAGE_STRING='xf86-video-ast 0.89.8'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 ac_unique_file="Makefile.am"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 MAINTAINER_MODE_TRUE
832 MAINTAINER_MODE_FALSE
833 MAINT
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 SED
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 PKG_CONFIG
878 XORG_CFLAGS
879 XORG_LIBS
880 PCIACCESS_CFLAGS
881 PCIACCESS_LIBS
882 XSERVER_LIBPCIACCESS_TRUE
883 XSERVER_LIBPCIACCESS_FALSE
884 moduledir
885 DRIVER_NAME
886 APP_MAN_SUFFIX
887 LIB_MAN_SUFFIX
888 FILE_MAN_SUFFIX
889 MISC_MAN_SUFFIX
890 DRIVER_MAN_SUFFIX
891 ADMIN_MAN_SUFFIX
892 APP_MAN_DIR
893 LIB_MAN_DIR
894 FILE_MAN_DIR
895 MISC_MAN_DIR
896 DRIVER_MAN_DIR
897 ADMIN_MAN_DIR
898 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CXXCPP
914 F77
915 FFLAGS
916 PKG_CONFIG
917 XORG_CFLAGS
918 XORG_LIBS
919 PCIACCESS_CFLAGS
920 PCIACCESS_LIBS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
928 cache_file=/dev/null
929 exec_prefix=NONE
930 no_create=
931 no_recursion=
932 prefix=NONE
933 program_prefix=NONE
934 program_suffix=NONE
935 program_transform_name=s,x,x,
936 silent=
937 site=
938 srcdir=
939 verbose=
940 x_includes=NONE
941 x_libraries=NONE
942
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
968
969 ac_prev=
970 ac_dashdash=
971 for ac_option
972 do
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
978 fi
979
980 case $ac_option in
981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *) ac_optarg=yes ;;
983 esac
984
985 # Accept the important Cygnus configure options, so we can diagnose typos.
986
987 case $ac_dashdash$ac_option in
988 --)
989 ac_dashdash=yes ;;
990
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
995
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1000
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1007
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1010
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1015
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1022
1023 -disable-* | --disable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=no ;;
1031
1032 -docdir | --docdir | --docdi | --doc | --do)
1033 ac_prev=docdir ;;
1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035 docdir=$ac_optarg ;;
1036
1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 ac_prev=dvidir ;;
1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040 dvidir=$ac_optarg ;;
1041
1042 -enable-* | --enable-*)
1043 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1049 eval enable_$ac_feature=\$ac_optarg ;;
1050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1070
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1075
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1105
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1179
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1238
1239 -with-* | --with-*)
1240 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid package name: $ac_package" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255 eval with_$ac_package=no ;;
1256
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1260
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1267
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1274
1275 -*) { echo "$as_me: error: unrecognized option: $ac_option
1276 Try \`$0 --help' for more information." >&2
1277 { (exit 1); exit 1; }; }
1278 ;;
1279
1280 *=*)
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1285 { (exit 1); exit 1; }; }
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1288
1289 *)
1290 # FIXME: should be removed in autoconf 3.0.
1291 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295 ;;
1296
1297 esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 { echo "$as_me: error: missing argument to $ac_option" >&2
1303 { (exit 1); exit 1; }; }
1304 fi
1305
1306 # Be sure to have absolute directory names.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1311 do
1312 eval ac_val=\$$ac_var
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318 { (exit 1); exit 1; }; }
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 { echo "$as_me: error: Working directory cannot be determined" >&2
1349 { (exit 1); exit 1; }; }
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 { echo "$as_me: error: pwd does not report name of working directory" >&2
1352 { (exit 1); exit 1; }; }
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$0" ||
1360 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$0" : 'X\(//\)[^/]' \| \
1362 X"$0" : 'X\(//\)$' \| \
1363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1364 echo X"$0" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\).*/{
1378 s//\1/
1379 q
1380 }
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1385 fi
1386 else
1387 ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1392 { (exit 1); exit 1; }; }
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1397 { (exit 1); exit 1; }; }
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures xf86-video-ast 0.89.8 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ast]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1476 _ACEOF
1477
1478 cat <<\_ACEOF
1479
1480 Program names:
1481 --program-prefix=PREFIX prepend PREFIX to installed program names
1482 --program-suffix=SUFFIX append SUFFIX to installed program names
1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484
1485 System types:
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 _ACEOF
1489 fi
1490
1491 if test -n "$ac_init_help"; then
1492 case $ac_init_help in
1493 short | recursive ) echo "Configuration of xf86-video-ast 0.89.8:";;
1494 esac
1495 cat <<\_ACEOF
1496
1497 Optional Features:
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-maintainer-mode enable make rules and dependencies not useful
1501 (and sometimes confusing) to the casual installer
1502 --enable-static[=PKGS] build static libraries [default=no]
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-dependency-tracking speeds up one-time build
1507 --enable-dependency-tracking do not reject slow dependency extractors
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1509
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-pic try to use only PIC/non-PIC objects [default=use
1515 both]
1516 --with-tags[=TAGS] include additional configurations [automatic]
1517 --with-xorg-module-dir=DIR
1518 Default xorg module directory
1519 [default=$libdir/xorg/modules]
1520 --with-release-version=STRING
1521 Use release version string in package name
1522
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CPP C preprocessor
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
1534 CXXCPP C++ preprocessor
1535 F77 Fortran 77 compiler command
1536 FFLAGS Fortran 77 compiler flags
1537 PKG_CONFIG path to pkg-config utility
1538 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1539 XORG_LIBS linker flags for XORG, overriding pkg-config
1540 PCIACCESS_CFLAGS
1541 C compiler flags for PCIACCESS, overriding pkg-config
1542 PCIACCESS_LIBS
1543 linker flags for PCIACCESS, overriding pkg-config
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" || continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608 cat <<\_ACEOF
1609 xf86-video-ast configure 0.89.8
1610 generated by GNU Autoconf 2.61
1611
1612 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1613 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1618 fi
1619 cat >config.log <<_ACEOF
1620 This file contains any messages produced by compilers while
1621 running configure, to aid debugging if configure makes a mistake.
1622
1623 It was created by xf86-video-ast $as_me 0.89.8, which was
1624 generated by GNU Autoconf 2.61. Invocation command line was
1625
1626 $ $0 $@
1627
1628 _ACEOF
1629 exec 5>>config.log
1630 {
1631 cat <<_ASUNAME
1632 ## --------- ##
1633 ## Platform. ##
1634 ## --------- ##
1635
1636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1641
1642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1643 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1644
1645 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1646 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1648 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1649 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1650 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1651 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1652
1653 _ASUNAME
1654
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 echo "PATH: $as_dir"
1661 done
1662 IFS=$as_save_IFS
1663
1664 } >&5
1665
1666 cat >&5 <<_ACEOF
1667
1668
1669 ## ----------- ##
1670 ## Core tests. ##
1671 ## ----------- ##
1672
1673 _ACEOF
1674
1675
1676 # Keep a trace of the command line.
1677 # Strip out --no-create and --no-recursion so they do not pile up.
1678 # Strip out --silent because we don't want to record it for future runs.
1679 # Also quote any args containing shell meta-characters.
1680 # Make two passes to allow for proper duplicate-argument suppression.
1681 ac_configure_args=
1682 ac_configure_args0=
1683 ac_configure_args1=
1684 ac_must_keep_next=false
1685 for ac_pass in 1 2
1686 do
1687 for ac_arg
1688 do
1689 case $ac_arg in
1690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1692 | -silent | --silent | --silen | --sile | --sil)
1693 continue ;;
1694 *\'*)
1695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 esac
1697 case $ac_pass in
1698 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1699 2)
1700 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1701 if test $ac_must_keep_next = true; then
1702 ac_must_keep_next=false # Got value, back to normal.
1703 else
1704 case $ac_arg in
1705 *=* | --config-cache | -C | -disable-* | --disable-* \
1706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1708 | -with-* | --with-* | -without-* | --without-* | --x)
1709 case "$ac_configure_args0 " in
1710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1711 esac
1712 ;;
1713 -* ) ac_must_keep_next=true ;;
1714 esac
1715 fi
1716 ac_configure_args="$ac_configure_args '$ac_arg'"
1717 ;;
1718 esac
1719 done
1720 done
1721 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1722 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1723
1724 # When interrupted or exit'd, cleanup temporary files, and complete
1725 # config.log. We remove comments because anyway the quotes in there
1726 # would cause problems or look ugly.
1727 # WARNING: Use '\'' to represent an apostrophe within the trap.
1728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1729 trap 'exit_status=$?
1730 # Save into config.log some information that might help in debugging.
1731 {
1732 echo
1733
1734 cat <<\_ASBOX
1735 ## ---------------- ##
1736 ## Cache variables. ##
1737 ## ---------------- ##
1738 _ASBOX
1739 echo
1740 # The following way of writing the cache mishandles newlines in values,
1741 (
1742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in #(
1745 *${as_nl}*)
1746 case $ac_var in #(
1747 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1748 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1749 esac
1750 case $ac_var in #(
1751 _ | IFS | as_nl) ;; #(
1752 *) $as_unset $ac_var ;;
1753 esac ;;
1754 esac
1755 done
1756 (set) 2>&1 |
1757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1758 *${as_nl}ac_space=\ *)
1759 sed -n \
1760 "s/'\''/'\''\\\\'\'''\''/g;
1761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1762 ;; #(
1763 *)
1764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1765 ;;
1766 esac |
1767 sort
1768 )
1769 echo
1770
1771 cat <<\_ASBOX
1772 ## ----------------- ##
1773 ## Output variables. ##
1774 ## ----------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_vars
1778 do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1786
1787 if test -n "$ac_subst_files"; then
1788 cat <<\_ASBOX
1789 ## ------------------- ##
1790 ## File substitutions. ##
1791 ## ------------------- ##
1792 _ASBOX
1793 echo
1794 for ac_var in $ac_subst_files
1795 do
1796 eval ac_val=\$$ac_var
1797 case $ac_val in
1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799 esac
1800 echo "$ac_var='\''$ac_val'\''"
1801 done | sort
1802 echo
1803 fi
1804
1805 if test -s confdefs.h; then
1806 cat <<\_ASBOX
1807 ## ----------- ##
1808 ## confdefs.h. ##
1809 ## ----------- ##
1810 _ASBOX
1811 echo
1812 cat confdefs.h
1813 echo
1814 fi
1815 test "$ac_signal" != 0 &&
1816 echo "$as_me: caught signal $ac_signal"
1817 echo "$as_me: exit $exit_status"
1818 } >&5
1819 rm -f core *.core core.conftest.* &&
1820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1821 exit $exit_status
1822 ' 0
1823 for ac_signal in 1 2 13 15; do
1824 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1825 done
1826 ac_signal=0
1827
1828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1829 rm -f -r conftest* confdefs.h
1830
1831 # Predefined preprocessor variables.
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_NAME "$PACKAGE_NAME"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_STRING "$PACKAGE_STRING"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1855 _ACEOF
1856
1857
1858 # Let the site file select an alternate cache file if it wants to.
1859 # Prefer explicitly selected file to automatically selected ones.
1860 if test -n "$CONFIG_SITE"; then
1861 set x "$CONFIG_SITE"
1862 elif test "x$prefix" != xNONE; then
1863 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1864 else
1865 set x "$ac_default_prefix/share/config.site" \
1866 "$ac_default_prefix/etc/config.site"
1867 fi
1868 shift
1869 for ac_site_file
1870 do
1871 if test -r "$ac_site_file"; then
1872 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873 echo "$as_me: loading site script $ac_site_file" >&6;}
1874 sed 's/^/| /' "$ac_site_file" >&5
1875 . "$ac_site_file"
1876 fi
1877 done
1878
1879 if test -r "$cache_file"; then
1880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
1883 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884 echo "$as_me: loading cache $cache_file" >&6;}
1885 case $cache_file in
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
1888 esac
1889 fi
1890 else
1891 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892 echo "$as_me: creating cache $cache_file" >&6;}
1893 >$cache_file
1894 fi
1895
1896 # Check that the precious variables saved in the cache have kept the same
1897 # value.
1898 ac_cache_corrupted=false
1899 for ac_var in $ac_precious_vars; do
1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901 eval ac_new_set=\$ac_env_${ac_var}_set
1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903 eval ac_new_val=\$ac_env_${ac_var}_value
1904 case $ac_old_set,$ac_new_set in
1905 set,)
1906 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1909 ,set)
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,);;
1914 *)
1915 if test "x$ac_old_val" != "x$ac_new_val"; then
1916 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1917 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1918 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1919 echo "$as_me: former value: $ac_old_val" >&2;}
1920 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1921 echo "$as_me: current value: $ac_new_val" >&2;}
1922 ac_cache_corrupted=:
1923 fi;;
1924 esac
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1927 case $ac_new_val in
1928 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1930 esac
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 esac
1935 fi
1936 done
1937 if $ac_cache_corrupted; then
1938 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1939 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1940 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1941 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1942 { (exit 1); exit 1; }; }
1943 fi
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974
1975
1976
1977
1978 ac_config_headers="$ac_config_headers config.h"
1979
1980 ac_aux_dir=
1981 for ac_dir in . "$srcdir"/.; do
1982 if test -f "$ac_dir/install-sh"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1985 break
1986 elif test -f "$ac_dir/install.sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1989 break
1990 elif test -f "$ac_dir/shtool"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1993 break
1994 fi
1995 done
1996 if test -z "$ac_aux_dir"; then
1997 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1998 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1999 { (exit 1); exit 1; }; }
2000 fi
2001
2002 # These three variables are undocumented and unsupported,
2003 # and are intended to be withdrawn in a future Autoconf release.
2004 # They can cause serious problems if a builder's source tree is in a directory
2005 # whose full name contains unusual characters.
2006 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009
2010
2011
2012 am__api_version='1.10'
2013
2014 # Find a good install program. We prefer a C program (faster),
2015 # so one script is as good as another. But avoid the broken or
2016 # incompatible versions:
2017 # SysV /etc/install, /usr/sbin/install
2018 # SunOS /usr/etc/install
2019 # IRIX /sbin/install
2020 # AIX /bin/install
2021 # AmigaOS /C/install, which installs bootblocks on floppy discs
2022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2025 # OS/2's system install, which has a completely different semantic
2026 # ./install, which can be erroneously created by make from ./install.sh.
2027 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2028 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2029 if test -z "$INSTALL"; then
2030 if test "${ac_cv_path_install+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 # Account for people who put trailing slashes in PATH elements.
2039 case $as_dir/ in
2040 ./ | .// | /cC/* | \
2041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2042 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2043 /usr/ucb/* ) ;;
2044 *)
2045 # OSF1 and SCO ODT 3.0 have their own names for install.
2046 # Don't use installbsd from OSF since it installs stuff as root
2047 # by default.
2048 for ac_prog in ginstall scoinst install; do
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2051 if test $ac_prog = install &&
2052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2053 # AIX install. It has an incompatible calling convention.
2054 :
2055 elif test $ac_prog = install &&
2056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2057 # program-specific install script used by HP pwplus--don't use.
2058 :
2059 else
2060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2061 break 3
2062 fi
2063 fi
2064 done
2065 done
2066 ;;
2067 esac
2068 done
2069 IFS=$as_save_IFS
2070
2071
2072 fi
2073 if test "${ac_cv_path_install+set}" = set; then
2074 INSTALL=$ac_cv_path_install
2075 else
2076 # As a last resort, use the slow shell script. Don't cache a
2077 # value for INSTALL within a source directory, because that will
2078 # break other packages using the cache if that directory is
2079 # removed, or if the value is a relative name.
2080 INSTALL=$ac_install_sh
2081 fi
2082 fi
2083 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2084 echo "${ECHO_T}$INSTALL" >&6; }
2085
2086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2087 # It thinks the first close brace ends the variable substitution.
2088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2089
2090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2091
2092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2093
2094 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2095 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2096 # Just in case
2097 sleep 1
2098 echo timestamp > conftest.file
2099 # Do `set' in a subshell so we don't clobber the current shell's
2100 # arguments. Must try -L first in case configure is actually a
2101 # symlink; some systems play weird games with the mod time of symlinks
2102 # (eg FreeBSD returns the mod time of the symlink's containing
2103 # directory).
2104 if (
2105 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2106 if test "$*" = "X"; then
2107 # -L didn't work.
2108 set X `ls -t $srcdir/configure conftest.file`
2109 fi
2110 rm -f conftest.file
2111 if test "$*" != "X $srcdir/configure conftest.file" \
2112 && test "$*" != "X conftest.file $srcdir/configure"; then
2113
2114 # If neither matched, then we have a broken ls. This can happen
2115 # if, for instance, CONFIG_SHELL is bash and it inherits a
2116 # broken ls alias from the environment. This has actually
2117 # happened. Such a system could not be considered "sane".
2118 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2119 alias in your environment" >&5
2120 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2121 alias in your environment" >&2;}
2122 { (exit 1); exit 1; }; }
2123 fi
2124
2125 test "$2" = conftest.file
2126 )
2127 then
2128 # Ok.
2129 :
2130 else
2131 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2132 Check your system clock" >&5
2133 echo "$as_me: error: newly created file is older than distributed files!
2134 Check your system clock" >&2;}
2135 { (exit 1); exit 1; }; }
2136 fi
2137 { echo "$as_me:$LINENO: result: yes" >&5
2138 echo "${ECHO_T}yes" >&6; }
2139 test "$program_prefix" != NONE &&
2140 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2141 # Use a double $ so make ignores it.
2142 test "$program_suffix" != NONE &&
2143 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2144 # Double any \ or $. echo might interpret backslashes.
2145 # By default was `s,x,x', remove it if useless.
2146 cat <<\_ACEOF >conftest.sed
2147 s/[\\$]/&&/g;s/;s,x,x,$//
2148 _ACEOF
2149 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2150 rm -f conftest.sed
2151
2152 # expand $ac_aux_dir to an absolute path
2153 am_aux_dir=`cd $ac_aux_dir && pwd`
2154
2155 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2156 # Use eval to expand $SHELL
2157 if eval "$MISSING --run true"; then
2158 am_missing_run="$MISSING --run "
2159 else
2160 am_missing_run=
2161 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2162 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2163 fi
2164
2165 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2166 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2167 if test -z "$MKDIR_P"; then
2168 if test "${ac_cv_path_mkdir+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2173 do
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_prog in mkdir gmkdir; do
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2179 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2180 'mkdir (GNU coreutils) '* | \
2181 'mkdir (coreutils) '* | \
2182 'mkdir (fileutils) '4.1*)
2183 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2184 break 3;;
2185 esac
2186 done
2187 done
2188 done
2189 IFS=$as_save_IFS
2190
2191 fi
2192
2193 if test "${ac_cv_path_mkdir+set}" = set; then
2194 MKDIR_P="$ac_cv_path_mkdir -p"
2195 else
2196 # As a last resort, use the slow shell script. Don't cache a
2197 # value for MKDIR_P within a source directory, because that will
2198 # break other packages using the cache if that directory is
2199 # removed, or if the value is a relative name.
2200 test -d ./--version && rmdir ./--version
2201 MKDIR_P="$ac_install_sh -d"
2202 fi
2203 fi
2204 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2205 echo "${ECHO_T}$MKDIR_P" >&6; }
2206
2207 mkdir_p="$MKDIR_P"
2208 case $mkdir_p in
2209 [\\/$]* | ?:[\\/]*) ;;
2210 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2211 esac
2212
2213 for ac_prog in gawk mawk nawk awk
2214 do
2215 # Extract the first word of "$ac_prog", so it can be a program name with args.
2216 set dummy $ac_prog; ac_word=$2
2217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2219 if test "${ac_cv_prog_AWK+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$AWK"; then
2223 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 ac_cv_prog_AWK="$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238 IFS=$as_save_IFS
2239
2240 fi
2241 fi
2242 AWK=$ac_cv_prog_AWK
2243 if test -n "$AWK"; then
2244 { echo "$as_me:$LINENO: result: $AWK" >&5
2245 echo "${ECHO_T}$AWK" >&6; }
2246 else
2247 { echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6; }
2249 fi
2250
2251
2252 test -n "$AWK" && break
2253 done
2254
2255 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2256 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2257 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2258 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 cat >conftest.make <<\_ACEOF
2262 SHELL = /bin/sh
2263 all:
2264 @echo '@@@%%%=$(MAKE)=@@@%%%'
2265 _ACEOF
2266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2267 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2268 *@@@%%%=?*=@@@%%%*)
2269 eval ac_cv_prog_make_${ac_make}_set=yes;;
2270 *)
2271 eval ac_cv_prog_make_${ac_make}_set=no;;
2272 esac
2273 rm -f conftest.make
2274 fi
2275 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2278 SET_MAKE=
2279 else
2280 { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2282 SET_MAKE="MAKE=${MAKE-make}"
2283 fi
2284
2285 rm -rf .tst 2>/dev/null
2286 mkdir .tst 2>/dev/null
2287 if test -d .tst; then
2288 am__leading_dot=.
2289 else
2290 am__leading_dot=_
2291 fi
2292 rmdir .tst 2>/dev/null
2293
2294 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2295 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2296 # is not polluted with repeated "-I."
2297 am__isrc=' -I$(srcdir)'
2298 # test to see if srcdir already configured
2299 if test -f $srcdir/config.status; then
2300 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2301 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2302 { (exit 1); exit 1; }; }
2303 fi
2304 fi
2305
2306 # test whether we have cygpath
2307 if test -z "$CYGPATH_W"; then
2308 if (cygpath --version) >/dev/null 2>/dev/null; then
2309 CYGPATH_W='cygpath -w'
2310 else
2311 CYGPATH_W=echo
2312 fi
2313 fi
2314
2315
2316 # Define the identity of the package.
2317 PACKAGE='xf86-video-ast'
2318 VERSION='0.89.8'
2319
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE "$PACKAGE"
2323 _ACEOF
2324
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define VERSION "$VERSION"
2328 _ACEOF
2329
2330 # Some tools Automake needs.
2331
2332 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2333
2334
2335 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2336
2337
2338 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2339
2340
2341 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2342
2343
2344 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2345
2346 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2347
2348 # Installed binaries are usually stripped using `strip' when the user
2349 # run `make install-strip'. However `strip' might not be the right
2350 # tool to use in cross-compilation environments, therefore Automake
2351 # will honor the `STRIP' environment variable to overrule this program.
2352 if test "$cross_compiling" != no; then
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}strip; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_STRIP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$STRIP"; then
2362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 STRIP=$ac_cv_prog_STRIP
2382 if test -n "$STRIP"; then
2383 { echo "$as_me:$LINENO: result: $STRIP" >&5
2384 echo "${ECHO_T}$STRIP" >&6; }
2385 else
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$ac_cv_prog_STRIP"; then
2393 ac_ct_STRIP=$STRIP
2394 # Extract the first word of "strip", so it can be a program name with args.
2395 set dummy strip; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 if test -n "$ac_ct_STRIP"; then
2402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_ac_ct_STRIP="strip"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2422 if test -n "$ac_ct_STRIP"; then
2423 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2424 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2425 else
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2428 fi
2429
2430 if test "x$ac_ct_STRIP" = x; then
2431 STRIP=":"
2432 else
2433 case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet. If you think this
2437 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443 STRIP=$ac_ct_STRIP
2444 fi
2445 else
2446 STRIP="$ac_cv_prog_STRIP"
2447 fi
2448
2449 fi
2450 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2451
2452 # We need awk for the "check" target. The system "awk" is bad on
2453 # some platforms.
2454 # Always define AMTAR for backward compatibility.
2455
2456 AMTAR=${AMTAR-"${am_missing_run}tar"}
2457
2458 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2459
2460
2461
2462
2463
2464
2465 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2466 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2467 # Check whether --enable-maintainer-mode was given.
2468 if test "${enable_maintainer_mode+set}" = set; then
2469 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2470 else
2471 USE_MAINTAINER_MODE=no
2472 fi
2473
2474 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2475 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2476 if test $USE_MAINTAINER_MODE = yes; then
2477 MAINTAINER_MODE_TRUE=
2478 MAINTAINER_MODE_FALSE='#'
2479 else
2480 MAINTAINER_MODE_TRUE='#'
2481 MAINTAINER_MODE_FALSE=
2482 fi
2483
2484 MAINT=$MAINTAINER_MODE_TRUE
2485
2486
2487
2488 # Checks for programs.
2489 # Check whether --enable-static was given.
2490 if test "${enable_static+set}" = set; then
2491 enableval=$enable_static; p=${PACKAGE-default}
2492 case $enableval in
2493 yes) enable_static=yes ;;
2494 no) enable_static=no ;;
2495 *)
2496 enable_static=no
2497 # Look at the argument we got. We use all the common list separators.
2498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2499 for pkg in $enableval; do
2500 IFS="$lt_save_ifs"
2501 if test "X$pkg" = "X$p"; then
2502 enable_static=yes
2503 fi
2504 done
2505 IFS="$lt_save_ifs"
2506 ;;
2507 esac
2508 else
2509 enable_static=no
2510 fi
2511
2512
2513
2514 # Check whether --enable-shared was given.
2515 if test "${enable_shared+set}" = set; then
2516 enableval=$enable_shared; p=${PACKAGE-default}
2517 case $enableval in
2518 yes) enable_shared=yes ;;
2519 no) enable_shared=no ;;
2520 *)
2521 enable_shared=no
2522 # Look at the argument we got. We use all the common list separators.
2523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2524 for pkg in $enableval; do
2525 IFS="$lt_save_ifs"
2526 if test "X$pkg" = "X$p"; then
2527 enable_shared=yes
2528 fi
2529 done
2530 IFS="$lt_save_ifs"
2531 ;;
2532 esac
2533 else
2534 enable_shared=yes
2535 fi
2536
2537
2538 # Check whether --enable-fast-install was given.
2539 if test "${enable_fast_install+set}" = set; then
2540 enableval=$enable_fast_install; p=${PACKAGE-default}
2541 case $enableval in
2542 yes) enable_fast_install=yes ;;
2543 no) enable_fast_install=no ;;
2544 *)
2545 enable_fast_install=no
2546 # Look at the argument we got. We use all the common list separators.
2547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2548 for pkg in $enableval; do
2549 IFS="$lt_save_ifs"
2550 if test "X$pkg" = "X$p"; then
2551 enable_fast_install=yes
2552 fi
2553 done
2554 IFS="$lt_save_ifs"
2555 ;;
2556 esac
2557 else
2558 enable_fast_install=yes
2559 fi
2560
2561
2562 # Make sure we can run config.sub.
2563 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2564 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2565 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2566 { (exit 1); exit 1; }; }
2567
2568 { echo "$as_me:$LINENO: checking build system type" >&5
2569 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2570 if test "${ac_cv_build+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 ac_build_alias=$build_alias
2574 test "x$ac_build_alias" = x &&
2575 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2576 test "x$ac_build_alias" = x &&
2577 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2578 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2579 { (exit 1); exit 1; }; }
2580 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2581 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2582 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2583 { (exit 1); exit 1; }; }
2584
2585 fi
2586 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2587 echo "${ECHO_T}$ac_cv_build" >&6; }
2588 case $ac_cv_build in
2589 *-*-*) ;;
2590 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2591 echo "$as_me: error: invalid value of canonical build" >&2;}
2592 { (exit 1); exit 1; }; };;
2593 esac
2594 build=$ac_cv_build
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_build
2597 shift
2598 build_cpu=$1
2599 build_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 build_os=$*
2604 IFS=$ac_save_IFS
2605 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2606
2607
2608 { echo "$as_me:$LINENO: checking host system type" >&5
2609 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2610 if test "${ac_cv_host+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test "x$host_alias" = x; then
2614 ac_cv_host=$ac_cv_build
2615 else
2616 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2617 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2618 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2619 { (exit 1); exit 1; }; }
2620 fi
2621
2622 fi
2623 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2624 echo "${ECHO_T}$ac_cv_host" >&6; }
2625 case $ac_cv_host in
2626 *-*-*) ;;
2627 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2628 echo "$as_me: error: invalid value of canonical host" >&2;}
2629 { (exit 1); exit 1; }; };;
2630 esac
2631 host=$ac_cv_host
2632 ac_save_IFS=$IFS; IFS='-'
2633 set x $ac_cv_host
2634 shift
2635 host_cpu=$1
2636 host_vendor=$2
2637 shift; shift
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2640 host_os=$*
2641 IFS=$ac_save_IFS
2642 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2643
2644
2645 DEPDIR="${am__leading_dot}deps"
2646
2647 ac_config_commands="$ac_config_commands depfiles"
2648
2649
2650 am_make=${MAKE-make}
2651 cat > confinc << 'END'
2652 am__doit:
2653 @echo done
2654 .PHONY: am__doit
2655 END
2656 # If we don't find an include directive, just comment out the code.
2657 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2658 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2659 am__include="#"
2660 am__quote=
2661 _am_result=none
2662 # First try GNU make style include.
2663 echo "include confinc" > confmf
2664 # We grep out `Entering directory' and `Leaving directory'
2665 # messages which can occur if `w' ends up in MAKEFLAGS.
2666 # In particular we don't look at `^make:' because GNU make might
2667 # be invoked under some other name (usually "gmake"), in which
2668 # case it prints its new name instead of `make'.
2669 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2670 am__include=include
2671 am__quote=
2672 _am_result=GNU
2673 fi
2674 # Now try BSD make style include.
2675 if test "$am__include" = "#"; then
2676 echo '.include "confinc"' > confmf
2677 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2678 am__include=.include
2679 am__quote="\""
2680 _am_result=BSD
2681 fi
2682 fi
2683
2684
2685 { echo "$as_me:$LINENO: result: $_am_result" >&5
2686 echo "${ECHO_T}$_am_result" >&6; }
2687 rm -f confinc confmf
2688
2689 # Check whether --enable-dependency-tracking was given.
2690 if test "${enable_dependency_tracking+set}" = set; then
2691 enableval=$enable_dependency_tracking;
2692 fi
2693
2694 if test "x$enable_dependency_tracking" != xno; then
2695 am_depcomp="$ac_aux_dir/depcomp"
2696 AMDEPBACKSLASH='\'
2697 fi
2698 if test "x$enable_dependency_tracking" != xno; then
2699 AMDEP_TRUE=
2700 AMDEP_FALSE='#'
2701 else
2702 AMDEP_TRUE='#'
2703 AMDEP_FALSE=
2704 fi
2705
2706
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742 { echo "$as_me:$LINENO: result: $CC" >&5
2743 echo "${ECHO_T}$CC" >&6; }
2744 else
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if test -z "$ac_cv_prog_CC"; then
2752 ac_ct_CC=$CC
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_CC="gcc"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 echo "${ECHO_T}$ac_ct_CC" >&6; }
2784 else
2785 { echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6; }
2787 fi
2788
2789 if test "x$ac_ct_CC" = x; then
2790 CC=""
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet. If you think this
2796 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet. If you think this
2799 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802 CC=$ac_ct_CC
2803 fi
2804 else
2805 CC="$ac_cv_prog_CC"
2806 fi
2807
2808 if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}cc; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC="${ac_tool_prefix}cc"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839 { echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6; }
2841 else
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847 fi
2848 fi
2849 if test -z "$CC"; then
2850 # Extract the first word of "cc", so it can be a program name with args.
2851 set dummy cc; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 ac_prog_rejected=no
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2869 ac_prog_rejected=yes
2870 continue
2871 fi
2872 ac_cv_prog_CC="cc"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6; }
2898 else
2899 { echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2907 for ac_prog in cl.exe
2908 do
2909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2940 else
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2943 fi
2944
2945
2946 test -n "$CC" && break
2947 done
2948 fi
2949 if test -z "$CC"; then
2950 ac_ct_CC=$CC
2951 for ac_prog in cl.exe
2952 do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_ac_ct_CC="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6; }
2984 else
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2987 fi
2988
2989
2990 test -n "$ac_ct_CC" && break
2991 done
2992
2993 if test "x$ac_ct_CC" = x; then
2994 CC=""
2995 else
2996 case $cross_compiling:$ac_tool_warned in
2997 yes:)
2998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2999 whose name does not start with the host triplet. If you think this
3000 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
3001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CC=$ac_ct_CC
3007 fi
3008 fi
3009
3010 fi
3011
3012
3013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3018
3019 # Provide some information about the compiler.
3020 echo "$as_me:$LINENO: checking for C compiler version" >&5
3021 ac_compiler=`set X $ac_compile; echo $2`
3022 { (ac_try="$ac_compiler --version >&5"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compiler --version >&5") 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3032 { (ac_try="$ac_compiler -v >&5"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler -v >&5") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try="$ac_compiler -V >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -V >&5") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3072 # of exeext.
3073 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 #
3077 # List of possible output files, starting from the most likely.
3078 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3079 # only as a last resort. b.out is created by i960 compilers.
3080 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3081 #
3082 # The IRIX 6 linker writes into existing files which may not be
3083 # executable, retaining their permissions. Remove them first so a
3084 # subsequent execution test works.
3085 ac_rmfiles=
3086 for ac_file in $ac_files
3087 do
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 esac
3092 done
3093 rm -f $ac_rmfiles
3094
3095 if { (ac_try="$ac_link_default"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3111 do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3115 ;;
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 fi
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
3130 break;;
3131 * )
3132 break;;
3133 esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3136
3137 else
3138 ac_file=''
3139 fi
3140
3141 { echo "$as_me:$LINENO: result: $ac_file" >&5
3142 echo "${ECHO_T}$ac_file" >&6; }
3143 if test -z "$ac_file"; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: C compiler cannot create executables
3150 See \`config.log' for more details." >&2;}
3151 { (exit 77); exit 77; }; }
3152 fi
3153
3154 ac_exeext=$ac_cv_exeext
3155
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3161 # If not cross compiling, check that we can run a simple program.
3162 if test "$cross_compiling" != yes; then
3163 if { ac_try='./$ac_file'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3173 cross_compiling=no
3174 else
3175 if test "$cross_compiling" = maybe; then
3176 cross_compiling=yes
3177 else
3178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3185 fi
3186 fi
3187 fi
3188 { echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6; }
3190
3191 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3192 ac_clean_files=$ac_clean_files_save
3193 # Check that the compiler produces executables we can run. If not, either
3194 # the compiler is broken, or we cross compile.
3195 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3196 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3197 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3198 echo "${ECHO_T}$cross_compiling" >&6; }
3199
3200 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3201 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3202 if { (ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_link") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214 # work properly (i.e., refer to `conftest.exe'), while it won't with
3215 # `rm'.
3216 for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 break;;
3222 * ) break;;
3223 esac
3224 done
3225 else
3226 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233 rm -f conftest$ac_cv_exeext
3234 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3235 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3236
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3239 ac_exeext=$EXEEXT
3240 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3241 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3242 if test "${ac_cv_objext+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.o conftest.obj
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 break;;
3277 esac
3278 done
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }
3288 fi
3289
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291 fi
3292 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3293 echo "${ECHO_T}$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3295 ac_objext=$OBJEXT
3296 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307
3308 int
3309 main ()
3310 {
3311 #ifndef __GNUC__
3312 choke me
3313 #endif
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3336 ac_compiler_gnu=yes
3337 else
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 ac_compiler_gnu=no
3342 fi
3343
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346
3347 fi
3348 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3350 GCC=`test $ac_compiler_gnu = yes && echo yes`
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3354 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3355 if test "${ac_cv_prog_cc_g+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3360 ac_cv_prog_cc_g=no
3361 CFLAGS="-g"
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.$ac_objext
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv_prog_cc_g=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 CFLAGS=""
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406
3407 int
3408 main ()
3409 {
3410
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } && {
3429 test -z "$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 } && test -s conftest.$ac_objext; then
3432 :
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3438 CFLAGS="-g"
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h. */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && {
3468 test -z "$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3470 } && test -s conftest.$ac_objext; then
3471 ac_cv_prog_cc_g=yes
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476
3477 fi
3478
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 fi
3481
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 fi
3484
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 fi
3488 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3490 if test "$ac_test_CFLAGS" = set; then
3491 CFLAGS=$ac_save_CFLAGS
3492 elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3494 CFLAGS="-g -O2"
3495 else
3496 CFLAGS="-g"
3497 fi
3498 else
3499 if test "$GCC" = yes; then
3500 CFLAGS="-O2"
3501 else
3502 CFLAGS=
3503 fi
3504 fi
3505 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3506 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3507 if test "${ac_cv_prog_cc_c89+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 ac_cv_prog_cc_c89=no
3511 ac_save_CC=$CC
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <stdarg.h>
3519 #include <stdio.h>
3520 #include <sys/types.h>
3521 #include <sys/stat.h>
3522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3523 struct buf { int x; };
3524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3525 static char *e (p, i)
3526 char **p;
3527 int i;
3528 {
3529 return p[i];
3530 }
3531 static char *f (char * (*g) (char **, int), char **p, ...)
3532 {
3533 char *s;
3534 va_list v;
3535 va_start (v,p);
3536 s = g (p, va_arg (v,int));
3537 va_end (v);
3538 return s;
3539 }
3540
3541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3542 function prototypes and stuff, but not '\xHH' hex character constants.
3543 These don't provoke an error unfortunately, instead are silently treated
3544 as 'x'. The following induces an error, until -std is added to get
3545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3546 array size at least. It's necessary to write '\x00'==0 to get something
3547 that's true only with -std. */
3548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3549
3550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3551 inside strings and character constants. */
3552 #define FOO(x) 'x'
3553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3554
3555 int test (int i, double x);
3556 struct s1 {int (*f) (int a);};
3557 struct s2 {int (*f) (double a);};
3558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3559 int argc;
3560 char **argv;
3561 int
3562 main ()
3563 {
3564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3571 do
3572 CC="$ac_save_CC $ac_arg"
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_c_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3590 ac_cv_prog_cc_c89=$ac_arg
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595
3596 fi
3597
3598 rm -f core conftest.err conftest.$ac_objext
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC
3603
3604 fi
3605 # AC_CACHE_VAL
3606 case "x$ac_cv_prog_cc_c89" in
3607 x)
3608 { echo "$as_me:$LINENO: result: none needed" >&5
3609 echo "${ECHO_T}none needed" >&6; } ;;
3610 xno)
3611 { echo "$as_me:$LINENO: result: unsupported" >&5
3612 echo "${ECHO_T}unsupported" >&6; } ;;
3613 *)
3614 CC="$CC $ac_cv_prog_cc_c89"
3615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3616 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3617 esac
3618
3619
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626 depcc="$CC" am_compiler_list=
3627
3628 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3629 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3630 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3634 # We make a subdir and do the tests there. Otherwise we can end up
3635 # making bogus files that we don't know about and never remove. For
3636 # instance it was reported that on HP-UX the gcc test will end up
3637 # making a dummy file named `D' -- because `-MD' means `put the output
3638 # in D'.
3639 mkdir conftest.dir
3640 # Copy depcomp to subdir because otherwise we won't find it if we're
3641 # using a relative directory.
3642 cp "$am_depcomp" conftest.dir
3643 cd conftest.dir
3644 # We will build objects and dependencies in a subdirectory because
3645 # it helps to detect inapplicable dependency modes. For instance
3646 # both Tru64's cc and ICC support -MD to output dependencies as a
3647 # side effect of compilation, but ICC will put the dependencies in
3648 # the current directory while Tru64 will put them in the object
3649 # directory.
3650 mkdir sub
3651
3652 am_cv_CC_dependencies_compiler_type=none
3653 if test "$am_compiler_list" = ""; then
3654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3655 fi
3656 for depmode in $am_compiler_list; do
3657 # Setup a source with many dependencies, because some compilers
3658 # like to wrap large dependency lists on column 80 (with \), and
3659 # we should not choose a depcomp mode which is confused by this.
3660 #
3661 # We need to recreate these files for each test, as the compiler may
3662 # overwrite some of them when testing with obscure command lines.
3663 # This happens at least with the AIX C compiler.
3664 : > sub/conftest.c
3665 for i in 1 2 3 4 5 6; do
3666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3667 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3668 # Solaris 8's {/usr,}/bin/sh.
3669 touch sub/conftst$i.h
3670 done
3671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3672
3673 case $depmode in
3674 nosideeffect)
3675 # after this tag, mechanisms are not by side-effect, so they'll
3676 # only be used when explicitly requested
3677 if test "x$enable_dependency_tracking" = xyes; then
3678 continue
3679 else
3680 break
3681 fi
3682 ;;
3683 none) break ;;
3684 esac
3685 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3686 # mode. It turns out that the SunPro C++ compiler does not properly
3687 # handle `-M -o', and we need to detect this.
3688 if depmode=$depmode \
3689 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3691 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3692 >/dev/null 2>conftest.err &&
3693 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3694 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3695 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3696 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3697 # icc doesn't choke on unknown options, it will just issue warnings
3698 # or remarks (even with -Werror). So we grep stderr for any message
3699 # that says an option was ignored or not supported.
3700 # When given -MP, icc 7.0 and 7.1 complain thusly:
3701 # icc: Command line warning: ignoring option '-M'; no argument required
3702 # The diagnosis changed in icc 8.0:
3703 # icc: Command line remark: option '-MP' not supported
3704 if (grep 'ignoring option' conftest.err ||
3705 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3706 am_cv_CC_dependencies_compiler_type=$depmode
3707 break
3708 fi
3709 fi
3710 done
3711
3712 cd ..
3713 rm -rf conftest.dir
3714 else
3715 am_cv_CC_dependencies_compiler_type=none
3716 fi
3717
3718 fi
3719 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3720 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3721 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3722
3723 if
3724 test "x$enable_dependency_tracking" != xno \
3725 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3726 am__fastdepCC_TRUE=
3727 am__fastdepCC_FALSE='#'
3728 else
3729 am__fastdepCC_TRUE='#'
3730 am__fastdepCC_FALSE=
3731 fi
3732
3733
3734 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3735 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3736 if test "${lt_cv_path_SED+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 # Loop through the user's path and test for sed and gsed.
3740 # Then use that list of sed's as ones to test for truncation.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for lt_ac_prog in sed gsed; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3749 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3750 fi
3751 done
3752 done
3753 done
3754 IFS=$as_save_IFS
3755 lt_ac_max=0
3756 lt_ac_count=0
3757 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3758 # along with /bin/sed that truncates output.
3759 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3760 test ! -f $lt_ac_sed && continue
3761 cat /dev/null > conftest.in
3762 lt_ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3764 # Check for GNU sed and select it if it is found.
3765 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3766 lt_cv_path_SED=$lt_ac_sed
3767 break
3768 fi
3769 while true; do
3770 cat conftest.in conftest.in >conftest.tmp
3771 mv conftest.tmp conftest.in
3772 cp conftest.in conftest.nl
3773 echo >>conftest.nl
3774 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3775 cmp -s conftest.out conftest.nl || break
3776 # 10000 chars as input seems more than enough
3777 test $lt_ac_count -gt 10 && break
3778 lt_ac_count=`expr $lt_ac_count + 1`
3779 if test $lt_ac_count -gt $lt_ac_max; then
3780 lt_ac_max=$lt_ac_count
3781 lt_cv_path_SED=$lt_ac_sed
3782 fi
3783 done
3784 done
3785
3786 fi
3787
3788 SED=$lt_cv_path_SED
3789
3790 { echo "$as_me:$LINENO: result: $SED" >&5
3791 echo "${ECHO_T}$SED" >&6; }
3792
3793 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3794 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3795 if test "${ac_cv_path_GREP+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 # Extract the first word of "grep ggrep" to use in msg output
3799 if test -z "$GREP"; then
3800 set dummy grep ggrep; ac_prog_name=$2
3801 if test "${ac_cv_path_GREP+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804 ac_path_GREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_prog in grep ggrep; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3814 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3815 # Check for GNU ac_path_GREP and select it if it is found.
3816 # Check for GNU $ac_path_GREP
3817 case `"$ac_path_GREP" --version 2>&1` in
3818 *GNU*)
3819 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3820 *)
3821 ac_count=0
3822 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3823 while :
3824 do
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 echo 'GREP' >> "conftest.nl"
3829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831 ac_count=`expr $ac_count + 1`
3832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_GREP="$ac_path_GREP"
3835 ac_path_GREP_max=$ac_count
3836 fi
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3839 done
3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 esac
3842
3843
3844 $ac_path_GREP_found && break 3
3845 done
3846 done
3847
3848 done
3849 IFS=$as_save_IFS
3850
3851
3852 fi
3853
3854 GREP="$ac_cv_path_GREP"
3855 if test -z "$GREP"; then
3856 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858 { (exit 1); exit 1; }; }
3859 fi
3860
3861 else
3862 ac_cv_path_GREP=$GREP
3863 fi
3864
3865
3866 fi
3867 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3868 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3869 GREP="$ac_cv_path_GREP"
3870
3871
3872 { echo "$as_me:$LINENO: checking for egrep" >&5
3873 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3874 if test "${ac_cv_path_EGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3878 then ac_cv_path_EGREP="$GREP -E"
3879 else
3880 # Extract the first word of "egrep" to use in msg output
3881 if test -z "$EGREP"; then
3882 set dummy egrep; ac_prog_name=$2
3883 if test "${ac_cv_path_EGREP+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 ac_path_EGREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in egrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3897 # Check for GNU ac_path_EGREP and select it if it is found.
3898 # Check for GNU $ac_path_EGREP
3899 case `"$ac_path_EGREP" --version 2>&1` in
3900 *GNU*)
3901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3902 *)
3903 ac_count=0
3904 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 echo 'EGREP' >> "conftest.nl"
3911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 ac_count=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_EGREP="$ac_path_EGREP"
3917 ac_path_EGREP_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 esac
3924
3925
3926 $ac_path_EGREP_found && break 3
3927 done
3928 done
3929
3930 done
3931 IFS=$as_save_IFS
3932
3933
3934 fi
3935
3936 EGREP="$ac_cv_path_EGREP"
3937 if test -z "$EGREP"; then
3938 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3939 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3940 { (exit 1); exit 1; }; }
3941 fi
3942
3943 else
3944 ac_cv_path_EGREP=$EGREP
3945 fi
3946
3947
3948 fi
3949 fi
3950 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3951 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3952 EGREP="$ac_cv_path_EGREP"
3953
3954
3955
3956 # Check whether --with-gnu-ld was given.
3957 if test "${with_gnu_ld+set}" = set; then
3958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3959 else
3960 with_gnu_ld=no
3961 fi
3962
3963 ac_prog=ld
3964 if test "$GCC" = yes; then
3965 # Check if gcc -print-prog-name=ld gives a path.
3966 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3967 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3968 case $host in
3969 *-*-mingw*)
3970 # gcc leaves a trailing carriage return which upsets mingw
3971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3972 *)
3973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3974 esac
3975 case $ac_prog in
3976 # Accept absolute paths.
3977 [\\/]* | ?:[\\/]*)
3978 re_direlt='/[^/][^/]*/\.\./'
3979 # Canonicalize the pathname of ld
3980 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3981 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3982 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3983 done
3984 test -z "$LD" && LD="$ac_prog"
3985 ;;
3986 "")
3987 # If it fails, then pretend we aren't using GCC.
3988 ac_prog=ld
3989 ;;
3990 *)
3991 # If it is relative, then search for the first ld in PATH.
3992 with_gnu_ld=unknown
3993 ;;
3994 esac
3995 elif test "$with_gnu_ld" = yes; then
3996 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3997 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3998 else
3999 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4000 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4001 fi
4002 if test "${lt_cv_path_LD+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005 if test -z "$LD"; then
4006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4007 for ac_dir in $PATH; do
4008 IFS="$lt_save_ifs"
4009 test -z "$ac_dir" && ac_dir=.
4010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4011 lt_cv_path_LD="$ac_dir/$ac_prog"
4012 # Check to see if the program is GNU ld. I'd rather use --version,
4013 # but apparently some variants of GNU ld only accept -v.
4014 # Break only if it was the GNU/non-GNU ld that we prefer.
4015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4016 *GNU* | *'with BFD'*)
4017 test "$with_gnu_ld" != no && break
4018 ;;
4019 *)
4020 test "$with_gnu_ld" != yes && break
4021 ;;
4022 esac
4023 fi
4024 done
4025 IFS="$lt_save_ifs"
4026 else
4027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4028 fi
4029 fi
4030
4031 LD="$lt_cv_path_LD"
4032 if test -n "$LD"; then
4033 { echo "$as_me:$LINENO: result: $LD" >&5
4034 echo "${ECHO_T}$LD" >&6; }
4035 else
4036 { echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6; }
4038 fi
4039 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4040 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4041 { (exit 1); exit 1; }; }
4042 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4043 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4044 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4048 case `$LD -v 2>&1 </dev/null` in
4049 *GNU* | *'with BFD'*)
4050 lt_cv_prog_gnu_ld=yes
4051 ;;
4052 *)
4053 lt_cv_prog_gnu_ld=no
4054 ;;
4055 esac
4056 fi
4057 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4058 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4059 with_gnu_ld=$lt_cv_prog_gnu_ld
4060
4061
4062 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4063 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4064 if test "${lt_cv_ld_reload_flag+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 lt_cv_ld_reload_flag='-r'
4068 fi
4069 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4070 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4071 reload_flag=$lt_cv_ld_reload_flag
4072 case $reload_flag in
4073 "" | " "*) ;;
4074 *) reload_flag=" $reload_flag" ;;
4075 esac
4076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4077 case $host_os in
4078 darwin*)
4079 if test "$GCC" = yes; then
4080 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4081 else
4082 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4083 fi
4084 ;;
4085 esac
4086
4087 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4088 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4089 if test "${lt_cv_path_NM+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 if test -n "$NM"; then
4093 # Let the user override the test.
4094 lt_cv_path_NM="$NM"
4095 else
4096 lt_nm_to_check="${ac_tool_prefix}nm"
4097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4098 lt_nm_to_check="$lt_nm_to_check nm"
4099 fi
4100 for lt_tmp_nm in $lt_nm_to_check; do
4101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4103 IFS="$lt_save_ifs"
4104 test -z "$ac_dir" && ac_dir=.
4105 tmp_nm="$ac_dir/$lt_tmp_nm"
4106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4107 # Check to see if the nm accepts a BSD-compat flag.
4108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4109 # nm: unknown option "B" ignored
4110 # Tru64's nm complains that /dev/null is an invalid object file
4111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4112 */dev/null* | *'Invalid file or object type'*)
4113 lt_cv_path_NM="$tmp_nm -B"
4114 break
4115 ;;
4116 *)
4117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4118 */dev/null*)
4119 lt_cv_path_NM="$tmp_nm -p"
4120 break
4121 ;;
4122 *)
4123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4124 continue # so that we can try to find one that supports BSD flags
4125 ;;
4126 esac
4127 ;;
4128 esac
4129 fi
4130 done
4131 IFS="$lt_save_ifs"
4132 done
4133 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4134 fi
4135 fi
4136 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4137 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4138 NM="$lt_cv_path_NM"
4139
4140 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4141 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4142 LN_S=$as_ln_s
4143 if test "$LN_S" = "ln -s"; then
4144 { echo "$as_me:$LINENO: result: yes" >&5
4145 echo "${ECHO_T}yes" >&6; }
4146 else
4147 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4148 echo "${ECHO_T}no, using $LN_S" >&6; }
4149 fi
4150
4151 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4152 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4153 if test "${lt_cv_deplibs_check_method+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 lt_cv_file_magic_cmd='$MAGIC_CMD'
4157 lt_cv_file_magic_test_file=
4158 lt_cv_deplibs_check_method='unknown'
4159 # Need to set the preceding variable on all platforms that support
4160 # interlibrary dependencies.
4161 # 'none' -- dependencies not supported.
4162 # `unknown' -- same as none, but documents that we really don't know.
4163 # 'pass_all' -- all dependencies passed with no checks.
4164 # 'test_compile' -- check by making test program.
4165 # 'file_magic [[regex]]' -- check by looking for files in library path
4166 # which responds to the $file_magic_cmd with a given extended regex.
4167 # If you have `file' or equivalent on your system and you're not sure
4168 # whether `pass_all' will *always* work, you probably want this one.
4169
4170 case $host_os in
4171 aix4* | aix5*)
4172 lt_cv_deplibs_check_method=pass_all
4173 ;;
4174
4175 beos*)
4176 lt_cv_deplibs_check_method=pass_all
4177 ;;
4178
4179 bsdi[45]*)
4180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4181 lt_cv_file_magic_cmd='/usr/bin/file -L'
4182 lt_cv_file_magic_test_file=/shlib/libc.so
4183 ;;
4184
4185 cygwin*)
4186 # func_win32_libid is a shell function defined in ltmain.sh
4187 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4188 lt_cv_file_magic_cmd='func_win32_libid'
4189 ;;
4190
4191 mingw* | pw32*)
4192 # Base MSYS/MinGW do not provide the 'file' command needed by
4193 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4194 # unless we find 'file', for example because we are cross-compiling.
4195 if ( file / ) >/dev/null 2>&1; then
4196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4197 lt_cv_file_magic_cmd='func_win32_libid'
4198 else
4199 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4200 lt_cv_file_magic_cmd='$OBJDUMP -f'
4201 fi
4202 ;;
4203
4204 darwin* | rhapsody*)
4205 lt_cv_deplibs_check_method=pass_all
4206 ;;
4207
4208 freebsd* | dragonfly*)
4209 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4210 case $host_cpu in
4211 i*86 )
4212 # Not sure whether the presence of OpenBSD here was a mistake.
4213 # Let's accept both of them until this is cleared up.
4214 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4215 lt_cv_file_magic_cmd=/usr/bin/file
4216 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4217 ;;
4218 esac
4219 else
4220 lt_cv_deplibs_check_method=pass_all
4221 fi
4222 ;;
4223
4224 gnu*)
4225 lt_cv_deplibs_check_method=pass_all
4226 ;;
4227
4228 hpux10.20* | hpux11*)
4229 lt_cv_file_magic_cmd=/usr/bin/file
4230 case $host_cpu in
4231 ia64*)
4232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4233 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4234 ;;
4235 hppa*64*)
4236 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]'
4237 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4238 ;;
4239 *)
4240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4241 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4242 ;;
4243 esac
4244 ;;
4245
4246 interix[3-9]*)
4247 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4249 ;;
4250
4251 irix5* | irix6* | nonstopux*)
4252 case $LD in
4253 *-32|*"-32 ") libmagic=32-bit;;
4254 *-n32|*"-n32 ") libmagic=N32;;
4255 *-64|*"-64 ") libmagic=64-bit;;
4256 *) libmagic=never-match;;
4257 esac
4258 lt_cv_deplibs_check_method=pass_all
4259 ;;
4260
4261 # This must be Linux ELF.
4262 linux* | k*bsd*-gnu)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266 netbsd*)
4267 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4269 else
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4271 fi
4272 ;;
4273
4274 newos6*)
4275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4278 ;;
4279
4280 nto-qnx*)
4281 lt_cv_deplibs_check_method=unknown
4282 ;;
4283
4284 openbsd*)
4285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4287 else
4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4289 fi
4290 ;;
4291
4292 osf3* | osf4* | osf5*)
4293 lt_cv_deplibs_check_method=pass_all
4294 ;;
4295
4296 rdos*)
4297 lt_cv_deplibs_check_method=pass_all
4298 ;;
4299
4300 solaris*)
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303
4304 sysv4 | sysv4.3*)
4305 case $host_vendor in
4306 motorola)
4307 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]'
4308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4309 ;;
4310 ncr)
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313 sequent)
4314 lt_cv_file_magic_cmd='/bin/file'
4315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4316 ;;
4317 sni)
4318 lt_cv_file_magic_cmd='/bin/file'
4319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4320 lt_cv_file_magic_test_file=/lib/libc.so
4321 ;;
4322 siemens)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325 pc)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328 esac
4329 ;;
4330
4331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334 esac
4335
4336 fi
4337 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4338 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4339 file_magic_cmd=$lt_cv_file_magic_cmd
4340 deplibs_check_method=$lt_cv_deplibs_check_method
4341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4342
4343
4344
4345
4346 # If no C compiler was specified, use CC.
4347 LTCC=${LTCC-"$CC"}
4348
4349 # If no C compiler flags were specified, use CFLAGS.
4350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4351
4352 # Allow CC to be a program name with arguments.
4353 compiler=$CC
4354
4355
4356 # Check whether --enable-libtool-lock was given.
4357 if test "${enable_libtool_lock+set}" = set; then
4358 enableval=$enable_libtool_lock;
4359 fi
4360
4361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4362
4363 # Some flags need to be propagated to the compiler or linker for good
4364 # libtool support.
4365 case $host in
4366 ia64-*-hpux*)
4367 # Find out which ABI we are using.
4368 echo 'int i;' > conftest.$ac_ext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370 (eval $ac_compile) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; then
4374 case `/usr/bin/file conftest.$ac_objext` in
4375 *ELF-32*)
4376 HPUX_IA64_MODE="32"
4377 ;;
4378 *ELF-64*)
4379 HPUX_IA64_MODE="64"
4380 ;;
4381 esac
4382 fi
4383 rm -rf conftest*
4384 ;;
4385 *-*-irix6*)
4386 # Find out which ABI we are using.
4387 echo '#line 4387 "configure"' > conftest.$ac_ext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; then
4393 if test "$lt_cv_prog_gnu_ld" = yes; then
4394 case `/usr/bin/file conftest.$ac_objext` in
4395 *32-bit*)
4396 LD="${LD-ld} -melf32bsmip"
4397 ;;
4398 *N32*)
4399 LD="${LD-ld} -melf32bmipn32"
4400 ;;
4401 *64-bit*)
4402 LD="${LD-ld} -melf64bmip"
4403 ;;
4404 esac
4405 else
4406 case `/usr/bin/file conftest.$ac_objext` in
4407 *32-bit*)
4408 LD="${LD-ld} -32"
4409 ;;
4410 *N32*)
4411 LD="${LD-ld} -n32"
4412 ;;
4413 *64-bit*)
4414 LD="${LD-ld} -64"
4415 ;;
4416 esac
4417 fi
4418 fi
4419 rm -rf conftest*
4420 ;;
4421
4422 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4423 s390*-*linux*|sparc*-*linux*)
4424 # Find out which ABI we are using.
4425 echo 'int i;' > conftest.$ac_ext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; then
4431 case `/usr/bin/file conftest.o` in
4432 *32-bit*)
4433 case $host in
4434 x86_64-*kfreebsd*-gnu)
4435 LD="${LD-ld} -m elf_i386_fbsd"
4436 ;;
4437 x86_64-*linux*)
4438 LD="${LD-ld} -m elf_i386"
4439 ;;
4440 ppc64-*linux*|powerpc64-*linux*)
4441 LD="${LD-ld} -m elf32ppclinux"
4442 ;;
4443 s390x-*linux*)
4444 LD="${LD-ld} -m elf_s390"
4445 ;;
4446 sparc64-*linux*)
4447 LD="${LD-ld} -m elf32_sparc"
4448 ;;
4449 esac
4450 ;;
4451 *64-bit*)
4452 libsuff=64
4453 case $host in
4454 x86_64-*kfreebsd*-gnu)
4455 LD="${LD-ld} -m elf_x86_64_fbsd"
4456 ;;
4457 x86_64-*linux*)
4458 LD="${LD-ld} -m elf_x86_64"
4459 ;;
4460 ppc*-*linux*|powerpc*-*linux*)
4461 LD="${LD-ld} -m elf64ppc"
4462 ;;
4463 s390*-*linux*)
4464 LD="${LD-ld} -m elf64_s390"
4465 ;;
4466 sparc*-*linux*)
4467 LD="${LD-ld} -m elf64_sparc"
4468 ;;
4469 esac
4470 ;;
4471 esac
4472 fi
4473 rm -rf conftest*
4474 ;;
4475
4476 *-*-sco3.2v5*)
4477 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4478 SAVE_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS -belf"
4480 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4481 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4482 if test "${lt_cv_cc_needs_belf+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497
4498 int
4499 main ()
4500 {
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (ac_try="$ac_link"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_link") 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } && {
4520 test -z "$ac_c_werror_flag" ||
4521 test ! -s conftest.err
4522 } && test -s conftest$ac_exeext &&
4523 $as_test_x conftest$ac_exeext; then
4524 lt_cv_cc_needs_belf=yes
4525 else
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 lt_cv_cc_needs_belf=no
4530 fi
4531
4532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4533 conftest$ac_exeext conftest.$ac_ext
4534 ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
4540 fi
4541 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4542 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4545 CFLAGS="$SAVE_CFLAGS"
4546 fi
4547 ;;
4548 sparc*-*solaris*)
4549 # Find out which ABI we are using.
4550 echo 'int i;' > conftest.$ac_ext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552 (eval $ac_compile) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; then
4556 case `/usr/bin/file conftest.o` in
4557 *64-bit*)
4558 case $lt_cv_prog_gnu_ld in
4559 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4560 *) LD="${LD-ld} -64" ;;
4561 esac
4562 ;;
4563 esac
4564 fi
4565 rm -rf conftest*
4566 ;;
4567
4568
4569 esac
4570
4571 need_locks="$enable_libtool_lock"
4572
4573
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4581 # On Suns, sometimes $CPP names a directory.
4582 if test -n "$CPP" && test -d "$CPP"; then
4583 CPP=
4584 fi
4585 if test -z "$CPP"; then
4586 if test "${ac_cv_prog_CPP+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 # Double quotes because CPP needs to be expanded
4590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4591 do
4592 ac_preproc_ok=false
4593 for ac_c_preproc_warn_flag in '' yes
4594 do
4595 # Use a header file that comes with gcc, so configuring glibc
4596 # with a fresh cross-compiler works.
4597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4598 # <limits.h> exists even on freestanding compilers.
4599 # On the NeXT, cc -E runs the code through the compiler's parser,
4600 # not just through cpp. "Syntax error" is here to catch this case.
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 #ifdef __STDC__
4608 # include <limits.h>
4609 #else
4610 # include <assert.h>
4611 #endif
4612 Syntax error
4613 _ACEOF
4614 if { (ac_try="$ac_cpp conftest.$ac_ext"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } >/dev/null && {
4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4628 test ! -s conftest.err
4629 }; then
4630 :
4631 else
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 # Broken: fails on valid input.
4636 continue
4637 fi
4638
4639 rm -f conftest.err conftest.$ac_ext
4640
4641 # OK, works on sane cases. Now check whether nonexistent headers
4642 # can be detected and how.
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 #include <ac_nonexistent.h>
4650 _ACEOF
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } >/dev/null && {
4664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 }; then
4667 # Broken: success on invalid input.
4668 continue
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 # Passes both tests.
4674 ac_preproc_ok=:
4675 break
4676 fi
4677
4678 rm -f conftest.err conftest.$ac_ext
4679
4680 done
4681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682 rm -f conftest.err conftest.$ac_ext
4683 if $ac_preproc_ok; then
4684 break
4685 fi
4686
4687 done
4688 ac_cv_prog_CPP=$CPP
4689
4690 fi
4691 CPP=$ac_cv_prog_CPP
4692 else
4693 ac_cv_prog_CPP=$CPP
4694 fi
4695 { echo "$as_me:$LINENO: result: $CPP" >&5
4696 echo "${ECHO_T}$CPP" >&6; }
4697 ac_preproc_ok=false
4698 for ac_c_preproc_warn_flag in '' yes
4699 do
4700 # Use a header file that comes with gcc, so configuring glibc
4701 # with a fresh cross-compiler works.
4702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703 # <limits.h> exists even on freestanding compilers.
4704 # On the NeXT, cc -E runs the code through the compiler's parser,
4705 # not just through cpp. "Syntax error" is here to catch this case.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717 Syntax error
4718 _ACEOF
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 :
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 # Broken: fails on valid input.
4741 continue
4742 fi
4743
4744 rm -f conftest.err conftest.$ac_ext
4745
4746 # OK, works on sane cases. Now check whether nonexistent headers
4747 # can be detected and how.
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 #include <ac_nonexistent.h>
4755 _ACEOF
4756 if { (ac_try="$ac_cpp conftest.$ac_ext"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null && {
4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 }; then
4772 # Broken: success on invalid input.
4773 continue
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 # Passes both tests.
4779 ac_preproc_ok=:
4780 break
4781 fi
4782
4783 rm -f conftest.err conftest.$ac_ext
4784
4785 done
4786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787 rm -f conftest.err conftest.$ac_ext
4788 if $ac_preproc_ok; then
4789 :
4790 else
4791 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4792 See \`config.log' for more details." >&5
4793 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4794 See \`config.log' for more details." >&2;}
4795 { (exit 1); exit 1; }; }
4796 fi
4797
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804
4805 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4807 if test "${ac_cv_header_stdc+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 #include <stdlib.h>
4817 #include <stdarg.h>
4818 #include <string.h>
4819 #include <float.h>
4820
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compile") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest.$ac_objext; then
4846 ac_cv_header_stdc=yes
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 ac_cv_header_stdc=no
4852 fi
4853
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855
4856 if test $ac_cv_header_stdc = yes; then
4857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h. */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <string.h>
4865
4866 _ACEOF
4867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4868 $EGREP "memchr" >/dev/null 2>&1; then
4869 :
4870 else
4871 ac_cv_header_stdc=no
4872 fi
4873 rm -f conftest*
4874
4875 fi
4876
4877 if test $ac_cv_header_stdc = yes; then
4878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <stdlib.h>
4886
4887 _ACEOF
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 $EGREP "free" >/dev/null 2>&1; then
4890 :
4891 else
4892 ac_cv_header_stdc=no
4893 fi
4894 rm -f conftest*
4895
4896 fi
4897
4898 if test $ac_cv_header_stdc = yes; then
4899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4900 if test "$cross_compiling" = yes; then
4901 :
4902 else
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <ctype.h>
4910 #include <stdlib.h>
4911 #if ((' ' & 0x0FF) == 0x020)
4912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4914 #else
4915 # define ISLOWER(c) \
4916 (('a' <= (c) && (c) <= 'i') \
4917 || ('j' <= (c) && (c) <= 'r') \
4918 || ('s' <= (c) && (c) <= 'z'))
4919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4920 #endif
4921
4922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4923 int
4924 main ()
4925 {
4926 int i;
4927 for (i = 0; i < 256; i++)
4928 if (XOR (islower (i), ISLOWER (i))
4929 || toupper (i) != TOUPPER (i))
4930 return 2;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest$ac_exeext
4935 if { (ac_try="$ac_link"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_link") 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_try") 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 :
4955 else
4956 echo "$as_me: program exited with status $ac_status" >&5
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ( exit $ac_status )
4961 ac_cv_header_stdc=no
4962 fi
4963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4964 fi
4965
4966
4967 fi
4968 fi
4969 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4970 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4971 if test $ac_cv_header_stdc = yes; then
4972
4973 cat >>confdefs.h <<\_ACEOF
4974 #define STDC_HEADERS 1
4975 _ACEOF
4976
4977 fi
4978
4979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4990 inttypes.h stdint.h unistd.h
4991 do
4992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 $ac_includes_default
5005
5006 #include <$ac_header>
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (ac_try="$ac_compile"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_compile") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && {
5022 test -z "$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 } && test -s conftest.$ac_objext; then
5025 eval "$as_ac_Header=yes"
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 eval "$as_ac_Header=no"
5031 fi
5032
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 ac_res=`eval echo '${'$as_ac_Header'}'`
5036 { echo "$as_me:$LINENO: result: $ac_res" >&5
5037 echo "${ECHO_T}$ac_res" >&6; }
5038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 _ACEOF
5042
5043 fi
5044
5045 done
5046
5047
5048
5049 for ac_header in dlfcn.h
5050 do
5051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 fi
5058 ac_res=`eval echo '${'$as_ac_Header'}'`
5059 { echo "$as_me:$LINENO: result: $ac_res" >&5
5060 echo "${ECHO_T}$ac_res" >&6; }
5061 else
5062 # Is the header compilable?
5063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 $ac_includes_default
5072 #include <$ac_header>
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (ac_try="$ac_compile"
5076 case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_compile") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && {
5088 test -z "$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 } && test -s conftest.$ac_objext; then
5091 ac_header_compiler=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_header_compiler=no
5097 fi
5098
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5101 echo "${ECHO_T}$ac_header_compiler" >&6; }
5102
5103 # Is the header present?
5104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <$ac_header>
5113 _ACEOF
5114 if { (ac_try="$ac_cpp conftest.$ac_ext"
5115 case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null && {
5127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5128 test ! -s conftest.err
5129 }; then
5130 ac_header_preproc=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_header_preproc=no
5136 fi
5137
5138 rm -f conftest.err conftest.$ac_ext
5139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5140 echo "${ECHO_T}$ac_header_preproc" >&6; }
5141
5142 # So? What about this header?
5143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5144 yes:no: )
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5149 ac_header_preproc=yes
5150 ;;
5151 no:yes:* )
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5164 ( cat <<\_ASBOX
5165 ## ---------------------------------------------------------------------- ##
5166 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5167 ## ---------------------------------------------------------------------- ##
5168 _ASBOX
5169 ) | sed "s/^/$as_me: WARNING: /" >&2
5170 ;;
5171 esac
5172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 eval "$as_ac_Header=\$ac_header_preproc"
5178 fi
5179 ac_res=`eval echo '${'$as_ac_Header'}'`
5180 { echo "$as_me:$LINENO: result: $ac_res" >&5
5181 echo "${ECHO_T}$ac_res" >&6; }
5182
5183 fi
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5188
5189 fi
5190
5191 done
5192
5193 ac_ext=cpp
5194 ac_cpp='$CXXCPP $CPPFLAGS'
5195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198 if test -z "$CXX"; then
5199 if test -n "$CCC"; then
5200 CXX=$CCC
5201 else
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 do
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_prog_CXX+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 if test -n "$CXX"; then
5213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 CXX=$ac_cv_prog_CXX
5233 if test -n "$CXX"; then
5234 { echo "$as_me:$LINENO: result: $CXX" >&5
5235 echo "${ECHO_T}$CXX" >&6; }
5236 else
5237 { echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6; }
5239 fi
5240
5241
5242 test -n "$CXX" && break
5243 done
5244 fi
5245 if test -z "$CXX"; then
5246 ac_ct_CXX=$CXX
5247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5248 do
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 if test -n "$ac_ct_CXX"; then
5257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_ac_ct_CXX="$ac_prog"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5277 if test -n "$ac_ct_CXX"; then
5278 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5279 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5280 else
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5283 fi
5284
5285
5286 test -n "$ac_ct_CXX" && break
5287 done
5288
5289 if test "x$ac_ct_CXX" = x; then
5290 CXX="g++"
5291 else
5292 case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5295 whose name does not start with the host triplet. If you think this
5296 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5298 whose name does not start with the host triplet. If you think this
5299 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5300 ac_tool_warned=yes ;;
5301 esac
5302 CXX=$ac_ct_CXX
5303 fi
5304 fi
5305
5306 fi
5307 fi
5308 # Provide some information about the compiler.
5309 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5310 ac_compiler=`set X $ac_compile; echo $2`
5311 { (ac_try="$ac_compiler --version >&5"
5312 case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compiler --version >&5") 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }
5321 { (ac_try="$ac_compiler -v >&5"
5322 case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_compiler -v >&5") 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }
5331 { (ac_try="$ac_compiler -V >&5"
5332 case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335 esac
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_compiler -V >&5") 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }
5341
5342 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5343 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5344 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353
5354 int
5355 main ()
5356 {
5357 #ifndef __GNUC__
5358 choke me
5359 #endif
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_cxx_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_compiler_gnu=yes
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 ac_compiler_gnu=no
5388 fi
5389
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5392
5393 fi
5394 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5395 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5396 GXX=`test $ac_compiler_gnu = yes && echo yes`
5397 ac_test_CXXFLAGS=${CXXFLAGS+set}
5398 ac_save_CXXFLAGS=$CXXFLAGS
5399 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5400 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5401 if test "${ac_cv_prog_cxx_g+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5405 ac_cxx_werror_flag=yes
5406 ac_cv_prog_cxx_g=no
5407 CXXFLAGS="-g"
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5425 case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_cxx_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
5440 ac_cv_prog_cxx_g=yes
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 CXXFLAGS=""
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452
5453 int
5454 main ()
5455 {
5456
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_cxx_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 :
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5484 CXXFLAGS="-g"
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491
5492 int
5493 main ()
5494 {
5495
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_cxx_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_prog_cxx_g=yes
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522
5523 fi
5524
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 fi
5527
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5533 fi
5534 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5535 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5536 if test "$ac_test_CXXFLAGS" = set; then
5537 CXXFLAGS=$ac_save_CXXFLAGS
5538 elif test $ac_cv_prog_cxx_g = yes; then
5539 if test "$GXX" = yes; then
5540 CXXFLAGS="-g -O2"
5541 else
5542 CXXFLAGS="-g"
5543 fi
5544 else
5545 if test "$GXX" = yes; then
5546 CXXFLAGS="-O2"
5547 else
5548 CXXFLAGS=
5549 fi
5550 fi
5551 ac_ext=cpp
5552 ac_cpp='$CXXCPP $CPPFLAGS'
5553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5556
5557 depcc="$CXX" am_compiler_list=
5558
5559 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5560 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5561 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5565 # We make a subdir and do the tests there. Otherwise we can end up
5566 # making bogus files that we don't know about and never remove. For
5567 # instance it was reported that on HP-UX the gcc test will end up
5568 # making a dummy file named `D' -- because `-MD' means `put the output
5569 # in D'.
5570 mkdir conftest.dir
5571 # Copy depcomp to subdir because otherwise we won't find it if we're
5572 # using a relative directory.
5573 cp "$am_depcomp" conftest.dir
5574 cd conftest.dir
5575 # We will build objects and dependencies in a subdirectory because
5576 # it helps to detect inapplicable dependency modes. For instance
5577 # both Tru64's cc and ICC support -MD to output dependencies as a
5578 # side effect of compilation, but ICC will put the dependencies in
5579 # the current directory while Tru64 will put them in the object
5580 # directory.
5581 mkdir sub
5582
5583 am_cv_CXX_dependencies_compiler_type=none
5584 if test "$am_compiler_list" = ""; then
5585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5586 fi
5587 for depmode in $am_compiler_list; do
5588 # Setup a source with many dependencies, because some compilers
5589 # like to wrap large dependency lists on column 80 (with \), and
5590 # we should not choose a depcomp mode which is confused by this.
5591 #
5592 # We need to recreate these files for each test, as the compiler may
5593 # overwrite some of them when testing with obscure command lines.
5594 # This happens at least with the AIX C compiler.
5595 : > sub/conftest.c
5596 for i in 1 2 3 4 5 6; do
5597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5598 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5599 # Solaris 8's {/usr,}/bin/sh.
5600 touch sub/conftst$i.h
5601 done
5602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5603
5604 case $depmode in
5605 nosideeffect)
5606 # after this tag, mechanisms are not by side-effect, so they'll
5607 # only be used when explicitly requested
5608 if test "x$enable_dependency_tracking" = xyes; then
5609 continue
5610 else
5611 break
5612 fi
5613 ;;
5614 none) break ;;
5615 esac
5616 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5617 # mode. It turns out that the SunPro C++ compiler does not properly
5618 # handle `-M -o', and we need to detect this.
5619 if depmode=$depmode \
5620 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5621 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5622 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5623 >/dev/null 2>conftest.err &&
5624 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5625 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5626 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5627 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5628 # icc doesn't choke on unknown options, it will just issue warnings
5629 # or remarks (even with -Werror). So we grep stderr for any message
5630 # that says an option was ignored or not supported.
5631 # When given -MP, icc 7.0 and 7.1 complain thusly:
5632 # icc: Command line warning: ignoring option '-M'; no argument required
5633 # The diagnosis changed in icc 8.0:
5634 # icc: Command line remark: option '-MP' not supported
5635 if (grep 'ignoring option' conftest.err ||
5636 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5637 am_cv_CXX_dependencies_compiler_type=$depmode
5638 break
5639 fi
5640 fi
5641 done
5642
5643 cd ..
5644 rm -rf conftest.dir
5645 else
5646 am_cv_CXX_dependencies_compiler_type=none
5647 fi
5648
5649 fi
5650 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5651 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5652 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5653
5654 if
5655 test "x$enable_dependency_tracking" != xno \
5656 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5657 am__fastdepCXX_TRUE=
5658 am__fastdepCXX_FALSE='#'
5659 else
5660 am__fastdepCXX_TRUE='#'
5661 am__fastdepCXX_FALSE=
5662 fi
5663
5664
5665
5666
5667 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5668 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5669 (test "X$CXX" != "Xg++"))) ; then
5670 ac_ext=cpp
5671 ac_cpp='$CXXCPP $CPPFLAGS'
5672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5675 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5676 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5677 if test -z "$CXXCPP"; then
5678 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 # Double quotes because CXXCPP needs to be expanded
5682 for CXXCPP in "$CXX -E" "/lib/cpp"
5683 do
5684 ac_preproc_ok=false
5685 for ac_cxx_preproc_warn_flag in '' yes
5686 do
5687 # Use a header file that comes with gcc, so configuring glibc
5688 # with a fresh cross-compiler works.
5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690 # <limits.h> exists even on freestanding compilers.
5691 # On the NeXT, cc -E runs the code through the compiler's parser,
5692 # not just through cpp. "Syntax error" is here to catch this case.
5693 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #ifdef __STDC__
5700 # include <limits.h>
5701 #else
5702 # include <assert.h>
5703 #endif
5704 Syntax error
5705 _ACEOF
5706 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev/null && {
5719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5720 test ! -s conftest.err
5721 }; then
5722 :
5723 else
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727 # Broken: fails on valid input.
5728 continue
5729 fi
5730
5731 rm -f conftest.err conftest.$ac_ext
5732
5733 # OK, works on sane cases. Now check whether nonexistent headers
5734 # can be detected and how.
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 #include <ac_nonexistent.h>
5742 _ACEOF
5743 if { (ac_try="$ac_cpp conftest.$ac_ext"
5744 case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750 ac_status=$?
5751 grep -v '^ *+' conftest.er1 >conftest.err
5752 rm -f conftest.er1
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null && {
5756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5757 test ! -s conftest.err
5758 }; then
5759 # Broken: success on invalid input.
5760 continue
5761 else
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 # Passes both tests.
5766 ac_preproc_ok=:
5767 break
5768 fi
5769
5770 rm -f conftest.err conftest.$ac_ext
5771
5772 done
5773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5774 rm -f conftest.err conftest.$ac_ext
5775 if $ac_preproc_ok; then
5776 break
5777 fi
5778
5779 done
5780 ac_cv_prog_CXXCPP=$CXXCPP
5781
5782 fi
5783 CXXCPP=$ac_cv_prog_CXXCPP
5784 else
5785 ac_cv_prog_CXXCPP=$CXXCPP
5786 fi
5787 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5788 echo "${ECHO_T}$CXXCPP" >&6; }
5789 ac_preproc_ok=false
5790 for ac_cxx_preproc_warn_flag in '' yes
5791 do
5792 # Use a header file that comes with gcc, so configuring glibc
5793 # with a fresh cross-compiler works.
5794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5795 # <limits.h> exists even on freestanding compilers.
5796 # On the NeXT, cc -E runs the code through the compiler's parser,
5797 # not just through cpp. "Syntax error" is here to catch this case.
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 #ifdef __STDC__
5805 # include <limits.h>
5806 #else
5807 # include <assert.h>
5808 #endif
5809 Syntax error
5810 _ACEOF
5811 if { (ac_try="$ac_cpp conftest.$ac_ext"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } >/dev/null && {
5824 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5825 test ! -s conftest.err
5826 }; then
5827 :
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 # Broken: fails on valid input.
5833 continue
5834 fi
5835
5836 rm -f conftest.err conftest.$ac_ext
5837
5838 # OK, works on sane cases. Now check whether nonexistent headers
5839 # can be detected and how.
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <ac_nonexistent.h>
5847 _ACEOF
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } >/dev/null && {
5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5863 }; then
5864 # Broken: success on invalid input.
5865 continue
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 # Passes both tests.
5871 ac_preproc_ok=:
5872 break
5873 fi
5874
5875 rm -f conftest.err conftest.$ac_ext
5876
5877 done
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then
5881 :
5882 else
5883 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5884 See \`config.log' for more details." >&5
5885 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5886 See \`config.log' for more details." >&2;}
5887 { (exit 1); exit 1; }; }
5888 fi
5889
5890 ac_ext=cpp
5891 ac_cpp='$CXXCPP $CPPFLAGS'
5892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5895
5896 fi
5897
5898
5899 ac_ext=f
5900 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5901 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5903 if test -n "$ac_tool_prefix"; then
5904 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
5905 do
5906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_F77+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 if test -n "$F77"; then
5914 ac_cv_prog_F77="$F77" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 F77=$ac_cv_prog_F77
5934 if test -n "$F77"; then
5935 { echo "$as_me:$LINENO: result: $F77" >&5
5936 echo "${ECHO_T}$F77" >&6; }
5937 else
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943 test -n "$F77" && break
5944 done
5945 fi
5946 if test -z "$F77"; then
5947 ac_ct_F77=$F77
5948 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
5949 do
5950 # Extract the first word of "$ac_prog", so it can be a program name with args.
5951 set dummy $ac_prog; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 if test -n "$ac_ct_F77"; then
5958 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_F77="$ac_prog"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5978 if test -n "$ac_ct_F77"; then
5979 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5980 echo "${ECHO_T}$ac_ct_F77" >&6; }
5981 else
5982 { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5984 fi
5985
5986
5987 test -n "$ac_ct_F77" && break
5988 done
5989
5990 if test "x$ac_ct_F77" = x; then
5991 F77=""
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996 whose name does not start with the host triplet. If you think this
5997 configuration is useful to you, please write to autoconf@gnu.org." >&5
5998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999 whose name does not start with the host triplet. If you think this
6000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 F77=$ac_ct_F77
6004 fi
6005 fi
6006
6007
6008 # Provide some information about the compiler.
6009 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6010 ac_compiler=`set X $ac_compile; echo $2`
6011 { (ac_try="$ac_compiler --version >&5"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compiler --version >&5") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }
6021 { (ac_try="$ac_compiler -v >&5"
6022 case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compiler -v >&5") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6031 { (ac_try="$ac_compiler -V >&5"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compiler -V >&5") 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }
6041 rm -f a.out
6042
6043 # If we don't use `.F' as extension, the preprocessor is not run on the
6044 # input file. (Note that this only needs to work for GNU compilers.)
6045 ac_save_ext=$ac_ext
6046 ac_ext=F
6047 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6048 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6049 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 program main
6054 #ifndef __GNUC__
6055 choke me
6056 #endif
6057
6058 end
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_f77_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
6077 ac_compiler_gnu=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_compiler_gnu=no
6083 fi
6084
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6087
6088 fi
6089 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6090 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6091 ac_ext=$ac_save_ext
6092 ac_test_FFLAGS=${FFLAGS+set}
6093 ac_save_FFLAGS=$FFLAGS
6094 FFLAGS=
6095 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6096 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_f77_g+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100 FFLAGS=-g
6101 cat >conftest.$ac_ext <<_ACEOF
6102 program main
6103
6104 end
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6108 case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_f77_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 ac_cv_prog_f77_g=yes
6124 else
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ac_cv_prog_f77_g=no
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132
6133 fi
6134 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6135 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6136 if test "$ac_test_FFLAGS" = set; then
6137 FFLAGS=$ac_save_FFLAGS
6138 elif test $ac_cv_prog_f77_g = yes; then
6139 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6140 FFLAGS="-g -O2"
6141 else
6142 FFLAGS="-g"
6143 fi
6144 else
6145 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6146 FFLAGS="-O2"
6147 else
6148 FFLAGS=
6149 fi
6150 fi
6151
6152 G77=`test $ac_compiler_gnu = yes && echo yes`
6153 ac_ext=c
6154 ac_cpp='$CPP $CPPFLAGS'
6155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158
6159
6160
6161 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6162
6163 # find the maximum length of command line arguments
6164 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6165 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6166 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 i=0
6170 teststring="ABCD"
6171
6172 case $build_os in
6173 msdosdjgpp*)
6174 # On DJGPP, this test can blow up pretty badly due to problems in libc
6175 # (any single argument exceeding 2000 bytes causes a buffer overrun
6176 # during glob expansion). Even if it were fixed, the result of this
6177 # check would be larger than it should be.
6178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6179 ;;
6180
6181 gnu*)
6182 # Under GNU Hurd, this test is not required because there is
6183 # no limit to the length of command line arguments.
6184 # Libtool will interpret -1 as no limit whatsoever
6185 lt_cv_sys_max_cmd_len=-1;
6186 ;;
6187
6188 cygwin* | mingw*)
6189 # On Win9x/ME, this test blows up -- it succeeds, but takes
6190 # about 5 minutes as the teststring grows exponentially.
6191 # Worse, since 9x/ME are not pre-emptively multitasking,
6192 # you end up with a "frozen" computer, even though with patience
6193 # the test eventually succeeds (with a max line length of 256k).
6194 # Instead, let's just punt: use the minimum linelength reported by
6195 # all of the supported platforms: 8192 (on NT/2K/XP).
6196 lt_cv_sys_max_cmd_len=8192;
6197 ;;
6198
6199 amigaos*)
6200 # On AmigaOS with pdksh, this test takes hours, literally.
6201 # So we just punt and use a minimum line length of 8192.
6202 lt_cv_sys_max_cmd_len=8192;
6203 ;;
6204
6205 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6206 # This has been around since 386BSD, at least. Likely further.
6207 if test -x /sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209 elif test -x /usr/sbin/sysctl; then
6210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211 else
6212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6213 fi
6214 # And add a safety zone
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217 ;;
6218
6219 interix*)
6220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221 lt_cv_sys_max_cmd_len=196608
6222 ;;
6223
6224 osf*)
6225 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6226 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6227 # nice to cause kernel panics so lets avoid the loop below.
6228 # First set a reasonable default.
6229 lt_cv_sys_max_cmd_len=16384
6230 #
6231 if test -x /sbin/sysconfig; then
6232 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6233 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6234 esac
6235 fi
6236 ;;
6237 sco3.2v5*)
6238 lt_cv_sys_max_cmd_len=102400
6239 ;;
6240 sysv5* | sco5v6* | sysv4.2uw2*)
6241 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6242 if test -n "$kargmax"; then
6243 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6244 else
6245 lt_cv_sys_max_cmd_len=32768
6246 fi
6247 ;;
6248 *)
6249 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6250 if test -n "$lt_cv_sys_max_cmd_len"; then
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253 else
6254 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6255 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6256 = "XX$teststring") >/dev/null 2>&1 &&
6257 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6258 lt_cv_sys_max_cmd_len=$new_result &&
6259 test $i != 17 # 1/2 MB should be enough
6260 do
6261 i=`expr $i + 1`
6262 teststring=$teststring$teststring
6263 done
6264 teststring=
6265 # Add a significant safety factor because C++ compilers can tack on massive
6266 # amounts of additional arguments before passing them to the linker.
6267 # It appears as though 1/2 is a usable value.
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6269 fi
6270 ;;
6271 esac
6272
6273 fi
6274
6275 if test -n $lt_cv_sys_max_cmd_len ; then
6276 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6277 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6278 else
6279 { echo "$as_me:$LINENO: result: none" >&5
6280 echo "${ECHO_T}none" >&6; }
6281 fi
6282
6283
6284
6285
6286
6287 # Check for command to grab the raw symbol name followed by C symbol from nm.
6288 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6289 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6290 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293
6294 # These are sane defaults that work on at least a few old systems.
6295 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6296
6297 # Character class describing NM global symbol codes.
6298 symcode='[BCDEGRST]'
6299
6300 # Regexp to match symbols that can be accessed directly from C.
6301 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6302
6303 # Transform an extracted symbol line into a proper C declaration
6304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6305
6306 # Transform an extracted symbol line into symbol name and symbol address
6307 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'"
6308
6309 # Define system-specific variables.
6310 case $host_os in
6311 aix*)
6312 symcode='[BCDT]'
6313 ;;
6314 cygwin* | mingw* | pw32*)
6315 symcode='[ABCDGISTW]'
6316 ;;
6317 hpux*) # Its linker distinguishes data from code symbols
6318 if test "$host_cpu" = ia64; then
6319 symcode='[ABCDEGRST]'
6320 fi
6321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6322 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'"
6323 ;;
6324 linux* | k*bsd*-gnu)
6325 if test "$host_cpu" = ia64; then
6326 symcode='[ABCDGIRSTW]'
6327 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6328 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'"
6329 fi
6330 ;;
6331 irix* | nonstopux*)
6332 symcode='[BCDEGRST]'
6333 ;;
6334 osf*)
6335 symcode='[BCDEGQRST]'
6336 ;;
6337 solaris*)
6338 symcode='[BDRT]'
6339 ;;
6340 sco3.2v5*)
6341 symcode='[DT]'
6342 ;;
6343 sysv4.2uw2*)
6344 symcode='[DT]'
6345 ;;
6346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6347 symcode='[ABDT]'
6348 ;;
6349 sysv4)
6350 symcode='[DFNSTU]'
6351 ;;
6352 esac
6353
6354 # Handle CRLF in mingw tool chain
6355 opt_cr=
6356 case $build_os in
6357 mingw*)
6358 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6359 ;;
6360 esac
6361
6362 # If we're using GNU nm, then use its standard symbol codes.
6363 case `$NM -V 2>&1` in
6364 *GNU* | *'with BFD'*)
6365 symcode='[ABCDGIRSTW]' ;;
6366 esac
6367
6368 # Try without a prefix undercore, then with it.
6369 for ac_symprfx in "" "_"; do
6370
6371 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6372 symxfrm="\\1 $ac_symprfx\\2 \\2"
6373
6374 # Write the raw and C identifiers.
6375 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6376
6377 # Check to see that the pipe works correctly.
6378 pipe_works=no
6379
6380 rm -f conftest*
6381 cat > conftest.$ac_ext <<EOF
6382 #ifdef __cplusplus
6383 extern "C" {
6384 #endif
6385 char nm_test_var;
6386 void nm_test_func(){}
6387 #ifdef __cplusplus
6388 }
6389 #endif
6390 int main(){nm_test_var='a';nm_test_func();return(0);}
6391 EOF
6392
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; then
6398 # Now try to grab the symbols.
6399 nlist=conftest.nm
6400 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6401 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && test -s "$nlist"; then
6405 # Try sorting and uniquifying the output.
6406 if sort "$nlist" | uniq > "$nlist"T; then
6407 mv -f "$nlist"T "$nlist"
6408 else
6409 rm -f "$nlist"T
6410 fi
6411
6412 # Make sure that we snagged all the symbols we need.
6413 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6414 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6415 cat <<EOF > conftest.$ac_ext
6416 #ifdef __cplusplus
6417 extern "C" {
6418 #endif
6419
6420 EOF
6421 # Now generate the symbol file.
6422 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6423
6424 cat <<EOF >> conftest.$ac_ext
6425 #if defined (__STDC__) && __STDC__
6426 # define lt_ptr_t void *
6427 #else
6428 # define lt_ptr_t char *
6429 # define const
6430 #endif
6431
6432 /* The mapping between symbol names and symbols. */
6433 const struct {
6434 const char *name;
6435 lt_ptr_t address;
6436 }
6437 lt_preloaded_symbols[] =
6438 {
6439 EOF
6440 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6441 cat <<\EOF >> conftest.$ac_ext
6442 {0, (lt_ptr_t) 0}
6443 };
6444
6445 #ifdef __cplusplus
6446 }
6447 #endif
6448 EOF
6449 # Now try linking the two files.
6450 mv conftest.$ac_objext conftstm.$ac_objext
6451 lt_save_LIBS="$LIBS"
6452 lt_save_CFLAGS="$CFLAGS"
6453 LIBS="conftstm.$ac_objext"
6454 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6456 (eval $ac_link) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6460 pipe_works=yes
6461 fi
6462 LIBS="$lt_save_LIBS"
6463 CFLAGS="$lt_save_CFLAGS"
6464 else
6465 echo "cannot find nm_test_func in $nlist" >&5
6466 fi
6467 else
6468 echo "cannot find nm_test_var in $nlist" >&5
6469 fi
6470 else
6471 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6472 fi
6473 else
6474 echo "$progname: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 fi
6477 rm -f conftest* conftst*
6478
6479 # Do not use the global_symbol_pipe unless it works.
6480 if test "$pipe_works" = yes; then
6481 break
6482 else
6483 lt_cv_sys_global_symbol_pipe=
6484 fi
6485 done
6486
6487 fi
6488
6489 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6490 lt_cv_sys_global_symbol_to_cdecl=
6491 fi
6492 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6493 { echo "$as_me:$LINENO: result: failed" >&5
6494 echo "${ECHO_T}failed" >&6; }
6495 else
6496 { echo "$as_me:$LINENO: result: ok" >&5
6497 echo "${ECHO_T}ok" >&6; }
6498 fi
6499
6500 { echo "$as_me:$LINENO: checking for objdir" >&5
6501 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6502 if test "${lt_cv_objdir+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 rm -f .libs 2>/dev/null
6506 mkdir .libs 2>/dev/null
6507 if test -d .libs; then
6508 lt_cv_objdir=.libs
6509 else
6510 # MS-DOS does not allow filenames that begin with a dot.
6511 lt_cv_objdir=_libs
6512 fi
6513 rmdir .libs 2>/dev/null
6514 fi
6515 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6516 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6517 objdir=$lt_cv_objdir
6518
6519
6520
6521
6522
6523 case $host_os in
6524 aix3*)
6525 # AIX sometimes has problems with the GCC collect2 program. For some
6526 # reason, if we set the COLLECT_NAMES environment variable, the problems
6527 # vanish in a puff of smoke.
6528 if test "X${COLLECT_NAMES+set}" != Xset; then
6529 COLLECT_NAMES=
6530 export COLLECT_NAMES
6531 fi
6532 ;;
6533 esac
6534
6535 # Sed substitution that helps us do robust quoting. It backslashifies
6536 # metacharacters that are still active within double-quoted strings.
6537 Xsed='sed -e 1s/^X//'
6538 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6539
6540 # Same as above, but do not quote variable references.
6541 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6542
6543 # Sed substitution to delay expansion of an escaped shell variable in a
6544 # double_quote_subst'ed string.
6545 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6546
6547 # Sed substitution to avoid accidental globbing in evaled expressions
6548 no_glob_subst='s/\*/\\\*/g'
6549
6550 # Constants:
6551 rm="rm -f"
6552
6553 # Global variables:
6554 default_ofile=libtool
6555 can_build_shared=yes
6556
6557 # All known linkers require a `.a' archive for static linking (except MSVC,
6558 # which needs '.lib').
6559 libext=a
6560 ltmain="$ac_aux_dir/ltmain.sh"
6561 ofile="$default_ofile"
6562 with_gnu_ld="$lt_cv_prog_gnu_ld"
6563
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_AR+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 if test -n "$AR"; then
6573 ac_cv_prog_AR="$AR" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_AR="${ac_tool_prefix}ar"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 AR=$ac_cv_prog_AR
6593 if test -n "$AR"; then
6594 { echo "$as_me:$LINENO: result: $AR" >&5
6595 echo "${ECHO_T}$AR" >&6; }
6596 else
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_AR"; then
6604 ac_ct_AR=$AR
6605 # Extract the first word of "ar", so it can be a program name with args.
6606 set dummy ar; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 if test -n "$ac_ct_AR"; then
6613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6614 else
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_prog_ac_ct_AR="ar"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6633 if test -n "$ac_ct_AR"; then
6634 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6635 echo "${ECHO_T}$ac_ct_AR" >&6; }
6636 else
6637 { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6639 fi
6640
6641 if test "x$ac_ct_AR" = x; then
6642 AR="false"
6643 else
6644 case $cross_compiling:$ac_tool_warned in
6645 yes:)
6646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654 AR=$ac_ct_AR
6655 fi
6656 else
6657 AR="$ac_cv_prog_AR"
6658 fi
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_RANLIB+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668 if test -n "$RANLIB"; then
6669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 RANLIB=$ac_cv_prog_RANLIB
6689 if test -n "$RANLIB"; then
6690 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6691 echo "${ECHO_T}$RANLIB" >&6; }
6692 else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_RANLIB"; then
6700 ac_ct_RANLIB=$RANLIB
6701 # Extract the first word of "ranlib", so it can be a program name with args.
6702 set dummy ranlib; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 if test -n "$ac_ct_RANLIB"; then
6709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_RANLIB="ranlib"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6729 if test -n "$ac_ct_RANLIB"; then
6730 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6731 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6732 else
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737 if test "x$ac_ct_RANLIB" = x; then
6738 RANLIB=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6743 whose name does not start with the host triplet. If you think this
6744 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6746 whose name does not start with the host triplet. If you think this
6747 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750 RANLIB=$ac_ct_RANLIB
6751 fi
6752 else
6753 RANLIB="$ac_cv_prog_RANLIB"
6754 fi
6755
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}strip; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_STRIP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 if test -n "$STRIP"; then
6765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 STRIP=$ac_cv_prog_STRIP
6785 if test -n "$STRIP"; then
6786 { echo "$as_me:$LINENO: result: $STRIP" >&5
6787 echo "${ECHO_T}$STRIP" >&6; }
6788 else
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_STRIP"; then
6796 ac_ct_STRIP=$STRIP
6797 # Extract the first word of "strip", so it can be a program name with args.
6798 set dummy strip; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 if test -n "$ac_ct_STRIP"; then
6805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_STRIP="strip"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6825 if test -n "$ac_ct_STRIP"; then
6826 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6827 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6828 else
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833 if test "x$ac_ct_STRIP" = x; then
6834 STRIP=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6839 whose name does not start with the host triplet. If you think this
6840 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6842 whose name does not start with the host triplet. If you think this
6843 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846 STRIP=$ac_ct_STRIP
6847 fi
6848 else
6849 STRIP="$ac_cv_prog_STRIP"
6850 fi
6851
6852
6853 old_CC="$CC"
6854 old_CFLAGS="$CFLAGS"
6855
6856 # Set sane defaults for various variables
6857 test -z "$AR" && AR=ar
6858 test -z "$AR_FLAGS" && AR_FLAGS=cru
6859 test -z "$AS" && AS=as
6860 test -z "$CC" && CC=cc
6861 test -z "$LTCC" && LTCC=$CC
6862 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6863 test -z "$DLLTOOL" && DLLTOOL=dlltool
6864 test -z "$LD" && LD=ld
6865 test -z "$LN_S" && LN_S="ln -s"
6866 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6867 test -z "$NM" && NM=nm
6868 test -z "$SED" && SED=sed
6869 test -z "$OBJDUMP" && OBJDUMP=objdump
6870 test -z "$RANLIB" && RANLIB=:
6871 test -z "$STRIP" && STRIP=:
6872 test -z "$ac_objext" && ac_objext=o
6873
6874 # Determine commands to create old-style static archives.
6875 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6876 old_postinstall_cmds='chmod 644 $oldlib'
6877 old_postuninstall_cmds=
6878
6879 if test -n "$RANLIB"; then
6880 case $host_os in
6881 openbsd*)
6882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6883 ;;
6884 *)
6885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6886 ;;
6887 esac
6888 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6889 fi
6890
6891 for cc_temp in $compiler""; do
6892 case $cc_temp in
6893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6895 \-*) ;;
6896 *) break;;
6897 esac
6898 done
6899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6900
6901
6902 # Only perform the check for file, if the check method requires it
6903 case $deplibs_check_method in
6904 file_magic*)
6905 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6906 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6907 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6908 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 case $MAGIC_CMD in
6912 [\\/*] | ?:[\\/]*)
6913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 lt_save_MAGIC_CMD="$MAGIC_CMD"
6917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6919 for ac_dir in $ac_dummy; do
6920 IFS="$lt_save_ifs"
6921 test -z "$ac_dir" && ac_dir=.
6922 if test -f $ac_dir/${ac_tool_prefix}file; then
6923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6924 if test -n "$file_magic_test_file"; then
6925 case $deplibs_check_method in
6926 "file_magic "*)
6927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6930 $EGREP "$file_magic_regex" > /dev/null; then
6931 :
6932 else
6933 cat <<EOF 1>&2
6934
6935 *** Warning: the command libtool uses to detect shared libraries,
6936 *** $file_magic_cmd, produces output that libtool cannot recognize.
6937 *** The result is that libtool may fail to recognize shared libraries
6938 *** as such. This will affect the creation of libtool libraries that
6939 *** depend on shared libraries, but programs linked with such libtool
6940 *** libraries will work regardless of this problem. Nevertheless, you
6941 *** may want to report the problem to your system manager and/or to
6942 *** bug-libtool@gnu.org
6943
6944 EOF
6945 fi ;;
6946 esac
6947 fi
6948 break
6949 fi
6950 done
6951 IFS="$lt_save_ifs"
6952 MAGIC_CMD="$lt_save_MAGIC_CMD"
6953 ;;
6954 esac
6955 fi
6956
6957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6958 if test -n "$MAGIC_CMD"; then
6959 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6960 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6961 else
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6964 fi
6965
6966 if test -z "$lt_cv_path_MAGIC_CMD"; then
6967 if test -n "$ac_tool_prefix"; then
6968 { echo "$as_me:$LINENO: checking for file" >&5
6969 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 case $MAGIC_CMD in
6974 [\\/*] | ?:[\\/]*)
6975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6976 ;;
6977 *)
6978 lt_save_MAGIC_CMD="$MAGIC_CMD"
6979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6981 for ac_dir in $ac_dummy; do
6982 IFS="$lt_save_ifs"
6983 test -z "$ac_dir" && ac_dir=.
6984 if test -f $ac_dir/file; then
6985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6986 if test -n "$file_magic_test_file"; then
6987 case $deplibs_check_method in
6988 "file_magic "*)
6989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6992 $EGREP "$file_magic_regex" > /dev/null; then
6993 :
6994 else
6995 cat <<EOF 1>&2
6996
6997 *** Warning: the command libtool uses to detect shared libraries,
6998 *** $file_magic_cmd, produces output that libtool cannot recognize.
6999 *** The result is that libtool may fail to recognize shared libraries
7000 *** as such. This will affect the creation of libtool libraries that
7001 *** depend on shared libraries, but programs linked with such libtool
7002 *** libraries will work regardless of this problem. Nevertheless, you
7003 *** may want to report the problem to your system manager and/or to
7004 *** bug-libtool@gnu.org
7005
7006 EOF
7007 fi ;;
7008 esac
7009 fi
7010 break
7011 fi
7012 done
7013 IFS="$lt_save_ifs"
7014 MAGIC_CMD="$lt_save_MAGIC_CMD"
7015 ;;
7016 esac
7017 fi
7018
7019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020 if test -n "$MAGIC_CMD"; then
7021 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7022 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7023 else
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028 else
7029 MAGIC_CMD=:
7030 fi
7031 fi
7032
7033 fi
7034 ;;
7035 esac
7036
7037 enable_dlopen=no
7038 enable_win32_dll=no
7039
7040 # Check whether --enable-libtool-lock was given.
7041 if test "${enable_libtool_lock+set}" = set; then
7042 enableval=$enable_libtool_lock;
7043 fi
7044
7045 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7046
7047
7048 # Check whether --with-pic was given.
7049 if test "${with_pic+set}" = set; then
7050 withval=$with_pic; pic_mode="$withval"
7051 else
7052 pic_mode=default
7053 fi
7054
7055 test -z "$pic_mode" && pic_mode=default
7056
7057 # Use C for the default configuration in the libtool script
7058 tagname=
7059 lt_save_CC="$CC"
7060 ac_ext=c
7061 ac_cpp='$CPP $CPPFLAGS'
7062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065
7066
7067 # Source file extension for C test sources.
7068 ac_ext=c
7069
7070 # Object file extension for compiled C test sources.
7071 objext=o
7072 objext=$objext
7073
7074 # Code to be used in simple compile tests
7075 lt_simple_compile_test_code="int some_variable = 0;"
7076
7077 # Code to be used in simple link tests
7078 lt_simple_link_test_code='int main(){return(0);}'
7079
7080
7081 # If no C compiler was specified, use CC.
7082 LTCC=${LTCC-"$CC"}
7083
7084 # If no C compiler flags were specified, use CFLAGS.
7085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7086
7087 # Allow CC to be a program name with arguments.
7088 compiler=$CC
7089
7090
7091 # save warnings/boilerplate of simple test code
7092 ac_outfile=conftest.$ac_objext
7093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7095 _lt_compiler_boilerplate=`cat conftest.err`
7096 $rm conftest*
7097
7098 ac_outfile=conftest.$ac_objext
7099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7101 _lt_linker_boilerplate=`cat conftest.err`
7102 $rm conftest*
7103
7104
7105
7106 lt_prog_compiler_no_builtin_flag=
7107
7108 if test "$GCC" = yes; then
7109 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7110
7111
7112 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7113 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7114 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 lt_cv_prog_compiler_rtti_exceptions=no
7118 ac_outfile=conftest.$ac_objext
7119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7120 lt_compiler_flag="-fno-rtti -fno-exceptions"
7121 # Insert the option either (1) after the last *FLAGS variable, or
7122 # (2) before a word containing "conftest.", or (3) at the end.
7123 # Note that $ac_compile itself does not contain backslashes and begins
7124 # with a dollar sign (not a hyphen), so the echo should work correctly.
7125 # The option is referenced via a variable to avoid confusing sed.
7126 lt_compile=`echo "$ac_compile" | $SED \
7127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7129 -e 's:$: $lt_compiler_flag:'`
7130 (eval echo "\"\$as_me:7130: $lt_compile\"" >&5)
7131 (eval "$lt_compile" 2>conftest.err)
7132 ac_status=$?
7133 cat conftest.err >&5
7134 echo "$as_me:7134: \$? = $ac_status" >&5
7135 if (exit $ac_status) && test -s "$ac_outfile"; then
7136 # The compiler can only warn and ignore the option if not recognized
7137 # So say no if there are warnings other than the usual output.
7138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7141 lt_cv_prog_compiler_rtti_exceptions=yes
7142 fi
7143 fi
7144 $rm conftest*
7145
7146 fi
7147 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7148 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7149
7150 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7151 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7152 else
7153 :
7154 fi
7155
7156 fi
7157
7158 lt_prog_compiler_wl=
7159 lt_prog_compiler_pic=
7160 lt_prog_compiler_static=
7161
7162 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7163 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7164
7165 if test "$GCC" = yes; then
7166 lt_prog_compiler_wl='-Wl,'
7167 lt_prog_compiler_static='-static'
7168
7169 case $host_os in
7170 aix*)
7171 # All AIX code is PIC.
7172 if test "$host_cpu" = ia64; then
7173 # AIX 5 now supports IA64 processor
7174 lt_prog_compiler_static='-Bstatic'
7175 fi
7176 ;;
7177
7178 amigaos*)
7179 # FIXME: we need at least 68020 code to build shared libraries, but
7180 # adding the `-m68020' flag to GCC prevents building anything better,
7181 # like `-m68040'.
7182 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7183 ;;
7184
7185 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7186 # PIC is the default for these OSes.
7187 ;;
7188
7189 mingw* | cygwin* | pw32* | os2*)
7190 # This hack is so that the source file can tell whether it is being
7191 # built for inclusion in a dll (and should export symbols for example).
7192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7193 # (--disable-auto-import) libraries
7194 lt_prog_compiler_pic='-DDLL_EXPORT'
7195 ;;
7196
7197 darwin* | rhapsody*)
7198 # PIC is the default on this platform
7199 # Common symbols not allowed in MH_DYLIB files
7200 lt_prog_compiler_pic='-fno-common'
7201 ;;
7202
7203 interix[3-9]*)
7204 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7205 # Instead, we relocate shared libraries at runtime.
7206 ;;
7207
7208 msdosdjgpp*)
7209 # Just because we use GCC doesn't mean we suddenly get shared libraries
7210 # on systems that don't support them.
7211 lt_prog_compiler_can_build_shared=no
7212 enable_shared=no
7213 ;;
7214
7215 sysv4*MP*)
7216 if test -d /usr/nec; then
7217 lt_prog_compiler_pic=-Kconform_pic
7218 fi
7219 ;;
7220
7221 hpux*)
7222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7223 # not for PA HP-UX.
7224 case $host_cpu in
7225 hppa*64*|ia64*)
7226 # +Z the default
7227 ;;
7228 *)
7229 lt_prog_compiler_pic='-fPIC'
7230 ;;
7231 esac
7232 ;;
7233
7234 *)
7235 lt_prog_compiler_pic='-fPIC'
7236 ;;
7237 esac
7238 else
7239 # PORTME Check for flag to pass linker flags through the system compiler.
7240 case $host_os in
7241 aix*)
7242 lt_prog_compiler_wl='-Wl,'
7243 if test "$host_cpu" = ia64; then
7244 # AIX 5 now supports IA64 processor
7245 lt_prog_compiler_static='-Bstatic'
7246 else
7247 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7248 fi
7249 ;;
7250 darwin*)
7251 # PIC is the default on this platform
7252 # Common symbols not allowed in MH_DYLIB files
7253 case $cc_basename in
7254 xlc*)
7255 lt_prog_compiler_pic='-qnocommon'
7256 lt_prog_compiler_wl='-Wl,'
7257 ;;
7258 esac
7259 ;;
7260
7261 mingw* | cygwin* | pw32* | os2*)
7262 # This hack is so that the source file can tell whether it is being
7263 # built for inclusion in a dll (and should export symbols for example).
7264 lt_prog_compiler_pic='-DDLL_EXPORT'
7265 ;;
7266
7267 hpux9* | hpux10* | hpux11*)
7268 lt_prog_compiler_wl='-Wl,'
7269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7270 # not for PA HP-UX.
7271 case $host_cpu in
7272 hppa*64*|ia64*)
7273 # +Z the default
7274 ;;
7275 *)
7276 lt_prog_compiler_pic='+Z'
7277 ;;
7278 esac
7279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7280 lt_prog_compiler_static='${wl}-a ${wl}archive'
7281 ;;
7282
7283 irix5* | irix6* | nonstopux*)
7284 lt_prog_compiler_wl='-Wl,'
7285 # PIC (with -KPIC) is the default.
7286 lt_prog_compiler_static='-non_shared'
7287 ;;
7288
7289 newsos6)
7290 lt_prog_compiler_pic='-KPIC'
7291 lt_prog_compiler_static='-Bstatic'
7292 ;;
7293
7294 linux* | k*bsd*-gnu)
7295 case $cc_basename in
7296 icc* | ecc*)
7297 lt_prog_compiler_wl='-Wl,'
7298 lt_prog_compiler_pic='-KPIC'
7299 lt_prog_compiler_static='-static'
7300 ;;
7301 pgcc* | pgf77* | pgf90* | pgf95*)
7302 # Portland Group compilers (*not* the Pentium gcc compiler,
7303 # which looks to be a dead project)
7304 lt_prog_compiler_wl='-Wl,'
7305 lt_prog_compiler_pic='-fpic'
7306 lt_prog_compiler_static='-Bstatic'
7307 ;;
7308 ccc*)
7309 lt_prog_compiler_wl='-Wl,'
7310 # All Alpha code is PIC.
7311 lt_prog_compiler_static='-non_shared'
7312 ;;
7313 *)
7314 case `$CC -V 2>&1 | sed 5q` in
7315 *Sun\ C*)
7316 # Sun C 5.9
7317 lt_prog_compiler_pic='-KPIC'
7318 lt_prog_compiler_static='-Bstatic'
7319 lt_prog_compiler_wl='-Wl,'
7320 ;;
7321 *Sun\ F*)
7322 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7323 lt_prog_compiler_pic='-KPIC'
7324 lt_prog_compiler_static='-Bstatic'
7325 lt_prog_compiler_wl=''
7326 ;;
7327 esac
7328 ;;
7329 esac
7330 ;;
7331
7332 osf3* | osf4* | osf5*)
7333 lt_prog_compiler_wl='-Wl,'
7334 # All OSF/1 code is PIC.
7335 lt_prog_compiler_static='-non_shared'
7336 ;;
7337
7338 rdos*)
7339 lt_prog_compiler_static='-non_shared'
7340 ;;
7341
7342 solaris*)
7343 lt_prog_compiler_pic='-KPIC'
7344 lt_prog_compiler_static='-Bstatic'
7345 case $cc_basename in
7346 f77* | f90* | f95*)
7347 lt_prog_compiler_wl='-Qoption ld ';;
7348 *)
7349 lt_prog_compiler_wl='-Wl,';;
7350 esac
7351 ;;
7352
7353 sunos4*)
7354 lt_prog_compiler_wl='-Qoption ld '
7355 lt_prog_compiler_pic='-PIC'
7356 lt_prog_compiler_static='-Bstatic'
7357 ;;
7358
7359 sysv4 | sysv4.2uw2* | sysv4.3*)
7360 lt_prog_compiler_wl='-Wl,'
7361 lt_prog_compiler_pic='-KPIC'
7362 lt_prog_compiler_static='-Bstatic'
7363 ;;
7364
7365 sysv4*MP*)
7366 if test -d /usr/nec ;then
7367 lt_prog_compiler_pic='-Kconform_pic'
7368 lt_prog_compiler_static='-Bstatic'
7369 fi
7370 ;;
7371
7372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7373 lt_prog_compiler_wl='-Wl,'
7374 lt_prog_compiler_pic='-KPIC'
7375 lt_prog_compiler_static='-Bstatic'
7376 ;;
7377
7378 unicos*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_can_build_shared=no
7381 ;;
7382
7383 uts4*)
7384 lt_prog_compiler_pic='-pic'
7385 lt_prog_compiler_static='-Bstatic'
7386 ;;
7387
7388 *)
7389 lt_prog_compiler_can_build_shared=no
7390 ;;
7391 esac
7392 fi
7393
7394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7395 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7396
7397 #
7398 # Check to make sure the PIC flag actually works.
7399 #
7400 if test -n "$lt_prog_compiler_pic"; then
7401
7402 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7403 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7404 if test "${lt_prog_compiler_pic_works+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 lt_prog_compiler_pic_works=no
7408 ac_outfile=conftest.$ac_objext
7409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7410 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7411 # Insert the option either (1) after the last *FLAGS variable, or
7412 # (2) before a word containing "conftest.", or (3) at the end.
7413 # Note that $ac_compile itself does not contain backslashes and begins
7414 # with a dollar sign (not a hyphen), so the echo should work correctly.
7415 # The option is referenced via a variable to avoid confusing sed.
7416 lt_compile=`echo "$ac_compile" | $SED \
7417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7419 -e 's:$: $lt_compiler_flag:'`
7420 (eval echo "\"\$as_me:7420: $lt_compile\"" >&5)
7421 (eval "$lt_compile" 2>conftest.err)
7422 ac_status=$?
7423 cat conftest.err >&5
7424 echo "$as_me:7424: \$? = $ac_status" >&5
7425 if (exit $ac_status) && test -s "$ac_outfile"; then
7426 # The compiler can only warn and ignore the option if not recognized
7427 # So say no if there are warnings other than the usual output.
7428 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7431 lt_prog_compiler_pic_works=yes
7432 fi
7433 fi
7434 $rm conftest*
7435
7436 fi
7437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7438 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7439
7440 if test x"$lt_prog_compiler_pic_works" = xyes; then
7441 case $lt_prog_compiler_pic in
7442 "" | " "*) ;;
7443 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7444 esac
7445 else
7446 lt_prog_compiler_pic=
7447 lt_prog_compiler_can_build_shared=no
7448 fi
7449
7450 fi
7451 case $host_os in
7452 # For platforms which do not support PIC, -DPIC is meaningless:
7453 *djgpp*)
7454 lt_prog_compiler_pic=
7455 ;;
7456 *)
7457 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7458 ;;
7459 esac
7460
7461 #
7462 # Check to make sure the static flag actually works.
7463 #
7464 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7465 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7466 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7467 if test "${lt_prog_compiler_static_works+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 lt_prog_compiler_static_works=no
7471 save_LDFLAGS="$LDFLAGS"
7472 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7475 # The linker can only warn and ignore the option if not recognized
7476 # So say no if there are warnings
7477 if test -s conftest.err; then
7478 # Append any errors to the config.log.
7479 cat conftest.err 1>&5
7480 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7482 if diff conftest.exp conftest.er2 >/dev/null; then
7483 lt_prog_compiler_static_works=yes
7484 fi
7485 else
7486 lt_prog_compiler_static_works=yes
7487 fi
7488 fi
7489 $rm conftest*
7490 LDFLAGS="$save_LDFLAGS"
7491
7492 fi
7493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7494 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7495
7496 if test x"$lt_prog_compiler_static_works" = xyes; then
7497 :
7498 else
7499 lt_prog_compiler_static=
7500 fi
7501
7502
7503 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7504 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7505 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 lt_cv_prog_compiler_c_o=no
7509 $rm -r conftest 2>/dev/null
7510 mkdir conftest
7511 cd conftest
7512 mkdir out
7513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7514
7515 lt_compiler_flag="-o out/conftest2.$ac_objext"
7516 # Insert the option either (1) after the last *FLAGS variable, or
7517 # (2) before a word containing "conftest.", or (3) at the end.
7518 # Note that $ac_compile itself does not contain backslashes and begins
7519 # with a dollar sign (not a hyphen), so the echo should work correctly.
7520 lt_compile=`echo "$ac_compile" | $SED \
7521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7523 -e 's:$: $lt_compiler_flag:'`
7524 (eval echo "\"\$as_me:7524: $lt_compile\"" >&5)
7525 (eval "$lt_compile" 2>out/conftest.err)
7526 ac_status=$?
7527 cat out/conftest.err >&5
7528 echo "$as_me:7528: \$? = $ac_status" >&5
7529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7530 then
7531 # The compiler can only warn and ignore the option if not recognized
7532 # So say no if there are warnings
7533 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7536 lt_cv_prog_compiler_c_o=yes
7537 fi
7538 fi
7539 chmod u+w . 2>&5
7540 $rm conftest*
7541 # SGI C++ compiler will create directory out/ii_files/ for
7542 # template instantiation
7543 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7544 $rm out/* && rmdir out
7545 cd ..
7546 rmdir conftest
7547 $rm conftest*
7548
7549 fi
7550 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7552
7553
7554 hard_links="nottested"
7555 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7556 # do not overwrite the value of need_locks provided by the user
7557 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7559 hard_links=yes
7560 $rm conftest*
7561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7562 touch conftest.a
7563 ln conftest.a conftest.b 2>&5 || hard_links=no
7564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7565 { echo "$as_me:$LINENO: result: $hard_links" >&5
7566 echo "${ECHO_T}$hard_links" >&6; }
7567 if test "$hard_links" = no; then
7568 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7570 need_locks=warn
7571 fi
7572 else
7573 need_locks=no
7574 fi
7575
7576 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7578
7579 runpath_var=
7580 allow_undefined_flag=
7581 enable_shared_with_static_runtimes=no
7582 archive_cmds=
7583 archive_expsym_cmds=
7584 old_archive_From_new_cmds=
7585 old_archive_from_expsyms_cmds=
7586 export_dynamic_flag_spec=
7587 whole_archive_flag_spec=
7588 thread_safe_flag_spec=
7589 hardcode_libdir_flag_spec=
7590 hardcode_libdir_flag_spec_ld=
7591 hardcode_libdir_separator=
7592 hardcode_direct=no
7593 hardcode_minus_L=no
7594 hardcode_shlibpath_var=unsupported
7595 link_all_deplibs=unknown
7596 hardcode_automatic=no
7597 module_cmds=
7598 module_expsym_cmds=
7599 always_export_symbols=no
7600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7601 # include_expsyms should be a list of space-separated symbols to be *always*
7602 # included in the symbol list
7603 include_expsyms=
7604 # exclude_expsyms can be an extended regexp of symbols to exclude
7605 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7606 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7607 # as well as any symbol that contains `d'.
7608 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7609 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7610 # platforms (ab)use it in PIC code, but their linkers get confused if
7611 # the symbol is explicitly referenced. Since portable code cannot
7612 # rely on this symbol name, it's probably fine to never include it in
7613 # preloaded symbol tables.
7614 extract_expsyms_cmds=
7615 # Just being paranoid about ensuring that cc_basename is set.
7616 for cc_temp in $compiler""; do
7617 case $cc_temp in
7618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7620 \-*) ;;
7621 *) break;;
7622 esac
7623 done
7624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7625
7626 case $host_os in
7627 cygwin* | mingw* | pw32*)
7628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7629 # When not using gcc, we currently assume that we are using
7630 # Microsoft Visual C++.
7631 if test "$GCC" != yes; then
7632 with_gnu_ld=no
7633 fi
7634 ;;
7635 interix*)
7636 # we just hope/assume this is gcc and not c89 (= MSVC++)
7637 with_gnu_ld=yes
7638 ;;
7639 openbsd*)
7640 with_gnu_ld=no
7641 ;;
7642 esac
7643
7644 ld_shlibs=yes
7645 if test "$with_gnu_ld" = yes; then
7646 # If archive_cmds runs LD, not CC, wlarc should be empty
7647 wlarc='${wl}'
7648
7649 # Set some defaults for GNU ld with shared library support. These
7650 # are reset later if shared libraries are not supported. Putting them
7651 # here allows them to be overridden if necessary.
7652 runpath_var=LD_RUN_PATH
7653 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7654 export_dynamic_flag_spec='${wl}--export-dynamic'
7655 # ancient GNU ld didn't support --whole-archive et. al.
7656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7657 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7658 else
7659 whole_archive_flag_spec=
7660 fi
7661 supports_anon_versioning=no
7662 case `$LD -v 2>/dev/null` in
7663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7666 *\ 2.11.*) ;; # other 2.11 versions
7667 *) supports_anon_versioning=yes ;;
7668 esac
7669
7670 # See if GNU ld supports shared libraries.
7671 case $host_os in
7672 aix3* | aix4* | aix5*)
7673 # On AIX/PPC, the GNU linker is very broken
7674 if test "$host_cpu" != ia64; then
7675 ld_shlibs=no
7676 cat <<EOF 1>&2
7677
7678 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7679 *** to be unable to reliably create shared libraries on AIX.
7680 *** Therefore, libtool is disabling shared libraries support. If you
7681 *** really care for shared libraries, you may want to modify your PATH
7682 *** so that a non-GNU linker is found, and then restart.
7683
7684 EOF
7685 fi
7686 ;;
7687
7688 amigaos*)
7689 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)'
7690 hardcode_libdir_flag_spec='-L$libdir'
7691 hardcode_minus_L=yes
7692
7693 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7694 # that the semantics of dynamic libraries on AmigaOS, at least up
7695 # to version 4, is to share data among multiple programs linked
7696 # with the same dynamic library. Since this doesn't match the
7697 # behavior of shared libraries on other platforms, we can't use
7698 # them.
7699 ld_shlibs=no
7700 ;;
7701
7702 beos*)
7703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7704 allow_undefined_flag=unsupported
7705 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7706 # support --undefined. This deserves some investigation. FIXME
7707 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708 else
7709 ld_shlibs=no
7710 fi
7711 ;;
7712
7713 cygwin* | mingw* | pw32*)
7714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7715 # as there is no search path for DLLs.
7716 hardcode_libdir_flag_spec='-L$libdir'
7717 allow_undefined_flag=unsupported
7718 always_export_symbols=no
7719 enable_shared_with_static_runtimes=yes
7720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7721
7722 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7724 # If the export-symbols file already is a .def file (1st line
7725 # is EXPORTS), use it as is; otherwise, prepend...
7726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7727 cp $export_symbols $output_objdir/$soname.def;
7728 else
7729 echo EXPORTS > $output_objdir/$soname.def;
7730 cat $export_symbols >> $output_objdir/$soname.def;
7731 fi~
7732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7733 else
7734 ld_shlibs=no
7735 fi
7736 ;;
7737
7738 interix[3-9]*)
7739 hardcode_direct=no
7740 hardcode_shlibpath_var=no
7741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7742 export_dynamic_flag_spec='${wl}-E'
7743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7744 # Instead, shared libraries are loaded at an image base (0x10000000 by
7745 # default) and relocated if they conflict, which is a slow very memory
7746 # consuming and fragmenting process. To avoid this, we pick a random,
7747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7750 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'
7751 ;;
7752
7753 gnu* | linux* | k*bsd*-gnu)
7754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7755 tmp_addflag=
7756 case $cc_basename,$host_cpu in
7757 pgcc*) # Portland Group C compiler
7758 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'
7759 tmp_addflag=' $pic_flag'
7760 ;;
7761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7762 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'
7763 tmp_addflag=' $pic_flag -Mnomain' ;;
7764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7765 tmp_addflag=' -i_dynamic' ;;
7766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7767 tmp_addflag=' -i_dynamic -nofor_main' ;;
7768 ifc* | ifort*) # Intel Fortran compiler
7769 tmp_addflag=' -nofor_main' ;;
7770 esac
7771 case `$CC -V 2>&1 | sed 5q` in
7772 *Sun\ C*) # Sun C 5.9
7773 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'
7774 tmp_sharedflag='-G' ;;
7775 *Sun\ F*) # Sun Fortran 8.3
7776 tmp_sharedflag='-G' ;;
7777 *)
7778 tmp_sharedflag='-shared' ;;
7779 esac
7780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781
7782 if test $supports_anon_versioning = yes; then
7783 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7785 $echo "local: *; };" >> $output_objdir/$libname.ver~
7786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7787 fi
7788 else
7789 ld_shlibs=no
7790 fi
7791 ;;
7792
7793 netbsd*)
7794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7796 wlarc=
7797 else
7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7800 fi
7801 ;;
7802
7803 solaris*)
7804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7805 ld_shlibs=no
7806 cat <<EOF 1>&2
7807
7808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7809 *** create shared libraries on Solaris systems. Therefore, libtool
7810 *** is disabling shared libraries support. We urge you to upgrade GNU
7811 *** binutils to release 2.9.1 or newer. Another option is to modify
7812 *** your PATH or compiler configuration so that the native linker is
7813 *** used, and then restart.
7814
7815 EOF
7816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7819 else
7820 ld_shlibs=no
7821 fi
7822 ;;
7823
7824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7825 case `$LD -v 2>&1` in
7826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7827 ld_shlibs=no
7828 cat <<_LT_EOF 1>&2
7829
7830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7831 *** reliably create shared libraries on SCO systems. Therefore, libtool
7832 *** is disabling shared libraries support. We urge you to upgrade GNU
7833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7834 *** your PATH or compiler configuration so that the native linker is
7835 *** used, and then restart.
7836
7837 _LT_EOF
7838 ;;
7839 *)
7840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7841 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7844 else
7845 ld_shlibs=no
7846 fi
7847 ;;
7848 esac
7849 ;;
7850
7851 sunos4*)
7852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853 wlarc=
7854 hardcode_direct=yes
7855 hardcode_shlibpath_var=no
7856 ;;
7857
7858 *)
7859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7862 else
7863 ld_shlibs=no
7864 fi
7865 ;;
7866 esac
7867
7868 if test "$ld_shlibs" = no; then
7869 runpath_var=
7870 hardcode_libdir_flag_spec=
7871 export_dynamic_flag_spec=
7872 whole_archive_flag_spec=
7873 fi
7874 else
7875 # PORTME fill in a description of your system's linker (not GNU ld)
7876 case $host_os in
7877 aix3*)
7878 allow_undefined_flag=unsupported
7879 always_export_symbols=yes
7880 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'
7881 # Note: this linker hardcodes the directories in LIBPATH if there
7882 # are no directories specified by -L.
7883 hardcode_minus_L=yes
7884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7885 # Neither direct hardcoding nor static linking is supported with a
7886 # broken collect2.
7887 hardcode_direct=unsupported
7888 fi
7889 ;;
7890
7891 aix4* | aix5*)
7892 if test "$host_cpu" = ia64; then
7893 # On IA64, the linker does run time linking by default, so we don't
7894 # have to do anything special.
7895 aix_use_runtimelinking=no
7896 exp_sym_flag='-Bexport'
7897 no_entry_flag=""
7898 else
7899 # If we're using GNU nm, then we don't want the "-C" option.
7900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7902 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'
7903 else
7904 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'
7905 fi
7906 aix_use_runtimelinking=no
7907
7908 # Test if we are trying to use run time linking or normal
7909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7910 # need to do runtime linking.
7911 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7912 for ld_flag in $LDFLAGS; do
7913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7914 aix_use_runtimelinking=yes
7915 break
7916 fi
7917 done
7918 ;;
7919 esac
7920
7921 exp_sym_flag='-bexport'
7922 no_entry_flag='-bnoentry'
7923 fi
7924
7925 # When large executables or shared objects are built, AIX ld can
7926 # have problems creating the table of contents. If linking a library
7927 # or program results in "error TOC overflow" add -mminimal-toc to
7928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7930
7931 archive_cmds=''
7932 hardcode_direct=yes
7933 hardcode_libdir_separator=':'
7934 link_all_deplibs=yes
7935
7936 if test "$GCC" = yes; then
7937 case $host_os in aix4.[012]|aix4.[012].*)
7938 # We only want to do this on AIX 4.2 and lower, the check
7939 # below for broken collect2 doesn't work under 4.3+
7940 collect2name=`${CC} -print-prog-name=collect2`
7941 if test -f "$collect2name" && \
7942 strings "$collect2name" | grep resolve_lib_name >/dev/null
7943 then
7944 # We have reworked collect2
7945 :
7946 else
7947 # We have old collect2
7948 hardcode_direct=unsupported
7949 # It fails to find uninstalled libraries when the uninstalled
7950 # path is not listed in the libpath. Setting hardcode_minus_L
7951 # to unsupported forces relinking
7952 hardcode_minus_L=yes
7953 hardcode_libdir_flag_spec='-L$libdir'
7954 hardcode_libdir_separator=
7955 fi
7956 ;;
7957 esac
7958 shared_flag='-shared'
7959 if test "$aix_use_runtimelinking" = yes; then
7960 shared_flag="$shared_flag "'${wl}-G'
7961 fi
7962 else
7963 # not using gcc
7964 if test "$host_cpu" = ia64; then
7965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7966 # chokes on -Wl,-G. The following line is correct:
7967 shared_flag='-G'
7968 else
7969 if test "$aix_use_runtimelinking" = yes; then
7970 shared_flag='${wl}-G'
7971 else
7972 shared_flag='${wl}-bM:SRE'
7973 fi
7974 fi
7975 fi
7976
7977 # It seems that -bexpall does not export symbols beginning with
7978 # underscore (_), so it is better to generate a list of symbols to export.
7979 always_export_symbols=yes
7980 if test "$aix_use_runtimelinking" = yes; then
7981 # Warning - without using the other runtime loading flags (-brtl),
7982 # -berok will link without error, but may produce a broken library.
7983 allow_undefined_flag='-berok'
7984 # Determine the default libpath from the value encoded in an empty executable.
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991
7992 int
7993 main ()
7994 {
7995
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8018
8019 lt_aix_libpath_sed='
8020 /Import File Strings/,/^$/ {
8021 /^0/ {
8022 s/^0 *\(.*\)$/\1/
8023 p
8024 }
8025 }'
8026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8027 # Check for a 64-bit object if we didn't find anything.
8028 if test -z "$aix_libpath"; then
8029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8030 fi
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035
8036 fi
8037
8038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8039 conftest$ac_exeext conftest.$ac_ext
8040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8041
8042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8043 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"
8044 else
8045 if test "$host_cpu" = ia64; then
8046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8047 allow_undefined_flag="-z nodefs"
8048 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"
8049 else
8050 # Determine the default libpath from the value encoded in an empty executable.
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057
8058 int
8059 main ()
8060 {
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (ac_try="$ac_link"
8068 case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_link") 2>conftest.er1
8074 ac_status=$?
8075 grep -v '^ *+' conftest.er1 >conftest.err
8076 rm -f conftest.er1
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && {
8080 test -z "$ac_c_werror_flag" ||
8081 test ! -s conftest.err
8082 } && test -s conftest$ac_exeext &&
8083 $as_test_x conftest$ac_exeext; then
8084
8085 lt_aix_libpath_sed='
8086 /Import File Strings/,/^$/ {
8087 /^0/ {
8088 s/^0 *\(.*\)$/\1/
8089 p
8090 }
8091 }'
8092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8093 # Check for a 64-bit object if we didn't find anything.
8094 if test -z "$aix_libpath"; then
8095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8096 fi
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101
8102 fi
8103
8104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 conftest$ac_exeext conftest.$ac_ext
8106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8107
8108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8109 # Warning - without using the other run time loading flags,
8110 # -berok will link without error, but may produce a broken library.
8111 no_undefined_flag=' ${wl}-bernotok'
8112 allow_undefined_flag=' ${wl}-berok'
8113 # Exported symbols can be pulled into shared objects from archives
8114 whole_archive_flag_spec='$convenience'
8115 archive_cmds_need_lc=yes
8116 # This is similar to how AIX traditionally builds its shared libraries.
8117 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'
8118 fi
8119 fi
8120 ;;
8121
8122 amigaos*)
8123 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)'
8124 hardcode_libdir_flag_spec='-L$libdir'
8125 hardcode_minus_L=yes
8126 # see comment about different semantics on the GNU ld section
8127 ld_shlibs=no
8128 ;;
8129
8130 bsdi[45]*)
8131 export_dynamic_flag_spec=-rdynamic
8132 ;;
8133
8134 cygwin* | mingw* | pw32*)
8135 # When not using gcc, we currently assume that we are using
8136 # Microsoft Visual C++.
8137 # hardcode_libdir_flag_spec is actually meaningless, as there is
8138 # no search path for DLLs.
8139 hardcode_libdir_flag_spec=' '
8140 allow_undefined_flag=unsupported
8141 # Tell ltmain to make .lib files, not .a files.
8142 libext=lib
8143 # Tell ltmain to make .dll files, not .so files.
8144 shrext_cmds=".dll"
8145 # FIXME: Setting linknames here is a bad hack.
8146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8147 # The linker will automatically build a .lib file if we build a DLL.
8148 old_archive_From_new_cmds='true'
8149 # FIXME: Should let the user specify the lib program.
8150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8151 fix_srcfile_path='`cygpath -w "$srcfile"`'
8152 enable_shared_with_static_runtimes=yes
8153 ;;
8154
8155 darwin* | rhapsody*)
8156 case $host_os in
8157 rhapsody* | darwin1.[012])
8158 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8159 ;;
8160 *) # Darwin 1.3 on
8161 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8162 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8163 else
8164 case ${MACOSX_DEPLOYMENT_TARGET} in
8165 10.[012])
8166 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8167 ;;
8168 10.*)
8169 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8170 ;;
8171 esac
8172 fi
8173 ;;
8174 esac
8175 archive_cmds_need_lc=no
8176 hardcode_direct=no
8177 hardcode_automatic=yes
8178 hardcode_shlibpath_var=unsupported
8179 whole_archive_flag_spec=''
8180 link_all_deplibs=yes
8181 if test "$GCC" = yes ; then
8182 output_verbose_link_cmd='echo'
8183 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8184 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8186 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8187 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}'
8188 else
8189 case $cc_basename in
8190 xlc*)
8191 output_verbose_link_cmd='echo'
8192 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8193 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8195 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}'
8196 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}'
8197 ;;
8198 *)
8199 ld_shlibs=no
8200 ;;
8201 esac
8202 fi
8203 ;;
8204
8205 dgux*)
8206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8207 hardcode_libdir_flag_spec='-L$libdir'
8208 hardcode_shlibpath_var=no
8209 ;;
8210
8211 freebsd1*)
8212 ld_shlibs=no
8213 ;;
8214
8215 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8216 # support. Future versions do this automatically, but an explicit c++rt0.o
8217 # does not break anything, and helps significantly (at the cost of a little
8218 # extra space).
8219 freebsd2.2*)
8220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8221 hardcode_libdir_flag_spec='-R$libdir'
8222 hardcode_direct=yes
8223 hardcode_shlibpath_var=no
8224 ;;
8225
8226 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8227 freebsd2*)
8228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8229 hardcode_direct=yes
8230 hardcode_minus_L=yes
8231 hardcode_shlibpath_var=no
8232 ;;
8233
8234 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8235 freebsd* | dragonfly*)
8236 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 hardcode_direct=yes
8239 hardcode_shlibpath_var=no
8240 ;;
8241
8242 hpux9*)
8243 if test "$GCC" = yes; then
8244 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'
8245 else
8246 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'
8247 fi
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250 hardcode_direct=yes
8251
8252 # hardcode_minus_L: Not really in the search PATH,
8253 # but as the default location of the library.
8254 hardcode_minus_L=yes
8255 export_dynamic_flag_spec='${wl}-E'
8256 ;;
8257
8258 hpux10*)
8259 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8261 else
8262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8263 fi
8264 if test "$with_gnu_ld" = no; then
8265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8266 hardcode_libdir_separator=:
8267
8268 hardcode_direct=yes
8269 export_dynamic_flag_spec='${wl}-E'
8270
8271 # hardcode_minus_L: Not really in the search PATH,
8272 # but as the default location of the library.
8273 hardcode_minus_L=yes
8274 fi
8275 ;;
8276
8277 hpux11*)
8278 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8279 case $host_cpu in
8280 hppa*64*)
8281 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 ;;
8283 ia64*)
8284 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8285 ;;
8286 *)
8287 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8288 ;;
8289 esac
8290 else
8291 case $host_cpu in
8292 hppa*64*)
8293 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8294 ;;
8295 ia64*)
8296 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8297 ;;
8298 *)
8299 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8300 ;;
8301 esac
8302 fi
8303 if test "$with_gnu_ld" = no; then
8304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8305 hardcode_libdir_separator=:
8306
8307 case $host_cpu in
8308 hppa*64*|ia64*)
8309 hardcode_libdir_flag_spec_ld='+b $libdir'
8310 hardcode_direct=no
8311 hardcode_shlibpath_var=no
8312 ;;
8313 *)
8314 hardcode_direct=yes
8315 export_dynamic_flag_spec='${wl}-E'
8316
8317 # hardcode_minus_L: Not really in the search PATH,
8318 # but as the default location of the library.
8319 hardcode_minus_L=yes
8320 ;;
8321 esac
8322 fi
8323 ;;
8324
8325 irix5* | irix6* | nonstopux*)
8326 if test "$GCC" = yes; then
8327 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'
8328 else
8329 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'
8330 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8331 fi
8332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8333 hardcode_libdir_separator=:
8334 link_all_deplibs=yes
8335 ;;
8336
8337 netbsd*)
8338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8340 else
8341 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8342 fi
8343 hardcode_libdir_flag_spec='-R$libdir'
8344 hardcode_direct=yes
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 newsos6)
8349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_direct=yes
8351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8352 hardcode_libdir_separator=:
8353 hardcode_shlibpath_var=no
8354 ;;
8355
8356 openbsd*)
8357 if test -f /usr/libexec/ld.so; then
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364 export_dynamic_flag_spec='${wl}-E'
8365 else
8366 case $host_os in
8367 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8369 hardcode_libdir_flag_spec='-R$libdir'
8370 ;;
8371 *)
8372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8374 ;;
8375 esac
8376 fi
8377 else
8378 ld_shlibs=no
8379 fi
8380 ;;
8381
8382 os2*)
8383 hardcode_libdir_flag_spec='-L$libdir'
8384 hardcode_minus_L=yes
8385 allow_undefined_flag=unsupported
8386 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'
8387 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8388 ;;
8389
8390 osf3*)
8391 if test "$GCC" = yes; then
8392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 else
8395 allow_undefined_flag=' -expect_unresolved \*'
8396 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'
8397 fi
8398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8399 hardcode_libdir_separator=:
8400 ;;
8401
8402 osf4* | osf5*) # as osf3* with the addition of -msym flag
8403 if test "$GCC" = yes; then
8404 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8405 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'
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 else
8408 allow_undefined_flag=' -expect_unresolved \*'
8409 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'
8410 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8411 $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'
8412
8413 # Both c and cxx compiler support -rpath directly
8414 hardcode_libdir_flag_spec='-rpath $libdir'
8415 fi
8416 hardcode_libdir_separator=:
8417 ;;
8418
8419 solaris*)
8420 no_undefined_flag=' -z text'
8421 if test "$GCC" = yes; then
8422 wlarc='${wl}'
8423 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8425 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8426 else
8427 wlarc=''
8428 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8431 fi
8432 hardcode_libdir_flag_spec='-R$libdir'
8433 hardcode_shlibpath_var=no
8434 case $host_os in
8435 solaris2.[0-5] | solaris2.[0-5].*) ;;
8436 *)
8437 # The compiler driver will combine and reorder linker options,
8438 # but understands `-z linker_flag'. GCC discards it without `$wl',
8439 # but is careful enough not to reorder.
8440 # Supported since Solaris 2.6 (maybe 2.5.1?)
8441 if test "$GCC" = yes; then
8442 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8443 else
8444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8445 fi
8446 ;;
8447 esac
8448 link_all_deplibs=yes
8449 ;;
8450
8451 sunos4*)
8452 if test "x$host_vendor" = xsequent; then
8453 # Use $CC to link under sequent, because it throws in some extra .o
8454 # files that make .init and .fini sections work.
8455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8456 else
8457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8458 fi
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_direct=yes
8461 hardcode_minus_L=yes
8462 hardcode_shlibpath_var=no
8463 ;;
8464
8465 sysv4)
8466 case $host_vendor in
8467 sni)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=yes # is this really true???
8470 ;;
8471 siemens)
8472 ## LD is ld it makes a PLAMLIB
8473 ## CC just makes a GrossModule.
8474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8475 reload_cmds='$CC -r -o $output$reload_objs'
8476 hardcode_direct=no
8477 ;;
8478 motorola)
8479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8481 ;;
8482 esac
8483 runpath_var='LD_RUN_PATH'
8484 hardcode_shlibpath_var=no
8485 ;;
8486
8487 sysv4.3*)
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_shlibpath_var=no
8490 export_dynamic_flag_spec='-Bexport'
8491 ;;
8492
8493 sysv4*MP*)
8494 if test -d /usr/nec; then
8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 hardcode_shlibpath_var=no
8497 runpath_var=LD_RUN_PATH
8498 hardcode_runpath_var=yes
8499 ld_shlibs=yes
8500 fi
8501 ;;
8502
8503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8504 no_undefined_flag='${wl}-z,text'
8505 archive_cmds_need_lc=no
8506 hardcode_shlibpath_var=no
8507 runpath_var='LD_RUN_PATH'
8508
8509 if test "$GCC" = yes; then
8510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 else
8513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515 fi
8516 ;;
8517
8518 sysv5* | sco3.2v5* | sco5v6*)
8519 # Note: We can NOT use -z defs as we might desire, because we do not
8520 # link with -lc, and that would cause any symbols used from libc to
8521 # always be unresolved, which means just about no library would
8522 # ever link correctly. If we're not using GNU ld we use -z text
8523 # though, which does catch some bad symbols but isn't as heavy-handed
8524 # as -z defs.
8525 no_undefined_flag='${wl}-z,text'
8526 allow_undefined_flag='${wl}-z,nodefs'
8527 archive_cmds_need_lc=no
8528 hardcode_shlibpath_var=no
8529 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8530 hardcode_libdir_separator=':'
8531 link_all_deplibs=yes
8532 export_dynamic_flag_spec='${wl}-Bexport'
8533 runpath_var='LD_RUN_PATH'
8534
8535 if test "$GCC" = yes; then
8536 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 else
8539 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8541 fi
8542 ;;
8543
8544 uts4*)
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 hardcode_shlibpath_var=no
8548 ;;
8549
8550 *)
8551 ld_shlibs=no
8552 ;;
8553 esac
8554 fi
8555
8556 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8557 echo "${ECHO_T}$ld_shlibs" >&6; }
8558 test "$ld_shlibs" = no && can_build_shared=no
8559
8560 #
8561 # Do we need to explicitly link libc?
8562 #
8563 case "x$archive_cmds_need_lc" in
8564 x|xyes)
8565 # Assume -lc should be added
8566 archive_cmds_need_lc=yes
8567
8568 if test "$enable_shared" = yes && test "$GCC" = yes; then
8569 case $archive_cmds in
8570 *'~'*)
8571 # FIXME: we may have to deal with multi-command sequences.
8572 ;;
8573 '$CC '*)
8574 # Test whether the compiler implicitly links with -lc since on some
8575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8576 # to ld, don't add -lc before -lgcc.
8577 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8579 $rm conftest*
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8581
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } 2>conftest.err; then
8587 soname=conftest
8588 lib=conftest
8589 libobjs=conftest.$ac_objext
8590 deplibs=
8591 wl=$lt_prog_compiler_wl
8592 pic_flag=$lt_prog_compiler_pic
8593 compiler_flags=-v
8594 linker_flags=-v
8595 verstring=
8596 output_objdir=.
8597 libname=conftest
8598 lt_save_allow_undefined_flag=$allow_undefined_flag
8599 allow_undefined_flag=
8600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8601 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }
8605 then
8606 archive_cmds_need_lc=no
8607 else
8608 archive_cmds_need_lc=yes
8609 fi
8610 allow_undefined_flag=$lt_save_allow_undefined_flag
8611 else
8612 cat conftest.err 1>&5
8613 fi
8614 $rm conftest*
8615 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8616 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8617 ;;
8618 esac
8619 fi
8620 ;;
8621 esac
8622
8623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8625 library_names_spec=
8626 libname_spec='lib$name'
8627 soname_spec=
8628 shrext_cmds=".so"
8629 postinstall_cmds=
8630 postuninstall_cmds=
8631 finish_cmds=
8632 finish_eval=
8633 shlibpath_var=
8634 shlibpath_overrides_runpath=unknown
8635 version_type=none
8636 dynamic_linker="$host_os ld.so"
8637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8638
8639 if test "$GCC" = yes; then
8640 case $host_os in
8641 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8642 *) lt_awk_arg="/^libraries:/" ;;
8643 esac
8644 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8645 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8646 # if the path contains ";" then we assume it to be the separator
8647 # otherwise default to the standard path separator (i.e. ":") - it is
8648 # assumed that no part of a normal pathname contains ";" but that should
8649 # okay in the real world where ";" in dirpaths is itself problematic.
8650 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8651 else
8652 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8653 fi
8654 # Ok, now we have the path, separated by spaces, we can step through it
8655 # and add multilib dir if necessary.
8656 lt_tmp_lt_search_path_spec=
8657 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8658 for lt_sys_path in $lt_search_path_spec; do
8659 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8660 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8661 else
8662 test -d "$lt_sys_path" && \
8663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8664 fi
8665 done
8666 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8667 BEGIN {RS=" "; FS="/|\n";} {
8668 lt_foo="";
8669 lt_count=0;
8670 for (lt_i = NF; lt_i > 0; lt_i--) {
8671 if ($lt_i != "" && $lt_i != ".") {
8672 if ($lt_i == "..") {
8673 lt_count++;
8674 } else {
8675 if (lt_count == 0) {
8676 lt_foo="/" $lt_i lt_foo;
8677 } else {
8678 lt_count--;
8679 }
8680 }
8681 }
8682 }
8683 if (lt_foo != "") { lt_freq[lt_foo]++; }
8684 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8685 }'`
8686 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8687 else
8688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8689 fi
8690 need_lib_prefix=unknown
8691 hardcode_into_libs=no
8692
8693 # when you set need_version to no, make sure it does not cause -set_version
8694 # flags to be left without arguments
8695 need_version=unknown
8696
8697 case $host_os in
8698 aix3*)
8699 version_type=linux
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8701 shlibpath_var=LIBPATH
8702
8703 # AIX 3 has no versioning support, so we append a major version to the name.
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 ;;
8706
8707 aix4* | aix5*)
8708 version_type=linux
8709 need_lib_prefix=no
8710 need_version=no
8711 hardcode_into_libs=yes
8712 if test "$host_cpu" = ia64; then
8713 # AIX 5 supports IA64
8714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 else
8717 # With GCC up to 2.95.x, collect2 would create an import file
8718 # for dependence libraries. The import file would start with
8719 # the line `#! .'. This would cause the generated library to
8720 # depend on `.', always an invalid library. This was fixed in
8721 # development snapshots of GCC prior to 3.0.
8722 case $host_os in
8723 aix4 | aix4.[01] | aix4.[01].*)
8724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8725 echo ' yes '
8726 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8727 :
8728 else
8729 can_build_shared=no
8730 fi
8731 ;;
8732 esac
8733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8734 # soname into executable. Probably we can add versioning support to
8735 # collect2, so additional links can be useful in future.
8736 if test "$aix_use_runtimelinking" = yes; then
8737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8738 # instead of lib<name>.a to let people know that these are not
8739 # typical AIX shared libraries.
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741 else
8742 # We preserve .a as extension for shared libraries through AIX4.2
8743 # and later when we are not doing run time linking.
8744 library_names_spec='${libname}${release}.a $libname.a'
8745 soname_spec='${libname}${release}${shared_ext}$major'
8746 fi
8747 shlibpath_var=LIBPATH
8748 fi
8749 ;;
8750
8751 amigaos*)
8752 library_names_spec='$libname.ixlibrary $libname.a'
8753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8754 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'
8755 ;;
8756
8757 beos*)
8758 library_names_spec='${libname}${shared_ext}'
8759 dynamic_linker="$host_os ld.so"
8760 shlibpath_var=LIBRARY_PATH
8761 ;;
8762
8763 bsdi[45]*)
8764 version_type=linux
8765 need_version=no
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8772 # the default ld.so.conf also contains /usr/contrib/lib and
8773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8774 # libtool to hard-code these into programs
8775 ;;
8776
8777 cygwin* | mingw* | pw32*)
8778 version_type=windows
8779 shrext_cmds=".dll"
8780 need_version=no
8781 need_lib_prefix=no
8782
8783 case $GCC,$host_os in
8784 yes,cygwin* | yes,mingw* | yes,pw32*)
8785 library_names_spec='$libname.dll.a'
8786 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8787 postinstall_cmds='base_file=`basename \${file}`~
8788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8789 dldir=$destdir/`dirname \$dlpath`~
8790 test -d \$dldir || mkdir -p \$dldir~
8791 $install_prog $dir/$dlname \$dldir/$dlname~
8792 chmod a+x \$dldir/$dlname'
8793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8794 dlpath=$dir/\$dldll~
8795 $rm \$dlpath'
8796 shlibpath_overrides_runpath=yes
8797
8798 case $host_os in
8799 cygwin*)
8800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8802 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8803 ;;
8804 mingw*)
8805 # MinGW DLLs use traditional 'lib' prefix
8806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8808 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8809 # It is most probably a Windows format PATH printed by
8810 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8811 # path with ; separators, and with drive letters. We can handle the
8812 # drive letters (cygwin fileutils understands them), so leave them,
8813 # especially as we might pass files found there to a mingw objdump,
8814 # which wouldn't understand a cygwinified path. Ahh.
8815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8816 else
8817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8818 fi
8819 ;;
8820 pw32*)
8821 # pw32 DLLs use 'pw' prefix rather than 'lib'
8822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8823 ;;
8824 esac
8825 ;;
8826
8827 *)
8828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8829 ;;
8830 esac
8831 dynamic_linker='Win32 ld.exe'
8832 # FIXME: first we should search . and the directory the executable is in
8833 shlibpath_var=PATH
8834 ;;
8835
8836 darwin* | rhapsody*)
8837 dynamic_linker="$host_os dyld"
8838 version_type=darwin
8839 need_lib_prefix=no
8840 need_version=no
8841 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8842 soname_spec='${libname}${release}${major}$shared_ext'
8843 shlibpath_overrides_runpath=yes
8844 shlibpath_var=DYLD_LIBRARY_PATH
8845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8846
8847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8849 ;;
8850
8851 dgux*)
8852 version_type=linux
8853 need_lib_prefix=no
8854 need_version=no
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 ;;
8859
8860 freebsd1*)
8861 dynamic_linker=no
8862 ;;
8863
8864 freebsd* | dragonfly*)
8865 # DragonFly does not have aout. When/if they implement a new
8866 # versioning mechanism, adjust this.
8867 if test -x /usr/bin/objformat; then
8868 objformat=`/usr/bin/objformat`
8869 else
8870 case $host_os in
8871 freebsd[123]*) objformat=aout ;;
8872 *) objformat=elf ;;
8873 esac
8874 fi
8875 version_type=freebsd-$objformat
8876 case $version_type in
8877 freebsd-elf*)
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8879 need_version=no
8880 need_lib_prefix=no
8881 ;;
8882 freebsd-*)
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8884 need_version=yes
8885 ;;
8886 esac
8887 shlibpath_var=LD_LIBRARY_PATH
8888 case $host_os in
8889 freebsd2*)
8890 shlibpath_overrides_runpath=yes
8891 ;;
8892 freebsd3.[01]* | freebsdelf3.[01]*)
8893 shlibpath_overrides_runpath=yes
8894 hardcode_into_libs=yes
8895 ;;
8896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8900 ;;
8901 *) # from 4.6 on, and DragonFly
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
8904 ;;
8905 esac
8906 ;;
8907
8908 gnu*)
8909 version_type=linux
8910 need_lib_prefix=no
8911 need_version=no
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 hardcode_into_libs=yes
8916 ;;
8917
8918 hpux9* | hpux10* | hpux11*)
8919 # Give a soname corresponding to the major version so that dld.sl refuses to
8920 # link against other versions.
8921 version_type=sunos
8922 need_lib_prefix=no
8923 need_version=no
8924 case $host_cpu in
8925 ia64*)
8926 shrext_cmds='.so'
8927 hardcode_into_libs=yes
8928 dynamic_linker="$host_os dld.so"
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 if test "X$HPUX_IA64_MODE" = X32; then
8934 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8935 else
8936 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8937 fi
8938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8939 ;;
8940 hppa*64*)
8941 shrext_cmds='.sl'
8942 hardcode_into_libs=yes
8943 dynamic_linker="$host_os dld.sl"
8944 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8950 ;;
8951 *)
8952 shrext_cmds='.sl'
8953 dynamic_linker="$host_os dld.sl"
8954 shlibpath_var=SHLIB_PATH
8955 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 ;;
8959 esac
8960 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8961 postinstall_cmds='chmod 555 $lib'
8962 ;;
8963
8964 interix[3-9]*)
8965 version_type=linux
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8974 ;;
8975
8976 irix5* | irix6* | nonstopux*)
8977 case $host_os in
8978 nonstopux*) version_type=nonstopux ;;
8979 *)
8980 if test "$lt_cv_prog_gnu_ld" = yes; then
8981 version_type=linux
8982 else
8983 version_type=irix
8984 fi ;;
8985 esac
8986 need_lib_prefix=no
8987 need_version=no
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8990 case $host_os in
8991 irix5* | nonstopux*)
8992 libsuff= shlibsuff=
8993 ;;
8994 *)
8995 case $LD in # libtool.m4 will add one of these switches to LD
8996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8997 libsuff= shlibsuff= libmagic=32-bit;;
8998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8999 libsuff=32 shlibsuff=N32 libmagic=N32;;
9000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9002 *) libsuff= shlibsuff= libmagic=never-match;;
9003 esac
9004 ;;
9005 esac
9006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9007 shlibpath_overrides_runpath=no
9008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9010 hardcode_into_libs=yes
9011 ;;
9012
9013 # No shared lib support for Linux oldld, aout, or coff.
9014 linux*oldld* | linux*aout* | linux*coff*)
9015 dynamic_linker=no
9016 ;;
9017
9018 # This must be Linux ELF.
9019 linux* | k*bsd*-gnu)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=no
9028 # This implies no fast_install, which is unacceptable.
9029 # Some rework will be needed to allow for fast_install
9030 # before this can be enabled.
9031 hardcode_into_libs=yes
9032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9034
9035 # Append ld.so.conf contents to the search path
9036 if test -f /etc/ld.so.conf; then
9037 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' ' '`
9038 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9039 fi
9040
9041 # We used to test for /lib/ld.so.1 and disable shared libraries on
9042 # powerpc, because MkLinux only supported shared libraries with the
9043 # GNU dynamic linker. Since this was broken with cross compilers,
9044 # most powerpc-linux boxes support dynamic linking these days and
9045 # people can always --disable-shared, the test was removed, and we
9046 # assume the GNU/Linux dynamic linker is in use.
9047 dynamic_linker='GNU/Linux ld.so'
9048 ;;
9049
9050 netbsd*)
9051 version_type=sunos
9052 need_lib_prefix=no
9053 need_version=no
9054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9057 dynamic_linker='NetBSD (a.out) ld.so'
9058 else
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 dynamic_linker='NetBSD ld.elf_so'
9062 fi
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 hardcode_into_libs=yes
9066 ;;
9067
9068 newsos6)
9069 version_type=linux
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 ;;
9074
9075 nto-qnx*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 ;;
9084
9085 openbsd*)
9086 version_type=sunos
9087 sys_lib_dlsearch_path_spec="/usr/lib"
9088 need_lib_prefix=no
9089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9090 case $host_os in
9091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9092 *) need_version=no ;;
9093 esac
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9098 case $host_os in
9099 openbsd2.[89] | openbsd2.[89].*)
9100 shlibpath_overrides_runpath=no
9101 ;;
9102 *)
9103 shlibpath_overrides_runpath=yes
9104 ;;
9105 esac
9106 else
9107 shlibpath_overrides_runpath=yes
9108 fi
9109 ;;
9110
9111 os2*)
9112 libname_spec='$name'
9113 shrext_cmds=".dll"
9114 need_lib_prefix=no
9115 library_names_spec='$libname${shared_ext} $libname.a'
9116 dynamic_linker='OS/2 ld.exe'
9117 shlibpath_var=LIBPATH
9118 ;;
9119
9120 osf3* | osf4* | osf5*)
9121 version_type=osf
9122 need_lib_prefix=no
9123 need_version=no
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9129 ;;
9130
9131 rdos*)
9132 dynamic_linker=no
9133 ;;
9134
9135 solaris*)
9136 version_type=linux
9137 need_lib_prefix=no
9138 need_version=no
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9143 hardcode_into_libs=yes
9144 # ldd complains unless libraries are executable
9145 postinstall_cmds='chmod +x $lib'
9146 ;;
9147
9148 sunos4*)
9149 version_type=sunos
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 if test "$with_gnu_ld" = yes; then
9155 need_lib_prefix=no
9156 fi
9157 need_version=yes
9158 ;;
9159
9160 sysv4 | sysv4.3*)
9161 version_type=linux
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 case $host_vendor in
9166 sni)
9167 shlibpath_overrides_runpath=no
9168 need_lib_prefix=no
9169 export_dynamic_flag_spec='${wl}-Blargedynsym'
9170 runpath_var=LD_RUN_PATH
9171 ;;
9172 siemens)
9173 need_lib_prefix=no
9174 ;;
9175 motorola)
9176 need_lib_prefix=no
9177 need_version=no
9178 shlibpath_overrides_runpath=no
9179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9180 ;;
9181 esac
9182 ;;
9183
9184 sysv4*MP*)
9185 if test -d /usr/nec ;then
9186 version_type=linux
9187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9188 soname_spec='$libname${shared_ext}.$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 fi
9191 ;;
9192
9193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9194 version_type=freebsd-elf
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 hardcode_into_libs=yes
9201 if test "$with_gnu_ld" = yes; then
9202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9203 shlibpath_overrides_runpath=no
9204 else
9205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9206 shlibpath_overrides_runpath=yes
9207 case $host_os in
9208 sco3.2v5*)
9209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9210 ;;
9211 esac
9212 fi
9213 sys_lib_dlsearch_path_spec='/usr/lib'
9214 ;;
9215
9216 uts4*)
9217 version_type=linux
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 ;;
9222
9223 *)
9224 dynamic_linker=no
9225 ;;
9226 esac
9227 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9228 echo "${ECHO_T}$dynamic_linker" >&6; }
9229 test "$dynamic_linker" = no && can_build_shared=no
9230
9231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9232 if test "$GCC" = yes; then
9233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9234 fi
9235
9236 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9237 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9238 hardcode_action=
9239 if test -n "$hardcode_libdir_flag_spec" || \
9240 test -n "$runpath_var" || \
9241 test "X$hardcode_automatic" = "Xyes" ; then
9242
9243 # We can hardcode non-existant directories.
9244 if test "$hardcode_direct" != no &&
9245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9246 # have to relink, otherwise we might link with an installed library
9247 # when we should be linking with a yet-to-be-installed one
9248 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9249 test "$hardcode_minus_L" != no; then
9250 # Linking always hardcodes the temporary library directory.
9251 hardcode_action=relink
9252 else
9253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9254 hardcode_action=immediate
9255 fi
9256 else
9257 # We cannot hardcode anything, or else we can only hardcode existing
9258 # directories.
9259 hardcode_action=unsupported
9260 fi
9261 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9262 echo "${ECHO_T}$hardcode_action" >&6; }
9263
9264 if test "$hardcode_action" = relink; then
9265 # Fast installation is not supported
9266 enable_fast_install=no
9267 elif test "$shlibpath_overrides_runpath" = yes ||
9268 test "$enable_shared" = no; then
9269 # Fast installation is not necessary
9270 enable_fast_install=needless
9271 fi
9272
9273 striplib=
9274 old_striplib=
9275 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9276 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9277 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9278 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9279 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9280 { echo "$as_me:$LINENO: result: yes" >&5
9281 echo "${ECHO_T}yes" >&6; }
9282 else
9283 # FIXME - insert some real tests, host_os isn't really good enough
9284 case $host_os in
9285 darwin*)
9286 if test -n "$STRIP" ; then
9287 striplib="$STRIP -x"
9288 old_striplib="$STRIP -S"
9289 { echo "$as_me:$LINENO: result: yes" >&5
9290 echo "${ECHO_T}yes" >&6; }
9291 else
9292 { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9294 fi
9295 ;;
9296 *)
9297 { echo "$as_me:$LINENO: result: no" >&5
9298 echo "${ECHO_T}no" >&6; }
9299 ;;
9300 esac
9301 fi
9302
9303 if test "x$enable_dlopen" != xyes; then
9304 enable_dlopen=unknown
9305 enable_dlopen_self=unknown
9306 enable_dlopen_self_static=unknown
9307 else
9308 lt_cv_dlopen=no
9309 lt_cv_dlopen_libs=
9310
9311 case $host_os in
9312 beos*)
9313 lt_cv_dlopen="load_add_on"
9314 lt_cv_dlopen_libs=
9315 lt_cv_dlopen_self=yes
9316 ;;
9317
9318 mingw* | pw32*)
9319 lt_cv_dlopen="LoadLibrary"
9320 lt_cv_dlopen_libs=
9321 ;;
9322
9323 cygwin*)
9324 lt_cv_dlopen="dlopen"
9325 lt_cv_dlopen_libs=
9326 ;;
9327
9328 darwin*)
9329 # if libdl is installed we need to link against it
9330 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9331 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335 ac_check_lib_save_LIBS=$LIBS
9336 LIBS="-ldl $LIBS"
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343
9344 /* Override any GCC internal prototype to avoid an error.
9345 Use char because int might match the return type of a GCC
9346 builtin and then its argument prototype would still apply. */
9347 #ifdef __cplusplus
9348 extern "C"
9349 #endif
9350 char dlopen ();
9351 int
9352 main ()
9353 {
9354 return dlopen ();
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_link") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest$ac_exeext &&
9376 $as_test_x conftest$ac_exeext; then
9377 ac_cv_lib_dl_dlopen=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382 ac_cv_lib_dl_dlopen=no
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9386 conftest$ac_exeext conftest.$ac_ext
9387 LIBS=$ac_check_lib_save_LIBS
9388 fi
9389 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9390 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9391 if test $ac_cv_lib_dl_dlopen = yes; then
9392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9393 else
9394
9395 lt_cv_dlopen="dyld"
9396 lt_cv_dlopen_libs=
9397 lt_cv_dlopen_self=yes
9398
9399 fi
9400
9401 ;;
9402
9403 *)
9404 { echo "$as_me:$LINENO: checking for shl_load" >&5
9405 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9406 if test "${ac_cv_func_shl_load+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9417 #define shl_load innocuous_shl_load
9418
9419 /* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char shl_load (); below.
9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422 <limits.h> exists even on freestanding compilers. */
9423
9424 #ifdef __STDC__
9425 # include <limits.h>
9426 #else
9427 # include <assert.h>
9428 #endif
9429
9430 #undef shl_load
9431
9432 /* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9435 #ifdef __cplusplus
9436 extern "C"
9437 #endif
9438 char shl_load ();
9439 /* The GNU C library defines this for functions which it implements
9440 to always fail with ENOSYS. Some functions are actually named
9441 something starting with __ and the normal name is an alias. */
9442 #if defined __stub_shl_load || defined __stub___shl_load
9443 choke me
9444 #endif
9445
9446 int
9447 main ()
9448 {
9449 return shl_load ();
9450 ;
9451 return 0;
9452 }
9453 _ACEOF
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9456 case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest$ac_exeext &&
9471 $as_test_x conftest$ac_exeext; then
9472 ac_cv_func_shl_load=yes
9473 else
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 ac_cv_func_shl_load=no
9478 fi
9479
9480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481 conftest$ac_exeext conftest.$ac_ext
9482 fi
9483 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9484 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9485 if test $ac_cv_func_shl_load = yes; then
9486 lt_cv_dlopen="shl_load"
9487 else
9488 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9489 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9490 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 ac_check_lib_save_LIBS=$LIBS
9494 LIBS="-ldld $LIBS"
9495 cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h. */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501
9502 /* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9505 #ifdef __cplusplus
9506 extern "C"
9507 #endif
9508 char shl_load ();
9509 int
9510 main ()
9511 {
9512 return shl_load ();
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (ac_try="$ac_link"
9519 case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_link") 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest$ac_exeext &&
9534 $as_test_x conftest$ac_exeext; then
9535 ac_cv_lib_dld_shl_load=yes
9536 else
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_cv_lib_dld_shl_load=no
9541 fi
9542
9543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9544 conftest$ac_exeext conftest.$ac_ext
9545 LIBS=$ac_check_lib_save_LIBS
9546 fi
9547 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9548 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9549 if test $ac_cv_lib_dld_shl_load = yes; then
9550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9551 else
9552 { echo "$as_me:$LINENO: checking for dlopen" >&5
9553 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9554 if test "${ac_cv_func_dlopen+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9565 #define dlopen innocuous_dlopen
9566
9567 /* System header to define __stub macros and hopefully few prototypes,
9568 which can conflict with char dlopen (); below.
9569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9570 <limits.h> exists even on freestanding compilers. */
9571
9572 #ifdef __STDC__
9573 # include <limits.h>
9574 #else
9575 # include <assert.h>
9576 #endif
9577
9578 #undef dlopen
9579
9580 /* Override any GCC internal prototype to avoid an error.
9581 Use char because int might match the return type of a GCC
9582 builtin and then its argument prototype would still apply. */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 char dlopen ();
9587 /* The GNU C library defines this for functions which it implements
9588 to always fail with ENOSYS. Some functions are actually named
9589 something starting with __ and the normal name is an alias. */
9590 #if defined __stub_dlopen || defined __stub___dlopen
9591 choke me
9592 #endif
9593
9594 int
9595 main ()
9596 {
9597 return dlopen ();
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9604 case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_link") 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } && {
9616 test -z "$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9618 } && test -s conftest$ac_exeext &&
9619 $as_test_x conftest$ac_exeext; then
9620 ac_cv_func_dlopen=yes
9621 else
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9624
9625 ac_cv_func_dlopen=no
9626 fi
9627
9628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9629 conftest$ac_exeext conftest.$ac_ext
9630 fi
9631 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9632 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9633 if test $ac_cv_func_dlopen = yes; then
9634 lt_cv_dlopen="dlopen"
9635 else
9636 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-ldl $LIBS"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char dlopen ();
9657 int
9658 main ()
9659 {
9660 return dlopen ();
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest$ac_exeext &&
9682 $as_test_x conftest$ac_exeext; then
9683 ac_cv_lib_dl_dlopen=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_cv_lib_dl_dlopen=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9694 fi
9695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9697 if test $ac_cv_lib_dl_dlopen = yes; then
9698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9699 else
9700 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9701 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9702 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-lsvld $LIBS"
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713
9714 /* Override any GCC internal prototype to avoid an error.
9715 Use char because int might match the return type of a GCC
9716 builtin and then its argument prototype would still apply. */
9717 #ifdef __cplusplus
9718 extern "C"
9719 #endif
9720 char dlopen ();
9721 int
9722 main ()
9723 {
9724 return dlopen ();
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9731 case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest$ac_exeext &&
9746 $as_test_x conftest$ac_exeext; then
9747 ac_cv_lib_svld_dlopen=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_lib_svld_dlopen=no
9753 fi
9754
9755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9758 fi
9759 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9760 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9761 if test $ac_cv_lib_svld_dlopen = yes; then
9762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9763 else
9764 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9765 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9766 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 ac_check_lib_save_LIBS=$LIBS
9770 LIBS="-ldld $LIBS"
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777
9778 /* Override any GCC internal prototype to avoid an error.
9779 Use char because int might match the return type of a GCC
9780 builtin and then its argument prototype would still apply. */
9781 #ifdef __cplusplus
9782 extern "C"
9783 #endif
9784 char dld_link ();
9785 int
9786 main ()
9787 {
9788 return dld_link ();
9789 ;
9790 return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest$ac_exeext &&
9810 $as_test_x conftest$ac_exeext; then
9811 ac_cv_lib_dld_dld_link=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_lib_dld_dld_link=no
9817 fi
9818
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9822 fi
9823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9824 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9825 if test $ac_cv_lib_dld_dld_link = yes; then
9826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9827 fi
9828
9829
9830 fi
9831
9832
9833 fi
9834
9835
9836 fi
9837
9838
9839 fi
9840
9841
9842 fi
9843
9844 ;;
9845 esac
9846
9847 if test "x$lt_cv_dlopen" != xno; then
9848 enable_dlopen=yes
9849 else
9850 enable_dlopen=no
9851 fi
9852
9853 case $lt_cv_dlopen in
9854 dlopen)
9855 save_CPPFLAGS="$CPPFLAGS"
9856 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9857
9858 save_LDFLAGS="$LDFLAGS"
9859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9860
9861 save_LIBS="$LIBS"
9862 LIBS="$lt_cv_dlopen_libs $LIBS"
9863
9864 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9865 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9866 if test "${lt_cv_dlopen_self+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 if test "$cross_compiling" = yes; then :
9870 lt_cv_dlopen_self=cross
9871 else
9872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9873 lt_status=$lt_dlunknown
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9875 "configure"
9876 #include "confdefs.h"
9877
9878 #if HAVE_DLFCN_H
9879 #include <dlfcn.h>
9880 #endif
9881
9882 #include <stdio.h>
9883
9884 #ifdef RTLD_GLOBAL
9885 # define LT_DLGLOBAL RTLD_GLOBAL
9886 #else
9887 # ifdef DL_GLOBAL
9888 # define LT_DLGLOBAL DL_GLOBAL
9889 # else
9890 # define LT_DLGLOBAL 0
9891 # endif
9892 #endif
9893
9894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9895 find out it does not work in some platform. */
9896 #ifndef LT_DLLAZY_OR_NOW
9897 # ifdef RTLD_LAZY
9898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9899 # else
9900 # ifdef DL_LAZY
9901 # define LT_DLLAZY_OR_NOW DL_LAZY
9902 # else
9903 # ifdef RTLD_NOW
9904 # define LT_DLLAZY_OR_NOW RTLD_NOW
9905 # else
9906 # ifdef DL_NOW
9907 # define LT_DLLAZY_OR_NOW DL_NOW
9908 # else
9909 # define LT_DLLAZY_OR_NOW 0
9910 # endif
9911 # endif
9912 # endif
9913 # endif
9914 #endif
9915
9916 #ifdef __cplusplus
9917 extern "C" void exit (int);
9918 #endif
9919
9920 void fnord() { int i=42;}
9921 int main ()
9922 {
9923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9924 int status = $lt_dlunknown;
9925
9926 if (self)
9927 {
9928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9930 /* dlclose (self); */
9931 }
9932 else
9933 puts (dlerror ());
9934
9935 exit (status);
9936 }
9937 EOF
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9943 (./conftest; exit; ) >&5 2>/dev/null
9944 lt_status=$?
9945 case x$lt_status in
9946 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9947 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9948 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9949 esac
9950 else :
9951 # compilation failed
9952 lt_cv_dlopen_self=no
9953 fi
9954 fi
9955 rm -fr conftest*
9956
9957
9958 fi
9959 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9960 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9961
9962 if test "x$lt_cv_dlopen_self" = xyes; then
9963 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9964 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9965 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9966 if test "${lt_cv_dlopen_self_static+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 if test "$cross_compiling" = yes; then :
9970 lt_cv_dlopen_self_static=cross
9971 else
9972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9973 lt_status=$lt_dlunknown
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9975 "configure"
9976 #include "confdefs.h"
9977
9978 #if HAVE_DLFCN_H
9979 #include <dlfcn.h>
9980 #endif
9981
9982 #include <stdio.h>
9983
9984 #ifdef RTLD_GLOBAL
9985 # define LT_DLGLOBAL RTLD_GLOBAL
9986 #else
9987 # ifdef DL_GLOBAL
9988 # define LT_DLGLOBAL DL_GLOBAL
9989 # else
9990 # define LT_DLGLOBAL 0
9991 # endif
9992 #endif
9993
9994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9995 find out it does not work in some platform. */
9996 #ifndef LT_DLLAZY_OR_NOW
9997 # ifdef RTLD_LAZY
9998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9999 # else
10000 # ifdef DL_LAZY
10001 # define LT_DLLAZY_OR_NOW DL_LAZY
10002 # else
10003 # ifdef RTLD_NOW
10004 # define LT_DLLAZY_OR_NOW RTLD_NOW
10005 # else
10006 # ifdef DL_NOW
10007 # define LT_DLLAZY_OR_NOW DL_NOW
10008 # else
10009 # define LT_DLLAZY_OR_NOW 0
10010 # endif
10011 # endif
10012 # endif
10013 # endif
10014 #endif
10015
10016 #ifdef __cplusplus
10017 extern "C" void exit (int);
10018 #endif
10019
10020 void fnord() { int i=42;}
10021 int main ()
10022 {
10023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10024 int status = $lt_dlunknown;
10025
10026 if (self)
10027 {
10028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10030 /* dlclose (self); */
10031 }
10032 else
10033 puts (dlerror ());
10034
10035 exit (status);
10036 }
10037 EOF
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10043 (./conftest; exit; ) >&5 2>/dev/null
10044 lt_status=$?
10045 case x$lt_status in
10046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10049 esac
10050 else :
10051 # compilation failed
10052 lt_cv_dlopen_self_static=no
10053 fi
10054 fi
10055 rm -fr conftest*
10056
10057
10058 fi
10059 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10060 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10061 fi
10062
10063 CPPFLAGS="$save_CPPFLAGS"
10064 LDFLAGS="$save_LDFLAGS"
10065 LIBS="$save_LIBS"
10066 ;;
10067 esac
10068
10069 case $lt_cv_dlopen_self in
10070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10071 *) enable_dlopen_self=unknown ;;
10072 esac
10073
10074 case $lt_cv_dlopen_self_static in
10075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10076 *) enable_dlopen_self_static=unknown ;;
10077 esac
10078 fi
10079
10080
10081 # Report which library types will actually be built
10082 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10083 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10084 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10085 echo "${ECHO_T}$can_build_shared" >&6; }
10086
10087 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10088 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10089 test "$can_build_shared" = "no" && enable_shared=no
10090
10091 # On AIX, shared libraries and static libraries use the same namespace, and
10092 # are all built from PIC.
10093 case $host_os in
10094 aix3*)
10095 test "$enable_shared" = yes && enable_static=no
10096 if test -n "$RANLIB"; then
10097 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10098 postinstall_cmds='$RANLIB $lib'
10099 fi
10100 ;;
10101
10102 aix4* | aix5*)
10103 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10104 test "$enable_shared" = yes && enable_static=no
10105 fi
10106 ;;
10107 esac
10108 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10109 echo "${ECHO_T}$enable_shared" >&6; }
10110
10111 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10112 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10113 # Make sure either enable_shared or enable_static is yes.
10114 test "$enable_shared" = yes || enable_static=yes
10115 { echo "$as_me:$LINENO: result: $enable_static" >&5
10116 echo "${ECHO_T}$enable_static" >&6; }
10117
10118 # The else clause should only fire when bootstrapping the
10119 # libtool distribution, otherwise you forgot to ship ltmain.sh
10120 # with your package, and you will get complaints that there are
10121 # no rules to generate ltmain.sh.
10122 if test -f "$ltmain"; then
10123 # See if we are running on zsh, and set the options which allow our commands through
10124 # without removal of \ escapes.
10125 if test -n "${ZSH_VERSION+set}" ; then
10126 setopt NO_GLOB_SUBST
10127 fi
10128 # Now quote all the things that may contain metacharacters while being
10129 # careful not to overquote the AC_SUBSTed values. We take copies of the
10130 # variables and quote the copies for generation of the libtool script.
10131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10132 SED SHELL STRIP \
10133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10135 deplibs_check_method reload_flag reload_cmds need_locks \
10136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10137 lt_cv_sys_global_symbol_to_c_name_address \
10138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10139 old_postinstall_cmds old_postuninstall_cmds \
10140 compiler \
10141 CC \
10142 LD \
10143 lt_prog_compiler_wl \
10144 lt_prog_compiler_pic \
10145 lt_prog_compiler_static \
10146 lt_prog_compiler_no_builtin_flag \
10147 export_dynamic_flag_spec \
10148 thread_safe_flag_spec \
10149 whole_archive_flag_spec \
10150 enable_shared_with_static_runtimes \
10151 old_archive_cmds \
10152 old_archive_from_new_cmds \
10153 predep_objects \
10154 postdep_objects \
10155 predeps \
10156 postdeps \
10157 compiler_lib_search_path \
10158 archive_cmds \
10159 archive_expsym_cmds \
10160 postinstall_cmds \
10161 postuninstall_cmds \
10162 old_archive_from_expsyms_cmds \
10163 allow_undefined_flag \
10164 no_undefined_flag \
10165 export_symbols_cmds \
10166 hardcode_libdir_flag_spec \
10167 hardcode_libdir_flag_spec_ld \
10168 hardcode_libdir_separator \
10169 hardcode_automatic \
10170 module_cmds \
10171 module_expsym_cmds \
10172 lt_cv_prog_compiler_c_o \
10173 fix_srcfile_path \
10174 exclude_expsyms \
10175 include_expsyms; do
10176
10177 case $var in
10178 old_archive_cmds | \
10179 old_archive_from_new_cmds | \
10180 archive_cmds | \
10181 archive_expsym_cmds | \
10182 module_cmds | \
10183 module_expsym_cmds | \
10184 old_archive_from_expsyms_cmds | \
10185 export_symbols_cmds | \
10186 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10187 postinstall_cmds | postuninstall_cmds | \
10188 old_postinstall_cmds | old_postuninstall_cmds | \
10189 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10190 # Double-quote double-evaled strings.
10191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10192 ;;
10193 *)
10194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10195 ;;
10196 esac
10197 done
10198
10199 case $lt_echo in
10200 *'\$0 --fallback-echo"')
10201 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10202 ;;
10203 esac
10204
10205 cfgfile="${ofile}T"
10206 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10207 $rm -f "$cfgfile"
10208 { echo "$as_me:$LINENO: creating $ofile" >&5
10209 echo "$as_me: creating $ofile" >&6;}
10210
10211 cat <<__EOF__ >> "$cfgfile"
10212 #! $SHELL
10213
10214 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10215 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10216 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10217 #
10218 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10219 # Free Software Foundation, Inc.
10220 #
10221 # This file is part of GNU Libtool:
10222 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10223 #
10224 # This program is free software; you can redistribute it and/or modify
10225 # it under the terms of the GNU General Public License as published by
10226 # the Free Software Foundation; either version 2 of the License, or
10227 # (at your option) any later version.
10228 #
10229 # This program is distributed in the hope that it will be useful, but
10230 # WITHOUT ANY WARRANTY; without even the implied warranty of
10231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10232 # General Public License for more details.
10233 #
10234 # You should have received a copy of the GNU General Public License
10235 # along with this program; if not, write to the Free Software
10236 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10237 #
10238 # As a special exception to the GNU General Public License, if you
10239 # distribute this file as part of a program that contains a
10240 # configuration script generated by Autoconf, you may include it under
10241 # the same distribution terms that you use for the rest of that program.
10242
10243 # A sed program that does not truncate output.
10244 SED=$lt_SED
10245
10246 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10247 Xsed="$SED -e 1s/^X//"
10248
10249 # The HP-UX ksh and POSIX shell print the target directory to stdout
10250 # if CDPATH is set.
10251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10252
10253 # The names of the tagged configurations supported by this script.
10254 available_tags=
10255
10256 # ### BEGIN LIBTOOL CONFIG
10257
10258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10259
10260 # Shell to use when invoking shell scripts.
10261 SHELL=$lt_SHELL
10262
10263 # Whether or not to build shared libraries.
10264 build_libtool_libs=$enable_shared
10265
10266 # Whether or not to build static libraries.
10267 build_old_libs=$enable_static
10268
10269 # Whether or not to add -lc for building shared libraries.
10270 build_libtool_need_lc=$archive_cmds_need_lc
10271
10272 # Whether or not to disallow shared libs when runtime libs are static
10273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10274
10275 # Whether or not to optimize for fast installation.
10276 fast_install=$enable_fast_install
10277
10278 # The host system.
10279 host_alias=$host_alias
10280 host=$host
10281 host_os=$host_os
10282
10283 # The build system.
10284 build_alias=$build_alias
10285 build=$build
10286 build_os=$build_os
10287
10288 # An echo program that does not interpret backslashes.
10289 echo=$lt_echo
10290
10291 # The archiver.
10292 AR=$lt_AR
10293 AR_FLAGS=$lt_AR_FLAGS
10294
10295 # A C compiler.
10296 LTCC=$lt_LTCC
10297
10298 # LTCC compiler flags.
10299 LTCFLAGS=$lt_LTCFLAGS
10300
10301 # A language-specific compiler.
10302 CC=$lt_compiler
10303
10304 # Is the compiler the GNU C compiler?
10305 with_gcc=$GCC
10306
10307 # An ERE matcher.
10308 EGREP=$lt_EGREP
10309
10310 # The linker used to build libraries.
10311 LD=$lt_LD
10312
10313 # Whether we need hard or soft links.
10314 LN_S=$lt_LN_S
10315
10316 # A BSD-compatible nm program.
10317 NM=$lt_NM
10318
10319 # A symbol stripping program
10320 STRIP=$lt_STRIP
10321
10322 # Used to examine libraries when file_magic_cmd begins "file"
10323 MAGIC_CMD=$MAGIC_CMD
10324
10325 # Used on cygwin: DLL creation program.
10326 DLLTOOL="$DLLTOOL"
10327
10328 # Used on cygwin: object dumper.
10329 OBJDUMP="$OBJDUMP"
10330
10331 # Used on cygwin: assembler.
10332 AS="$AS"
10333
10334 # The name of the directory that contains temporary libtool files.
10335 objdir=$objdir
10336
10337 # How to create reloadable object files.
10338 reload_flag=$lt_reload_flag
10339 reload_cmds=$lt_reload_cmds
10340
10341 # How to pass a linker flag through the compiler.
10342 wl=$lt_lt_prog_compiler_wl
10343
10344 # Object file suffix (normally "o").
10345 objext="$ac_objext"
10346
10347 # Old archive suffix (normally "a").
10348 libext="$libext"
10349
10350 # Shared library suffix (normally ".so").
10351 shrext_cmds='$shrext_cmds'
10352
10353 # Executable file suffix (normally "").
10354 exeext="$exeext"
10355
10356 # Additional compiler flags for building library objects.
10357 pic_flag=$lt_lt_prog_compiler_pic
10358 pic_mode=$pic_mode
10359
10360 # What is the maximum length of a command?
10361 max_cmd_len=$lt_cv_sys_max_cmd_len
10362
10363 # Does compiler simultaneously support -c and -o options?
10364 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10365
10366 # Must we lock files when doing compilation?
10367 need_locks=$lt_need_locks
10368
10369 # Do we need the lib prefix for modules?
10370 need_lib_prefix=$need_lib_prefix
10371
10372 # Do we need a version for libraries?
10373 need_version=$need_version
10374
10375 # Whether dlopen is supported.
10376 dlopen_support=$enable_dlopen
10377
10378 # Whether dlopen of programs is supported.
10379 dlopen_self=$enable_dlopen_self
10380
10381 # Whether dlopen of statically linked programs is supported.
10382 dlopen_self_static=$enable_dlopen_self_static
10383
10384 # Compiler flag to prevent dynamic linking.
10385 link_static_flag=$lt_lt_prog_compiler_static
10386
10387 # Compiler flag to turn off builtin functions.
10388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10389
10390 # Compiler flag to allow reflexive dlopens.
10391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10392
10393 # Compiler flag to generate shared objects directly from archives.
10394 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10395
10396 # Compiler flag to generate thread-safe objects.
10397 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10398
10399 # Library versioning type.
10400 version_type=$version_type
10401
10402 # Format of library name prefix.
10403 libname_spec=$lt_libname_spec
10404
10405 # List of archive names. First name is the real one, the rest are links.
10406 # The last name is the one that the linker finds with -lNAME.
10407 library_names_spec=$lt_library_names_spec
10408
10409 # The coded name of the library, if different from the real name.
10410 soname_spec=$lt_soname_spec
10411
10412 # Commands used to build and install an old-style archive.
10413 RANLIB=$lt_RANLIB
10414 old_archive_cmds=$lt_old_archive_cmds
10415 old_postinstall_cmds=$lt_old_postinstall_cmds
10416 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10417
10418 # Create an old-style archive from a shared archive.
10419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10420
10421 # Create a temporary old-style archive to link instead of a shared archive.
10422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10423
10424 # Commands used to build and install a shared archive.
10425 archive_cmds=$lt_archive_cmds
10426 archive_expsym_cmds=$lt_archive_expsym_cmds
10427 postinstall_cmds=$lt_postinstall_cmds
10428 postuninstall_cmds=$lt_postuninstall_cmds
10429
10430 # Commands used to build a loadable module (assumed same as above if empty)
10431 module_cmds=$lt_module_cmds
10432 module_expsym_cmds=$lt_module_expsym_cmds
10433
10434 # Commands to strip libraries.
10435 old_striplib=$lt_old_striplib
10436 striplib=$lt_striplib
10437
10438 # Dependencies to place before the objects being linked to create a
10439 # shared library.
10440 predep_objects=$lt_predep_objects
10441
10442 # Dependencies to place after the objects being linked to create a
10443 # shared library.
10444 postdep_objects=$lt_postdep_objects
10445
10446 # Dependencies to place before the objects being linked to create a
10447 # shared library.
10448 predeps=$lt_predeps
10449
10450 # Dependencies to place after the objects being linked to create a
10451 # shared library.
10452 postdeps=$lt_postdeps
10453
10454 # The library search path used internally by the compiler when linking
10455 # a shared library.
10456 compiler_lib_search_path=$lt_compiler_lib_search_path
10457
10458 # Method to check whether dependent libraries are shared objects.
10459 deplibs_check_method=$lt_deplibs_check_method
10460
10461 # Command to use when deplibs_check_method == file_magic.
10462 file_magic_cmd=$lt_file_magic_cmd
10463
10464 # Flag that allows shared libraries with undefined symbols to be built.
10465 allow_undefined_flag=$lt_allow_undefined_flag
10466
10467 # Flag that forces no undefined symbols.
10468 no_undefined_flag=$lt_no_undefined_flag
10469
10470 # Commands used to finish a libtool library installation in a directory.
10471 finish_cmds=$lt_finish_cmds
10472
10473 # Same as above, but a single script fragment to be evaled but not shown.
10474 finish_eval=$lt_finish_eval
10475
10476 # Take the output of nm and produce a listing of raw symbols and C names.
10477 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10478
10479 # Transform the output of nm in a proper C declaration
10480 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10481
10482 # Transform the output of nm in a C name address pair
10483 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10484
10485 # This is the shared library runtime path variable.
10486 runpath_var=$runpath_var
10487
10488 # This is the shared library path variable.
10489 shlibpath_var=$shlibpath_var
10490
10491 # Is shlibpath searched before the hard-coded library search path?
10492 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10493
10494 # How to hardcode a shared library path into an executable.
10495 hardcode_action=$hardcode_action
10496
10497 # Whether we should hardcode library paths into libraries.
10498 hardcode_into_libs=$hardcode_into_libs
10499
10500 # Flag to hardcode \$libdir into a binary during linking.
10501 # This must work even if \$libdir does not exist.
10502 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10503
10504 # If ld is used when linking, flag to hardcode \$libdir into
10505 # a binary during linking. This must work even if \$libdir does
10506 # not exist.
10507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10508
10509 # Whether we need a single -rpath flag with a separated argument.
10510 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10511
10512 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10513 # resulting binary.
10514 hardcode_direct=$hardcode_direct
10515
10516 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10517 # resulting binary.
10518 hardcode_minus_L=$hardcode_minus_L
10519
10520 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10521 # the resulting binary.
10522 hardcode_shlibpath_var=$hardcode_shlibpath_var
10523
10524 # Set to yes if building a shared library automatically hardcodes DIR into the library
10525 # and all subsequent libraries and executables linked against it.
10526 hardcode_automatic=$hardcode_automatic
10527
10528 # Variables whose values should be saved in libtool wrapper scripts and
10529 # restored at relink time.
10530 variables_saved_for_relink="$variables_saved_for_relink"
10531
10532 # Whether libtool must link a program against all its dependency libraries.
10533 link_all_deplibs=$link_all_deplibs
10534
10535 # Compile-time system search path for libraries
10536 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10537
10538 # Run-time system search path for libraries
10539 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10540
10541 # Fix the shell variable \$srcfile for the compiler.
10542 fix_srcfile_path=$lt_fix_srcfile_path
10543
10544 # Set to yes if exported symbols are required.
10545 always_export_symbols=$always_export_symbols
10546
10547 # The commands to list exported symbols.
10548 export_symbols_cmds=$lt_export_symbols_cmds
10549
10550 # The commands to extract the exported symbol list from a shared archive.
10551 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10552
10553 # Symbols that should not be listed in the preloaded symbols.
10554 exclude_expsyms=$lt_exclude_expsyms
10555
10556 # Symbols that must always be exported.
10557 include_expsyms=$lt_include_expsyms
10558
10559 # ### END LIBTOOL CONFIG
10560
10561 __EOF__
10562
10563
10564 case $host_os in
10565 aix3*)
10566 cat <<\EOF >> "$cfgfile"
10567
10568 # AIX sometimes has problems with the GCC collect2 program. For some
10569 # reason, if we set the COLLECT_NAMES environment variable, the problems
10570 # vanish in a puff of smoke.
10571 if test "X${COLLECT_NAMES+set}" != Xset; then
10572 COLLECT_NAMES=
10573 export COLLECT_NAMES
10574 fi
10575 EOF
10576 ;;
10577 esac
10578
10579 # We use sed instead of cat because bash on DJGPP gets confused if
10580 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10581 # text mode, it properly converts lines to CR/LF. This bash problem
10582 # is reportedly fixed, but why not run on old versions too?
10583 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10584
10585 mv -f "$cfgfile" "$ofile" || \
10586 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10587 chmod +x "$ofile"
10588
10589 else
10590 # If there is no Makefile yet, we rely on a make rule to execute
10591 # `config.status --recheck' to rerun these tests and create the
10592 # libtool script then.
10593 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10594 if test -f "$ltmain_in"; then
10595 test -f Makefile && make "$ltmain"
10596 fi
10597 fi
10598
10599
10600 ac_ext=c
10601 ac_cpp='$CPP $CPPFLAGS'
10602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10605
10606 CC="$lt_save_CC"
10607
10608
10609 # Check whether --with-tags was given.
10610 if test "${with_tags+set}" = set; then
10611 withval=$with_tags; tagnames="$withval"
10612 fi
10613
10614
10615 if test -f "$ltmain" && test -n "$tagnames"; then
10616 if test ! -f "${ofile}"; then
10617 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10618 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10619 fi
10620
10621 if test -z "$LTCC"; then
10622 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10623 if test -z "$LTCC"; then
10624 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10625 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10626 else
10627 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10628 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10629 fi
10630 fi
10631 if test -z "$LTCFLAGS"; then
10632 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10633 fi
10634
10635 # Extract list of available tagged configurations in $ofile.
10636 # Note that this assumes the entire list is on one line.
10637 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10638
10639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10640 for tagname in $tagnames; do
10641 IFS="$lt_save_ifs"
10642 # Check whether tagname contains only valid characters
10643 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10644 "") ;;
10645 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10646 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10647 { (exit 1); exit 1; }; }
10648 ;;
10649 esac
10650
10651 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10652 then
10653 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10654 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10655 { (exit 1); exit 1; }; }
10656 fi
10657
10658 # Update the list of available tags.
10659 if test -n "$tagname"; then
10660 echo appending configuration tag \"$tagname\" to $ofile
10661
10662 case $tagname in
10663 CXX)
10664 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10665 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10666 (test "X$CXX" != "Xg++"))) ; then
10667 ac_ext=cpp
10668 ac_cpp='$CXXCPP $CPPFLAGS'
10669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10672
10673
10674
10675
10676 archive_cmds_need_lc_CXX=no
10677 allow_undefined_flag_CXX=
10678 always_export_symbols_CXX=no
10679 archive_expsym_cmds_CXX=
10680 export_dynamic_flag_spec_CXX=
10681 hardcode_direct_CXX=no
10682 hardcode_libdir_flag_spec_CXX=
10683 hardcode_libdir_flag_spec_ld_CXX=
10684 hardcode_libdir_separator_CXX=
10685 hardcode_minus_L_CXX=no
10686 hardcode_shlibpath_var_CXX=unsupported
10687 hardcode_automatic_CXX=no
10688 module_cmds_CXX=
10689 module_expsym_cmds_CXX=
10690 link_all_deplibs_CXX=unknown
10691 old_archive_cmds_CXX=$old_archive_cmds
10692 no_undefined_flag_CXX=
10693 whole_archive_flag_spec_CXX=
10694 enable_shared_with_static_runtimes_CXX=no
10695
10696 # Dependencies to place before and after the object being linked:
10697 predep_objects_CXX=
10698 postdep_objects_CXX=
10699 predeps_CXX=
10700 postdeps_CXX=
10701 compiler_lib_search_path_CXX=
10702
10703 # Source file extension for C++ test sources.
10704 ac_ext=cpp
10705
10706 # Object file extension for compiled C++ test sources.
10707 objext=o
10708 objext_CXX=$objext
10709
10710 # Code to be used in simple compile tests
10711 lt_simple_compile_test_code="int some_variable = 0;"
10712
10713 # Code to be used in simple link tests
10714 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10715
10716 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10717
10718 # If no C compiler was specified, use CC.
10719 LTCC=${LTCC-"$CC"}
10720
10721 # If no C compiler flags were specified, use CFLAGS.
10722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10723
10724 # Allow CC to be a program name with arguments.
10725 compiler=$CC
10726
10727
10728 # save warnings/boilerplate of simple test code
10729 ac_outfile=conftest.$ac_objext
10730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10732 _lt_compiler_boilerplate=`cat conftest.err`
10733 $rm conftest*
10734
10735 ac_outfile=conftest.$ac_objext
10736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10738 _lt_linker_boilerplate=`cat conftest.err`
10739 $rm conftest*
10740
10741
10742 # Allow CC to be a program name with arguments.
10743 lt_save_CC=$CC
10744 lt_save_LD=$LD
10745 lt_save_GCC=$GCC
10746 GCC=$GXX
10747 lt_save_with_gnu_ld=$with_gnu_ld
10748 lt_save_path_LD=$lt_cv_path_LD
10749 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10750 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10751 else
10752 $as_unset lt_cv_prog_gnu_ld
10753 fi
10754 if test -n "${lt_cv_path_LDCXX+set}"; then
10755 lt_cv_path_LD=$lt_cv_path_LDCXX
10756 else
10757 $as_unset lt_cv_path_LD
10758 fi
10759 test -z "${LDCXX+set}" || LD=$LDCXX
10760 CC=${CXX-"c++"}
10761 compiler=$CC
10762 compiler_CXX=$CC
10763 for cc_temp in $compiler""; do
10764 case $cc_temp in
10765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10767 \-*) ;;
10768 *) break;;
10769 esac
10770 done
10771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10772
10773
10774 # We don't want -fno-exception wen compiling C++ code, so set the
10775 # no_builtin_flag separately
10776 if test "$GXX" = yes; then
10777 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10778 else
10779 lt_prog_compiler_no_builtin_flag_CXX=
10780 fi
10781
10782 if test "$GXX" = yes; then
10783 # Set up default GNU C++ configuration
10784
10785
10786 # Check whether --with-gnu-ld was given.
10787 if test "${with_gnu_ld+set}" = set; then
10788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10789 else
10790 with_gnu_ld=no
10791 fi
10792
10793 ac_prog=ld
10794 if test "$GCC" = yes; then
10795 # Check if gcc -print-prog-name=ld gives a path.
10796 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10797 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10798 case $host in
10799 *-*-mingw*)
10800 # gcc leaves a trailing carriage return which upsets mingw
10801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10802 *)
10803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10804 esac
10805 case $ac_prog in
10806 # Accept absolute paths.
10807 [\\/]* | ?:[\\/]*)
10808 re_direlt='/[^/][^/]*/\.\./'
10809 # Canonicalize the pathname of ld
10810 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10812 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10813 done
10814 test -z "$LD" && LD="$ac_prog"
10815 ;;
10816 "")
10817 # If it fails, then pretend we aren't using GCC.
10818 ac_prog=ld
10819 ;;
10820 *)
10821 # If it is relative, then search for the first ld in PATH.
10822 with_gnu_ld=unknown
10823 ;;
10824 esac
10825 elif test "$with_gnu_ld" = yes; then
10826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10827 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10828 else
10829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10830 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10831 fi
10832 if test "${lt_cv_path_LD+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835 if test -z "$LD"; then
10836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10837 for ac_dir in $PATH; do
10838 IFS="$lt_save_ifs"
10839 test -z "$ac_dir" && ac_dir=.
10840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10841 lt_cv_path_LD="$ac_dir/$ac_prog"
10842 # Check to see if the program is GNU ld. I'd rather use --version,
10843 # but apparently some variants of GNU ld only accept -v.
10844 # Break only if it was the GNU/non-GNU ld that we prefer.
10845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10846 *GNU* | *'with BFD'*)
10847 test "$with_gnu_ld" != no && break
10848 ;;
10849 *)
10850 test "$with_gnu_ld" != yes && break
10851 ;;
10852 esac
10853 fi
10854 done
10855 IFS="$lt_save_ifs"
10856 else
10857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10858 fi
10859 fi
10860
10861 LD="$lt_cv_path_LD"
10862 if test -n "$LD"; then
10863 { echo "$as_me:$LINENO: result: $LD" >&5
10864 echo "${ECHO_T}$LD" >&6; }
10865 else
10866 { echo "$as_me:$LINENO: result: no" >&5
10867 echo "${ECHO_T}no" >&6; }
10868 fi
10869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10871 { (exit 1); exit 1; }; }
10872 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10874 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10878 case `$LD -v 2>&1 </dev/null` in
10879 *GNU* | *'with BFD'*)
10880 lt_cv_prog_gnu_ld=yes
10881 ;;
10882 *)
10883 lt_cv_prog_gnu_ld=no
10884 ;;
10885 esac
10886 fi
10887 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10888 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10889 with_gnu_ld=$lt_cv_prog_gnu_ld
10890
10891
10892
10893 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10894 # archiving commands below assume that GNU ld is being used.
10895 if test "$with_gnu_ld" = yes; then
10896 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10897 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'
10898
10899 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10900 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10901
10902 # If archive_cmds runs LD, not CC, wlarc should be empty
10903 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10904 # investigate it a little bit more. (MM)
10905 wlarc='${wl}'
10906
10907 # ancient GNU ld didn't support --whole-archive et. al.
10908 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10909 grep 'no-whole-archive' > /dev/null; then
10910 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10911 else
10912 whole_archive_flag_spec_CXX=
10913 fi
10914 else
10915 with_gnu_ld=no
10916 wlarc=
10917
10918 # A generic and very simple default shared library creation
10919 # command for GNU C++ for the case where it uses the native
10920 # linker, instead of GNU ld. If possible, this setting should
10921 # overridden to take advantage of the native linker features on
10922 # the platform it is being used on.
10923 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10924 fi
10925
10926 # Commands to make compiler produce verbose output that lists
10927 # what "hidden" libraries, object files and flags are used when
10928 # linking a shared library.
10929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10930
10931 else
10932 GXX=no
10933 with_gnu_ld=no
10934 wlarc=
10935 fi
10936
10937 # PORTME: fill in a description of your system's C++ link characteristics
10938 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10940 ld_shlibs_CXX=yes
10941 case $host_os in
10942 aix3*)
10943 # FIXME: insert proper C++ library support
10944 ld_shlibs_CXX=no
10945 ;;
10946 aix4* | aix5*)
10947 if test "$host_cpu" = ia64; then
10948 # On IA64, the linker does run time linking by default, so we don't
10949 # have to do anything special.
10950 aix_use_runtimelinking=no
10951 exp_sym_flag='-Bexport'
10952 no_entry_flag=""
10953 else
10954 aix_use_runtimelinking=no
10955
10956 # Test if we are trying to use run time linking or normal
10957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10958 # need to do runtime linking.
10959 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10960 for ld_flag in $LDFLAGS; do
10961 case $ld_flag in
10962 *-brtl*)
10963 aix_use_runtimelinking=yes
10964 break
10965 ;;
10966 esac
10967 done
10968 ;;
10969 esac
10970
10971 exp_sym_flag='-bexport'
10972 no_entry_flag='-bnoentry'
10973 fi
10974
10975 # When large executables or shared objects are built, AIX ld can
10976 # have problems creating the table of contents. If linking a library
10977 # or program results in "error TOC overflow" add -mminimal-toc to
10978 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10979 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10980
10981 archive_cmds_CXX=''
10982 hardcode_direct_CXX=yes
10983 hardcode_libdir_separator_CXX=':'
10984 link_all_deplibs_CXX=yes
10985
10986 if test "$GXX" = yes; then
10987 case $host_os in aix4.[012]|aix4.[012].*)
10988 # We only want to do this on AIX 4.2 and lower, the check
10989 # below for broken collect2 doesn't work under 4.3+
10990 collect2name=`${CC} -print-prog-name=collect2`
10991 if test -f "$collect2name" && \
10992 strings "$collect2name" | grep resolve_lib_name >/dev/null
10993 then
10994 # We have reworked collect2
10995 :
10996 else
10997 # We have old collect2
10998 hardcode_direct_CXX=unsupported
10999 # It fails to find uninstalled libraries when the uninstalled
11000 # path is not listed in the libpath. Setting hardcode_minus_L
11001 # to unsupported forces relinking
11002 hardcode_minus_L_CXX=yes
11003 hardcode_libdir_flag_spec_CXX='-L$libdir'
11004 hardcode_libdir_separator_CXX=
11005 fi
11006 ;;
11007 esac
11008 shared_flag='-shared'
11009 if test "$aix_use_runtimelinking" = yes; then
11010 shared_flag="$shared_flag "'${wl}-G'
11011 fi
11012 else
11013 # not using gcc
11014 if test "$host_cpu" = ia64; then
11015 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11016 # chokes on -Wl,-G. The following line is correct:
11017 shared_flag='-G'
11018 else
11019 if test "$aix_use_runtimelinking" = yes; then
11020 shared_flag='${wl}-G'
11021 else
11022 shared_flag='${wl}-bM:SRE'
11023 fi
11024 fi
11025 fi
11026
11027 # It seems that -bexpall does not export symbols beginning with
11028 # underscore (_), so it is better to generate a list of symbols to export.
11029 always_export_symbols_CXX=yes
11030 if test "$aix_use_runtimelinking" = yes; then
11031 # Warning - without using the other runtime loading flags (-brtl),
11032 # -berok will link without error, but may produce a broken library.
11033 allow_undefined_flag_CXX='-berok'
11034 # Determine the default libpath from the value encoded in an empty executable.
11035 cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h. */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041
11042 int
11043 main ()
11044 {
11045
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_cxx_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
11068
11069 lt_aix_libpath_sed='
11070 /Import File Strings/,/^$/ {
11071 /^0/ {
11072 s/^0 *\(.*\)$/\1/
11073 p
11074 }
11075 }'
11076 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11077 # Check for a 64-bit object if we didn't find anything.
11078 if test -z "$aix_libpath"; then
11079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11080 fi
11081 else
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085
11086 fi
11087
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
11090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11091
11092 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11093
11094 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"
11095 else
11096 if test "$host_cpu" = ia64; then
11097 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11098 allow_undefined_flag_CXX="-z nodefs"
11099 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"
11100 else
11101 # Determine the default libpath from the value encoded in an empty executable.
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108
11109 int
11110 main ()
11111 {
11112
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (ac_try="$ac_link"
11119 case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_link") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_cxx_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest$ac_exeext &&
11134 $as_test_x conftest$ac_exeext; then
11135
11136 lt_aix_libpath_sed='
11137 /Import File Strings/,/^$/ {
11138 /^0/ {
11139 s/^0 *\(.*\)$/\1/
11140 p
11141 }
11142 }'
11143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11144 # Check for a 64-bit object if we didn't find anything.
11145 if test -z "$aix_libpath"; then
11146 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11147 fi
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152
11153 fi
11154
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11158
11159 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11160 # Warning - without using the other run time loading flags,
11161 # -berok will link without error, but may produce a broken library.
11162 no_undefined_flag_CXX=' ${wl}-bernotok'
11163 allow_undefined_flag_CXX=' ${wl}-berok'
11164 # Exported symbols can be pulled into shared objects from archives
11165 whole_archive_flag_spec_CXX='$convenience'
11166 archive_cmds_need_lc_CXX=yes
11167 # This is similar to how AIX traditionally builds its shared libraries.
11168 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'
11169 fi
11170 fi
11171 ;;
11172
11173 beos*)
11174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11175 allow_undefined_flag_CXX=unsupported
11176 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11177 # support --undefined. This deserves some investigation. FIXME
11178 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11179 else
11180 ld_shlibs_CXX=no
11181 fi
11182 ;;
11183
11184 chorus*)
11185 case $cc_basename in
11186 *)
11187 # FIXME: insert proper C++ library support
11188 ld_shlibs_CXX=no
11189 ;;
11190 esac
11191 ;;
11192
11193 cygwin* | mingw* | pw32*)
11194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11195 # as there is no search path for DLLs.
11196 hardcode_libdir_flag_spec_CXX='-L$libdir'
11197 allow_undefined_flag_CXX=unsupported
11198 always_export_symbols_CXX=no
11199 enable_shared_with_static_runtimes_CXX=yes
11200
11201 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11202 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'
11203 # If the export-symbols file already is a .def file (1st line
11204 # is EXPORTS), use it as is; otherwise, prepend...
11205 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11206 cp $export_symbols $output_objdir/$soname.def;
11207 else
11208 echo EXPORTS > $output_objdir/$soname.def;
11209 cat $export_symbols >> $output_objdir/$soname.def;
11210 fi~
11211 $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'
11212 else
11213 ld_shlibs_CXX=no
11214 fi
11215 ;;
11216 darwin* | rhapsody*)
11217 case $host_os in
11218 rhapsody* | darwin1.[012])
11219 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11220 ;;
11221 *) # Darwin 1.3 on
11222 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11223 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11224 else
11225 case ${MACOSX_DEPLOYMENT_TARGET} in
11226 10.[012])
11227 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11228 ;;
11229 10.*)
11230 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11231 ;;
11232 esac
11233 fi
11234 ;;
11235 esac
11236 archive_cmds_need_lc_CXX=no
11237 hardcode_direct_CXX=no
11238 hardcode_automatic_CXX=yes
11239 hardcode_shlibpath_var_CXX=unsupported
11240 whole_archive_flag_spec_CXX=''
11241 link_all_deplibs_CXX=yes
11242
11243 if test "$GXX" = yes ; then
11244 lt_int_apple_cc_single_mod=no
11245 output_verbose_link_cmd='echo'
11246 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11247 lt_int_apple_cc_single_mod=yes
11248 fi
11249 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11250 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11251 else
11252 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'
11253 fi
11254 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11256 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11257 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11258 else
11259 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11260 fi
11261 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}'
11262 else
11263 case $cc_basename in
11264 xlc*)
11265 output_verbose_link_cmd='echo'
11266 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'
11267 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11269 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}'
11270 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}'
11271 ;;
11272 *)
11273 ld_shlibs_CXX=no
11274 ;;
11275 esac
11276 fi
11277 ;;
11278
11279 dgux*)
11280 case $cc_basename in
11281 ec++*)
11282 # FIXME: insert proper C++ library support
11283 ld_shlibs_CXX=no
11284 ;;
11285 ghcx*)
11286 # Green Hills C++ Compiler
11287 # FIXME: insert proper C++ library support
11288 ld_shlibs_CXX=no
11289 ;;
11290 *)
11291 # FIXME: insert proper C++ library support
11292 ld_shlibs_CXX=no
11293 ;;
11294 esac
11295 ;;
11296 freebsd[12]*)
11297 # C++ shared libraries reported to be fairly broken before switch to ELF
11298 ld_shlibs_CXX=no
11299 ;;
11300 freebsd-elf*)
11301 archive_cmds_need_lc_CXX=no
11302 ;;
11303 freebsd* | dragonfly*)
11304 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11305 # conventions
11306 ld_shlibs_CXX=yes
11307 ;;
11308 gnu*)
11309 ;;
11310 hpux9*)
11311 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11312 hardcode_libdir_separator_CXX=:
11313 export_dynamic_flag_spec_CXX='${wl}-E'
11314 hardcode_direct_CXX=yes
11315 hardcode_minus_L_CXX=yes # Not in the search PATH,
11316 # but as the default
11317 # location of the library.
11318
11319 case $cc_basename in
11320 CC*)
11321 # FIXME: insert proper C++ library support
11322 ld_shlibs_CXX=no
11323 ;;
11324 aCC*)
11325 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'
11326 # Commands to make compiler produce verbose output that lists
11327 # what "hidden" libraries, object files and flags are used when
11328 # linking a shared library.
11329 #
11330 # There doesn't appear to be a way to prevent this compiler from
11331 # explicitly linking system object files so we need to strip them
11332 # from the output so that they don't get included in the library
11333 # dependencies.
11334 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'
11335 ;;
11336 *)
11337 if test "$GXX" = yes; then
11338 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'
11339 else
11340 # FIXME: insert proper C++ library support
11341 ld_shlibs_CXX=no
11342 fi
11343 ;;
11344 esac
11345 ;;
11346 hpux10*|hpux11*)
11347 if test $with_gnu_ld = no; then
11348 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11350
11351 case $host_cpu in
11352 hppa*64*|ia64*) ;;
11353 *)
11354 export_dynamic_flag_spec_CXX='${wl}-E'
11355 ;;
11356 esac
11357 fi
11358 case $host_cpu in
11359 hppa*64*|ia64*)
11360 hardcode_direct_CXX=no
11361 hardcode_shlibpath_var_CXX=no
11362 ;;
11363 *)
11364 hardcode_direct_CXX=yes
11365 hardcode_minus_L_CXX=yes # Not in the search PATH,
11366 # but as the default
11367 # location of the library.
11368 ;;
11369 esac
11370
11371 case $cc_basename in
11372 CC*)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11375 ;;
11376 aCC*)
11377 case $host_cpu in
11378 hppa*64*)
11379 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11380 ;;
11381 ia64*)
11382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383 ;;
11384 *)
11385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11386 ;;
11387 esac
11388 # Commands to make compiler produce verbose output that lists
11389 # what "hidden" libraries, object files and flags are used when
11390 # linking a shared library.
11391 #
11392 # There doesn't appear to be a way to prevent this compiler from
11393 # explicitly linking system object files so we need to strip them
11394 # from the output so that they don't get included in the library
11395 # dependencies.
11396 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'
11397 ;;
11398 *)
11399 if test "$GXX" = yes; then
11400 if test $with_gnu_ld = no; then
11401 case $host_cpu in
11402 hppa*64*)
11403 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11404 ;;
11405 ia64*)
11406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11407 ;;
11408 *)
11409 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'
11410 ;;
11411 esac
11412 fi
11413 else
11414 # FIXME: insert proper C++ library support
11415 ld_shlibs_CXX=no
11416 fi
11417 ;;
11418 esac
11419 ;;
11420 interix[3-9]*)
11421 hardcode_direct_CXX=no
11422 hardcode_shlibpath_var_CXX=no
11423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11424 export_dynamic_flag_spec_CXX='${wl}-E'
11425 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11426 # Instead, shared libraries are loaded at an image base (0x10000000 by
11427 # default) and relocated if they conflict, which is a slow very memory
11428 # consuming and fragmenting process. To avoid this, we pick a random,
11429 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11430 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11431 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'
11432 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'
11433 ;;
11434 irix5* | irix6*)
11435 case $cc_basename in
11436 CC*)
11437 # SGI C++
11438 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'
11439
11440 # Archives containing C++ object files must be created using
11441 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11442 # necessary to make sure instantiated templates are included
11443 # in the archive.
11444 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11445 ;;
11446 *)
11447 if test "$GXX" = yes; then
11448 if test "$with_gnu_ld" = no; then
11449 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'
11450 else
11451 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'
11452 fi
11453 fi
11454 link_all_deplibs_CXX=yes
11455 ;;
11456 esac
11457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11458 hardcode_libdir_separator_CXX=:
11459 ;;
11460 linux* | k*bsd*-gnu)
11461 case $cc_basename in
11462 KCC*)
11463 # Kuck and Associates, Inc. (KAI) C++ Compiler
11464
11465 # KCC will only create a shared library if the output file
11466 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11467 # to its proper name (with version) after linking.
11468 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'
11469 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'
11470 # Commands to make compiler produce verbose output that lists
11471 # what "hidden" libraries, object files and flags are used when
11472 # linking a shared library.
11473 #
11474 # There doesn't appear to be a way to prevent this compiler from
11475 # explicitly linking system object files so we need to strip them
11476 # from the output so that they don't get included in the library
11477 # dependencies.
11478 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'
11479
11480 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11482
11483 # Archives containing C++ object files must be created using
11484 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11485 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11486 ;;
11487 icpc*)
11488 # Intel C++
11489 with_gnu_ld=yes
11490 # version 8.0 and above of icpc choke on multiply defined symbols
11491 # if we add $predep_objects and $postdep_objects, however 7.1 and
11492 # earlier do not add the objects themselves.
11493 case `$CC -V 2>&1` in
11494 *"Version 7."*)
11495 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496 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'
11497 ;;
11498 *) # Version 8.0 or newer
11499 tmp_idyn=
11500 case $host_cpu in
11501 ia64*) tmp_idyn=' -i_dynamic';;
11502 esac
11503 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 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'
11505 ;;
11506 esac
11507 archive_cmds_need_lc_CXX=no
11508 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11509 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11510 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11511 ;;
11512 pgCC*)
11513 # Portland Group C++ compiler
11514 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11515 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'
11516
11517 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11519 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'
11520 ;;
11521 cxx*)
11522 # Compaq C++
11523 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524 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'
11525
11526 runpath_var=LD_RUN_PATH
11527 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11528 hardcode_libdir_separator_CXX=:
11529
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11533 #
11534 # There doesn't appear to be a way to prevent this compiler from
11535 # explicitly linking system object files so we need to strip them
11536 # from the output so that they don't get included in the library
11537 # dependencies.
11538 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'
11539 ;;
11540 *)
11541 case `$CC -V 2>&1 | sed 5q` in
11542 *Sun\ C*)
11543 # Sun C++ 5.9
11544 no_undefined_flag_CXX=' -zdefs'
11545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11546 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'
11547 hardcode_libdir_flag_spec_CXX='-R$libdir'
11548 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'
11549
11550 # Not sure whether something based on
11551 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11552 # would be better.
11553 output_verbose_link_cmd='echo'
11554
11555 # Archives containing C++ object files must be created using
11556 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11557 # necessary to make sure instantiated templates are included
11558 # in the archive.
11559 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11560 ;;
11561 esac
11562 ;;
11563 esac
11564 ;;
11565 lynxos*)
11566 # FIXME: insert proper C++ library support
11567 ld_shlibs_CXX=no
11568 ;;
11569 m88k*)
11570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11572 ;;
11573 mvs*)
11574 case $cc_basename in
11575 cxx*)
11576 # FIXME: insert proper C++ library support
11577 ld_shlibs_CXX=no
11578 ;;
11579 *)
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 esac
11584 ;;
11585 netbsd*)
11586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11587 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11588 wlarc=
11589 hardcode_libdir_flag_spec_CXX='-R$libdir'
11590 hardcode_direct_CXX=yes
11591 hardcode_shlibpath_var_CXX=no
11592 fi
11593 # Workaround some broken pre-1.5 toolchains
11594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11595 ;;
11596 openbsd2*)
11597 # C++ shared libraries are fairly broken
11598 ld_shlibs_CXX=no
11599 ;;
11600 openbsd*)
11601 if test -f /usr/libexec/ld.so; then
11602 hardcode_direct_CXX=yes
11603 hardcode_shlibpath_var_CXX=no
11604 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11608 export_dynamic_flag_spec_CXX='${wl}-E'
11609 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11610 fi
11611 output_verbose_link_cmd='echo'
11612 else
11613 ld_shlibs_CXX=no
11614 fi
11615 ;;
11616 osf3*)
11617 case $cc_basename in
11618 KCC*)
11619 # Kuck and Associates, Inc. (KAI) C++ Compiler
11620
11621 # KCC will only create a shared library if the output file
11622 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11623 # to its proper name (with version) after linking.
11624 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'
11625
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627 hardcode_libdir_separator_CXX=:
11628
11629 # Archives containing C++ object files must be created using
11630 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11631 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11632
11633 ;;
11634 RCC*)
11635 # Rational C++ 2.4.1
11636 # FIXME: insert proper C++ library support
11637 ld_shlibs_CXX=no
11638 ;;
11639 cxx*)
11640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641 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'
11642
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11645
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 #
11650 # There doesn't appear to be a way to prevent this compiler from
11651 # explicitly linking system object files so we need to strip them
11652 # from the output so that they don't get included in the library
11653 # dependencies.
11654 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'
11655 ;;
11656 *)
11657 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11659 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'
11660
11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11662 hardcode_libdir_separator_CXX=:
11663
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11668
11669 else
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 fi
11673 ;;
11674 esac
11675 ;;
11676 osf4* | osf5*)
11677 case $cc_basename in
11678 KCC*)
11679 # Kuck and Associates, Inc. (KAI) C++ Compiler
11680
11681 # KCC will only create a shared library if the output file
11682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11683 # to its proper name (with version) after linking.
11684 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'
11685
11686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11687 hardcode_libdir_separator_CXX=:
11688
11689 # Archives containing C++ object files must be created using
11690 # the KAI C++ compiler.
11691 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11692 ;;
11693 RCC*)
11694 # Rational C++ 2.4.1
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11697 ;;
11698 cxx*)
11699 allow_undefined_flag_CXX=' -expect_unresolved \*'
11700 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'
11701 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11702 echo "-hidden">> $lib.exp~
11703 $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~
11704 $rm $lib.exp'
11705
11706 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11707 hardcode_libdir_separator_CXX=:
11708
11709 # Commands to make compiler produce verbose output that lists
11710 # what "hidden" libraries, object files and flags are used when
11711 # linking a shared library.
11712 #
11713 # There doesn't appear to be a way to prevent this compiler from
11714 # explicitly linking system object files so we need to strip them
11715 # from the output so that they don't get included in the library
11716 # dependencies.
11717 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'
11718 ;;
11719 *)
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722 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'
11723
11724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725 hardcode_libdir_separator_CXX=:
11726
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11731
11732 else
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 fi
11736 ;;
11737 esac
11738 ;;
11739 psos*)
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743 sunos4*)
11744 case $cc_basename in
11745 CC*)
11746 # Sun C++ 4.x
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 ;;
11750 lcc*)
11751 # Lucid
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11754 ;;
11755 *)
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 esac
11760 ;;
11761 solaris*)
11762 case $cc_basename in
11763 CC*)
11764 # Sun C++ 4.2, 5.x and Centerline C++
11765 archive_cmds_need_lc_CXX=yes
11766 no_undefined_flag_CXX=' -zdefs'
11767 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11768 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11769 $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'
11770
11771 hardcode_libdir_flag_spec_CXX='-R$libdir'
11772 hardcode_shlibpath_var_CXX=no
11773 case $host_os in
11774 solaris2.[0-5] | solaris2.[0-5].*) ;;
11775 *)
11776 # The compiler driver will combine and reorder linker options,
11777 # but understands `-z linker_flag'.
11778 # Supported since Solaris 2.6 (maybe 2.5.1?)
11779 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11780 ;;
11781 esac
11782 link_all_deplibs_CXX=yes
11783
11784 output_verbose_link_cmd='echo'
11785
11786 # Archives containing C++ object files must be created using
11787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11788 # necessary to make sure instantiated templates are included
11789 # in the archive.
11790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11791 ;;
11792 gcx*)
11793 # Green Hills C++ Compiler
11794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11795
11796 # The C++ compiler must be used to create the archive.
11797 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11798 ;;
11799 *)
11800 # GNU C++ compiler with Solaris linker
11801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11802 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11803 if $CC --version | grep -v '^2\.7' > /dev/null; then
11804 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11805 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11806 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11807
11808 # Commands to make compiler produce verbose output that lists
11809 # what "hidden" libraries, object files and flags are used when
11810 # linking a shared library.
11811 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11812 else
11813 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11814 # platform.
11815 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11816 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11817 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11818
11819 # Commands to make compiler produce verbose output that lists
11820 # what "hidden" libraries, object files and flags are used when
11821 # linking a shared library.
11822 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11823 fi
11824
11825 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11826 case $host_os in
11827 solaris2.[0-5] | solaris2.[0-5].*) ;;
11828 *)
11829 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11830 ;;
11831 esac
11832 fi
11833 ;;
11834 esac
11835 ;;
11836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11837 no_undefined_flag_CXX='${wl}-z,text'
11838 archive_cmds_need_lc_CXX=no
11839 hardcode_shlibpath_var_CXX=no
11840 runpath_var='LD_RUN_PATH'
11841
11842 case $cc_basename in
11843 CC*)
11844 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11846 ;;
11847 *)
11848 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11850 ;;
11851 esac
11852 ;;
11853 sysv5* | sco3.2v5* | sco5v6*)
11854 # Note: We can NOT use -z defs as we might desire, because we do not
11855 # link with -lc, and that would cause any symbols used from libc to
11856 # always be unresolved, which means just about no library would
11857 # ever link correctly. If we're not using GNU ld we use -z text
11858 # though, which does catch some bad symbols but isn't as heavy-handed
11859 # as -z defs.
11860 # For security reasons, it is highly recommended that you always
11861 # use absolute paths for naming shared libraries, and exclude the
11862 # DT_RUNPATH tag from executables and libraries. But doing so
11863 # requires that you compile everything twice, which is a pain.
11864 # So that behaviour is only enabled if SCOABSPATH is set to a
11865 # non-empty value in the environment. Most likely only useful for
11866 # creating official distributions of packages.
11867 # This is a hack until libtool officially supports absolute path
11868 # names for shared libraries.
11869 no_undefined_flag_CXX='${wl}-z,text'
11870 allow_undefined_flag_CXX='${wl}-z,nodefs'
11871 archive_cmds_need_lc_CXX=no
11872 hardcode_shlibpath_var_CXX=no
11873 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11874 hardcode_libdir_separator_CXX=':'
11875 link_all_deplibs_CXX=yes
11876 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11877 runpath_var='LD_RUN_PATH'
11878
11879 case $cc_basename in
11880 CC*)
11881 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11883 ;;
11884 *)
11885 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11887 ;;
11888 esac
11889 ;;
11890 tandem*)
11891 case $cc_basename in
11892 NCC*)
11893 # NonStop-UX NCC 3.20
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11896 ;;
11897 *)
11898 # FIXME: insert proper C++ library support
11899 ld_shlibs_CXX=no
11900 ;;
11901 esac
11902 ;;
11903 vxworks*)
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11906 ;;
11907 *)
11908 # FIXME: insert proper C++ library support
11909 ld_shlibs_CXX=no
11910 ;;
11911 esac
11912 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11913 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11914 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915
11916 GCC_CXX="$GXX"
11917 LD_CXX="$LD"
11918
11919
11920 cat > conftest.$ac_ext <<EOF
11921 class Foo
11922 {
11923 public:
11924 Foo (void) { a = 0; }
11925 private:
11926 int a;
11927 };
11928 EOF
11929
11930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931 (eval $ac_compile) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; then
11935 # Parse the compiler output and extract the necessary
11936 # objects, libraries and library flags.
11937
11938 # Sentinel used to keep track of whether or not we are before
11939 # the conftest object file.
11940 pre_test_object_deps_done=no
11941
11942 # The `*' in the case matches for architectures that use `case' in
11943 # $output_verbose_cmd can trigger glob expansion during the loop
11944 # eval without this substitution.
11945 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11946
11947 for p in `eval $output_verbose_link_cmd`; do
11948 case $p in
11949
11950 -L* | -R* | -l*)
11951 # Some compilers place space between "-{L,R}" and the path.
11952 # Remove the space.
11953 if test $p = "-L" \
11954 || test $p = "-R"; then
11955 prev=$p
11956 continue
11957 else
11958 prev=
11959 fi
11960
11961 if test "$pre_test_object_deps_done" = no; then
11962 case $p in
11963 -L* | -R*)
11964 # Internal compiler library paths should come after those
11965 # provided the user. The postdeps already come after the
11966 # user supplied libs so there is no need to process them.
11967 if test -z "$compiler_lib_search_path_CXX"; then
11968 compiler_lib_search_path_CXX="${prev}${p}"
11969 else
11970 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11971 fi
11972 ;;
11973 # The "-l" case would never come before the object being
11974 # linked, so don't bother handling this case.
11975 esac
11976 else
11977 if test -z "$postdeps_CXX"; then
11978 postdeps_CXX="${prev}${p}"
11979 else
11980 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11981 fi
11982 fi
11983 ;;
11984
11985 *.$objext)
11986 # This assumes that the test object file only shows up
11987 # once in the compiler output.
11988 if test "$p" = "conftest.$objext"; then
11989 pre_test_object_deps_done=yes
11990 continue
11991 fi
11992
11993 if test "$pre_test_object_deps_done" = no; then
11994 if test -z "$predep_objects_CXX"; then
11995 predep_objects_CXX="$p"
11996 else
11997 predep_objects_CXX="$predep_objects_CXX $p"
11998 fi
11999 else
12000 if test -z "$postdep_objects_CXX"; then
12001 postdep_objects_CXX="$p"
12002 else
12003 postdep_objects_CXX="$postdep_objects_CXX $p"
12004 fi
12005 fi
12006 ;;
12007
12008 *) ;; # Ignore the rest.
12009
12010 esac
12011 done
12012
12013 # Clean up.
12014 rm -f a.out a.exe
12015 else
12016 echo "libtool.m4: error: problem compiling CXX test program"
12017 fi
12018
12019 $rm -f confest.$objext
12020
12021 # PORTME: override above test on systems where it is broken
12022 case $host_os in
12023 interix[3-9]*)
12024 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12025 # hack all around it, let's just trust "g++" to DTRT.
12026 predep_objects_CXX=
12027 postdep_objects_CXX=
12028 postdeps_CXX=
12029 ;;
12030
12031 linux*)
12032 case `$CC -V 2>&1 | sed 5q` in
12033 *Sun\ C*)
12034 # Sun C++ 5.9
12035 #
12036 # The more standards-conforming stlport4 library is
12037 # incompatible with the Cstd library. Avoid specifying
12038 # it if it's in CXXFLAGS. Ignore libCrun as
12039 # -library=stlport4 depends on it.
12040 case " $CXX $CXXFLAGS " in
12041 *" -library=stlport4 "*)
12042 solaris_use_stlport4=yes
12043 ;;
12044 esac
12045 if test "$solaris_use_stlport4" != yes; then
12046 postdeps_CXX='-library=Cstd -library=Crun'
12047 fi
12048 ;;
12049 esac
12050 ;;
12051
12052 solaris*)
12053 case $cc_basename in
12054 CC*)
12055 # The more standards-conforming stlport4 library is
12056 # incompatible with the Cstd library. Avoid specifying
12057 # it if it's in CXXFLAGS. Ignore libCrun as
12058 # -library=stlport4 depends on it.
12059 case " $CXX $CXXFLAGS " in
12060 *" -library=stlport4 "*)
12061 solaris_use_stlport4=yes
12062 ;;
12063 esac
12064
12065 # Adding this requires a known-good setup of shared libraries for
12066 # Sun compiler versions before 5.6, else PIC objects from an old
12067 # archive will be linked into the output, leading to subtle bugs.
12068 if test "$solaris_use_stlport4" != yes; then
12069 postdeps_CXX='-library=Cstd -library=Crun'
12070 fi
12071 ;;
12072 esac
12073 ;;
12074 esac
12075
12076
12077 case " $postdeps_CXX " in
12078 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12079 esac
12080
12081 lt_prog_compiler_wl_CXX=
12082 lt_prog_compiler_pic_CXX=
12083 lt_prog_compiler_static_CXX=
12084
12085 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12086 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12087
12088 # C++ specific cases for pic, static, wl, etc.
12089 if test "$GXX" = yes; then
12090 lt_prog_compiler_wl_CXX='-Wl,'
12091 lt_prog_compiler_static_CXX='-static'
12092
12093 case $host_os in
12094 aix*)
12095 # All AIX code is PIC.
12096 if test "$host_cpu" = ia64; then
12097 # AIX 5 now supports IA64 processor
12098 lt_prog_compiler_static_CXX='-Bstatic'
12099 fi
12100 ;;
12101 amigaos*)
12102 # FIXME: we need at least 68020 code to build shared libraries, but
12103 # adding the `-m68020' flag to GCC prevents building anything better,
12104 # like `-m68040'.
12105 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12106 ;;
12107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12108 # PIC is the default for these OSes.
12109 ;;
12110 mingw* | cygwin* | os2* | pw32*)
12111 # This hack is so that the source file can tell whether it is being
12112 # built for inclusion in a dll (and should export symbols for example).
12113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12114 # (--disable-auto-import) libraries
12115 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12116 ;;
12117 darwin* | rhapsody*)
12118 # PIC is the default on this platform
12119 # Common symbols not allowed in MH_DYLIB files
12120 lt_prog_compiler_pic_CXX='-fno-common'
12121 ;;
12122 *djgpp*)
12123 # DJGPP does not support shared libraries at all
12124 lt_prog_compiler_pic_CXX=
12125 ;;
12126 interix[3-9]*)
12127 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12128 # Instead, we relocate shared libraries at runtime.
12129 ;;
12130 sysv4*MP*)
12131 if test -d /usr/nec; then
12132 lt_prog_compiler_pic_CXX=-Kconform_pic
12133 fi
12134 ;;
12135 hpux*)
12136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12137 # not for PA HP-UX.
12138 case $host_cpu in
12139 hppa*64*|ia64*)
12140 ;;
12141 *)
12142 lt_prog_compiler_pic_CXX='-fPIC'
12143 ;;
12144 esac
12145 ;;
12146 *)
12147 lt_prog_compiler_pic_CXX='-fPIC'
12148 ;;
12149 esac
12150 else
12151 case $host_os in
12152 aix4* | aix5*)
12153 # All AIX code is PIC.
12154 if test "$host_cpu" = ia64; then
12155 # AIX 5 now supports IA64 processor
12156 lt_prog_compiler_static_CXX='-Bstatic'
12157 else
12158 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12159 fi
12160 ;;
12161 chorus*)
12162 case $cc_basename in
12163 cxch68*)
12164 # Green Hills C++ Compiler
12165 # _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"
12166 ;;
12167 esac
12168 ;;
12169 darwin*)
12170 # PIC is the default on this platform
12171 # Common symbols not allowed in MH_DYLIB files
12172 case $cc_basename in
12173 xlc*)
12174 lt_prog_compiler_pic_CXX='-qnocommon'
12175 lt_prog_compiler_wl_CXX='-Wl,'
12176 ;;
12177 esac
12178 ;;
12179 dgux*)
12180 case $cc_basename in
12181 ec++*)
12182 lt_prog_compiler_pic_CXX='-KPIC'
12183 ;;
12184 ghcx*)
12185 # Green Hills C++ Compiler
12186 lt_prog_compiler_pic_CXX='-pic'
12187 ;;
12188 *)
12189 ;;
12190 esac
12191 ;;
12192 freebsd* | dragonfly*)
12193 # FreeBSD uses GNU C++
12194 ;;
12195 hpux9* | hpux10* | hpux11*)
12196 case $cc_basename in
12197 CC*)
12198 lt_prog_compiler_wl_CXX='-Wl,'
12199 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12200 if test "$host_cpu" != ia64; then
12201 lt_prog_compiler_pic_CXX='+Z'
12202 fi
12203 ;;
12204 aCC*)
12205 lt_prog_compiler_wl_CXX='-Wl,'
12206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12207 case $host_cpu in
12208 hppa*64*|ia64*)
12209 # +Z the default
12210 ;;
12211 *)
12212 lt_prog_compiler_pic_CXX='+Z'
12213 ;;
12214 esac
12215 ;;
12216 *)
12217 ;;
12218 esac
12219 ;;
12220 interix*)
12221 # This is c89, which is MS Visual C++ (no shared libs)
12222 # Anyone wants to do a port?
12223 ;;
12224 irix5* | irix6* | nonstopux*)
12225 case $cc_basename in
12226 CC*)
12227 lt_prog_compiler_wl_CXX='-Wl,'
12228 lt_prog_compiler_static_CXX='-non_shared'
12229 # CC pic flag -KPIC is the default.
12230 ;;
12231 *)
12232 ;;
12233 esac
12234 ;;
12235 linux* | k*bsd*-gnu)
12236 case $cc_basename in
12237 KCC*)
12238 # KAI C++ Compiler
12239 lt_prog_compiler_wl_CXX='--backend -Wl,'
12240 lt_prog_compiler_pic_CXX='-fPIC'
12241 ;;
12242 icpc* | ecpc*)
12243 # Intel C++
12244 lt_prog_compiler_wl_CXX='-Wl,'
12245 lt_prog_compiler_pic_CXX='-KPIC'
12246 lt_prog_compiler_static_CXX='-static'
12247 ;;
12248 pgCC*)
12249 # Portland Group C++ compiler.
12250 lt_prog_compiler_wl_CXX='-Wl,'
12251 lt_prog_compiler_pic_CXX='-fpic'
12252 lt_prog_compiler_static_CXX='-Bstatic'
12253 ;;
12254 cxx*)
12255 # Compaq C++
12256 # Make sure the PIC flag is empty. It appears that all Alpha
12257 # Linux and Compaq Tru64 Unix objects are PIC.
12258 lt_prog_compiler_pic_CXX=
12259 lt_prog_compiler_static_CXX='-non_shared'
12260 ;;
12261 *)
12262 case `$CC -V 2>&1 | sed 5q` in
12263 *Sun\ C*)
12264 # Sun C++ 5.9
12265 lt_prog_compiler_pic_CXX='-KPIC'
12266 lt_prog_compiler_static_CXX='-Bstatic'
12267 lt_prog_compiler_wl_CXX='-Qoption ld '
12268 ;;
12269 esac
12270 ;;
12271 esac
12272 ;;
12273 lynxos*)
12274 ;;
12275 m88k*)
12276 ;;
12277 mvs*)
12278 case $cc_basename in
12279 cxx*)
12280 lt_prog_compiler_pic_CXX='-W c,exportall'
12281 ;;
12282 *)
12283 ;;
12284 esac
12285 ;;
12286 netbsd*)
12287 ;;
12288 osf3* | osf4* | osf5*)
12289 case $cc_basename in
12290 KCC*)
12291 lt_prog_compiler_wl_CXX='--backend -Wl,'
12292 ;;
12293 RCC*)
12294 # Rational C++ 2.4.1
12295 lt_prog_compiler_pic_CXX='-pic'
12296 ;;
12297 cxx*)
12298 # Digital/Compaq C++
12299 lt_prog_compiler_wl_CXX='-Wl,'
12300 # Make sure the PIC flag is empty. It appears that all Alpha
12301 # Linux and Compaq Tru64 Unix objects are PIC.
12302 lt_prog_compiler_pic_CXX=
12303 lt_prog_compiler_static_CXX='-non_shared'
12304 ;;
12305 *)
12306 ;;
12307 esac
12308 ;;
12309 psos*)
12310 ;;
12311 solaris*)
12312 case $cc_basename in
12313 CC*)
12314 # Sun C++ 4.2, 5.x and Centerline C++
12315 lt_prog_compiler_pic_CXX='-KPIC'
12316 lt_prog_compiler_static_CXX='-Bstatic'
12317 lt_prog_compiler_wl_CXX='-Qoption ld '
12318 ;;
12319 gcx*)
12320 # Green Hills C++ Compiler
12321 lt_prog_compiler_pic_CXX='-PIC'
12322 ;;
12323 *)
12324 ;;
12325 esac
12326 ;;
12327 sunos4*)
12328 case $cc_basename in
12329 CC*)
12330 # Sun C++ 4.x
12331 lt_prog_compiler_pic_CXX='-pic'
12332 lt_prog_compiler_static_CXX='-Bstatic'
12333 ;;
12334 lcc*)
12335 # Lucid
12336 lt_prog_compiler_pic_CXX='-pic'
12337 ;;
12338 *)
12339 ;;
12340 esac
12341 ;;
12342 tandem*)
12343 case $cc_basename in
12344 NCC*)
12345 # NonStop-UX NCC 3.20
12346 lt_prog_compiler_pic_CXX='-KPIC'
12347 ;;
12348 *)
12349 ;;
12350 esac
12351 ;;
12352 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12353 case $cc_basename in
12354 CC*)
12355 lt_prog_compiler_wl_CXX='-Wl,'
12356 lt_prog_compiler_pic_CXX='-KPIC'
12357 lt_prog_compiler_static_CXX='-Bstatic'
12358 ;;
12359 esac
12360 ;;
12361 vxworks*)
12362 ;;
12363 *)
12364 lt_prog_compiler_can_build_shared_CXX=no
12365 ;;
12366 esac
12367 fi
12368
12369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12370 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12371
12372 #
12373 # Check to make sure the PIC flag actually works.
12374 #
12375 if test -n "$lt_prog_compiler_pic_CXX"; then
12376
12377 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12379 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 lt_prog_compiler_pic_works_CXX=no
12383 ac_outfile=conftest.$ac_objext
12384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12385 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12386 # Insert the option either (1) after the last *FLAGS variable, or
12387 # (2) before a word containing "conftest.", or (3) at the end.
12388 # Note that $ac_compile itself does not contain backslashes and begins
12389 # with a dollar sign (not a hyphen), so the echo should work correctly.
12390 # The option is referenced via a variable to avoid confusing sed.
12391 lt_compile=`echo "$ac_compile" | $SED \
12392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12394 -e 's:$: $lt_compiler_flag:'`
12395 (eval echo "\"\$as_me:12395: $lt_compile\"" >&5)
12396 (eval "$lt_compile" 2>conftest.err)
12397 ac_status=$?
12398 cat conftest.err >&5
12399 echo "$as_me:12399: \$? = $ac_status" >&5
12400 if (exit $ac_status) && test -s "$ac_outfile"; then
12401 # The compiler can only warn and ignore the option if not recognized
12402 # So say no if there are warnings other than the usual output.
12403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12406 lt_prog_compiler_pic_works_CXX=yes
12407 fi
12408 fi
12409 $rm conftest*
12410
12411 fi
12412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12413 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12414
12415 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12416 case $lt_prog_compiler_pic_CXX in
12417 "" | " "*) ;;
12418 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12419 esac
12420 else
12421 lt_prog_compiler_pic_CXX=
12422 lt_prog_compiler_can_build_shared_CXX=no
12423 fi
12424
12425 fi
12426 case $host_os in
12427 # For platforms which do not support PIC, -DPIC is meaningless:
12428 *djgpp*)
12429 lt_prog_compiler_pic_CXX=
12430 ;;
12431 *)
12432 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12433 ;;
12434 esac
12435
12436 #
12437 # Check to make sure the static flag actually works.
12438 #
12439 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12440 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12441 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12442 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445 lt_prog_compiler_static_works_CXX=no
12446 save_LDFLAGS="$LDFLAGS"
12447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12450 # The linker can only warn and ignore the option if not recognized
12451 # So say no if there are warnings
12452 if test -s conftest.err; then
12453 # Append any errors to the config.log.
12454 cat conftest.err 1>&5
12455 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12457 if diff conftest.exp conftest.er2 >/dev/null; then
12458 lt_prog_compiler_static_works_CXX=yes
12459 fi
12460 else
12461 lt_prog_compiler_static_works_CXX=yes
12462 fi
12463 fi
12464 $rm conftest*
12465 LDFLAGS="$save_LDFLAGS"
12466
12467 fi
12468 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12469 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12470
12471 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12472 :
12473 else
12474 lt_prog_compiler_static_CXX=
12475 fi
12476
12477
12478 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483 lt_cv_prog_compiler_c_o_CXX=no
12484 $rm -r conftest 2>/dev/null
12485 mkdir conftest
12486 cd conftest
12487 mkdir out
12488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12489
12490 lt_compiler_flag="-o out/conftest2.$ac_objext"
12491 # Insert the option either (1) after the last *FLAGS variable, or
12492 # (2) before a word containing "conftest.", or (3) at the end.
12493 # Note that $ac_compile itself does not contain backslashes and begins
12494 # with a dollar sign (not a hyphen), so the echo should work correctly.
12495 lt_compile=`echo "$ac_compile" | $SED \
12496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12498 -e 's:$: $lt_compiler_flag:'`
12499 (eval echo "\"\$as_me:12499: $lt_compile\"" >&5)
12500 (eval "$lt_compile" 2>out/conftest.err)
12501 ac_status=$?
12502 cat out/conftest.err >&5
12503 echo "$as_me:12503: \$? = $ac_status" >&5
12504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12505 then
12506 # The compiler can only warn and ignore the option if not recognized
12507 # So say no if there are warnings
12508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12511 lt_cv_prog_compiler_c_o_CXX=yes
12512 fi
12513 fi
12514 chmod u+w . 2>&5
12515 $rm conftest*
12516 # SGI C++ compiler will create directory out/ii_files/ for
12517 # template instantiation
12518 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12519 $rm out/* && rmdir out
12520 cd ..
12521 rmdir conftest
12522 $rm conftest*
12523
12524 fi
12525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12526 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12527
12528
12529 hard_links="nottested"
12530 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12531 # do not overwrite the value of need_locks provided by the user
12532 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12533 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12534 hard_links=yes
12535 $rm conftest*
12536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12537 touch conftest.a
12538 ln conftest.a conftest.b 2>&5 || hard_links=no
12539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12540 { echo "$as_me:$LINENO: result: $hard_links" >&5
12541 echo "${ECHO_T}$hard_links" >&6; }
12542 if test "$hard_links" = no; then
12543 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12544 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12545 need_locks=warn
12546 fi
12547 else
12548 need_locks=no
12549 fi
12550
12551 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12552 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12553
12554 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12555 case $host_os in
12556 aix4* | aix5*)
12557 # If we're using GNU nm, then we don't want the "-C" option.
12558 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12559 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12560 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'
12561 else
12562 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'
12563 fi
12564 ;;
12565 pw32*)
12566 export_symbols_cmds_CXX="$ltdll_cmds"
12567 ;;
12568 cygwin* | mingw*)
12569 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'
12570 ;;
12571 *)
12572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12573 ;;
12574 esac
12575
12576 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12577 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12578 test "$ld_shlibs_CXX" = no && can_build_shared=no
12579
12580 #
12581 # Do we need to explicitly link libc?
12582 #
12583 case "x$archive_cmds_need_lc_CXX" in
12584 x|xyes)
12585 # Assume -lc should be added
12586 archive_cmds_need_lc_CXX=yes
12587
12588 if test "$enable_shared" = yes && test "$GCC" = yes; then
12589 case $archive_cmds_CXX in
12590 *'~'*)
12591 # FIXME: we may have to deal with multi-command sequences.
12592 ;;
12593 '$CC '*)
12594 # Test whether the compiler implicitly links with -lc since on some
12595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12596 # to ld, don't add -lc before -lgcc.
12597 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12598 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12599 $rm conftest*
12600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12601
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } 2>conftest.err; then
12607 soname=conftest
12608 lib=conftest
12609 libobjs=conftest.$ac_objext
12610 deplibs=
12611 wl=$lt_prog_compiler_wl_CXX
12612 pic_flag=$lt_prog_compiler_pic_CXX
12613 compiler_flags=-v
12614 linker_flags=-v
12615 verstring=
12616 output_objdir=.
12617 libname=conftest
12618 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12619 allow_undefined_flag_CXX=
12620 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12621 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }
12625 then
12626 archive_cmds_need_lc_CXX=no
12627 else
12628 archive_cmds_need_lc_CXX=yes
12629 fi
12630 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12631 else
12632 cat conftest.err 1>&5
12633 fi
12634 $rm conftest*
12635 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12636 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12637 ;;
12638 esac
12639 fi
12640 ;;
12641 esac
12642
12643 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12644 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12645 library_names_spec=
12646 libname_spec='lib$name'
12647 soname_spec=
12648 shrext_cmds=".so"
12649 postinstall_cmds=
12650 postuninstall_cmds=
12651 finish_cmds=
12652 finish_eval=
12653 shlibpath_var=
12654 shlibpath_overrides_runpath=unknown
12655 version_type=none
12656 dynamic_linker="$host_os ld.so"
12657 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12658
12659 need_lib_prefix=unknown
12660 hardcode_into_libs=no
12661
12662 # when you set need_version to no, make sure it does not cause -set_version
12663 # flags to be left without arguments
12664 need_version=unknown
12665
12666 case $host_os in
12667 aix3*)
12668 version_type=linux
12669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12670 shlibpath_var=LIBPATH
12671
12672 # AIX 3 has no versioning support, so we append a major version to the name.
12673 soname_spec='${libname}${release}${shared_ext}$major'
12674 ;;
12675
12676 aix4* | aix5*)
12677 version_type=linux
12678 need_lib_prefix=no
12679 need_version=no
12680 hardcode_into_libs=yes
12681 if test "$host_cpu" = ia64; then
12682 # AIX 5 supports IA64
12683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 else
12686 # With GCC up to 2.95.x, collect2 would create an import file
12687 # for dependence libraries. The import file would start with
12688 # the line `#! .'. This would cause the generated library to
12689 # depend on `.', always an invalid library. This was fixed in
12690 # development snapshots of GCC prior to 3.0.
12691 case $host_os in
12692 aix4 | aix4.[01] | aix4.[01].*)
12693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12694 echo ' yes '
12695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12696 :
12697 else
12698 can_build_shared=no
12699 fi
12700 ;;
12701 esac
12702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12703 # soname into executable. Probably we can add versioning support to
12704 # collect2, so additional links can be useful in future.
12705 if test "$aix_use_runtimelinking" = yes; then
12706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12707 # instead of lib<name>.a to let people know that these are not
12708 # typical AIX shared libraries.
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12710 else
12711 # We preserve .a as extension for shared libraries through AIX4.2
12712 # and later when we are not doing run time linking.
12713 library_names_spec='${libname}${release}.a $libname.a'
12714 soname_spec='${libname}${release}${shared_ext}$major'
12715 fi
12716 shlibpath_var=LIBPATH
12717 fi
12718 ;;
12719
12720 amigaos*)
12721 library_names_spec='$libname.ixlibrary $libname.a'
12722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12723 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'
12724 ;;
12725
12726 beos*)
12727 library_names_spec='${libname}${shared_ext}'
12728 dynamic_linker="$host_os ld.so"
12729 shlibpath_var=LIBRARY_PATH
12730 ;;
12731
12732 bsdi[45]*)
12733 version_type=linux
12734 need_version=no
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12736 soname_spec='${libname}${release}${shared_ext}$major'
12737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12741 # the default ld.so.conf also contains /usr/contrib/lib and
12742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12743 # libtool to hard-code these into programs
12744 ;;
12745
12746 cygwin* | mingw* | pw32*)
12747 version_type=windows
12748 shrext_cmds=".dll"
12749 need_version=no
12750 need_lib_prefix=no
12751
12752 case $GCC,$host_os in
12753 yes,cygwin* | yes,mingw* | yes,pw32*)
12754 library_names_spec='$libname.dll.a'
12755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12756 postinstall_cmds='base_file=`basename \${file}`~
12757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12758 dldir=$destdir/`dirname \$dlpath`~
12759 test -d \$dldir || mkdir -p \$dldir~
12760 $install_prog $dir/$dlname \$dldir/$dlname~
12761 chmod a+x \$dldir/$dlname'
12762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12763 dlpath=$dir/\$dldll~
12764 $rm \$dlpath'
12765 shlibpath_overrides_runpath=yes
12766
12767 case $host_os in
12768 cygwin*)
12769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12772 ;;
12773 mingw*)
12774 # MinGW DLLs use traditional 'lib' prefix
12775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12778 # It is most probably a Windows format PATH printed by
12779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12780 # path with ; separators, and with drive letters. We can handle the
12781 # drive letters (cygwin fileutils understands them), so leave them,
12782 # especially as we might pass files found there to a mingw objdump,
12783 # which wouldn't understand a cygwinified path. Ahh.
12784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12785 else
12786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12787 fi
12788 ;;
12789 pw32*)
12790 # pw32 DLLs use 'pw' prefix rather than 'lib'
12791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12792 ;;
12793 esac
12794 ;;
12795
12796 *)
12797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12798 ;;
12799 esac
12800 dynamic_linker='Win32 ld.exe'
12801 # FIXME: first we should search . and the directory the executable is in
12802 shlibpath_var=PATH
12803 ;;
12804
12805 darwin* | rhapsody*)
12806 dynamic_linker="$host_os dyld"
12807 version_type=darwin
12808 need_lib_prefix=no
12809 need_version=no
12810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12811 soname_spec='${libname}${release}${major}$shared_ext'
12812 shlibpath_overrides_runpath=yes
12813 shlibpath_var=DYLD_LIBRARY_PATH
12814 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12815
12816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12817 ;;
12818
12819 dgux*)
12820 version_type=linux
12821 need_lib_prefix=no
12822 need_version=no
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 ;;
12827
12828 freebsd1*)
12829 dynamic_linker=no
12830 ;;
12831
12832 freebsd* | dragonfly*)
12833 # DragonFly does not have aout. When/if they implement a new
12834 # versioning mechanism, adjust this.
12835 if test -x /usr/bin/objformat; then
12836 objformat=`/usr/bin/objformat`
12837 else
12838 case $host_os in
12839 freebsd[123]*) objformat=aout ;;
12840 *) objformat=elf ;;
12841 esac
12842 fi
12843 version_type=freebsd-$objformat
12844 case $version_type in
12845 freebsd-elf*)
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12847 need_version=no
12848 need_lib_prefix=no
12849 ;;
12850 freebsd-*)
12851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12852 need_version=yes
12853 ;;
12854 esac
12855 shlibpath_var=LD_LIBRARY_PATH
12856 case $host_os in
12857 freebsd2*)
12858 shlibpath_overrides_runpath=yes
12859 ;;
12860 freebsd3.[01]* | freebsdelf3.[01]*)
12861 shlibpath_overrides_runpath=yes
12862 hardcode_into_libs=yes
12863 ;;
12864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12866 shlibpath_overrides_runpath=no
12867 hardcode_into_libs=yes
12868 ;;
12869 *) # from 4.6 on, and DragonFly
12870 shlibpath_overrides_runpath=yes
12871 hardcode_into_libs=yes
12872 ;;
12873 esac
12874 ;;
12875
12876 gnu*)
12877 version_type=linux
12878 need_lib_prefix=no
12879 need_version=no
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 hardcode_into_libs=yes
12884 ;;
12885
12886 hpux9* | hpux10* | hpux11*)
12887 # Give a soname corresponding to the major version so that dld.sl refuses to
12888 # link against other versions.
12889 version_type=sunos
12890 need_lib_prefix=no
12891 need_version=no
12892 case $host_cpu in
12893 ia64*)
12894 shrext_cmds='.so'
12895 hardcode_into_libs=yes
12896 dynamic_linker="$host_os dld.so"
12897 shlibpath_var=LD_LIBRARY_PATH
12898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12900 soname_spec='${libname}${release}${shared_ext}$major'
12901 if test "X$HPUX_IA64_MODE" = X32; then
12902 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12903 else
12904 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12905 fi
12906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12907 ;;
12908 hppa*64*)
12909 shrext_cmds='.sl'
12910 hardcode_into_libs=yes
12911 dynamic_linker="$host_os dld.sl"
12912 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12918 ;;
12919 *)
12920 shrext_cmds='.sl'
12921 dynamic_linker="$host_os dld.sl"
12922 shlibpath_var=SHLIB_PATH
12923 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 ;;
12927 esac
12928 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12929 postinstall_cmds='chmod 555 $lib'
12930 ;;
12931
12932 interix[3-9]*)
12933 version_type=linux
12934 need_lib_prefix=no
12935 need_version=no
12936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12937 soname_spec='${libname}${release}${shared_ext}$major'
12938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12939 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=no
12941 hardcode_into_libs=yes
12942 ;;
12943
12944 irix5* | irix6* | nonstopux*)
12945 case $host_os in
12946 nonstopux*) version_type=nonstopux ;;
12947 *)
12948 if test "$lt_cv_prog_gnu_ld" = yes; then
12949 version_type=linux
12950 else
12951 version_type=irix
12952 fi ;;
12953 esac
12954 need_lib_prefix=no
12955 need_version=no
12956 soname_spec='${libname}${release}${shared_ext}$major'
12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12958 case $host_os in
12959 irix5* | nonstopux*)
12960 libsuff= shlibsuff=
12961 ;;
12962 *)
12963 case $LD in # libtool.m4 will add one of these switches to LD
12964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12965 libsuff= shlibsuff= libmagic=32-bit;;
12966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12967 libsuff=32 shlibsuff=N32 libmagic=N32;;
12968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12970 *) libsuff= shlibsuff= libmagic=never-match;;
12971 esac
12972 ;;
12973 esac
12974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12975 shlibpath_overrides_runpath=no
12976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12978 hardcode_into_libs=yes
12979 ;;
12980
12981 # No shared lib support for Linux oldld, aout, or coff.
12982 linux*oldld* | linux*aout* | linux*coff*)
12983 dynamic_linker=no
12984 ;;
12985
12986 # This must be Linux ELF.
12987 linux* | k*bsd*-gnu)
12988 version_type=linux
12989 need_lib_prefix=no
12990 need_version=no
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12994 shlibpath_var=LD_LIBRARY_PATH
12995 shlibpath_overrides_runpath=no
12996 # This implies no fast_install, which is unacceptable.
12997 # Some rework will be needed to allow for fast_install
12998 # before this can be enabled.
12999 hardcode_into_libs=yes
13000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13002
13003 # Append ld.so.conf contents to the search path
13004 if test -f /etc/ld.so.conf; then
13005 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' ' '`
13006 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13007 fi
13008
13009 # We used to test for /lib/ld.so.1 and disable shared libraries on
13010 # powerpc, because MkLinux only supported shared libraries with the
13011 # GNU dynamic linker. Since this was broken with cross compilers,
13012 # most powerpc-linux boxes support dynamic linking these days and
13013 # people can always --disable-shared, the test was removed, and we
13014 # assume the GNU/Linux dynamic linker is in use.
13015 dynamic_linker='GNU/Linux ld.so'
13016 ;;
13017
13018 netbsd*)
13019 version_type=sunos
13020 need_lib_prefix=no
13021 need_version=no
13022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025 dynamic_linker='NetBSD (a.out) ld.so'
13026 else
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 dynamic_linker='NetBSD ld.elf_so'
13030 fi
13031 shlibpath_var=LD_LIBRARY_PATH
13032 shlibpath_overrides_runpath=yes
13033 hardcode_into_libs=yes
13034 ;;
13035
13036 newsos6)
13037 version_type=linux
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 shlibpath_var=LD_LIBRARY_PATH
13040 shlibpath_overrides_runpath=yes
13041 ;;
13042
13043 nto-qnx*)
13044 version_type=linux
13045 need_lib_prefix=no
13046 need_version=no
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=yes
13051 ;;
13052
13053 openbsd*)
13054 version_type=sunos
13055 sys_lib_dlsearch_path_spec="/usr/lib"
13056 need_lib_prefix=no
13057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13058 case $host_os in
13059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13060 *) need_version=no ;;
13061 esac
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13066 case $host_os in
13067 openbsd2.[89] | openbsd2.[89].*)
13068 shlibpath_overrides_runpath=no
13069 ;;
13070 *)
13071 shlibpath_overrides_runpath=yes
13072 ;;
13073 esac
13074 else
13075 shlibpath_overrides_runpath=yes
13076 fi
13077 ;;
13078
13079 os2*)
13080 libname_spec='$name'
13081 shrext_cmds=".dll"
13082 need_lib_prefix=no
13083 library_names_spec='$libname${shared_ext} $libname.a'
13084 dynamic_linker='OS/2 ld.exe'
13085 shlibpath_var=LIBPATH
13086 ;;
13087
13088 osf3* | osf4* | osf5*)
13089 version_type=osf
13090 need_lib_prefix=no
13091 need_version=no
13092 soname_spec='${libname}${release}${shared_ext}$major'
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13097 ;;
13098
13099 rdos*)
13100 dynamic_linker=no
13101 ;;
13102
13103 solaris*)
13104 version_type=linux
13105 need_lib_prefix=no
13106 need_version=no
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13109 shlibpath_var=LD_LIBRARY_PATH
13110 shlibpath_overrides_runpath=yes
13111 hardcode_into_libs=yes
13112 # ldd complains unless libraries are executable
13113 postinstall_cmds='chmod +x $lib'
13114 ;;
13115
13116 sunos4*)
13117 version_type=sunos
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13120 shlibpath_var=LD_LIBRARY_PATH
13121 shlibpath_overrides_runpath=yes
13122 if test "$with_gnu_ld" = yes; then
13123 need_lib_prefix=no
13124 fi
13125 need_version=yes
13126 ;;
13127
13128 sysv4 | sysv4.3*)
13129 version_type=linux
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 soname_spec='${libname}${release}${shared_ext}$major'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 case $host_vendor in
13134 sni)
13135 shlibpath_overrides_runpath=no
13136 need_lib_prefix=no
13137 export_dynamic_flag_spec='${wl}-Blargedynsym'
13138 runpath_var=LD_RUN_PATH
13139 ;;
13140 siemens)
13141 need_lib_prefix=no
13142 ;;
13143 motorola)
13144 need_lib_prefix=no
13145 need_version=no
13146 shlibpath_overrides_runpath=no
13147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13148 ;;
13149 esac
13150 ;;
13151
13152 sysv4*MP*)
13153 if test -d /usr/nec ;then
13154 version_type=linux
13155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13156 soname_spec='$libname${shared_ext}.$major'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 fi
13159 ;;
13160
13161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162 version_type=freebsd-elf
13163 need_lib_prefix=no
13164 need_version=no
13165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13166 soname_spec='${libname}${release}${shared_ext}$major'
13167 shlibpath_var=LD_LIBRARY_PATH
13168 hardcode_into_libs=yes
13169 if test "$with_gnu_ld" = yes; then
13170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13171 shlibpath_overrides_runpath=no
13172 else
13173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13174 shlibpath_overrides_runpath=yes
13175 case $host_os in
13176 sco3.2v5*)
13177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13178 ;;
13179 esac
13180 fi
13181 sys_lib_dlsearch_path_spec='/usr/lib'
13182 ;;
13183
13184 uts4*)
13185 version_type=linux
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 soname_spec='${libname}${release}${shared_ext}$major'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 ;;
13190
13191 *)
13192 dynamic_linker=no
13193 ;;
13194 esac
13195 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13196 echo "${ECHO_T}$dynamic_linker" >&6; }
13197 test "$dynamic_linker" = no && can_build_shared=no
13198
13199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13200 if test "$GCC" = yes; then
13201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13202 fi
13203
13204 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13205 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13206 hardcode_action_CXX=
13207 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13208 test -n "$runpath_var_CXX" || \
13209 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13210
13211 # We can hardcode non-existant directories.
13212 if test "$hardcode_direct_CXX" != no &&
13213 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13214 # have to relink, otherwise we might link with an installed library
13215 # when we should be linking with a yet-to-be-installed one
13216 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13217 test "$hardcode_minus_L_CXX" != no; then
13218 # Linking always hardcodes the temporary library directory.
13219 hardcode_action_CXX=relink
13220 else
13221 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13222 hardcode_action_CXX=immediate
13223 fi
13224 else
13225 # We cannot hardcode anything, or else we can only hardcode existing
13226 # directories.
13227 hardcode_action_CXX=unsupported
13228 fi
13229 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13230 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13231
13232 if test "$hardcode_action_CXX" = relink; then
13233 # Fast installation is not supported
13234 enable_fast_install=no
13235 elif test "$shlibpath_overrides_runpath" = yes ||
13236 test "$enable_shared" = no; then
13237 # Fast installation is not necessary
13238 enable_fast_install=needless
13239 fi
13240
13241
13242 # The else clause should only fire when bootstrapping the
13243 # libtool distribution, otherwise you forgot to ship ltmain.sh
13244 # with your package, and you will get complaints that there are
13245 # no rules to generate ltmain.sh.
13246 if test -f "$ltmain"; then
13247 # See if we are running on zsh, and set the options which allow our commands through
13248 # without removal of \ escapes.
13249 if test -n "${ZSH_VERSION+set}" ; then
13250 setopt NO_GLOB_SUBST
13251 fi
13252 # Now quote all the things that may contain metacharacters while being
13253 # careful not to overquote the AC_SUBSTed values. We take copies of the
13254 # variables and quote the copies for generation of the libtool script.
13255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13256 SED SHELL STRIP \
13257 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13258 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13259 deplibs_check_method reload_flag reload_cmds need_locks \
13260 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13261 lt_cv_sys_global_symbol_to_c_name_address \
13262 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13263 old_postinstall_cmds old_postuninstall_cmds \
13264 compiler_CXX \
13265 CC_CXX \
13266 LD_CXX \
13267 lt_prog_compiler_wl_CXX \
13268 lt_prog_compiler_pic_CXX \
13269 lt_prog_compiler_static_CXX \
13270 lt_prog_compiler_no_builtin_flag_CXX \
13271 export_dynamic_flag_spec_CXX \
13272 thread_safe_flag_spec_CXX \
13273 whole_archive_flag_spec_CXX \
13274 enable_shared_with_static_runtimes_CXX \
13275 old_archive_cmds_CXX \
13276 old_archive_from_new_cmds_CXX \
13277 predep_objects_CXX \
13278 postdep_objects_CXX \
13279 predeps_CXX \
13280 postdeps_CXX \
13281 compiler_lib_search_path_CXX \
13282 archive_cmds_CXX \
13283 archive_expsym_cmds_CXX \
13284 postinstall_cmds_CXX \
13285 postuninstall_cmds_CXX \
13286 old_archive_from_expsyms_cmds_CXX \
13287 allow_undefined_flag_CXX \
13288 no_undefined_flag_CXX \
13289 export_symbols_cmds_CXX \
13290 hardcode_libdir_flag_spec_CXX \
13291 hardcode_libdir_flag_spec_ld_CXX \
13292 hardcode_libdir_separator_CXX \
13293 hardcode_automatic_CXX \
13294 module_cmds_CXX \
13295 module_expsym_cmds_CXX \
13296 lt_cv_prog_compiler_c_o_CXX \
13297 fix_srcfile_path_CXX \
13298 exclude_expsyms_CXX \
13299 include_expsyms_CXX; do
13300
13301 case $var in
13302 old_archive_cmds_CXX | \
13303 old_archive_from_new_cmds_CXX | \
13304 archive_cmds_CXX | \
13305 archive_expsym_cmds_CXX | \
13306 module_cmds_CXX | \
13307 module_expsym_cmds_CXX | \
13308 old_archive_from_expsyms_cmds_CXX | \
13309 export_symbols_cmds_CXX | \
13310 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13311 postinstall_cmds | postuninstall_cmds | \
13312 old_postinstall_cmds | old_postuninstall_cmds | \
13313 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13314 # Double-quote double-evaled strings.
13315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13316 ;;
13317 *)
13318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13319 ;;
13320 esac
13321 done
13322
13323 case $lt_echo in
13324 *'\$0 --fallback-echo"')
13325 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13326 ;;
13327 esac
13328
13329 cfgfile="$ofile"
13330
13331 cat <<__EOF__ >> "$cfgfile"
13332 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13333
13334 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13335
13336 # Shell to use when invoking shell scripts.
13337 SHELL=$lt_SHELL
13338
13339 # Whether or not to build shared libraries.
13340 build_libtool_libs=$enable_shared
13341
13342 # Whether or not to build static libraries.
13343 build_old_libs=$enable_static
13344
13345 # Whether or not to add -lc for building shared libraries.
13346 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13347
13348 # Whether or not to disallow shared libs when runtime libs are static
13349 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13350
13351 # Whether or not to optimize for fast installation.
13352 fast_install=$enable_fast_install
13353
13354 # The host system.
13355 host_alias=$host_alias
13356 host=$host
13357 host_os=$host_os
13358
13359 # The build system.
13360 build_alias=$build_alias
13361 build=$build
13362 build_os=$build_os
13363
13364 # An echo program that does not interpret backslashes.
13365 echo=$lt_echo
13366
13367 # The archiver.
13368 AR=$lt_AR
13369 AR_FLAGS=$lt_AR_FLAGS
13370
13371 # A C compiler.
13372 LTCC=$lt_LTCC
13373
13374 # LTCC compiler flags.
13375 LTCFLAGS=$lt_LTCFLAGS
13376
13377 # A language-specific compiler.
13378 CC=$lt_compiler_CXX
13379
13380 # Is the compiler the GNU C compiler?
13381 with_gcc=$GCC_CXX
13382
13383 # An ERE matcher.
13384 EGREP=$lt_EGREP
13385
13386 # The linker used to build libraries.
13387 LD=$lt_LD_CXX
13388
13389 # Whether we need hard or soft links.
13390 LN_S=$lt_LN_S
13391
13392 # A BSD-compatible nm program.
13393 NM=$lt_NM
13394
13395 # A symbol stripping program
13396 STRIP=$lt_STRIP
13397
13398 # Used to examine libraries when file_magic_cmd begins "file"
13399 MAGIC_CMD=$MAGIC_CMD
13400
13401 # Used on cygwin: DLL creation program.
13402 DLLTOOL="$DLLTOOL"
13403
13404 # Used on cygwin: object dumper.
13405 OBJDUMP="$OBJDUMP"
13406
13407 # Used on cygwin: assembler.
13408 AS="$AS"
13409
13410 # The name of the directory that contains temporary libtool files.
13411 objdir=$objdir
13412
13413 # How to create reloadable object files.
13414 reload_flag=$lt_reload_flag
13415 reload_cmds=$lt_reload_cmds
13416
13417 # How to pass a linker flag through the compiler.
13418 wl=$lt_lt_prog_compiler_wl_CXX
13419
13420 # Object file suffix (normally "o").
13421 objext="$ac_objext"
13422
13423 # Old archive suffix (normally "a").
13424 libext="$libext"
13425
13426 # Shared library suffix (normally ".so").
13427 shrext_cmds='$shrext_cmds'
13428
13429 # Executable file suffix (normally "").
13430 exeext="$exeext"
13431
13432 # Additional compiler flags for building library objects.
13433 pic_flag=$lt_lt_prog_compiler_pic_CXX
13434 pic_mode=$pic_mode
13435
13436 # What is the maximum length of a command?
13437 max_cmd_len=$lt_cv_sys_max_cmd_len
13438
13439 # Does compiler simultaneously support -c and -o options?
13440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13441
13442 # Must we lock files when doing compilation?
13443 need_locks=$lt_need_locks
13444
13445 # Do we need the lib prefix for modules?
13446 need_lib_prefix=$need_lib_prefix
13447
13448 # Do we need a version for libraries?
13449 need_version=$need_version
13450
13451 # Whether dlopen is supported.
13452 dlopen_support=$enable_dlopen
13453
13454 # Whether dlopen of programs is supported.
13455 dlopen_self=$enable_dlopen_self
13456
13457 # Whether dlopen of statically linked programs is supported.
13458 dlopen_self_static=$enable_dlopen_self_static
13459
13460 # Compiler flag to prevent dynamic linking.
13461 link_static_flag=$lt_lt_prog_compiler_static_CXX
13462
13463 # Compiler flag to turn off builtin functions.
13464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13465
13466 # Compiler flag to allow reflexive dlopens.
13467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13468
13469 # Compiler flag to generate shared objects directly from archives.
13470 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13471
13472 # Compiler flag to generate thread-safe objects.
13473 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13474
13475 # Library versioning type.
13476 version_type=$version_type
13477
13478 # Format of library name prefix.
13479 libname_spec=$lt_libname_spec
13480
13481 # List of archive names. First name is the real one, the rest are links.
13482 # The last name is the one that the linker finds with -lNAME.
13483 library_names_spec=$lt_library_names_spec
13484
13485 # The coded name of the library, if different from the real name.
13486 soname_spec=$lt_soname_spec
13487
13488 # Commands used to build and install an old-style archive.
13489 RANLIB=$lt_RANLIB
13490 old_archive_cmds=$lt_old_archive_cmds_CXX
13491 old_postinstall_cmds=$lt_old_postinstall_cmds
13492 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13493
13494 # Create an old-style archive from a shared archive.
13495 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13496
13497 # Create a temporary old-style archive to link instead of a shared archive.
13498 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13499
13500 # Commands used to build and install a shared archive.
13501 archive_cmds=$lt_archive_cmds_CXX
13502 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13503 postinstall_cmds=$lt_postinstall_cmds
13504 postuninstall_cmds=$lt_postuninstall_cmds
13505
13506 # Commands used to build a loadable module (assumed same as above if empty)
13507 module_cmds=$lt_module_cmds_CXX
13508 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13509
13510 # Commands to strip libraries.
13511 old_striplib=$lt_old_striplib
13512 striplib=$lt_striplib
13513
13514 # Dependencies to place before the objects being linked to create a
13515 # shared library.
13516 predep_objects=$lt_predep_objects_CXX
13517
13518 # Dependencies to place after the objects being linked to create a
13519 # shared library.
13520 postdep_objects=$lt_postdep_objects_CXX
13521
13522 # Dependencies to place before the objects being linked to create a
13523 # shared library.
13524 predeps=$lt_predeps_CXX
13525
13526 # Dependencies to place after the objects being linked to create a
13527 # shared library.
13528 postdeps=$lt_postdeps_CXX
13529
13530 # The library search path used internally by the compiler when linking
13531 # a shared library.
13532 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13533
13534 # Method to check whether dependent libraries are shared objects.
13535 deplibs_check_method=$lt_deplibs_check_method
13536
13537 # Command to use when deplibs_check_method == file_magic.
13538 file_magic_cmd=$lt_file_magic_cmd
13539
13540 # Flag that allows shared libraries with undefined symbols to be built.
13541 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13542
13543 # Flag that forces no undefined symbols.
13544 no_undefined_flag=$lt_no_undefined_flag_CXX
13545
13546 # Commands used to finish a libtool library installation in a directory.
13547 finish_cmds=$lt_finish_cmds
13548
13549 # Same as above, but a single script fragment to be evaled but not shown.
13550 finish_eval=$lt_finish_eval
13551
13552 # Take the output of nm and produce a listing of raw symbols and C names.
13553 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13554
13555 # Transform the output of nm in a proper C declaration
13556 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13557
13558 # Transform the output of nm in a C name address pair
13559 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13560
13561 # This is the shared library runtime path variable.
13562 runpath_var=$runpath_var
13563
13564 # This is the shared library path variable.
13565 shlibpath_var=$shlibpath_var
13566
13567 # Is shlibpath searched before the hard-coded library search path?
13568 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13569
13570 # How to hardcode a shared library path into an executable.
13571 hardcode_action=$hardcode_action_CXX
13572
13573 # Whether we should hardcode library paths into libraries.
13574 hardcode_into_libs=$hardcode_into_libs
13575
13576 # Flag to hardcode \$libdir into a binary during linking.
13577 # This must work even if \$libdir does not exist.
13578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13579
13580 # If ld is used when linking, flag to hardcode \$libdir into
13581 # a binary during linking. This must work even if \$libdir does
13582 # not exist.
13583 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13584
13585 # Whether we need a single -rpath flag with a separated argument.
13586 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13587
13588 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13589 # resulting binary.
13590 hardcode_direct=$hardcode_direct_CXX
13591
13592 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13593 # resulting binary.
13594 hardcode_minus_L=$hardcode_minus_L_CXX
13595
13596 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13597 # the resulting binary.
13598 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13599
13600 # Set to yes if building a shared library automatically hardcodes DIR into the library
13601 # and all subsequent libraries and executables linked against it.
13602 hardcode_automatic=$hardcode_automatic_CXX
13603
13604 # Variables whose values should be saved in libtool wrapper scripts and
13605 # restored at relink time.
13606 variables_saved_for_relink="$variables_saved_for_relink"
13607
13608 # Whether libtool must link a program against all its dependency libraries.
13609 link_all_deplibs=$link_all_deplibs_CXX
13610
13611 # Compile-time system search path for libraries
13612 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13613
13614 # Run-time system search path for libraries
13615 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13616
13617 # Fix the shell variable \$srcfile for the compiler.
13618 fix_srcfile_path=$lt_fix_srcfile_path
13619
13620 # Set to yes if exported symbols are required.
13621 always_export_symbols=$always_export_symbols_CXX
13622
13623 # The commands to list exported symbols.
13624 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13625
13626 # The commands to extract the exported symbol list from a shared archive.
13627 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13628
13629 # Symbols that should not be listed in the preloaded symbols.
13630 exclude_expsyms=$lt_exclude_expsyms_CXX
13631
13632 # Symbols that must always be exported.
13633 include_expsyms=$lt_include_expsyms_CXX
13634
13635 # ### END LIBTOOL TAG CONFIG: $tagname
13636
13637 __EOF__
13638
13639
13640 else
13641 # If there is no Makefile yet, we rely on a make rule to execute
13642 # `config.status --recheck' to rerun these tests and create the
13643 # libtool script then.
13644 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13645 if test -f "$ltmain_in"; then
13646 test -f Makefile && make "$ltmain"
13647 fi
13648 fi
13649
13650
13651 ac_ext=c
13652 ac_cpp='$CPP $CPPFLAGS'
13653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13656
13657 CC=$lt_save_CC
13658 LDCXX=$LD
13659 LD=$lt_save_LD
13660 GCC=$lt_save_GCC
13661 with_gnu_ldcxx=$with_gnu_ld
13662 with_gnu_ld=$lt_save_with_gnu_ld
13663 lt_cv_path_LDCXX=$lt_cv_path_LD
13664 lt_cv_path_LD=$lt_save_path_LD
13665 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13666 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13667
13668 else
13669 tagname=""
13670 fi
13671 ;;
13672
13673 F77)
13674 if test -n "$F77" && test "X$F77" != "Xno"; then
13675
13676 ac_ext=f
13677 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13678 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13679 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13680
13681
13682 archive_cmds_need_lc_F77=no
13683 allow_undefined_flag_F77=
13684 always_export_symbols_F77=no
13685 archive_expsym_cmds_F77=
13686 export_dynamic_flag_spec_F77=
13687 hardcode_direct_F77=no
13688 hardcode_libdir_flag_spec_F77=
13689 hardcode_libdir_flag_spec_ld_F77=
13690 hardcode_libdir_separator_F77=
13691 hardcode_minus_L_F77=no
13692 hardcode_automatic_F77=no
13693 module_cmds_F77=
13694 module_expsym_cmds_F77=
13695 link_all_deplibs_F77=unknown
13696 old_archive_cmds_F77=$old_archive_cmds
13697 no_undefined_flag_F77=
13698 whole_archive_flag_spec_F77=
13699 enable_shared_with_static_runtimes_F77=no
13700
13701 # Source file extension for f77 test sources.
13702 ac_ext=f
13703
13704 # Object file extension for compiled f77 test sources.
13705 objext=o
13706 objext_F77=$objext
13707
13708 # Code to be used in simple compile tests
13709 lt_simple_compile_test_code="\
13710 subroutine t
13711 return
13712 end
13713 "
13714
13715 # Code to be used in simple link tests
13716 lt_simple_link_test_code="\
13717 program t
13718 end
13719 "
13720
13721 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13722
13723 # If no C compiler was specified, use CC.
13724 LTCC=${LTCC-"$CC"}
13725
13726 # If no C compiler flags were specified, use CFLAGS.
13727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13728
13729 # Allow CC to be a program name with arguments.
13730 compiler=$CC
13731
13732
13733 # save warnings/boilerplate of simple test code
13734 ac_outfile=conftest.$ac_objext
13735 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13736 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13737 _lt_compiler_boilerplate=`cat conftest.err`
13738 $rm conftest*
13739
13740 ac_outfile=conftest.$ac_objext
13741 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13742 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13743 _lt_linker_boilerplate=`cat conftest.err`
13744 $rm conftest*
13745
13746
13747 # Allow CC to be a program name with arguments.
13748 lt_save_CC="$CC"
13749 CC=${F77-"f77"}
13750 compiler=$CC
13751 compiler_F77=$CC
13752 for cc_temp in $compiler""; do
13753 case $cc_temp in
13754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13756 \-*) ;;
13757 *) break;;
13758 esac
13759 done
13760 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13761
13762
13763 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13764 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13765 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13766 echo "${ECHO_T}$can_build_shared" >&6; }
13767
13768 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13769 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13770 test "$can_build_shared" = "no" && enable_shared=no
13771
13772 # On AIX, shared libraries and static libraries use the same namespace, and
13773 # are all built from PIC.
13774 case $host_os in
13775 aix3*)
13776 test "$enable_shared" = yes && enable_static=no
13777 if test -n "$RANLIB"; then
13778 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13779 postinstall_cmds='$RANLIB $lib'
13780 fi
13781 ;;
13782 aix4* | aix5*)
13783 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13784 test "$enable_shared" = yes && enable_static=no
13785 fi
13786 ;;
13787 esac
13788 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13789 echo "${ECHO_T}$enable_shared" >&6; }
13790
13791 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13792 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13793 # Make sure either enable_shared or enable_static is yes.
13794 test "$enable_shared" = yes || enable_static=yes
13795 { echo "$as_me:$LINENO: result: $enable_static" >&5
13796 echo "${ECHO_T}$enable_static" >&6; }
13797
13798 GCC_F77="$G77"
13799 LD_F77="$LD"
13800
13801 lt_prog_compiler_wl_F77=
13802 lt_prog_compiler_pic_F77=
13803 lt_prog_compiler_static_F77=
13804
13805 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13806 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13807
13808 if test "$GCC" = yes; then
13809 lt_prog_compiler_wl_F77='-Wl,'
13810 lt_prog_compiler_static_F77='-static'
13811
13812 case $host_os in
13813 aix*)
13814 # All AIX code is PIC.
13815 if test "$host_cpu" = ia64; then
13816 # AIX 5 now supports IA64 processor
13817 lt_prog_compiler_static_F77='-Bstatic'
13818 fi
13819 ;;
13820
13821 amigaos*)
13822 # FIXME: we need at least 68020 code to build shared libraries, but
13823 # adding the `-m68020' flag to GCC prevents building anything better,
13824 # like `-m68040'.
13825 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13826 ;;
13827
13828 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13829 # PIC is the default for these OSes.
13830 ;;
13831
13832 mingw* | cygwin* | pw32* | os2*)
13833 # This hack is so that the source file can tell whether it is being
13834 # built for inclusion in a dll (and should export symbols for example).
13835 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13836 # (--disable-auto-import) libraries
13837 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13838 ;;
13839
13840 darwin* | rhapsody*)
13841 # PIC is the default on this platform
13842 # Common symbols not allowed in MH_DYLIB files
13843 lt_prog_compiler_pic_F77='-fno-common'
13844 ;;
13845
13846 interix[3-9]*)
13847 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13848 # Instead, we relocate shared libraries at runtime.
13849 ;;
13850
13851 msdosdjgpp*)
13852 # Just because we use GCC doesn't mean we suddenly get shared libraries
13853 # on systems that don't support them.
13854 lt_prog_compiler_can_build_shared_F77=no
13855 enable_shared=no
13856 ;;
13857
13858 sysv4*MP*)
13859 if test -d /usr/nec; then
13860 lt_prog_compiler_pic_F77=-Kconform_pic
13861 fi
13862 ;;
13863
13864 hpux*)
13865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13866 # not for PA HP-UX.
13867 case $host_cpu in
13868 hppa*64*|ia64*)
13869 # +Z the default
13870 ;;
13871 *)
13872 lt_prog_compiler_pic_F77='-fPIC'
13873 ;;
13874 esac
13875 ;;
13876
13877 *)
13878 lt_prog_compiler_pic_F77='-fPIC'
13879 ;;
13880 esac
13881 else
13882 # PORTME Check for flag to pass linker flags through the system compiler.
13883 case $host_os in
13884 aix*)
13885 lt_prog_compiler_wl_F77='-Wl,'
13886 if test "$host_cpu" = ia64; then
13887 # AIX 5 now supports IA64 processor
13888 lt_prog_compiler_static_F77='-Bstatic'
13889 else
13890 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13891 fi
13892 ;;
13893 darwin*)
13894 # PIC is the default on this platform
13895 # Common symbols not allowed in MH_DYLIB files
13896 case $cc_basename in
13897 xlc*)
13898 lt_prog_compiler_pic_F77='-qnocommon'
13899 lt_prog_compiler_wl_F77='-Wl,'
13900 ;;
13901 esac
13902 ;;
13903
13904 mingw* | cygwin* | pw32* | os2*)
13905 # This hack is so that the source file can tell whether it is being
13906 # built for inclusion in a dll (and should export symbols for example).
13907 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13908 ;;
13909
13910 hpux9* | hpux10* | hpux11*)
13911 lt_prog_compiler_wl_F77='-Wl,'
13912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13913 # not for PA HP-UX.
13914 case $host_cpu in
13915 hppa*64*|ia64*)
13916 # +Z the default
13917 ;;
13918 *)
13919 lt_prog_compiler_pic_F77='+Z'
13920 ;;
13921 esac
13922 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13923 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13924 ;;
13925
13926 irix5* | irix6* | nonstopux*)
13927 lt_prog_compiler_wl_F77='-Wl,'
13928 # PIC (with -KPIC) is the default.
13929 lt_prog_compiler_static_F77='-non_shared'
13930 ;;
13931
13932 newsos6)
13933 lt_prog_compiler_pic_F77='-KPIC'
13934 lt_prog_compiler_static_F77='-Bstatic'
13935 ;;
13936
13937 linux* | k*bsd*-gnu)
13938 case $cc_basename in
13939 icc* | ecc*)
13940 lt_prog_compiler_wl_F77='-Wl,'
13941 lt_prog_compiler_pic_F77='-KPIC'
13942 lt_prog_compiler_static_F77='-static'
13943 ;;
13944 pgcc* | pgf77* | pgf90* | pgf95*)
13945 # Portland Group compilers (*not* the Pentium gcc compiler,
13946 # which looks to be a dead project)
13947 lt_prog_compiler_wl_F77='-Wl,'
13948 lt_prog_compiler_pic_F77='-fpic'
13949 lt_prog_compiler_static_F77='-Bstatic'
13950 ;;
13951 ccc*)
13952 lt_prog_compiler_wl_F77='-Wl,'
13953 # All Alpha code is PIC.
13954 lt_prog_compiler_static_F77='-non_shared'
13955 ;;
13956 *)
13957 case `$CC -V 2>&1 | sed 5q` in
13958 *Sun\ C*)
13959 # Sun C 5.9
13960 lt_prog_compiler_pic_F77='-KPIC'
13961 lt_prog_compiler_static_F77='-Bstatic'
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 ;;
13964 *Sun\ F*)
13965 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13966 lt_prog_compiler_pic_F77='-KPIC'
13967 lt_prog_compiler_static_F77='-Bstatic'
13968 lt_prog_compiler_wl_F77=''
13969 ;;
13970 esac
13971 ;;
13972 esac
13973 ;;
13974
13975 osf3* | osf4* | osf5*)
13976 lt_prog_compiler_wl_F77='-Wl,'
13977 # All OSF/1 code is PIC.
13978 lt_prog_compiler_static_F77='-non_shared'
13979 ;;
13980
13981 rdos*)
13982 lt_prog_compiler_static_F77='-non_shared'
13983 ;;
13984
13985 solaris*)
13986 lt_prog_compiler_pic_F77='-KPIC'
13987 lt_prog_compiler_static_F77='-Bstatic'
13988 case $cc_basename in
13989 f77* | f90* | f95*)
13990 lt_prog_compiler_wl_F77='-Qoption ld ';;
13991 *)
13992 lt_prog_compiler_wl_F77='-Wl,';;
13993 esac
13994 ;;
13995
13996 sunos4*)
13997 lt_prog_compiler_wl_F77='-Qoption ld '
13998 lt_prog_compiler_pic_F77='-PIC'
13999 lt_prog_compiler_static_F77='-Bstatic'
14000 ;;
14001
14002 sysv4 | sysv4.2uw2* | sysv4.3*)
14003 lt_prog_compiler_wl_F77='-Wl,'
14004 lt_prog_compiler_pic_F77='-KPIC'
14005 lt_prog_compiler_static_F77='-Bstatic'
14006 ;;
14007
14008 sysv4*MP*)
14009 if test -d /usr/nec ;then
14010 lt_prog_compiler_pic_F77='-Kconform_pic'
14011 lt_prog_compiler_static_F77='-Bstatic'
14012 fi
14013 ;;
14014
14015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14016 lt_prog_compiler_wl_F77='-Wl,'
14017 lt_prog_compiler_pic_F77='-KPIC'
14018 lt_prog_compiler_static_F77='-Bstatic'
14019 ;;
14020
14021 unicos*)
14022 lt_prog_compiler_wl_F77='-Wl,'
14023 lt_prog_compiler_can_build_shared_F77=no
14024 ;;
14025
14026 uts4*)
14027 lt_prog_compiler_pic_F77='-pic'
14028 lt_prog_compiler_static_F77='-Bstatic'
14029 ;;
14030
14031 *)
14032 lt_prog_compiler_can_build_shared_F77=no
14033 ;;
14034 esac
14035 fi
14036
14037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14038 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14039
14040 #
14041 # Check to make sure the PIC flag actually works.
14042 #
14043 if test -n "$lt_prog_compiler_pic_F77"; then
14044
14045 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14046 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14047 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 lt_prog_compiler_pic_works_F77=no
14051 ac_outfile=conftest.$ac_objext
14052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14053 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14054 # Insert the option either (1) after the last *FLAGS variable, or
14055 # (2) before a word containing "conftest.", or (3) at the end.
14056 # Note that $ac_compile itself does not contain backslashes and begins
14057 # with a dollar sign (not a hyphen), so the echo should work correctly.
14058 # The option is referenced via a variable to avoid confusing sed.
14059 lt_compile=`echo "$ac_compile" | $SED \
14060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14062 -e 's:$: $lt_compiler_flag:'`
14063 (eval echo "\"\$as_me:14063: $lt_compile\"" >&5)
14064 (eval "$lt_compile" 2>conftest.err)
14065 ac_status=$?
14066 cat conftest.err >&5
14067 echo "$as_me:14067: \$? = $ac_status" >&5
14068 if (exit $ac_status) && test -s "$ac_outfile"; then
14069 # The compiler can only warn and ignore the option if not recognized
14070 # So say no if there are warnings other than the usual output.
14071 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14074 lt_prog_compiler_pic_works_F77=yes
14075 fi
14076 fi
14077 $rm conftest*
14078
14079 fi
14080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14081 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14082
14083 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14084 case $lt_prog_compiler_pic_F77 in
14085 "" | " "*) ;;
14086 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14087 esac
14088 else
14089 lt_prog_compiler_pic_F77=
14090 lt_prog_compiler_can_build_shared_F77=no
14091 fi
14092
14093 fi
14094 case $host_os in
14095 # For platforms which do not support PIC, -DPIC is meaningless:
14096 *djgpp*)
14097 lt_prog_compiler_pic_F77=
14098 ;;
14099 *)
14100 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14101 ;;
14102 esac
14103
14104 #
14105 # Check to make sure the static flag actually works.
14106 #
14107 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14108 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14109 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14110 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113 lt_prog_compiler_static_works_F77=no
14114 save_LDFLAGS="$LDFLAGS"
14115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14118 # The linker can only warn and ignore the option if not recognized
14119 # So say no if there are warnings
14120 if test -s conftest.err; then
14121 # Append any errors to the config.log.
14122 cat conftest.err 1>&5
14123 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14125 if diff conftest.exp conftest.er2 >/dev/null; then
14126 lt_prog_compiler_static_works_F77=yes
14127 fi
14128 else
14129 lt_prog_compiler_static_works_F77=yes
14130 fi
14131 fi
14132 $rm conftest*
14133 LDFLAGS="$save_LDFLAGS"
14134
14135 fi
14136 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14137 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14138
14139 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14140 :
14141 else
14142 lt_prog_compiler_static_F77=
14143 fi
14144
14145
14146 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14147 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14148 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 else
14151 lt_cv_prog_compiler_c_o_F77=no
14152 $rm -r conftest 2>/dev/null
14153 mkdir conftest
14154 cd conftest
14155 mkdir out
14156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14157
14158 lt_compiler_flag="-o out/conftest2.$ac_objext"
14159 # Insert the option either (1) after the last *FLAGS variable, or
14160 # (2) before a word containing "conftest.", or (3) at the end.
14161 # Note that $ac_compile itself does not contain backslashes and begins
14162 # with a dollar sign (not a hyphen), so the echo should work correctly.
14163 lt_compile=`echo "$ac_compile" | $SED \
14164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14166 -e 's:$: $lt_compiler_flag:'`
14167 (eval echo "\"\$as_me:14167: $lt_compile\"" >&5)
14168 (eval "$lt_compile" 2>out/conftest.err)
14169 ac_status=$?
14170 cat out/conftest.err >&5
14171 echo "$as_me:14171: \$? = $ac_status" >&5
14172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14173 then
14174 # The compiler can only warn and ignore the option if not recognized
14175 # So say no if there are warnings
14176 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14179 lt_cv_prog_compiler_c_o_F77=yes
14180 fi
14181 fi
14182 chmod u+w . 2>&5
14183 $rm conftest*
14184 # SGI C++ compiler will create directory out/ii_files/ for
14185 # template instantiation
14186 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14187 $rm out/* && rmdir out
14188 cd ..
14189 rmdir conftest
14190 $rm conftest*
14191
14192 fi
14193 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14194 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14195
14196
14197 hard_links="nottested"
14198 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14199 # do not overwrite the value of need_locks provided by the user
14200 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14202 hard_links=yes
14203 $rm conftest*
14204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14205 touch conftest.a
14206 ln conftest.a conftest.b 2>&5 || hard_links=no
14207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14208 { echo "$as_me:$LINENO: result: $hard_links" >&5
14209 echo "${ECHO_T}$hard_links" >&6; }
14210 if test "$hard_links" = no; then
14211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14213 need_locks=warn
14214 fi
14215 else
14216 need_locks=no
14217 fi
14218
14219 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14221
14222 runpath_var=
14223 allow_undefined_flag_F77=
14224 enable_shared_with_static_runtimes_F77=no
14225 archive_cmds_F77=
14226 archive_expsym_cmds_F77=
14227 old_archive_From_new_cmds_F77=
14228 old_archive_from_expsyms_cmds_F77=
14229 export_dynamic_flag_spec_F77=
14230 whole_archive_flag_spec_F77=
14231 thread_safe_flag_spec_F77=
14232 hardcode_libdir_flag_spec_F77=
14233 hardcode_libdir_flag_spec_ld_F77=
14234 hardcode_libdir_separator_F77=
14235 hardcode_direct_F77=no
14236 hardcode_minus_L_F77=no
14237 hardcode_shlibpath_var_F77=unsupported
14238 link_all_deplibs_F77=unknown
14239 hardcode_automatic_F77=no
14240 module_cmds_F77=
14241 module_expsym_cmds_F77=
14242 always_export_symbols_F77=no
14243 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14244 # include_expsyms should be a list of space-separated symbols to be *always*
14245 # included in the symbol list
14246 include_expsyms_F77=
14247 # exclude_expsyms can be an extended regexp of symbols to exclude
14248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14250 # as well as any symbol that contains `d'.
14251 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14253 # platforms (ab)use it in PIC code, but their linkers get confused if
14254 # the symbol is explicitly referenced. Since portable code cannot
14255 # rely on this symbol name, it's probably fine to never include it in
14256 # preloaded symbol tables.
14257 extract_expsyms_cmds=
14258 # Just being paranoid about ensuring that cc_basename is set.
14259 for cc_temp in $compiler""; do
14260 case $cc_temp in
14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263 \-*) ;;
14264 *) break;;
14265 esac
14266 done
14267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268
14269 case $host_os in
14270 cygwin* | mingw* | pw32*)
14271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14272 # When not using gcc, we currently assume that we are using
14273 # Microsoft Visual C++.
14274 if test "$GCC" != yes; then
14275 with_gnu_ld=no
14276 fi
14277 ;;
14278 interix*)
14279 # we just hope/assume this is gcc and not c89 (= MSVC++)
14280 with_gnu_ld=yes
14281 ;;
14282 openbsd*)
14283 with_gnu_ld=no
14284 ;;
14285 esac
14286
14287 ld_shlibs_F77=yes
14288 if test "$with_gnu_ld" = yes; then
14289 # If archive_cmds runs LD, not CC, wlarc should be empty
14290 wlarc='${wl}'
14291
14292 # Set some defaults for GNU ld with shared library support. These
14293 # are reset later if shared libraries are not supported. Putting them
14294 # here allows them to be overridden if necessary.
14295 runpath_var=LD_RUN_PATH
14296 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14297 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14298 # ancient GNU ld didn't support --whole-archive et. al.
14299 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14300 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14301 else
14302 whole_archive_flag_spec_F77=
14303 fi
14304 supports_anon_versioning=no
14305 case `$LD -v 2>/dev/null` in
14306 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14308 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14309 *\ 2.11.*) ;; # other 2.11 versions
14310 *) supports_anon_versioning=yes ;;
14311 esac
14312
14313 # See if GNU ld supports shared libraries.
14314 case $host_os in
14315 aix3* | aix4* | aix5*)
14316 # On AIX/PPC, the GNU linker is very broken
14317 if test "$host_cpu" != ia64; then
14318 ld_shlibs_F77=no
14319 cat <<EOF 1>&2
14320
14321 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14322 *** to be unable to reliably create shared libraries on AIX.
14323 *** Therefore, libtool is disabling shared libraries support. If you
14324 *** really care for shared libraries, you may want to modify your PATH
14325 *** so that a non-GNU linker is found, and then restart.
14326
14327 EOF
14328 fi
14329 ;;
14330
14331 amigaos*)
14332 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)'
14333 hardcode_libdir_flag_spec_F77='-L$libdir'
14334 hardcode_minus_L_F77=yes
14335
14336 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14337 # that the semantics of dynamic libraries on AmigaOS, at least up
14338 # to version 4, is to share data among multiple programs linked
14339 # with the same dynamic library. Since this doesn't match the
14340 # behavior of shared libraries on other platforms, we can't use
14341 # them.
14342 ld_shlibs_F77=no
14343 ;;
14344
14345 beos*)
14346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14347 allow_undefined_flag_F77=unsupported
14348 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14349 # support --undefined. This deserves some investigation. FIXME
14350 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14351 else
14352 ld_shlibs_F77=no
14353 fi
14354 ;;
14355
14356 cygwin* | mingw* | pw32*)
14357 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14358 # as there is no search path for DLLs.
14359 hardcode_libdir_flag_spec_F77='-L$libdir'
14360 allow_undefined_flag_F77=unsupported
14361 always_export_symbols_F77=no
14362 enable_shared_with_static_runtimes_F77=yes
14363 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14364
14365 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14366 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14367 # If the export-symbols file already is a .def file (1st line
14368 # is EXPORTS), use it as is; otherwise, prepend...
14369 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14370 cp $export_symbols $output_objdir/$soname.def;
14371 else
14372 echo EXPORTS > $output_objdir/$soname.def;
14373 cat $export_symbols >> $output_objdir/$soname.def;
14374 fi~
14375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14376 else
14377 ld_shlibs_F77=no
14378 fi
14379 ;;
14380
14381 interix[3-9]*)
14382 hardcode_direct_F77=no
14383 hardcode_shlibpath_var_F77=no
14384 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14385 export_dynamic_flag_spec_F77='${wl}-E'
14386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14387 # Instead, shared libraries are loaded at an image base (0x10000000 by
14388 # default) and relocated if they conflict, which is a slow very memory
14389 # consuming and fragmenting process. To avoid this, we pick a random,
14390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14392 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'
14393 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'
14394 ;;
14395
14396 gnu* | linux* | k*bsd*-gnu)
14397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14398 tmp_addflag=
14399 case $cc_basename,$host_cpu in
14400 pgcc*) # Portland Group C compiler
14401 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'
14402 tmp_addflag=' $pic_flag'
14403 ;;
14404 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14405 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'
14406 tmp_addflag=' $pic_flag -Mnomain' ;;
14407 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14408 tmp_addflag=' -i_dynamic' ;;
14409 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14410 tmp_addflag=' -i_dynamic -nofor_main' ;;
14411 ifc* | ifort*) # Intel Fortran compiler
14412 tmp_addflag=' -nofor_main' ;;
14413 esac
14414 case `$CC -V 2>&1 | sed 5q` in
14415 *Sun\ C*) # Sun C 5.9
14416 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'
14417 tmp_sharedflag='-G' ;;
14418 *Sun\ F*) # Sun Fortran 8.3
14419 tmp_sharedflag='-G' ;;
14420 *)
14421 tmp_sharedflag='-shared' ;;
14422 esac
14423 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424
14425 if test $supports_anon_versioning = yes; then
14426 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14428 $echo "local: *; };" >> $output_objdir/$libname.ver~
14429 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14430 fi
14431 else
14432 ld_shlibs_F77=no
14433 fi
14434 ;;
14435
14436 netbsd*)
14437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14438 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14439 wlarc=
14440 else
14441 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14442 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14443 fi
14444 ;;
14445
14446 solaris*)
14447 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14448 ld_shlibs_F77=no
14449 cat <<EOF 1>&2
14450
14451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14452 *** create shared libraries on Solaris systems. Therefore, libtool
14453 *** is disabling shared libraries support. We urge you to upgrade GNU
14454 *** binutils to release 2.9.1 or newer. Another option is to modify
14455 *** your PATH or compiler configuration so that the native linker is
14456 *** used, and then restart.
14457
14458 EOF
14459 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14460 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14462 else
14463 ld_shlibs_F77=no
14464 fi
14465 ;;
14466
14467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14468 case `$LD -v 2>&1` in
14469 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14470 ld_shlibs_F77=no
14471 cat <<_LT_EOF 1>&2
14472
14473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14474 *** reliably create shared libraries on SCO systems. Therefore, libtool
14475 *** is disabling shared libraries support. We urge you to upgrade GNU
14476 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14477 *** your PATH or compiler configuration so that the native linker is
14478 *** used, and then restart.
14479
14480 _LT_EOF
14481 ;;
14482 *)
14483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14484 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14485 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14486 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14487 else
14488 ld_shlibs_F77=no
14489 fi
14490 ;;
14491 esac
14492 ;;
14493
14494 sunos4*)
14495 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14496 wlarc=
14497 hardcode_direct_F77=yes
14498 hardcode_shlibpath_var_F77=no
14499 ;;
14500
14501 *)
14502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14505 else
14506 ld_shlibs_F77=no
14507 fi
14508 ;;
14509 esac
14510
14511 if test "$ld_shlibs_F77" = no; then
14512 runpath_var=
14513 hardcode_libdir_flag_spec_F77=
14514 export_dynamic_flag_spec_F77=
14515 whole_archive_flag_spec_F77=
14516 fi
14517 else
14518 # PORTME fill in a description of your system's linker (not GNU ld)
14519 case $host_os in
14520 aix3*)
14521 allow_undefined_flag_F77=unsupported
14522 always_export_symbols_F77=yes
14523 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'
14524 # Note: this linker hardcodes the directories in LIBPATH if there
14525 # are no directories specified by -L.
14526 hardcode_minus_L_F77=yes
14527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14528 # Neither direct hardcoding nor static linking is supported with a
14529 # broken collect2.
14530 hardcode_direct_F77=unsupported
14531 fi
14532 ;;
14533
14534 aix4* | aix5*)
14535 if test "$host_cpu" = ia64; then
14536 # On IA64, the linker does run time linking by default, so we don't
14537 # have to do anything special.
14538 aix_use_runtimelinking=no
14539 exp_sym_flag='-Bexport'
14540 no_entry_flag=""
14541 else
14542 # If we're using GNU nm, then we don't want the "-C" option.
14543 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14544 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14545 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'
14546 else
14547 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'
14548 fi
14549 aix_use_runtimelinking=no
14550
14551 # Test if we are trying to use run time linking or normal
14552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14553 # need to do runtime linking.
14554 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14555 for ld_flag in $LDFLAGS; do
14556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14557 aix_use_runtimelinking=yes
14558 break
14559 fi
14560 done
14561 ;;
14562 esac
14563
14564 exp_sym_flag='-bexport'
14565 no_entry_flag='-bnoentry'
14566 fi
14567
14568 # When large executables or shared objects are built, AIX ld can
14569 # have problems creating the table of contents. If linking a library
14570 # or program results in "error TOC overflow" add -mminimal-toc to
14571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14573
14574 archive_cmds_F77=''
14575 hardcode_direct_F77=yes
14576 hardcode_libdir_separator_F77=':'
14577 link_all_deplibs_F77=yes
14578
14579 if test "$GCC" = yes; then
14580 case $host_os in aix4.[012]|aix4.[012].*)
14581 # We only want to do this on AIX 4.2 and lower, the check
14582 # below for broken collect2 doesn't work under 4.3+
14583 collect2name=`${CC} -print-prog-name=collect2`
14584 if test -f "$collect2name" && \
14585 strings "$collect2name" | grep resolve_lib_name >/dev/null
14586 then
14587 # We have reworked collect2
14588 :
14589 else
14590 # We have old collect2
14591 hardcode_direct_F77=unsupported
14592 # It fails to find uninstalled libraries when the uninstalled
14593 # path is not listed in the libpath. Setting hardcode_minus_L
14594 # to unsupported forces relinking
14595 hardcode_minus_L_F77=yes
14596 hardcode_libdir_flag_spec_F77='-L$libdir'
14597 hardcode_libdir_separator_F77=
14598 fi
14599 ;;
14600 esac
14601 shared_flag='-shared'
14602 if test "$aix_use_runtimelinking" = yes; then
14603 shared_flag="$shared_flag "'${wl}-G'
14604 fi
14605 else
14606 # not using gcc
14607 if test "$host_cpu" = ia64; then
14608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14609 # chokes on -Wl,-G. The following line is correct:
14610 shared_flag='-G'
14611 else
14612 if test "$aix_use_runtimelinking" = yes; then
14613 shared_flag='${wl}-G'
14614 else
14615 shared_flag='${wl}-bM:SRE'
14616 fi
14617 fi
14618 fi
14619
14620 # It seems that -bexpall does not export symbols beginning with
14621 # underscore (_), so it is better to generate a list of symbols to export.
14622 always_export_symbols_F77=yes
14623 if test "$aix_use_runtimelinking" = yes; then
14624 # Warning - without using the other runtime loading flags (-brtl),
14625 # -berok will link without error, but may produce a broken library.
14626 allow_undefined_flag_F77='-berok'
14627 # Determine the default libpath from the value encoded in an empty executable.
14628 cat >conftest.$ac_ext <<_ACEOF
14629 program main
14630
14631 end
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && {
14647 test -z "$ac_f77_werror_flag" ||
14648 test ! -s conftest.err
14649 } && test -s conftest$ac_exeext &&
14650 $as_test_x conftest$ac_exeext; then
14651
14652 lt_aix_libpath_sed='
14653 /Import File Strings/,/^$/ {
14654 /^0/ {
14655 s/^0 *\(.*\)$/\1/
14656 p
14657 }
14658 }'
14659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14660 # Check for a 64-bit object if we didn't find anything.
14661 if test -z "$aix_libpath"; then
14662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14663 fi
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14667
14668
14669 fi
14670
14671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14672 conftest$ac_exeext conftest.$ac_ext
14673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14674
14675 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14676 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"
14677 else
14678 if test "$host_cpu" = ia64; then
14679 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14680 allow_undefined_flag_F77="-z nodefs"
14681 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"
14682 else
14683 # Determine the default libpath from the value encoded in an empty executable.
14684 cat >conftest.$ac_ext <<_ACEOF
14685 program main
14686
14687 end
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_f77_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest$ac_exeext &&
14706 $as_test_x conftest$ac_exeext; then
14707
14708 lt_aix_libpath_sed='
14709 /Import File Strings/,/^$/ {
14710 /^0/ {
14711 s/^0 *\(.*\)$/\1/
14712 p
14713 }
14714 }'
14715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14716 # Check for a 64-bit object if we didn't find anything.
14717 if test -z "$aix_libpath"; then
14718 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14719 fi
14720 else
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724
14725 fi
14726
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14729 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14730
14731 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14732 # Warning - without using the other run time loading flags,
14733 # -berok will link without error, but may produce a broken library.
14734 no_undefined_flag_F77=' ${wl}-bernotok'
14735 allow_undefined_flag_F77=' ${wl}-berok'
14736 # Exported symbols can be pulled into shared objects from archives
14737 whole_archive_flag_spec_F77='$convenience'
14738 archive_cmds_need_lc_F77=yes
14739 # This is similar to how AIX traditionally builds its shared libraries.
14740 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'
14741 fi
14742 fi
14743 ;;
14744
14745 amigaos*)
14746 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)'
14747 hardcode_libdir_flag_spec_F77='-L$libdir'
14748 hardcode_minus_L_F77=yes
14749 # see comment about different semantics on the GNU ld section
14750 ld_shlibs_F77=no
14751 ;;
14752
14753 bsdi[45]*)
14754 export_dynamic_flag_spec_F77=-rdynamic
14755 ;;
14756
14757 cygwin* | mingw* | pw32*)
14758 # When not using gcc, we currently assume that we are using
14759 # Microsoft Visual C++.
14760 # hardcode_libdir_flag_spec is actually meaningless, as there is
14761 # no search path for DLLs.
14762 hardcode_libdir_flag_spec_F77=' '
14763 allow_undefined_flag_F77=unsupported
14764 # Tell ltmain to make .lib files, not .a files.
14765 libext=lib
14766 # Tell ltmain to make .dll files, not .so files.
14767 shrext_cmds=".dll"
14768 # FIXME: Setting linknames here is a bad hack.
14769 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14770 # The linker will automatically build a .lib file if we build a DLL.
14771 old_archive_From_new_cmds_F77='true'
14772 # FIXME: Should let the user specify the lib program.
14773 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14774 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14775 enable_shared_with_static_runtimes_F77=yes
14776 ;;
14777
14778 darwin* | rhapsody*)
14779 case $host_os in
14780 rhapsody* | darwin1.[012])
14781 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14782 ;;
14783 *) # Darwin 1.3 on
14784 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14785 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14786 else
14787 case ${MACOSX_DEPLOYMENT_TARGET} in
14788 10.[012])
14789 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14790 ;;
14791 10.*)
14792 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14793 ;;
14794 esac
14795 fi
14796 ;;
14797 esac
14798 archive_cmds_need_lc_F77=no
14799 hardcode_direct_F77=no
14800 hardcode_automatic_F77=yes
14801 hardcode_shlibpath_var_F77=unsupported
14802 whole_archive_flag_spec_F77=''
14803 link_all_deplibs_F77=yes
14804 if test "$GCC" = yes ; then
14805 output_verbose_link_cmd='echo'
14806 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14807 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14808 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14809 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14810 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}'
14811 else
14812 case $cc_basename in
14813 xlc*)
14814 output_verbose_link_cmd='echo'
14815 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14816 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14817 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14818 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}'
14819 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}'
14820 ;;
14821 *)
14822 ld_shlibs_F77=no
14823 ;;
14824 esac
14825 fi
14826 ;;
14827
14828 dgux*)
14829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_libdir_flag_spec_F77='-L$libdir'
14831 hardcode_shlibpath_var_F77=no
14832 ;;
14833
14834 freebsd1*)
14835 ld_shlibs_F77=no
14836 ;;
14837
14838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14839 # support. Future versions do this automatically, but an explicit c++rt0.o
14840 # does not break anything, and helps significantly (at the cost of a little
14841 # extra space).
14842 freebsd2.2*)
14843 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14844 hardcode_libdir_flag_spec_F77='-R$libdir'
14845 hardcode_direct_F77=yes
14846 hardcode_shlibpath_var_F77=no
14847 ;;
14848
14849 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14850 freebsd2*)
14851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_direct_F77=yes
14853 hardcode_minus_L_F77=yes
14854 hardcode_shlibpath_var_F77=no
14855 ;;
14856
14857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14858 freebsd* | dragonfly*)
14859 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14860 hardcode_libdir_flag_spec_F77='-R$libdir'
14861 hardcode_direct_F77=yes
14862 hardcode_shlibpath_var_F77=no
14863 ;;
14864
14865 hpux9*)
14866 if test "$GCC" = yes; then
14867 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'
14868 else
14869 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'
14870 fi
14871 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14872 hardcode_libdir_separator_F77=:
14873 hardcode_direct_F77=yes
14874
14875 # hardcode_minus_L: Not really in the search PATH,
14876 # but as the default location of the library.
14877 hardcode_minus_L_F77=yes
14878 export_dynamic_flag_spec_F77='${wl}-E'
14879 ;;
14880
14881 hpux10*)
14882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14883 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14884 else
14885 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14886 fi
14887 if test "$with_gnu_ld" = no; then
14888 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14889 hardcode_libdir_separator_F77=:
14890
14891 hardcode_direct_F77=yes
14892 export_dynamic_flag_spec_F77='${wl}-E'
14893
14894 # hardcode_minus_L: Not really in the search PATH,
14895 # but as the default location of the library.
14896 hardcode_minus_L_F77=yes
14897 fi
14898 ;;
14899
14900 hpux11*)
14901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14902 case $host_cpu in
14903 hppa*64*)
14904 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 ;;
14906 ia64*)
14907 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14908 ;;
14909 *)
14910 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14911 ;;
14912 esac
14913 else
14914 case $host_cpu in
14915 hppa*64*)
14916 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 ;;
14918 ia64*)
14919 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14920 ;;
14921 *)
14922 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14923 ;;
14924 esac
14925 fi
14926 if test "$with_gnu_ld" = no; then
14927 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14928 hardcode_libdir_separator_F77=:
14929
14930 case $host_cpu in
14931 hppa*64*|ia64*)
14932 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14933 hardcode_direct_F77=no
14934 hardcode_shlibpath_var_F77=no
14935 ;;
14936 *)
14937 hardcode_direct_F77=yes
14938 export_dynamic_flag_spec_F77='${wl}-E'
14939
14940 # hardcode_minus_L: Not really in the search PATH,
14941 # but as the default location of the library.
14942 hardcode_minus_L_F77=yes
14943 ;;
14944 esac
14945 fi
14946 ;;
14947
14948 irix5* | irix6* | nonstopux*)
14949 if test "$GCC" = yes; then
14950 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'
14951 else
14952 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'
14953 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14954 fi
14955 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14956 hardcode_libdir_separator_F77=:
14957 link_all_deplibs_F77=yes
14958 ;;
14959
14960 netbsd*)
14961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14962 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14963 else
14964 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14965 fi
14966 hardcode_libdir_flag_spec_F77='-R$libdir'
14967 hardcode_direct_F77=yes
14968 hardcode_shlibpath_var_F77=no
14969 ;;
14970
14971 newsos6)
14972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14973 hardcode_direct_F77=yes
14974 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14975 hardcode_libdir_separator_F77=:
14976 hardcode_shlibpath_var_F77=no
14977 ;;
14978
14979 openbsd*)
14980 if test -f /usr/libexec/ld.so; then
14981 hardcode_direct_F77=yes
14982 hardcode_shlibpath_var_F77=no
14983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14984 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14985 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14986 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14987 export_dynamic_flag_spec_F77='${wl}-E'
14988 else
14989 case $host_os in
14990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14991 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14992 hardcode_libdir_flag_spec_F77='-R$libdir'
14993 ;;
14994 *)
14995 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14996 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14997 ;;
14998 esac
14999 fi
15000 else
15001 ld_shlibs_F77=no
15002 fi
15003 ;;
15004
15005 os2*)
15006 hardcode_libdir_flag_spec_F77='-L$libdir'
15007 hardcode_minus_L_F77=yes
15008 allow_undefined_flag_F77=unsupported
15009 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'
15010 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15011 ;;
15012
15013 osf3*)
15014 if test "$GCC" = yes; then
15015 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15016 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'
15017 else
15018 allow_undefined_flag_F77=' -expect_unresolved \*'
15019 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'
15020 fi
15021 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15022 hardcode_libdir_separator_F77=:
15023 ;;
15024
15025 osf4* | osf5*) # as osf3* with the addition of -msym flag
15026 if test "$GCC" = yes; then
15027 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15028 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'
15029 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15030 else
15031 allow_undefined_flag_F77=' -expect_unresolved \*'
15032 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'
15033 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~
15034 $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'
15035
15036 # Both c and cxx compiler support -rpath directly
15037 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15038 fi
15039 hardcode_libdir_separator_F77=:
15040 ;;
15041
15042 solaris*)
15043 no_undefined_flag_F77=' -z text'
15044 if test "$GCC" = yes; then
15045 wlarc='${wl}'
15046 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15049 else
15050 wlarc=''
15051 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15054 fi
15055 hardcode_libdir_flag_spec_F77='-R$libdir'
15056 hardcode_shlibpath_var_F77=no
15057 case $host_os in
15058 solaris2.[0-5] | solaris2.[0-5].*) ;;
15059 *)
15060 # The compiler driver will combine and reorder linker options,
15061 # but understands `-z linker_flag'. GCC discards it without `$wl',
15062 # but is careful enough not to reorder.
15063 # Supported since Solaris 2.6 (maybe 2.5.1?)
15064 if test "$GCC" = yes; then
15065 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15066 else
15067 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15068 fi
15069 ;;
15070 esac
15071 link_all_deplibs_F77=yes
15072 ;;
15073
15074 sunos4*)
15075 if test "x$host_vendor" = xsequent; then
15076 # Use $CC to link under sequent, because it throws in some extra .o
15077 # files that make .init and .fini sections work.
15078 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15079 else
15080 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15081 fi
15082 hardcode_libdir_flag_spec_F77='-L$libdir'
15083 hardcode_direct_F77=yes
15084 hardcode_minus_L_F77=yes
15085 hardcode_shlibpath_var_F77=no
15086 ;;
15087
15088 sysv4)
15089 case $host_vendor in
15090 sni)
15091 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15092 hardcode_direct_F77=yes # is this really true???
15093 ;;
15094 siemens)
15095 ## LD is ld it makes a PLAMLIB
15096 ## CC just makes a GrossModule.
15097 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15098 reload_cmds_F77='$CC -r -o $output$reload_objs'
15099 hardcode_direct_F77=no
15100 ;;
15101 motorola)
15102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15104 ;;
15105 esac
15106 runpath_var='LD_RUN_PATH'
15107 hardcode_shlibpath_var_F77=no
15108 ;;
15109
15110 sysv4.3*)
15111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_shlibpath_var_F77=no
15113 export_dynamic_flag_spec_F77='-Bexport'
15114 ;;
15115
15116 sysv4*MP*)
15117 if test -d /usr/nec; then
15118 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15119 hardcode_shlibpath_var_F77=no
15120 runpath_var=LD_RUN_PATH
15121 hardcode_runpath_var=yes
15122 ld_shlibs_F77=yes
15123 fi
15124 ;;
15125
15126 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15127 no_undefined_flag_F77='${wl}-z,text'
15128 archive_cmds_need_lc_F77=no
15129 hardcode_shlibpath_var_F77=no
15130 runpath_var='LD_RUN_PATH'
15131
15132 if test "$GCC" = yes; then
15133 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15134 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15135 else
15136 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15137 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15138 fi
15139 ;;
15140
15141 sysv5* | sco3.2v5* | sco5v6*)
15142 # Note: We can NOT use -z defs as we might desire, because we do not
15143 # link with -lc, and that would cause any symbols used from libc to
15144 # always be unresolved, which means just about no library would
15145 # ever link correctly. If we're not using GNU ld we use -z text
15146 # though, which does catch some bad symbols but isn't as heavy-handed
15147 # as -z defs.
15148 no_undefined_flag_F77='${wl}-z,text'
15149 allow_undefined_flag_F77='${wl}-z,nodefs'
15150 archive_cmds_need_lc_F77=no
15151 hardcode_shlibpath_var_F77=no
15152 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15153 hardcode_libdir_separator_F77=':'
15154 link_all_deplibs_F77=yes
15155 export_dynamic_flag_spec_F77='${wl}-Bexport'
15156 runpath_var='LD_RUN_PATH'
15157
15158 if test "$GCC" = yes; then
15159 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15161 else
15162 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15163 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15164 fi
15165 ;;
15166
15167 uts4*)
15168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15169 hardcode_libdir_flag_spec_F77='-L$libdir'
15170 hardcode_shlibpath_var_F77=no
15171 ;;
15172
15173 *)
15174 ld_shlibs_F77=no
15175 ;;
15176 esac
15177 fi
15178
15179 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15180 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15181 test "$ld_shlibs_F77" = no && can_build_shared=no
15182
15183 #
15184 # Do we need to explicitly link libc?
15185 #
15186 case "x$archive_cmds_need_lc_F77" in
15187 x|xyes)
15188 # Assume -lc should be added
15189 archive_cmds_need_lc_F77=yes
15190
15191 if test "$enable_shared" = yes && test "$GCC" = yes; then
15192 case $archive_cmds_F77 in
15193 *'~'*)
15194 # FIXME: we may have to deal with multi-command sequences.
15195 ;;
15196 '$CC '*)
15197 # Test whether the compiler implicitly links with -lc since on some
15198 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15199 # to ld, don't add -lc before -lgcc.
15200 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15201 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15202 $rm conftest*
15203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15204
15205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15206 (eval $ac_compile) 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } 2>conftest.err; then
15210 soname=conftest
15211 lib=conftest
15212 libobjs=conftest.$ac_objext
15213 deplibs=
15214 wl=$lt_prog_compiler_wl_F77
15215 pic_flag=$lt_prog_compiler_pic_F77
15216 compiler_flags=-v
15217 linker_flags=-v
15218 verstring=
15219 output_objdir=.
15220 libname=conftest
15221 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15222 allow_undefined_flag_F77=
15223 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15224 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }
15228 then
15229 archive_cmds_need_lc_F77=no
15230 else
15231 archive_cmds_need_lc_F77=yes
15232 fi
15233 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15234 else
15235 cat conftest.err 1>&5
15236 fi
15237 $rm conftest*
15238 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15239 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15240 ;;
15241 esac
15242 fi
15243 ;;
15244 esac
15245
15246 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15247 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15248 library_names_spec=
15249 libname_spec='lib$name'
15250 soname_spec=
15251 shrext_cmds=".so"
15252 postinstall_cmds=
15253 postuninstall_cmds=
15254 finish_cmds=
15255 finish_eval=
15256 shlibpath_var=
15257 shlibpath_overrides_runpath=unknown
15258 version_type=none
15259 dynamic_linker="$host_os ld.so"
15260 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15261
15262 need_lib_prefix=unknown
15263 hardcode_into_libs=no
15264
15265 # when you set need_version to no, make sure it does not cause -set_version
15266 # flags to be left without arguments
15267 need_version=unknown
15268
15269 case $host_os in
15270 aix3*)
15271 version_type=linux
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15273 shlibpath_var=LIBPATH
15274
15275 # AIX 3 has no versioning support, so we append a major version to the name.
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 ;;
15278
15279 aix4* | aix5*)
15280 version_type=linux
15281 need_lib_prefix=no
15282 need_version=no
15283 hardcode_into_libs=yes
15284 if test "$host_cpu" = ia64; then
15285 # AIX 5 supports IA64
15286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 else
15289 # With GCC up to 2.95.x, collect2 would create an import file
15290 # for dependence libraries. The import file would start with
15291 # the line `#! .'. This would cause the generated library to
15292 # depend on `.', always an invalid library. This was fixed in
15293 # development snapshots of GCC prior to 3.0.
15294 case $host_os in
15295 aix4 | aix4.[01] | aix4.[01].*)
15296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15297 echo ' yes '
15298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15299 :
15300 else
15301 can_build_shared=no
15302 fi
15303 ;;
15304 esac
15305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15306 # soname into executable. Probably we can add versioning support to
15307 # collect2, so additional links can be useful in future.
15308 if test "$aix_use_runtimelinking" = yes; then
15309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15310 # instead of lib<name>.a to let people know that these are not
15311 # typical AIX shared libraries.
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 else
15314 # We preserve .a as extension for shared libraries through AIX4.2
15315 # and later when we are not doing run time linking.
15316 library_names_spec='${libname}${release}.a $libname.a'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 fi
15319 shlibpath_var=LIBPATH
15320 fi
15321 ;;
15322
15323 amigaos*)
15324 library_names_spec='$libname.ixlibrary $libname.a'
15325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15326 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'
15327 ;;
15328
15329 beos*)
15330 library_names_spec='${libname}${shared_ext}'
15331 dynamic_linker="$host_os ld.so"
15332 shlibpath_var=LIBRARY_PATH
15333 ;;
15334
15335 bsdi[45]*)
15336 version_type=linux
15337 need_version=no
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15344 # the default ld.so.conf also contains /usr/contrib/lib and
15345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15346 # libtool to hard-code these into programs
15347 ;;
15348
15349 cygwin* | mingw* | pw32*)
15350 version_type=windows
15351 shrext_cmds=".dll"
15352 need_version=no
15353 need_lib_prefix=no
15354
15355 case $GCC,$host_os in
15356 yes,cygwin* | yes,mingw* | yes,pw32*)
15357 library_names_spec='$libname.dll.a'
15358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15359 postinstall_cmds='base_file=`basename \${file}`~
15360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15361 dldir=$destdir/`dirname \$dlpath`~
15362 test -d \$dldir || mkdir -p \$dldir~
15363 $install_prog $dir/$dlname \$dldir/$dlname~
15364 chmod a+x \$dldir/$dlname'
15365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15366 dlpath=$dir/\$dldll~
15367 $rm \$dlpath'
15368 shlibpath_overrides_runpath=yes
15369
15370 case $host_os in
15371 cygwin*)
15372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15375 ;;
15376 mingw*)
15377 # MinGW DLLs use traditional 'lib' prefix
15378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15381 # It is most probably a Windows format PATH printed by
15382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15383 # path with ; separators, and with drive letters. We can handle the
15384 # drive letters (cygwin fileutils understands them), so leave them,
15385 # especially as we might pass files found there to a mingw objdump,
15386 # which wouldn't understand a cygwinified path. Ahh.
15387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15388 else
15389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15390 fi
15391 ;;
15392 pw32*)
15393 # pw32 DLLs use 'pw' prefix rather than 'lib'
15394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15395 ;;
15396 esac
15397 ;;
15398
15399 *)
15400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15401 ;;
15402 esac
15403 dynamic_linker='Win32 ld.exe'
15404 # FIXME: first we should search . and the directory the executable is in
15405 shlibpath_var=PATH
15406 ;;
15407
15408 darwin* | rhapsody*)
15409 dynamic_linker="$host_os dyld"
15410 version_type=darwin
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15414 soname_spec='${libname}${release}${major}$shared_ext'
15415 shlibpath_overrides_runpath=yes
15416 shlibpath_var=DYLD_LIBRARY_PATH
15417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15418
15419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15420 ;;
15421
15422 dgux*)
15423 version_type=linux
15424 need_lib_prefix=no
15425 need_version=no
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 ;;
15430
15431 freebsd1*)
15432 dynamic_linker=no
15433 ;;
15434
15435 freebsd* | dragonfly*)
15436 # DragonFly does not have aout. When/if they implement a new
15437 # versioning mechanism, adjust this.
15438 if test -x /usr/bin/objformat; then
15439 objformat=`/usr/bin/objformat`
15440 else
15441 case $host_os in
15442 freebsd[123]*) objformat=aout ;;
15443 *) objformat=elf ;;
15444 esac
15445 fi
15446 version_type=freebsd-$objformat
15447 case $version_type in
15448 freebsd-elf*)
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15450 need_version=no
15451 need_lib_prefix=no
15452 ;;
15453 freebsd-*)
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15455 need_version=yes
15456 ;;
15457 esac
15458 shlibpath_var=LD_LIBRARY_PATH
15459 case $host_os in
15460 freebsd2*)
15461 shlibpath_overrides_runpath=yes
15462 ;;
15463 freebsd3.[01]* | freebsdelf3.[01]*)
15464 shlibpath_overrides_runpath=yes
15465 hardcode_into_libs=yes
15466 ;;
15467 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15468 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15469 shlibpath_overrides_runpath=no
15470 hardcode_into_libs=yes
15471 ;;
15472 *) # from 4.6 on, and DragonFly
15473 shlibpath_overrides_runpath=yes
15474 hardcode_into_libs=yes
15475 ;;
15476 esac
15477 ;;
15478
15479 gnu*)
15480 version_type=linux
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 hardcode_into_libs=yes
15487 ;;
15488
15489 hpux9* | hpux10* | hpux11*)
15490 # Give a soname corresponding to the major version so that dld.sl refuses to
15491 # link against other versions.
15492 version_type=sunos
15493 need_lib_prefix=no
15494 need_version=no
15495 case $host_cpu in
15496 ia64*)
15497 shrext_cmds='.so'
15498 hardcode_into_libs=yes
15499 dynamic_linker="$host_os dld.so"
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 if test "X$HPUX_IA64_MODE" = X32; then
15505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15506 else
15507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15508 fi
15509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15510 ;;
15511 hppa*64*)
15512 shrext_cmds='.sl'
15513 hardcode_into_libs=yes
15514 dynamic_linker="$host_os dld.sl"
15515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521 ;;
15522 *)
15523 shrext_cmds='.sl'
15524 dynamic_linker="$host_os dld.sl"
15525 shlibpath_var=SHLIB_PATH
15526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 ;;
15530 esac
15531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15532 postinstall_cmds='chmod 555 $lib'
15533 ;;
15534
15535 interix[3-9]*)
15536 version_type=linux
15537 need_lib_prefix=no
15538 need_version=no
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15540 soname_spec='${libname}${release}${shared_ext}$major'
15541 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 shlibpath_overrides_runpath=no
15544 hardcode_into_libs=yes
15545 ;;
15546
15547 irix5* | irix6* | nonstopux*)
15548 case $host_os in
15549 nonstopux*) version_type=nonstopux ;;
15550 *)
15551 if test "$lt_cv_prog_gnu_ld" = yes; then
15552 version_type=linux
15553 else
15554 version_type=irix
15555 fi ;;
15556 esac
15557 need_lib_prefix=no
15558 need_version=no
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15561 case $host_os in
15562 irix5* | nonstopux*)
15563 libsuff= shlibsuff=
15564 ;;
15565 *)
15566 case $LD in # libtool.m4 will add one of these switches to LD
15567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15568 libsuff= shlibsuff= libmagic=32-bit;;
15569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15570 libsuff=32 shlibsuff=N32 libmagic=N32;;
15571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15573 *) libsuff= shlibsuff= libmagic=never-match;;
15574 esac
15575 ;;
15576 esac
15577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15578 shlibpath_overrides_runpath=no
15579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15581 hardcode_into_libs=yes
15582 ;;
15583
15584 # No shared lib support for Linux oldld, aout, or coff.
15585 linux*oldld* | linux*aout* | linux*coff*)
15586 dynamic_linker=no
15587 ;;
15588
15589 # This must be Linux ELF.
15590 linux* | k*bsd*-gnu)
15591 version_type=linux
15592 need_lib_prefix=no
15593 need_version=no
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath=no
15599 # This implies no fast_install, which is unacceptable.
15600 # Some rework will be needed to allow for fast_install
15601 # before this can be enabled.
15602 hardcode_into_libs=yes
15603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15605
15606 # Append ld.so.conf contents to the search path
15607 if test -f /etc/ld.so.conf; then
15608 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' ' '`
15609 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15610 fi
15611
15612 # We used to test for /lib/ld.so.1 and disable shared libraries on
15613 # powerpc, because MkLinux only supported shared libraries with the
15614 # GNU dynamic linker. Since this was broken with cross compilers,
15615 # most powerpc-linux boxes support dynamic linking these days and
15616 # people can always --disable-shared, the test was removed, and we
15617 # assume the GNU/Linux dynamic linker is in use.
15618 dynamic_linker='GNU/Linux ld.so'
15619 ;;
15620
15621 netbsd*)
15622 version_type=sunos
15623 need_lib_prefix=no
15624 need_version=no
15625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15628 dynamic_linker='NetBSD (a.out) ld.so'
15629 else
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 dynamic_linker='NetBSD ld.elf_so'
15633 fi
15634 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=yes
15636 hardcode_into_libs=yes
15637 ;;
15638
15639 newsos6)
15640 version_type=linux
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 shlibpath_overrides_runpath=yes
15644 ;;
15645
15646 nto-qnx*)
15647 version_type=linux
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 ;;
15655
15656 openbsd*)
15657 version_type=sunos
15658 sys_lib_dlsearch_path_spec="/usr/lib"
15659 need_lib_prefix=no
15660 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15661 case $host_os in
15662 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15663 *) need_version=no ;;
15664 esac
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15669 case $host_os in
15670 openbsd2.[89] | openbsd2.[89].*)
15671 shlibpath_overrides_runpath=no
15672 ;;
15673 *)
15674 shlibpath_overrides_runpath=yes
15675 ;;
15676 esac
15677 else
15678 shlibpath_overrides_runpath=yes
15679 fi
15680 ;;
15681
15682 os2*)
15683 libname_spec='$name'
15684 shrext_cmds=".dll"
15685 need_lib_prefix=no
15686 library_names_spec='$libname${shared_ext} $libname.a'
15687 dynamic_linker='OS/2 ld.exe'
15688 shlibpath_var=LIBPATH
15689 ;;
15690
15691 osf3* | osf4* | osf5*)
15692 version_type=osf
15693 need_lib_prefix=no
15694 need_version=no
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15699 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15700 ;;
15701
15702 rdos*)
15703 dynamic_linker=no
15704 ;;
15705
15706 solaris*)
15707 version_type=linux
15708 need_lib_prefix=no
15709 need_version=no
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 soname_spec='${libname}${release}${shared_ext}$major'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15714 hardcode_into_libs=yes
15715 # ldd complains unless libraries are executable
15716 postinstall_cmds='chmod +x $lib'
15717 ;;
15718
15719 sunos4*)
15720 version_type=sunos
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15722 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 shlibpath_overrides_runpath=yes
15725 if test "$with_gnu_ld" = yes; then
15726 need_lib_prefix=no
15727 fi
15728 need_version=yes
15729 ;;
15730
15731 sysv4 | sysv4.3*)
15732 version_type=linux
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15734 soname_spec='${libname}${release}${shared_ext}$major'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 case $host_vendor in
15737 sni)
15738 shlibpath_overrides_runpath=no
15739 need_lib_prefix=no
15740 export_dynamic_flag_spec='${wl}-Blargedynsym'
15741 runpath_var=LD_RUN_PATH
15742 ;;
15743 siemens)
15744 need_lib_prefix=no
15745 ;;
15746 motorola)
15747 need_lib_prefix=no
15748 need_version=no
15749 shlibpath_overrides_runpath=no
15750 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15751 ;;
15752 esac
15753 ;;
15754
15755 sysv4*MP*)
15756 if test -d /usr/nec ;then
15757 version_type=linux
15758 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15759 soname_spec='$libname${shared_ext}.$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 fi
15762 ;;
15763
15764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15765 version_type=freebsd-elf
15766 need_lib_prefix=no
15767 need_version=no
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 hardcode_into_libs=yes
15772 if test "$with_gnu_ld" = yes; then
15773 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15774 shlibpath_overrides_runpath=no
15775 else
15776 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15777 shlibpath_overrides_runpath=yes
15778 case $host_os in
15779 sco3.2v5*)
15780 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15781 ;;
15782 esac
15783 fi
15784 sys_lib_dlsearch_path_spec='/usr/lib'
15785 ;;
15786
15787 uts4*)
15788 version_type=linux
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 ;;
15793
15794 *)
15795 dynamic_linker=no
15796 ;;
15797 esac
15798 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15799 echo "${ECHO_T}$dynamic_linker" >&6; }
15800 test "$dynamic_linker" = no && can_build_shared=no
15801
15802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15803 if test "$GCC" = yes; then
15804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15805 fi
15806
15807 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15808 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15809 hardcode_action_F77=
15810 if test -n "$hardcode_libdir_flag_spec_F77" || \
15811 test -n "$runpath_var_F77" || \
15812 test "X$hardcode_automatic_F77" = "Xyes" ; then
15813
15814 # We can hardcode non-existant directories.
15815 if test "$hardcode_direct_F77" != no &&
15816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15817 # have to relink, otherwise we might link with an installed library
15818 # when we should be linking with a yet-to-be-installed one
15819 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15820 test "$hardcode_minus_L_F77" != no; then
15821 # Linking always hardcodes the temporary library directory.
15822 hardcode_action_F77=relink
15823 else
15824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15825 hardcode_action_F77=immediate
15826 fi
15827 else
15828 # We cannot hardcode anything, or else we can only hardcode existing
15829 # directories.
15830 hardcode_action_F77=unsupported
15831 fi
15832 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15833 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15834
15835 if test "$hardcode_action_F77" = relink; then
15836 # Fast installation is not supported
15837 enable_fast_install=no
15838 elif test "$shlibpath_overrides_runpath" = yes ||
15839 test "$enable_shared" = no; then
15840 # Fast installation is not necessary
15841 enable_fast_install=needless
15842 fi
15843
15844
15845 # The else clause should only fire when bootstrapping the
15846 # libtool distribution, otherwise you forgot to ship ltmain.sh
15847 # with your package, and you will get complaints that there are
15848 # no rules to generate ltmain.sh.
15849 if test -f "$ltmain"; then
15850 # See if we are running on zsh, and set the options which allow our commands through
15851 # without removal of \ escapes.
15852 if test -n "${ZSH_VERSION+set}" ; then
15853 setopt NO_GLOB_SUBST
15854 fi
15855 # Now quote all the things that may contain metacharacters while being
15856 # careful not to overquote the AC_SUBSTed values. We take copies of the
15857 # variables and quote the copies for generation of the libtool script.
15858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15859 SED SHELL STRIP \
15860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15862 deplibs_check_method reload_flag reload_cmds need_locks \
15863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15864 lt_cv_sys_global_symbol_to_c_name_address \
15865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15866 old_postinstall_cmds old_postuninstall_cmds \
15867 compiler_F77 \
15868 CC_F77 \
15869 LD_F77 \
15870 lt_prog_compiler_wl_F77 \
15871 lt_prog_compiler_pic_F77 \
15872 lt_prog_compiler_static_F77 \
15873 lt_prog_compiler_no_builtin_flag_F77 \
15874 export_dynamic_flag_spec_F77 \
15875 thread_safe_flag_spec_F77 \
15876 whole_archive_flag_spec_F77 \
15877 enable_shared_with_static_runtimes_F77 \
15878 old_archive_cmds_F77 \
15879 old_archive_from_new_cmds_F77 \
15880 predep_objects_F77 \
15881 postdep_objects_F77 \
15882 predeps_F77 \
15883 postdeps_F77 \
15884 compiler_lib_search_path_F77 \
15885 archive_cmds_F77 \
15886 archive_expsym_cmds_F77 \
15887 postinstall_cmds_F77 \
15888 postuninstall_cmds_F77 \
15889 old_archive_from_expsyms_cmds_F77 \
15890 allow_undefined_flag_F77 \
15891 no_undefined_flag_F77 \
15892 export_symbols_cmds_F77 \
15893 hardcode_libdir_flag_spec_F77 \
15894 hardcode_libdir_flag_spec_ld_F77 \
15895 hardcode_libdir_separator_F77 \
15896 hardcode_automatic_F77 \
15897 module_cmds_F77 \
15898 module_expsym_cmds_F77 \
15899 lt_cv_prog_compiler_c_o_F77 \
15900 fix_srcfile_path_F77 \
15901 exclude_expsyms_F77 \
15902 include_expsyms_F77; do
15903
15904 case $var in
15905 old_archive_cmds_F77 | \
15906 old_archive_from_new_cmds_F77 | \
15907 archive_cmds_F77 | \
15908 archive_expsym_cmds_F77 | \
15909 module_cmds_F77 | \
15910 module_expsym_cmds_F77 | \
15911 old_archive_from_expsyms_cmds_F77 | \
15912 export_symbols_cmds_F77 | \
15913 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15914 postinstall_cmds | postuninstall_cmds | \
15915 old_postinstall_cmds | old_postuninstall_cmds | \
15916 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15917 # Double-quote double-evaled strings.
15918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15919 ;;
15920 *)
15921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15922 ;;
15923 esac
15924 done
15925
15926 case $lt_echo in
15927 *'\$0 --fallback-echo"')
15928 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15929 ;;
15930 esac
15931
15932 cfgfile="$ofile"
15933
15934 cat <<__EOF__ >> "$cfgfile"
15935 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15936
15937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15938
15939 # Shell to use when invoking shell scripts.
15940 SHELL=$lt_SHELL
15941
15942 # Whether or not to build shared libraries.
15943 build_libtool_libs=$enable_shared
15944
15945 # Whether or not to build static libraries.
15946 build_old_libs=$enable_static
15947
15948 # Whether or not to add -lc for building shared libraries.
15949 build_libtool_need_lc=$archive_cmds_need_lc_F77
15950
15951 # Whether or not to disallow shared libs when runtime libs are static
15952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15953
15954 # Whether or not to optimize for fast installation.
15955 fast_install=$enable_fast_install
15956
15957 # The host system.
15958 host_alias=$host_alias
15959 host=$host
15960 host_os=$host_os
15961
15962 # The build system.
15963 build_alias=$build_alias
15964 build=$build
15965 build_os=$build_os
15966
15967 # An echo program that does not interpret backslashes.
15968 echo=$lt_echo
15969
15970 # The archiver.
15971 AR=$lt_AR
15972 AR_FLAGS=$lt_AR_FLAGS
15973
15974 # A C compiler.
15975 LTCC=$lt_LTCC
15976
15977 # LTCC compiler flags.
15978 LTCFLAGS=$lt_LTCFLAGS
15979
15980 # A language-specific compiler.
15981 CC=$lt_compiler_F77
15982
15983 # Is the compiler the GNU C compiler?
15984 with_gcc=$GCC_F77
15985
15986 # An ERE matcher.
15987 EGREP=$lt_EGREP
15988
15989 # The linker used to build libraries.
15990 LD=$lt_LD_F77
15991
15992 # Whether we need hard or soft links.
15993 LN_S=$lt_LN_S
15994
15995 # A BSD-compatible nm program.
15996 NM=$lt_NM
15997
15998 # A symbol stripping program
15999 STRIP=$lt_STRIP
16000
16001 # Used to examine libraries when file_magic_cmd begins "file"
16002 MAGIC_CMD=$MAGIC_CMD
16003
16004 # Used on cygwin: DLL creation program.
16005 DLLTOOL="$DLLTOOL"
16006
16007 # Used on cygwin: object dumper.
16008 OBJDUMP="$OBJDUMP"
16009
16010 # Used on cygwin: assembler.
16011 AS="$AS"
16012
16013 # The name of the directory that contains temporary libtool files.
16014 objdir=$objdir
16015
16016 # How to create reloadable object files.
16017 reload_flag=$lt_reload_flag
16018 reload_cmds=$lt_reload_cmds
16019
16020 # How to pass a linker flag through the compiler.
16021 wl=$lt_lt_prog_compiler_wl_F77
16022
16023 # Object file suffix (normally "o").
16024 objext="$ac_objext"
16025
16026 # Old archive suffix (normally "a").
16027 libext="$libext"
16028
16029 # Shared library suffix (normally ".so").
16030 shrext_cmds='$shrext_cmds'
16031
16032 # Executable file suffix (normally "").
16033 exeext="$exeext"
16034
16035 # Additional compiler flags for building library objects.
16036 pic_flag=$lt_lt_prog_compiler_pic_F77
16037 pic_mode=$pic_mode
16038
16039 # What is the maximum length of a command?
16040 max_cmd_len=$lt_cv_sys_max_cmd_len
16041
16042 # Does compiler simultaneously support -c and -o options?
16043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16044
16045 # Must we lock files when doing compilation?
16046 need_locks=$lt_need_locks
16047
16048 # Do we need the lib prefix for modules?
16049 need_lib_prefix=$need_lib_prefix
16050
16051 # Do we need a version for libraries?
16052 need_version=$need_version
16053
16054 # Whether dlopen is supported.
16055 dlopen_support=$enable_dlopen
16056
16057 # Whether dlopen of programs is supported.
16058 dlopen_self=$enable_dlopen_self
16059
16060 # Whether dlopen of statically linked programs is supported.
16061 dlopen_self_static=$enable_dlopen_self_static
16062
16063 # Compiler flag to prevent dynamic linking.
16064 link_static_flag=$lt_lt_prog_compiler_static_F77
16065
16066 # Compiler flag to turn off builtin functions.
16067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16068
16069 # Compiler flag to allow reflexive dlopens.
16070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16071
16072 # Compiler flag to generate shared objects directly from archives.
16073 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16074
16075 # Compiler flag to generate thread-safe objects.
16076 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16077
16078 # Library versioning type.
16079 version_type=$version_type
16080
16081 # Format of library name prefix.
16082 libname_spec=$lt_libname_spec
16083
16084 # List of archive names. First name is the real one, the rest are links.
16085 # The last name is the one that the linker finds with -lNAME.
16086 library_names_spec=$lt_library_names_spec
16087
16088 # The coded name of the library, if different from the real name.
16089 soname_spec=$lt_soname_spec
16090
16091 # Commands used to build and install an old-style archive.
16092 RANLIB=$lt_RANLIB
16093 old_archive_cmds=$lt_old_archive_cmds_F77
16094 old_postinstall_cmds=$lt_old_postinstall_cmds
16095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16096
16097 # Create an old-style archive from a shared archive.
16098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16099
16100 # Create a temporary old-style archive to link instead of a shared archive.
16101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16102
16103 # Commands used to build and install a shared archive.
16104 archive_cmds=$lt_archive_cmds_F77
16105 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16106 postinstall_cmds=$lt_postinstall_cmds
16107 postuninstall_cmds=$lt_postuninstall_cmds
16108
16109 # Commands used to build a loadable module (assumed same as above if empty)
16110 module_cmds=$lt_module_cmds_F77
16111 module_expsym_cmds=$lt_module_expsym_cmds_F77
16112
16113 # Commands to strip libraries.
16114 old_striplib=$lt_old_striplib
16115 striplib=$lt_striplib
16116
16117 # Dependencies to place before the objects being linked to create a
16118 # shared library.
16119 predep_objects=$lt_predep_objects_F77
16120
16121 # Dependencies to place after the objects being linked to create a
16122 # shared library.
16123 postdep_objects=$lt_postdep_objects_F77
16124
16125 # Dependencies to place before the objects being linked to create a
16126 # shared library.
16127 predeps=$lt_predeps_F77
16128
16129 # Dependencies to place after the objects being linked to create a
16130 # shared library.
16131 postdeps=$lt_postdeps_F77
16132
16133 # The library search path used internally by the compiler when linking
16134 # a shared library.
16135 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16136
16137 # Method to check whether dependent libraries are shared objects.
16138 deplibs_check_method=$lt_deplibs_check_method
16139
16140 # Command to use when deplibs_check_method == file_magic.
16141 file_magic_cmd=$lt_file_magic_cmd
16142
16143 # Flag that allows shared libraries with undefined symbols to be built.
16144 allow_undefined_flag=$lt_allow_undefined_flag_F77
16145
16146 # Flag that forces no undefined symbols.
16147 no_undefined_flag=$lt_no_undefined_flag_F77
16148
16149 # Commands used to finish a libtool library installation in a directory.
16150 finish_cmds=$lt_finish_cmds
16151
16152 # Same as above, but a single script fragment to be evaled but not shown.
16153 finish_eval=$lt_finish_eval
16154
16155 # Take the output of nm and produce a listing of raw symbols and C names.
16156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16157
16158 # Transform the output of nm in a proper C declaration
16159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16160
16161 # Transform the output of nm in a C name address pair
16162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16163
16164 # This is the shared library runtime path variable.
16165 runpath_var=$runpath_var
16166
16167 # This is the shared library path variable.
16168 shlibpath_var=$shlibpath_var
16169
16170 # Is shlibpath searched before the hard-coded library search path?
16171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16172
16173 # How to hardcode a shared library path into an executable.
16174 hardcode_action=$hardcode_action_F77
16175
16176 # Whether we should hardcode library paths into libraries.
16177 hardcode_into_libs=$hardcode_into_libs
16178
16179 # Flag to hardcode \$libdir into a binary during linking.
16180 # This must work even if \$libdir does not exist.
16181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16182
16183 # If ld is used when linking, flag to hardcode \$libdir into
16184 # a binary during linking. This must work even if \$libdir does
16185 # not exist.
16186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16187
16188 # Whether we need a single -rpath flag with a separated argument.
16189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16190
16191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16192 # resulting binary.
16193 hardcode_direct=$hardcode_direct_F77
16194
16195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16196 # resulting binary.
16197 hardcode_minus_L=$hardcode_minus_L_F77
16198
16199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16200 # the resulting binary.
16201 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16202
16203 # Set to yes if building a shared library automatically hardcodes DIR into the library
16204 # and all subsequent libraries and executables linked against it.
16205 hardcode_automatic=$hardcode_automatic_F77
16206
16207 # Variables whose values should be saved in libtool wrapper scripts and
16208 # restored at relink time.
16209 variables_saved_for_relink="$variables_saved_for_relink"
16210
16211 # Whether libtool must link a program against all its dependency libraries.
16212 link_all_deplibs=$link_all_deplibs_F77
16213
16214 # Compile-time system search path for libraries
16215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16216
16217 # Run-time system search path for libraries
16218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16219
16220 # Fix the shell variable \$srcfile for the compiler.
16221 fix_srcfile_path=$lt_fix_srcfile_path
16222
16223 # Set to yes if exported symbols are required.
16224 always_export_symbols=$always_export_symbols_F77
16225
16226 # The commands to list exported symbols.
16227 export_symbols_cmds=$lt_export_symbols_cmds_F77
16228
16229 # The commands to extract the exported symbol list from a shared archive.
16230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16231
16232 # Symbols that should not be listed in the preloaded symbols.
16233 exclude_expsyms=$lt_exclude_expsyms_F77
16234
16235 # Symbols that must always be exported.
16236 include_expsyms=$lt_include_expsyms_F77
16237
16238 # ### END LIBTOOL TAG CONFIG: $tagname
16239
16240 __EOF__
16241
16242
16243 else
16244 # If there is no Makefile yet, we rely on a make rule to execute
16245 # `config.status --recheck' to rerun these tests and create the
16246 # libtool script then.
16247 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16248 if test -f "$ltmain_in"; then
16249 test -f Makefile && make "$ltmain"
16250 fi
16251 fi
16252
16253
16254 ac_ext=c
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16259
16260 CC="$lt_save_CC"
16261
16262 else
16263 tagname=""
16264 fi
16265 ;;
16266
16267 GCJ)
16268 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16269
16270
16271 # Source file extension for Java test sources.
16272 ac_ext=java
16273
16274 # Object file extension for compiled Java test sources.
16275 objext=o
16276 objext_GCJ=$objext
16277
16278 # Code to be used in simple compile tests
16279 lt_simple_compile_test_code="class foo {}"
16280
16281 # Code to be used in simple link tests
16282 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16283
16284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16285
16286 # If no C compiler was specified, use CC.
16287 LTCC=${LTCC-"$CC"}
16288
16289 # If no C compiler flags were specified, use CFLAGS.
16290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16291
16292 # Allow CC to be a program name with arguments.
16293 compiler=$CC
16294
16295
16296 # save warnings/boilerplate of simple test code
16297 ac_outfile=conftest.$ac_objext
16298 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16300 _lt_compiler_boilerplate=`cat conftest.err`
16301 $rm conftest*
16302
16303 ac_outfile=conftest.$ac_objext
16304 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16306 _lt_linker_boilerplate=`cat conftest.err`
16307 $rm conftest*
16308
16309
16310 # Allow CC to be a program name with arguments.
16311 lt_save_CC="$CC"
16312 CC=${GCJ-"gcj"}
16313 compiler=$CC
16314 compiler_GCJ=$CC
16315 for cc_temp in $compiler""; do
16316 case $cc_temp in
16317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16319 \-*) ;;
16320 *) break;;
16321 esac
16322 done
16323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16324
16325
16326 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16327 archive_cmds_need_lc_GCJ=no
16328
16329 old_archive_cmds_GCJ=$old_archive_cmds
16330
16331
16332 lt_prog_compiler_no_builtin_flag_GCJ=
16333
16334 if test "$GCC" = yes; then
16335 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16336
16337
16338 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16339 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16340 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 else
16343 lt_cv_prog_compiler_rtti_exceptions=no
16344 ac_outfile=conftest.$ac_objext
16345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16346 lt_compiler_flag="-fno-rtti -fno-exceptions"
16347 # Insert the option either (1) after the last *FLAGS variable, or
16348 # (2) before a word containing "conftest.", or (3) at the end.
16349 # Note that $ac_compile itself does not contain backslashes and begins
16350 # with a dollar sign (not a hyphen), so the echo should work correctly.
16351 # The option is referenced via a variable to avoid confusing sed.
16352 lt_compile=`echo "$ac_compile" | $SED \
16353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16355 -e 's:$: $lt_compiler_flag:'`
16356 (eval echo "\"\$as_me:16356: $lt_compile\"" >&5)
16357 (eval "$lt_compile" 2>conftest.err)
16358 ac_status=$?
16359 cat conftest.err >&5
16360 echo "$as_me:16360: \$? = $ac_status" >&5
16361 if (exit $ac_status) && test -s "$ac_outfile"; then
16362 # The compiler can only warn and ignore the option if not recognized
16363 # So say no if there are warnings other than the usual output.
16364 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16367 lt_cv_prog_compiler_rtti_exceptions=yes
16368 fi
16369 fi
16370 $rm conftest*
16371
16372 fi
16373 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16374 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16375
16376 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16377 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16378 else
16379 :
16380 fi
16381
16382 fi
16383
16384 lt_prog_compiler_wl_GCJ=
16385 lt_prog_compiler_pic_GCJ=
16386 lt_prog_compiler_static_GCJ=
16387
16388 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16390
16391 if test "$GCC" = yes; then
16392 lt_prog_compiler_wl_GCJ='-Wl,'
16393 lt_prog_compiler_static_GCJ='-static'
16394
16395 case $host_os in
16396 aix*)
16397 # All AIX code is PIC.
16398 if test "$host_cpu" = ia64; then
16399 # AIX 5 now supports IA64 processor
16400 lt_prog_compiler_static_GCJ='-Bstatic'
16401 fi
16402 ;;
16403
16404 amigaos*)
16405 # FIXME: we need at least 68020 code to build shared libraries, but
16406 # adding the `-m68020' flag to GCC prevents building anything better,
16407 # like `-m68040'.
16408 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16409 ;;
16410
16411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16412 # PIC is the default for these OSes.
16413 ;;
16414
16415 mingw* | cygwin* | pw32* | os2*)
16416 # This hack is so that the source file can tell whether it is being
16417 # built for inclusion in a dll (and should export symbols for example).
16418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16419 # (--disable-auto-import) libraries
16420 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16421 ;;
16422
16423 darwin* | rhapsody*)
16424 # PIC is the default on this platform
16425 # Common symbols not allowed in MH_DYLIB files
16426 lt_prog_compiler_pic_GCJ='-fno-common'
16427 ;;
16428
16429 interix[3-9]*)
16430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16431 # Instead, we relocate shared libraries at runtime.
16432 ;;
16433
16434 msdosdjgpp*)
16435 # Just because we use GCC doesn't mean we suddenly get shared libraries
16436 # on systems that don't support them.
16437 lt_prog_compiler_can_build_shared_GCJ=no
16438 enable_shared=no
16439 ;;
16440
16441 sysv4*MP*)
16442 if test -d /usr/nec; then
16443 lt_prog_compiler_pic_GCJ=-Kconform_pic
16444 fi
16445 ;;
16446
16447 hpux*)
16448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16449 # not for PA HP-UX.
16450 case $host_cpu in
16451 hppa*64*|ia64*)
16452 # +Z the default
16453 ;;
16454 *)
16455 lt_prog_compiler_pic_GCJ='-fPIC'
16456 ;;
16457 esac
16458 ;;
16459
16460 *)
16461 lt_prog_compiler_pic_GCJ='-fPIC'
16462 ;;
16463 esac
16464 else
16465 # PORTME Check for flag to pass linker flags through the system compiler.
16466 case $host_os in
16467 aix*)
16468 lt_prog_compiler_wl_GCJ='-Wl,'
16469 if test "$host_cpu" = ia64; then
16470 # AIX 5 now supports IA64 processor
16471 lt_prog_compiler_static_GCJ='-Bstatic'
16472 else
16473 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16474 fi
16475 ;;
16476 darwin*)
16477 # PIC is the default on this platform
16478 # Common symbols not allowed in MH_DYLIB files
16479 case $cc_basename in
16480 xlc*)
16481 lt_prog_compiler_pic_GCJ='-qnocommon'
16482 lt_prog_compiler_wl_GCJ='-Wl,'
16483 ;;
16484 esac
16485 ;;
16486
16487 mingw* | cygwin* | pw32* | os2*)
16488 # This hack is so that the source file can tell whether it is being
16489 # built for inclusion in a dll (and should export symbols for example).
16490 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16491 ;;
16492
16493 hpux9* | hpux10* | hpux11*)
16494 lt_prog_compiler_wl_GCJ='-Wl,'
16495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16496 # not for PA HP-UX.
16497 case $host_cpu in
16498 hppa*64*|ia64*)
16499 # +Z the default
16500 ;;
16501 *)
16502 lt_prog_compiler_pic_GCJ='+Z'
16503 ;;
16504 esac
16505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16506 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16507 ;;
16508
16509 irix5* | irix6* | nonstopux*)
16510 lt_prog_compiler_wl_GCJ='-Wl,'
16511 # PIC (with -KPIC) is the default.
16512 lt_prog_compiler_static_GCJ='-non_shared'
16513 ;;
16514
16515 newsos6)
16516 lt_prog_compiler_pic_GCJ='-KPIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16518 ;;
16519
16520 linux* | k*bsd*-gnu)
16521 case $cc_basename in
16522 icc* | ecc*)
16523 lt_prog_compiler_wl_GCJ='-Wl,'
16524 lt_prog_compiler_pic_GCJ='-KPIC'
16525 lt_prog_compiler_static_GCJ='-static'
16526 ;;
16527 pgcc* | pgf77* | pgf90* | pgf95*)
16528 # Portland Group compilers (*not* the Pentium gcc compiler,
16529 # which looks to be a dead project)
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16531 lt_prog_compiler_pic_GCJ='-fpic'
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16533 ;;
16534 ccc*)
16535 lt_prog_compiler_wl_GCJ='-Wl,'
16536 # All Alpha code is PIC.
16537 lt_prog_compiler_static_GCJ='-non_shared'
16538 ;;
16539 *)
16540 case `$CC -V 2>&1 | sed 5q` in
16541 *Sun\ C*)
16542 # Sun C 5.9
16543 lt_prog_compiler_pic_GCJ='-KPIC'
16544 lt_prog_compiler_static_GCJ='-Bstatic'
16545 lt_prog_compiler_wl_GCJ='-Wl,'
16546 ;;
16547 *Sun\ F*)
16548 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16549 lt_prog_compiler_pic_GCJ='-KPIC'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16551 lt_prog_compiler_wl_GCJ=''
16552 ;;
16553 esac
16554 ;;
16555 esac
16556 ;;
16557
16558 osf3* | osf4* | osf5*)
16559 lt_prog_compiler_wl_GCJ='-Wl,'
16560 # All OSF/1 code is PIC.
16561 lt_prog_compiler_static_GCJ='-non_shared'
16562 ;;
16563
16564 rdos*)
16565 lt_prog_compiler_static_GCJ='-non_shared'
16566 ;;
16567
16568 solaris*)
16569 lt_prog_compiler_pic_GCJ='-KPIC'
16570 lt_prog_compiler_static_GCJ='-Bstatic'
16571 case $cc_basename in
16572 f77* | f90* | f95*)
16573 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16574 *)
16575 lt_prog_compiler_wl_GCJ='-Wl,';;
16576 esac
16577 ;;
16578
16579 sunos4*)
16580 lt_prog_compiler_wl_GCJ='-Qoption ld '
16581 lt_prog_compiler_pic_GCJ='-PIC'
16582 lt_prog_compiler_static_GCJ='-Bstatic'
16583 ;;
16584
16585 sysv4 | sysv4.2uw2* | sysv4.3*)
16586 lt_prog_compiler_wl_GCJ='-Wl,'
16587 lt_prog_compiler_pic_GCJ='-KPIC'
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16589 ;;
16590
16591 sysv4*MP*)
16592 if test -d /usr/nec ;then
16593 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16594 lt_prog_compiler_static_GCJ='-Bstatic'
16595 fi
16596 ;;
16597
16598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16600 lt_prog_compiler_pic_GCJ='-KPIC'
16601 lt_prog_compiler_static_GCJ='-Bstatic'
16602 ;;
16603
16604 unicos*)
16605 lt_prog_compiler_wl_GCJ='-Wl,'
16606 lt_prog_compiler_can_build_shared_GCJ=no
16607 ;;
16608
16609 uts4*)
16610 lt_prog_compiler_pic_GCJ='-pic'
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 ;;
16613
16614 *)
16615 lt_prog_compiler_can_build_shared_GCJ=no
16616 ;;
16617 esac
16618 fi
16619
16620 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16621 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16622
16623 #
16624 # Check to make sure the PIC flag actually works.
16625 #
16626 if test -n "$lt_prog_compiler_pic_GCJ"; then
16627
16628 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16629 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16630 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 lt_prog_compiler_pic_works_GCJ=no
16634 ac_outfile=conftest.$ac_objext
16635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16636 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16637 # Insert the option either (1) after the last *FLAGS variable, or
16638 # (2) before a word containing "conftest.", or (3) at the end.
16639 # Note that $ac_compile itself does not contain backslashes and begins
16640 # with a dollar sign (not a hyphen), so the echo should work correctly.
16641 # The option is referenced via a variable to avoid confusing sed.
16642 lt_compile=`echo "$ac_compile" | $SED \
16643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16645 -e 's:$: $lt_compiler_flag:'`
16646 (eval echo "\"\$as_me:16646: $lt_compile\"" >&5)
16647 (eval "$lt_compile" 2>conftest.err)
16648 ac_status=$?
16649 cat conftest.err >&5
16650 echo "$as_me:16650: \$? = $ac_status" >&5
16651 if (exit $ac_status) && test -s "$ac_outfile"; then
16652 # The compiler can only warn and ignore the option if not recognized
16653 # So say no if there are warnings other than the usual output.
16654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16657 lt_prog_compiler_pic_works_GCJ=yes
16658 fi
16659 fi
16660 $rm conftest*
16661
16662 fi
16663 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16664 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16665
16666 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16667 case $lt_prog_compiler_pic_GCJ in
16668 "" | " "*) ;;
16669 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16670 esac
16671 else
16672 lt_prog_compiler_pic_GCJ=
16673 lt_prog_compiler_can_build_shared_GCJ=no
16674 fi
16675
16676 fi
16677 case $host_os in
16678 # For platforms which do not support PIC, -DPIC is meaningless:
16679 *djgpp*)
16680 lt_prog_compiler_pic_GCJ=
16681 ;;
16682 *)
16683 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16684 ;;
16685 esac
16686
16687 #
16688 # Check to make sure the static flag actually works.
16689 #
16690 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16691 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16692 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16693 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16696 lt_prog_compiler_static_works_GCJ=no
16697 save_LDFLAGS="$LDFLAGS"
16698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16701 # The linker can only warn and ignore the option if not recognized
16702 # So say no if there are warnings
16703 if test -s conftest.err; then
16704 # Append any errors to the config.log.
16705 cat conftest.err 1>&5
16706 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16708 if diff conftest.exp conftest.er2 >/dev/null; then
16709 lt_prog_compiler_static_works_GCJ=yes
16710 fi
16711 else
16712 lt_prog_compiler_static_works_GCJ=yes
16713 fi
16714 fi
16715 $rm conftest*
16716 LDFLAGS="$save_LDFLAGS"
16717
16718 fi
16719 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16720 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16721
16722 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16723 :
16724 else
16725 lt_prog_compiler_static_GCJ=
16726 fi
16727
16728
16729 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16730 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16731 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734 lt_cv_prog_compiler_c_o_GCJ=no
16735 $rm -r conftest 2>/dev/null
16736 mkdir conftest
16737 cd conftest
16738 mkdir out
16739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16740
16741 lt_compiler_flag="-o out/conftest2.$ac_objext"
16742 # Insert the option either (1) after the last *FLAGS variable, or
16743 # (2) before a word containing "conftest.", or (3) at the end.
16744 # Note that $ac_compile itself does not contain backslashes and begins
16745 # with a dollar sign (not a hyphen), so the echo should work correctly.
16746 lt_compile=`echo "$ac_compile" | $SED \
16747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16749 -e 's:$: $lt_compiler_flag:'`
16750 (eval echo "\"\$as_me:16750: $lt_compile\"" >&5)
16751 (eval "$lt_compile" 2>out/conftest.err)
16752 ac_status=$?
16753 cat out/conftest.err >&5
16754 echo "$as_me:16754: \$? = $ac_status" >&5
16755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16756 then
16757 # The compiler can only warn and ignore the option if not recognized
16758 # So say no if there are warnings
16759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16762 lt_cv_prog_compiler_c_o_GCJ=yes
16763 fi
16764 fi
16765 chmod u+w . 2>&5
16766 $rm conftest*
16767 # SGI C++ compiler will create directory out/ii_files/ for
16768 # template instantiation
16769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16770 $rm out/* && rmdir out
16771 cd ..
16772 rmdir conftest
16773 $rm conftest*
16774
16775 fi
16776 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16777 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16778
16779
16780 hard_links="nottested"
16781 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16782 # do not overwrite the value of need_locks provided by the user
16783 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16784 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16785 hard_links=yes
16786 $rm conftest*
16787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788 touch conftest.a
16789 ln conftest.a conftest.b 2>&5 || hard_links=no
16790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16791 { echo "$as_me:$LINENO: result: $hard_links" >&5
16792 echo "${ECHO_T}$hard_links" >&6; }
16793 if test "$hard_links" = no; then
16794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16795 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16796 need_locks=warn
16797 fi
16798 else
16799 need_locks=no
16800 fi
16801
16802 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16804
16805 runpath_var=
16806 allow_undefined_flag_GCJ=
16807 enable_shared_with_static_runtimes_GCJ=no
16808 archive_cmds_GCJ=
16809 archive_expsym_cmds_GCJ=
16810 old_archive_From_new_cmds_GCJ=
16811 old_archive_from_expsyms_cmds_GCJ=
16812 export_dynamic_flag_spec_GCJ=
16813 whole_archive_flag_spec_GCJ=
16814 thread_safe_flag_spec_GCJ=
16815 hardcode_libdir_flag_spec_GCJ=
16816 hardcode_libdir_flag_spec_ld_GCJ=
16817 hardcode_libdir_separator_GCJ=
16818 hardcode_direct_GCJ=no
16819 hardcode_minus_L_GCJ=no
16820 hardcode_shlibpath_var_GCJ=unsupported
16821 link_all_deplibs_GCJ=unknown
16822 hardcode_automatic_GCJ=no
16823 module_cmds_GCJ=
16824 module_expsym_cmds_GCJ=
16825 always_export_symbols_GCJ=no
16826 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16827 # include_expsyms should be a list of space-separated symbols to be *always*
16828 # included in the symbol list
16829 include_expsyms_GCJ=
16830 # exclude_expsyms can be an extended regexp of symbols to exclude
16831 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16832 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16833 # as well as any symbol that contains `d'.
16834 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16836 # platforms (ab)use it in PIC code, but their linkers get confused if
16837 # the symbol is explicitly referenced. Since portable code cannot
16838 # rely on this symbol name, it's probably fine to never include it in
16839 # preloaded symbol tables.
16840 extract_expsyms_cmds=
16841 # Just being paranoid about ensuring that cc_basename is set.
16842 for cc_temp in $compiler""; do
16843 case $cc_temp in
16844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16846 \-*) ;;
16847 *) break;;
16848 esac
16849 done
16850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16851
16852 case $host_os in
16853 cygwin* | mingw* | pw32*)
16854 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16855 # When not using gcc, we currently assume that we are using
16856 # Microsoft Visual C++.
16857 if test "$GCC" != yes; then
16858 with_gnu_ld=no
16859 fi
16860 ;;
16861 interix*)
16862 # we just hope/assume this is gcc and not c89 (= MSVC++)
16863 with_gnu_ld=yes
16864 ;;
16865 openbsd*)
16866 with_gnu_ld=no
16867 ;;
16868 esac
16869
16870 ld_shlibs_GCJ=yes
16871 if test "$with_gnu_ld" = yes; then
16872 # If archive_cmds runs LD, not CC, wlarc should be empty
16873 wlarc='${wl}'
16874
16875 # Set some defaults for GNU ld with shared library support. These
16876 # are reset later if shared libraries are not supported. Putting them
16877 # here allows them to be overridden if necessary.
16878 runpath_var=LD_RUN_PATH
16879 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16880 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16881 # ancient GNU ld didn't support --whole-archive et. al.
16882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16883 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16884 else
16885 whole_archive_flag_spec_GCJ=
16886 fi
16887 supports_anon_versioning=no
16888 case `$LD -v 2>/dev/null` in
16889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16892 *\ 2.11.*) ;; # other 2.11 versions
16893 *) supports_anon_versioning=yes ;;
16894 esac
16895
16896 # See if GNU ld supports shared libraries.
16897 case $host_os in
16898 aix3* | aix4* | aix5*)
16899 # On AIX/PPC, the GNU linker is very broken
16900 if test "$host_cpu" != ia64; then
16901 ld_shlibs_GCJ=no
16902 cat <<EOF 1>&2
16903
16904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16905 *** to be unable to reliably create shared libraries on AIX.
16906 *** Therefore, libtool is disabling shared libraries support. If you
16907 *** really care for shared libraries, you may want to modify your PATH
16908 *** so that a non-GNU linker is found, and then restart.
16909
16910 EOF
16911 fi
16912 ;;
16913
16914 amigaos*)
16915 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)'
16916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16917 hardcode_minus_L_GCJ=yes
16918
16919 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16920 # that the semantics of dynamic libraries on AmigaOS, at least up
16921 # to version 4, is to share data among multiple programs linked
16922 # with the same dynamic library. Since this doesn't match the
16923 # behavior of shared libraries on other platforms, we can't use
16924 # them.
16925 ld_shlibs_GCJ=no
16926 ;;
16927
16928 beos*)
16929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930 allow_undefined_flag_GCJ=unsupported
16931 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16932 # support --undefined. This deserves some investigation. FIXME
16933 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16934 else
16935 ld_shlibs_GCJ=no
16936 fi
16937 ;;
16938
16939 cygwin* | mingw* | pw32*)
16940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16941 # as there is no search path for DLLs.
16942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16943 allow_undefined_flag_GCJ=unsupported
16944 always_export_symbols_GCJ=no
16945 enable_shared_with_static_runtimes_GCJ=yes
16946 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16947
16948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16950 # If the export-symbols file already is a .def file (1st line
16951 # is EXPORTS), use it as is; otherwise, prepend...
16952 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16953 cp $export_symbols $output_objdir/$soname.def;
16954 else
16955 echo EXPORTS > $output_objdir/$soname.def;
16956 cat $export_symbols >> $output_objdir/$soname.def;
16957 fi~
16958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16959 else
16960 ld_shlibs_GCJ=no
16961 fi
16962 ;;
16963
16964 interix[3-9]*)
16965 hardcode_direct_GCJ=no
16966 hardcode_shlibpath_var_GCJ=no
16967 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16968 export_dynamic_flag_spec_GCJ='${wl}-E'
16969 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16970 # Instead, shared libraries are loaded at an image base (0x10000000 by
16971 # default) and relocated if they conflict, which is a slow very memory
16972 # consuming and fragmenting process. To avoid this, we pick a random,
16973 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16974 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16975 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'
16976 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'
16977 ;;
16978
16979 gnu* | linux* | k*bsd*-gnu)
16980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16981 tmp_addflag=
16982 case $cc_basename,$host_cpu in
16983 pgcc*) # Portland Group C compiler
16984 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'
16985 tmp_addflag=' $pic_flag'
16986 ;;
16987 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16988 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'
16989 tmp_addflag=' $pic_flag -Mnomain' ;;
16990 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16991 tmp_addflag=' -i_dynamic' ;;
16992 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16993 tmp_addflag=' -i_dynamic -nofor_main' ;;
16994 ifc* | ifort*) # Intel Fortran compiler
16995 tmp_addflag=' -nofor_main' ;;
16996 esac
16997 case `$CC -V 2>&1 | sed 5q` in
16998 *Sun\ C*) # Sun C 5.9
16999 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'
17000 tmp_sharedflag='-G' ;;
17001 *Sun\ F*) # Sun Fortran 8.3
17002 tmp_sharedflag='-G' ;;
17003 *)
17004 tmp_sharedflag='-shared' ;;
17005 esac
17006 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17007
17008 if test $supports_anon_versioning = yes; then
17009 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17011 $echo "local: *; };" >> $output_objdir/$libname.ver~
17012 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17013 fi
17014 else
17015 ld_shlibs_GCJ=no
17016 fi
17017 ;;
17018
17019 netbsd*)
17020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17021 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17022 wlarc=
17023 else
17024 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17025 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17026 fi
17027 ;;
17028
17029 solaris*)
17030 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17031 ld_shlibs_GCJ=no
17032 cat <<EOF 1>&2
17033
17034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17035 *** create shared libraries on Solaris systems. Therefore, libtool
17036 *** is disabling shared libraries support. We urge you to upgrade GNU
17037 *** binutils to release 2.9.1 or newer. Another option is to modify
17038 *** your PATH or compiler configuration so that the native linker is
17039 *** used, and then restart.
17040
17041 EOF
17042 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17043 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17044 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17045 else
17046 ld_shlibs_GCJ=no
17047 fi
17048 ;;
17049
17050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17051 case `$LD -v 2>&1` in
17052 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17053 ld_shlibs_GCJ=no
17054 cat <<_LT_EOF 1>&2
17055
17056 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17057 *** reliably create shared libraries on SCO systems. Therefore, libtool
17058 *** is disabling shared libraries support. We urge you to upgrade GNU
17059 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17060 *** your PATH or compiler configuration so that the native linker is
17061 *** used, and then restart.
17062
17063 _LT_EOF
17064 ;;
17065 *)
17066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17067 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17068 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17069 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17070 else
17071 ld_shlibs_GCJ=no
17072 fi
17073 ;;
17074 esac
17075 ;;
17076
17077 sunos4*)
17078 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17079 wlarc=
17080 hardcode_direct_GCJ=yes
17081 hardcode_shlibpath_var_GCJ=no
17082 ;;
17083
17084 *)
17085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17086 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17087 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17088 else
17089 ld_shlibs_GCJ=no
17090 fi
17091 ;;
17092 esac
17093
17094 if test "$ld_shlibs_GCJ" = no; then
17095 runpath_var=
17096 hardcode_libdir_flag_spec_GCJ=
17097 export_dynamic_flag_spec_GCJ=
17098 whole_archive_flag_spec_GCJ=
17099 fi
17100 else
17101 # PORTME fill in a description of your system's linker (not GNU ld)
17102 case $host_os in
17103 aix3*)
17104 allow_undefined_flag_GCJ=unsupported
17105 always_export_symbols_GCJ=yes
17106 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'
17107 # Note: this linker hardcodes the directories in LIBPATH if there
17108 # are no directories specified by -L.
17109 hardcode_minus_L_GCJ=yes
17110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17111 # Neither direct hardcoding nor static linking is supported with a
17112 # broken collect2.
17113 hardcode_direct_GCJ=unsupported
17114 fi
17115 ;;
17116
17117 aix4* | aix5*)
17118 if test "$host_cpu" = ia64; then
17119 # On IA64, the linker does run time linking by default, so we don't
17120 # have to do anything special.
17121 aix_use_runtimelinking=no
17122 exp_sym_flag='-Bexport'
17123 no_entry_flag=""
17124 else
17125 # If we're using GNU nm, then we don't want the "-C" option.
17126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17127 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17128 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'
17129 else
17130 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'
17131 fi
17132 aix_use_runtimelinking=no
17133
17134 # Test if we are trying to use run time linking or normal
17135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17136 # need to do runtime linking.
17137 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17138 for ld_flag in $LDFLAGS; do
17139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17140 aix_use_runtimelinking=yes
17141 break
17142 fi
17143 done
17144 ;;
17145 esac
17146
17147 exp_sym_flag='-bexport'
17148 no_entry_flag='-bnoentry'
17149 fi
17150
17151 # When large executables or shared objects are built, AIX ld can
17152 # have problems creating the table of contents. If linking a library
17153 # or program results in "error TOC overflow" add -mminimal-toc to
17154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17156
17157 archive_cmds_GCJ=''
17158 hardcode_direct_GCJ=yes
17159 hardcode_libdir_separator_GCJ=':'
17160 link_all_deplibs_GCJ=yes
17161
17162 if test "$GCC" = yes; then
17163 case $host_os in aix4.[012]|aix4.[012].*)
17164 # We only want to do this on AIX 4.2 and lower, the check
17165 # below for broken collect2 doesn't work under 4.3+
17166 collect2name=`${CC} -print-prog-name=collect2`
17167 if test -f "$collect2name" && \
17168 strings "$collect2name" | grep resolve_lib_name >/dev/null
17169 then
17170 # We have reworked collect2
17171 :
17172 else
17173 # We have old collect2
17174 hardcode_direct_GCJ=unsupported
17175 # It fails to find uninstalled libraries when the uninstalled
17176 # path is not listed in the libpath. Setting hardcode_minus_L
17177 # to unsupported forces relinking
17178 hardcode_minus_L_GCJ=yes
17179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17180 hardcode_libdir_separator_GCJ=
17181 fi
17182 ;;
17183 esac
17184 shared_flag='-shared'
17185 if test "$aix_use_runtimelinking" = yes; then
17186 shared_flag="$shared_flag "'${wl}-G'
17187 fi
17188 else
17189 # not using gcc
17190 if test "$host_cpu" = ia64; then
17191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17192 # chokes on -Wl,-G. The following line is correct:
17193 shared_flag='-G'
17194 else
17195 if test "$aix_use_runtimelinking" = yes; then
17196 shared_flag='${wl}-G'
17197 else
17198 shared_flag='${wl}-bM:SRE'
17199 fi
17200 fi
17201 fi
17202
17203 # It seems that -bexpall does not export symbols beginning with
17204 # underscore (_), so it is better to generate a list of symbols to export.
17205 always_export_symbols_GCJ=yes
17206 if test "$aix_use_runtimelinking" = yes; then
17207 # Warning - without using the other runtime loading flags (-brtl),
17208 # -berok will link without error, but may produce a broken library.
17209 allow_undefined_flag_GCJ='-berok'
17210 # Determine the default libpath from the value encoded in an empty executable.
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217
17218 int
17219 main ()
17220 {
17221
17222 ;
17223 return 0;
17224 }
17225 _ACEOF
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest$ac_exeext &&
17243 $as_test_x conftest$ac_exeext; then
17244
17245 lt_aix_libpath_sed='
17246 /Import File Strings/,/^$/ {
17247 /^0/ {
17248 s/^0 *\(.*\)$/\1/
17249 p
17250 }
17251 }'
17252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17253 # Check for a 64-bit object if we didn't find anything.
17254 if test -z "$aix_libpath"; then
17255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17256 fi
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261
17262 fi
17263
17264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17265 conftest$ac_exeext conftest.$ac_ext
17266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17267
17268 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17269 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"
17270 else
17271 if test "$host_cpu" = ia64; then
17272 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17273 allow_undefined_flag_GCJ="-z nodefs"
17274 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"
17275 else
17276 # Determine the default libpath from the value encoded in an empty executable.
17277 cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h. */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283
17284 int
17285 main ()
17286 {
17287
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext &&
17309 $as_test_x conftest$ac_exeext; then
17310
17311 lt_aix_libpath_sed='
17312 /Import File Strings/,/^$/ {
17313 /^0/ {
17314 s/^0 *\(.*\)$/\1/
17315 p
17316 }
17317 }'
17318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17319 # Check for a 64-bit object if we didn't find anything.
17320 if test -z "$aix_libpath"; then
17321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17322 fi
17323 else
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327
17328 fi
17329
17330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17331 conftest$ac_exeext conftest.$ac_ext
17332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17333
17334 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17335 # Warning - without using the other run time loading flags,
17336 # -berok will link without error, but may produce a broken library.
17337 no_undefined_flag_GCJ=' ${wl}-bernotok'
17338 allow_undefined_flag_GCJ=' ${wl}-berok'
17339 # Exported symbols can be pulled into shared objects from archives
17340 whole_archive_flag_spec_GCJ='$convenience'
17341 archive_cmds_need_lc_GCJ=yes
17342 # This is similar to how AIX traditionally builds its shared libraries.
17343 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'
17344 fi
17345 fi
17346 ;;
17347
17348 amigaos*)
17349 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)'
17350 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17351 hardcode_minus_L_GCJ=yes
17352 # see comment about different semantics on the GNU ld section
17353 ld_shlibs_GCJ=no
17354 ;;
17355
17356 bsdi[45]*)
17357 export_dynamic_flag_spec_GCJ=-rdynamic
17358 ;;
17359
17360 cygwin* | mingw* | pw32*)
17361 # When not using gcc, we currently assume that we are using
17362 # Microsoft Visual C++.
17363 # hardcode_libdir_flag_spec is actually meaningless, as there is
17364 # no search path for DLLs.
17365 hardcode_libdir_flag_spec_GCJ=' '
17366 allow_undefined_flag_GCJ=unsupported
17367 # Tell ltmain to make .lib files, not .a files.
17368 libext=lib
17369 # Tell ltmain to make .dll files, not .so files.
17370 shrext_cmds=".dll"
17371 # FIXME: Setting linknames here is a bad hack.
17372 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17373 # The linker will automatically build a .lib file if we build a DLL.
17374 old_archive_From_new_cmds_GCJ='true'
17375 # FIXME: Should let the user specify the lib program.
17376 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17377 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17378 enable_shared_with_static_runtimes_GCJ=yes
17379 ;;
17380
17381 darwin* | rhapsody*)
17382 case $host_os in
17383 rhapsody* | darwin1.[012])
17384 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17385 ;;
17386 *) # Darwin 1.3 on
17387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17388 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17389 else
17390 case ${MACOSX_DEPLOYMENT_TARGET} in
17391 10.[012])
17392 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17393 ;;
17394 10.*)
17395 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17396 ;;
17397 esac
17398 fi
17399 ;;
17400 esac
17401 archive_cmds_need_lc_GCJ=no
17402 hardcode_direct_GCJ=no
17403 hardcode_automatic_GCJ=yes
17404 hardcode_shlibpath_var_GCJ=unsupported
17405 whole_archive_flag_spec_GCJ=''
17406 link_all_deplibs_GCJ=yes
17407 if test "$GCC" = yes ; then
17408 output_verbose_link_cmd='echo'
17409 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17410 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17411 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17412 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17413 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}'
17414 else
17415 case $cc_basename in
17416 xlc*)
17417 output_verbose_link_cmd='echo'
17418 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17419 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17421 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}'
17422 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}'
17423 ;;
17424 *)
17425 ld_shlibs_GCJ=no
17426 ;;
17427 esac
17428 fi
17429 ;;
17430
17431 dgux*)
17432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17434 hardcode_shlibpath_var_GCJ=no
17435 ;;
17436
17437 freebsd1*)
17438 ld_shlibs_GCJ=no
17439 ;;
17440
17441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17442 # support. Future versions do this automatically, but an explicit c++rt0.o
17443 # does not break anything, and helps significantly (at the cost of a little
17444 # extra space).
17445 freebsd2.2*)
17446 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17448 hardcode_direct_GCJ=yes
17449 hardcode_shlibpath_var_GCJ=no
17450 ;;
17451
17452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17453 freebsd2*)
17454 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=yes
17456 hardcode_minus_L_GCJ=yes
17457 hardcode_shlibpath_var_GCJ=no
17458 ;;
17459
17460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17461 freebsd* | dragonfly*)
17462 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464 hardcode_direct_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=no
17466 ;;
17467
17468 hpux9*)
17469 if test "$GCC" = yes; then
17470 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'
17471 else
17472 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'
17473 fi
17474 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17475 hardcode_libdir_separator_GCJ=:
17476 hardcode_direct_GCJ=yes
17477
17478 # hardcode_minus_L: Not really in the search PATH,
17479 # but as the default location of the library.
17480 hardcode_minus_L_GCJ=yes
17481 export_dynamic_flag_spec_GCJ='${wl}-E'
17482 ;;
17483
17484 hpux10*)
17485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17486 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17487 else
17488 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17489 fi
17490 if test "$with_gnu_ld" = no; then
17491 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17492 hardcode_libdir_separator_GCJ=:
17493
17494 hardcode_direct_GCJ=yes
17495 export_dynamic_flag_spec_GCJ='${wl}-E'
17496
17497 # hardcode_minus_L: Not really in the search PATH,
17498 # but as the default location of the library.
17499 hardcode_minus_L_GCJ=yes
17500 fi
17501 ;;
17502
17503 hpux11*)
17504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17505 case $host_cpu in
17506 hppa*64*)
17507 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17508 ;;
17509 ia64*)
17510 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17511 ;;
17512 *)
17513 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17514 ;;
17515 esac
17516 else
17517 case $host_cpu in
17518 hppa*64*)
17519 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17520 ;;
17521 ia64*)
17522 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17523 ;;
17524 *)
17525 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17526 ;;
17527 esac
17528 fi
17529 if test "$with_gnu_ld" = no; then
17530 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17531 hardcode_libdir_separator_GCJ=:
17532
17533 case $host_cpu in
17534 hppa*64*|ia64*)
17535 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17536 hardcode_direct_GCJ=no
17537 hardcode_shlibpath_var_GCJ=no
17538 ;;
17539 *)
17540 hardcode_direct_GCJ=yes
17541 export_dynamic_flag_spec_GCJ='${wl}-E'
17542
17543 # hardcode_minus_L: Not really in the search PATH,
17544 # but as the default location of the library.
17545 hardcode_minus_L_GCJ=yes
17546 ;;
17547 esac
17548 fi
17549 ;;
17550
17551 irix5* | irix6* | nonstopux*)
17552 if test "$GCC" = yes; then
17553 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'
17554 else
17555 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'
17556 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17557 fi
17558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17559 hardcode_libdir_separator_GCJ=:
17560 link_all_deplibs_GCJ=yes
17561 ;;
17562
17563 netbsd*)
17564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17565 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17566 else
17567 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17568 fi
17569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17570 hardcode_direct_GCJ=yes
17571 hardcode_shlibpath_var_GCJ=no
17572 ;;
17573
17574 newsos6)
17575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17576 hardcode_direct_GCJ=yes
17577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17578 hardcode_libdir_separator_GCJ=:
17579 hardcode_shlibpath_var_GCJ=no
17580 ;;
17581
17582 openbsd*)
17583 if test -f /usr/libexec/ld.so; then
17584 hardcode_direct_GCJ=yes
17585 hardcode_shlibpath_var_GCJ=no
17586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17587 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17590 export_dynamic_flag_spec_GCJ='${wl}-E'
17591 else
17592 case $host_os in
17593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17596 ;;
17597 *)
17598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17600 ;;
17601 esac
17602 fi
17603 else
17604 ld_shlibs_GCJ=no
17605 fi
17606 ;;
17607
17608 os2*)
17609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17610 hardcode_minus_L_GCJ=yes
17611 allow_undefined_flag_GCJ=unsupported
17612 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'
17613 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17614 ;;
17615
17616 osf3*)
17617 if test "$GCC" = yes; then
17618 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17619 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'
17620 else
17621 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17622 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'
17623 fi
17624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17625 hardcode_libdir_separator_GCJ=:
17626 ;;
17627
17628 osf4* | osf5*) # as osf3* with the addition of -msym flag
17629 if test "$GCC" = yes; then
17630 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17631 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'
17632 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17633 else
17634 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17635 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'
17636 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~
17637 $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'
17638
17639 # Both c and cxx compiler support -rpath directly
17640 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17641 fi
17642 hardcode_libdir_separator_GCJ=:
17643 ;;
17644
17645 solaris*)
17646 no_undefined_flag_GCJ=' -z text'
17647 if test "$GCC" = yes; then
17648 wlarc='${wl}'
17649 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17650 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17651 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17652 else
17653 wlarc=''
17654 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17655 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17657 fi
17658 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17659 hardcode_shlibpath_var_GCJ=no
17660 case $host_os in
17661 solaris2.[0-5] | solaris2.[0-5].*) ;;
17662 *)
17663 # The compiler driver will combine and reorder linker options,
17664 # but understands `-z linker_flag'. GCC discards it without `$wl',
17665 # but is careful enough not to reorder.
17666 # Supported since Solaris 2.6 (maybe 2.5.1?)
17667 if test "$GCC" = yes; then
17668 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17669 else
17670 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17671 fi
17672 ;;
17673 esac
17674 link_all_deplibs_GCJ=yes
17675 ;;
17676
17677 sunos4*)
17678 if test "x$host_vendor" = xsequent; then
17679 # Use $CC to link under sequent, because it throws in some extra .o
17680 # files that make .init and .fini sections work.
17681 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17682 else
17683 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17684 fi
17685 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17686 hardcode_direct_GCJ=yes
17687 hardcode_minus_L_GCJ=yes
17688 hardcode_shlibpath_var_GCJ=no
17689 ;;
17690
17691 sysv4)
17692 case $host_vendor in
17693 sni)
17694 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17695 hardcode_direct_GCJ=yes # is this really true???
17696 ;;
17697 siemens)
17698 ## LD is ld it makes a PLAMLIB
17699 ## CC just makes a GrossModule.
17700 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17701 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17702 hardcode_direct_GCJ=no
17703 ;;
17704 motorola)
17705 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17706 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17707 ;;
17708 esac
17709 runpath_var='LD_RUN_PATH'
17710 hardcode_shlibpath_var_GCJ=no
17711 ;;
17712
17713 sysv4.3*)
17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_shlibpath_var_GCJ=no
17716 export_dynamic_flag_spec_GCJ='-Bexport'
17717 ;;
17718
17719 sysv4*MP*)
17720 if test -d /usr/nec; then
17721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722 hardcode_shlibpath_var_GCJ=no
17723 runpath_var=LD_RUN_PATH
17724 hardcode_runpath_var=yes
17725 ld_shlibs_GCJ=yes
17726 fi
17727 ;;
17728
17729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17730 no_undefined_flag_GCJ='${wl}-z,text'
17731 archive_cmds_need_lc_GCJ=no
17732 hardcode_shlibpath_var_GCJ=no
17733 runpath_var='LD_RUN_PATH'
17734
17735 if test "$GCC" = yes; then
17736 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17737 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 else
17739 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17740 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17741 fi
17742 ;;
17743
17744 sysv5* | sco3.2v5* | sco5v6*)
17745 # Note: We can NOT use -z defs as we might desire, because we do not
17746 # link with -lc, and that would cause any symbols used from libc to
17747 # always be unresolved, which means just about no library would
17748 # ever link correctly. If we're not using GNU ld we use -z text
17749 # though, which does catch some bad symbols but isn't as heavy-handed
17750 # as -z defs.
17751 no_undefined_flag_GCJ='${wl}-z,text'
17752 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17753 archive_cmds_need_lc_GCJ=no
17754 hardcode_shlibpath_var_GCJ=no
17755 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17756 hardcode_libdir_separator_GCJ=':'
17757 link_all_deplibs_GCJ=yes
17758 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17759 runpath_var='LD_RUN_PATH'
17760
17761 if test "$GCC" = yes; then
17762 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17763 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17764 else
17765 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17766 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17767 fi
17768 ;;
17769
17770 uts4*)
17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775
17776 *)
17777 ld_shlibs_GCJ=no
17778 ;;
17779 esac
17780 fi
17781
17782 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17783 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17784 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17785
17786 #
17787 # Do we need to explicitly link libc?
17788 #
17789 case "x$archive_cmds_need_lc_GCJ" in
17790 x|xyes)
17791 # Assume -lc should be added
17792 archive_cmds_need_lc_GCJ=yes
17793
17794 if test "$enable_shared" = yes && test "$GCC" = yes; then
17795 case $archive_cmds_GCJ in
17796 *'~'*)
17797 # FIXME: we may have to deal with multi-command sequences.
17798 ;;
17799 '$CC '*)
17800 # Test whether the compiler implicitly links with -lc since on some
17801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17802 # to ld, don't add -lc before -lgcc.
17803 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17804 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17805 $rm conftest*
17806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17807
17808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17809 (eval $ac_compile) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } 2>conftest.err; then
17813 soname=conftest
17814 lib=conftest
17815 libobjs=conftest.$ac_objext
17816 deplibs=
17817 wl=$lt_prog_compiler_wl_GCJ
17818 pic_flag=$lt_prog_compiler_pic_GCJ
17819 compiler_flags=-v
17820 linker_flags=-v
17821 verstring=
17822 output_objdir=.
17823 libname=conftest
17824 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17825 allow_undefined_flag_GCJ=
17826 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17827 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }
17831 then
17832 archive_cmds_need_lc_GCJ=no
17833 else
17834 archive_cmds_need_lc_GCJ=yes
17835 fi
17836 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17837 else
17838 cat conftest.err 1>&5
17839 fi
17840 $rm conftest*
17841 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17842 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17843 ;;
17844 esac
17845 fi
17846 ;;
17847 esac
17848
17849 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17850 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17851 library_names_spec=
17852 libname_spec='lib$name'
17853 soname_spec=
17854 shrext_cmds=".so"
17855 postinstall_cmds=
17856 postuninstall_cmds=
17857 finish_cmds=
17858 finish_eval=
17859 shlibpath_var=
17860 shlibpath_overrides_runpath=unknown
17861 version_type=none
17862 dynamic_linker="$host_os ld.so"
17863 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17864
17865 need_lib_prefix=unknown
17866 hardcode_into_libs=no
17867
17868 # when you set need_version to no, make sure it does not cause -set_version
17869 # flags to be left without arguments
17870 need_version=unknown
17871
17872 case $host_os in
17873 aix3*)
17874 version_type=linux
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17876 shlibpath_var=LIBPATH
17877
17878 # AIX 3 has no versioning support, so we append a major version to the name.
17879 soname_spec='${libname}${release}${shared_ext}$major'
17880 ;;
17881
17882 aix4* | aix5*)
17883 version_type=linux
17884 need_lib_prefix=no
17885 need_version=no
17886 hardcode_into_libs=yes
17887 if test "$host_cpu" = ia64; then
17888 # AIX 5 supports IA64
17889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17890 shlibpath_var=LD_LIBRARY_PATH
17891 else
17892 # With GCC up to 2.95.x, collect2 would create an import file
17893 # for dependence libraries. The import file would start with
17894 # the line `#! .'. This would cause the generated library to
17895 # depend on `.', always an invalid library. This was fixed in
17896 # development snapshots of GCC prior to 3.0.
17897 case $host_os in
17898 aix4 | aix4.[01] | aix4.[01].*)
17899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17900 echo ' yes '
17901 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17902 :
17903 else
17904 can_build_shared=no
17905 fi
17906 ;;
17907 esac
17908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17909 # soname into executable. Probably we can add versioning support to
17910 # collect2, so additional links can be useful in future.
17911 if test "$aix_use_runtimelinking" = yes; then
17912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17913 # instead of lib<name>.a to let people know that these are not
17914 # typical AIX shared libraries.
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 else
17917 # We preserve .a as extension for shared libraries through AIX4.2
17918 # and later when we are not doing run time linking.
17919 library_names_spec='${libname}${release}.a $libname.a'
17920 soname_spec='${libname}${release}${shared_ext}$major'
17921 fi
17922 shlibpath_var=LIBPATH
17923 fi
17924 ;;
17925
17926 amigaos*)
17927 library_names_spec='$libname.ixlibrary $libname.a'
17928 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17929 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'
17930 ;;
17931
17932 beos*)
17933 library_names_spec='${libname}${shared_ext}'
17934 dynamic_linker="$host_os ld.so"
17935 shlibpath_var=LIBRARY_PATH
17936 ;;
17937
17938 bsdi[45]*)
17939 version_type=linux
17940 need_version=no
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17947 # the default ld.so.conf also contains /usr/contrib/lib and
17948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17949 # libtool to hard-code these into programs
17950 ;;
17951
17952 cygwin* | mingw* | pw32*)
17953 version_type=windows
17954 shrext_cmds=".dll"
17955 need_version=no
17956 need_lib_prefix=no
17957
17958 case $GCC,$host_os in
17959 yes,cygwin* | yes,mingw* | yes,pw32*)
17960 library_names_spec='$libname.dll.a'
17961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17962 postinstall_cmds='base_file=`basename \${file}`~
17963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17964 dldir=$destdir/`dirname \$dlpath`~
17965 test -d \$dldir || mkdir -p \$dldir~
17966 $install_prog $dir/$dlname \$dldir/$dlname~
17967 chmod a+x \$dldir/$dlname'
17968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17969 dlpath=$dir/\$dldll~
17970 $rm \$dlpath'
17971 shlibpath_overrides_runpath=yes
17972
17973 case $host_os in
17974 cygwin*)
17975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17977 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17978 ;;
17979 mingw*)
17980 # MinGW DLLs use traditional 'lib' prefix
17981 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17982 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17983 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17984 # It is most probably a Windows format PATH printed by
17985 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17986 # path with ; separators, and with drive letters. We can handle the
17987 # drive letters (cygwin fileutils understands them), so leave them,
17988 # especially as we might pass files found there to a mingw objdump,
17989 # which wouldn't understand a cygwinified path. Ahh.
17990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17991 else
17992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17993 fi
17994 ;;
17995 pw32*)
17996 # pw32 DLLs use 'pw' prefix rather than 'lib'
17997 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17998 ;;
17999 esac
18000 ;;
18001
18002 *)
18003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18004 ;;
18005 esac
18006 dynamic_linker='Win32 ld.exe'
18007 # FIXME: first we should search . and the directory the executable is in
18008 shlibpath_var=PATH
18009 ;;
18010
18011 darwin* | rhapsody*)
18012 dynamic_linker="$host_os dyld"
18013 version_type=darwin
18014 need_lib_prefix=no
18015 need_version=no
18016 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18017 soname_spec='${libname}${release}${major}$shared_ext'
18018 shlibpath_overrides_runpath=yes
18019 shlibpath_var=DYLD_LIBRARY_PATH
18020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18021
18022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18023 ;;
18024
18025 dgux*)
18026 version_type=linux
18027 need_lib_prefix=no
18028 need_version=no
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 shlibpath_var=LD_LIBRARY_PATH
18032 ;;
18033
18034 freebsd1*)
18035 dynamic_linker=no
18036 ;;
18037
18038 freebsd* | dragonfly*)
18039 # DragonFly does not have aout. When/if they implement a new
18040 # versioning mechanism, adjust this.
18041 if test -x /usr/bin/objformat; then
18042 objformat=`/usr/bin/objformat`
18043 else
18044 case $host_os in
18045 freebsd[123]*) objformat=aout ;;
18046 *) objformat=elf ;;
18047 esac
18048 fi
18049 version_type=freebsd-$objformat
18050 case $version_type in
18051 freebsd-elf*)
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18053 need_version=no
18054 need_lib_prefix=no
18055 ;;
18056 freebsd-*)
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18058 need_version=yes
18059 ;;
18060 esac
18061 shlibpath_var=LD_LIBRARY_PATH
18062 case $host_os in
18063 freebsd2*)
18064 shlibpath_overrides_runpath=yes
18065 ;;
18066 freebsd3.[01]* | freebsdelf3.[01]*)
18067 shlibpath_overrides_runpath=yes
18068 hardcode_into_libs=yes
18069 ;;
18070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18072 shlibpath_overrides_runpath=no
18073 hardcode_into_libs=yes
18074 ;;
18075 *) # from 4.6 on, and DragonFly
18076 shlibpath_overrides_runpath=yes
18077 hardcode_into_libs=yes
18078 ;;
18079 esac
18080 ;;
18081
18082 gnu*)
18083 version_type=linux
18084 need_lib_prefix=no
18085 need_version=no
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 hardcode_into_libs=yes
18090 ;;
18091
18092 hpux9* | hpux10* | hpux11*)
18093 # Give a soname corresponding to the major version so that dld.sl refuses to
18094 # link against other versions.
18095 version_type=sunos
18096 need_lib_prefix=no
18097 need_version=no
18098 case $host_cpu in
18099 ia64*)
18100 shrext_cmds='.so'
18101 hardcode_into_libs=yes
18102 dynamic_linker="$host_os dld.so"
18103 shlibpath_var=LD_LIBRARY_PATH
18104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18106 soname_spec='${libname}${release}${shared_ext}$major'
18107 if test "X$HPUX_IA64_MODE" = X32; then
18108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18109 else
18110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18111 fi
18112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18113 ;;
18114 hppa*64*)
18115 shrext_cmds='.sl'
18116 hardcode_into_libs=yes
18117 dynamic_linker="$host_os dld.sl"
18118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18124 ;;
18125 *)
18126 shrext_cmds='.sl'
18127 dynamic_linker="$host_os dld.sl"
18128 shlibpath_var=SHLIB_PATH
18129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 ;;
18133 esac
18134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18135 postinstall_cmds='chmod 555 $lib'
18136 ;;
18137
18138 interix[3-9]*)
18139 version_type=linux
18140 need_lib_prefix=no
18141 need_version=no
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18145 shlibpath_var=LD_LIBRARY_PATH
18146 shlibpath_overrides_runpath=no
18147 hardcode_into_libs=yes
18148 ;;
18149
18150 irix5* | irix6* | nonstopux*)
18151 case $host_os in
18152 nonstopux*) version_type=nonstopux ;;
18153 *)
18154 if test "$lt_cv_prog_gnu_ld" = yes; then
18155 version_type=linux
18156 else
18157 version_type=irix
18158 fi ;;
18159 esac
18160 need_lib_prefix=no
18161 need_version=no
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18164 case $host_os in
18165 irix5* | nonstopux*)
18166 libsuff= shlibsuff=
18167 ;;
18168 *)
18169 case $LD in # libtool.m4 will add one of these switches to LD
18170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18171 libsuff= shlibsuff= libmagic=32-bit;;
18172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18173 libsuff=32 shlibsuff=N32 libmagic=N32;;
18174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18176 *) libsuff= shlibsuff= libmagic=never-match;;
18177 esac
18178 ;;
18179 esac
18180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18181 shlibpath_overrides_runpath=no
18182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18184 hardcode_into_libs=yes
18185 ;;
18186
18187 # No shared lib support for Linux oldld, aout, or coff.
18188 linux*oldld* | linux*aout* | linux*coff*)
18189 dynamic_linker=no
18190 ;;
18191
18192 # This must be Linux ELF.
18193 linux* | k*bsd*-gnu)
18194 version_type=linux
18195 need_lib_prefix=no
18196 need_version=no
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18200 shlibpath_var=LD_LIBRARY_PATH
18201 shlibpath_overrides_runpath=no
18202 # This implies no fast_install, which is unacceptable.
18203 # Some rework will be needed to allow for fast_install
18204 # before this can be enabled.
18205 hardcode_into_libs=yes
18206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18208
18209 # Append ld.so.conf contents to the search path
18210 if test -f /etc/ld.so.conf; then
18211 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' ' '`
18212 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18213 fi
18214
18215 # We used to test for /lib/ld.so.1 and disable shared libraries on
18216 # powerpc, because MkLinux only supported shared libraries with the
18217 # GNU dynamic linker. Since this was broken with cross compilers,
18218 # most powerpc-linux boxes support dynamic linking these days and
18219 # people can always --disable-shared, the test was removed, and we
18220 # assume the GNU/Linux dynamic linker is in use.
18221 dynamic_linker='GNU/Linux ld.so'
18222 ;;
18223
18224 netbsd*)
18225 version_type=sunos
18226 need_lib_prefix=no
18227 need_version=no
18228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18231 dynamic_linker='NetBSD (a.out) ld.so'
18232 else
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18234 soname_spec='${libname}${release}${shared_ext}$major'
18235 dynamic_linker='NetBSD ld.elf_so'
18236 fi
18237 shlibpath_var=LD_LIBRARY_PATH
18238 shlibpath_overrides_runpath=yes
18239 hardcode_into_libs=yes
18240 ;;
18241
18242 newsos6)
18243 version_type=linux
18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 shlibpath_overrides_runpath=yes
18247 ;;
18248
18249 nto-qnx*)
18250 version_type=linux
18251 need_lib_prefix=no
18252 need_version=no
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath=yes
18257 ;;
18258
18259 openbsd*)
18260 version_type=sunos
18261 sys_lib_dlsearch_path_spec="/usr/lib"
18262 need_lib_prefix=no
18263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18264 case $host_os in
18265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18266 *) need_version=no ;;
18267 esac
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18272 case $host_os in
18273 openbsd2.[89] | openbsd2.[89].*)
18274 shlibpath_overrides_runpath=no
18275 ;;
18276 *)
18277 shlibpath_overrides_runpath=yes
18278 ;;
18279 esac
18280 else
18281 shlibpath_overrides_runpath=yes
18282 fi
18283 ;;
18284
18285 os2*)
18286 libname_spec='$name'
18287 shrext_cmds=".dll"
18288 need_lib_prefix=no
18289 library_names_spec='$libname${shared_ext} $libname.a'
18290 dynamic_linker='OS/2 ld.exe'
18291 shlibpath_var=LIBPATH
18292 ;;
18293
18294 osf3* | osf4* | osf5*)
18295 version_type=osf
18296 need_lib_prefix=no
18297 need_version=no
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18303 ;;
18304
18305 rdos*)
18306 dynamic_linker=no
18307 ;;
18308
18309 solaris*)
18310 version_type=linux
18311 need_lib_prefix=no
18312 need_version=no
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=yes
18317 hardcode_into_libs=yes
18318 # ldd complains unless libraries are executable
18319 postinstall_cmds='chmod +x $lib'
18320 ;;
18321
18322 sunos4*)
18323 version_type=sunos
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 shlibpath_overrides_runpath=yes
18328 if test "$with_gnu_ld" = yes; then
18329 need_lib_prefix=no
18330 fi
18331 need_version=yes
18332 ;;
18333
18334 sysv4 | sysv4.3*)
18335 version_type=linux
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 case $host_vendor in
18340 sni)
18341 shlibpath_overrides_runpath=no
18342 need_lib_prefix=no
18343 export_dynamic_flag_spec='${wl}-Blargedynsym'
18344 runpath_var=LD_RUN_PATH
18345 ;;
18346 siemens)
18347 need_lib_prefix=no
18348 ;;
18349 motorola)
18350 need_lib_prefix=no
18351 need_version=no
18352 shlibpath_overrides_runpath=no
18353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18354 ;;
18355 esac
18356 ;;
18357
18358 sysv4*MP*)
18359 if test -d /usr/nec ;then
18360 version_type=linux
18361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18362 soname_spec='$libname${shared_ext}.$major'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 fi
18365 ;;
18366
18367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18368 version_type=freebsd-elf
18369 need_lib_prefix=no
18370 need_version=no
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 hardcode_into_libs=yes
18375 if test "$with_gnu_ld" = yes; then
18376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18377 shlibpath_overrides_runpath=no
18378 else
18379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18380 shlibpath_overrides_runpath=yes
18381 case $host_os in
18382 sco3.2v5*)
18383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18384 ;;
18385 esac
18386 fi
18387 sys_lib_dlsearch_path_spec='/usr/lib'
18388 ;;
18389
18390 uts4*)
18391 version_type=linux
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 ;;
18396
18397 *)
18398 dynamic_linker=no
18399 ;;
18400 esac
18401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18402 echo "${ECHO_T}$dynamic_linker" >&6; }
18403 test "$dynamic_linker" = no && can_build_shared=no
18404
18405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18406 if test "$GCC" = yes; then
18407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18408 fi
18409
18410 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18412 hardcode_action_GCJ=
18413 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18414 test -n "$runpath_var_GCJ" || \
18415 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18416
18417 # We can hardcode non-existant directories.
18418 if test "$hardcode_direct_GCJ" != no &&
18419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18420 # have to relink, otherwise we might link with an installed library
18421 # when we should be linking with a yet-to-be-installed one
18422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18423 test "$hardcode_minus_L_GCJ" != no; then
18424 # Linking always hardcodes the temporary library directory.
18425 hardcode_action_GCJ=relink
18426 else
18427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18428 hardcode_action_GCJ=immediate
18429 fi
18430 else
18431 # We cannot hardcode anything, or else we can only hardcode existing
18432 # directories.
18433 hardcode_action_GCJ=unsupported
18434 fi
18435 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18436 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18437
18438 if test "$hardcode_action_GCJ" = relink; then
18439 # Fast installation is not supported
18440 enable_fast_install=no
18441 elif test "$shlibpath_overrides_runpath" = yes ||
18442 test "$enable_shared" = no; then
18443 # Fast installation is not necessary
18444 enable_fast_install=needless
18445 fi
18446
18447
18448 # The else clause should only fire when bootstrapping the
18449 # libtool distribution, otherwise you forgot to ship ltmain.sh
18450 # with your package, and you will get complaints that there are
18451 # no rules to generate ltmain.sh.
18452 if test -f "$ltmain"; then
18453 # See if we are running on zsh, and set the options which allow our commands through
18454 # without removal of \ escapes.
18455 if test -n "${ZSH_VERSION+set}" ; then
18456 setopt NO_GLOB_SUBST
18457 fi
18458 # Now quote all the things that may contain metacharacters while being
18459 # careful not to overquote the AC_SUBSTed values. We take copies of the
18460 # variables and quote the copies for generation of the libtool script.
18461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18462 SED SHELL STRIP \
18463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18465 deplibs_check_method reload_flag reload_cmds need_locks \
18466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18467 lt_cv_sys_global_symbol_to_c_name_address \
18468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18469 old_postinstall_cmds old_postuninstall_cmds \
18470 compiler_GCJ \
18471 CC_GCJ \
18472 LD_GCJ \
18473 lt_prog_compiler_wl_GCJ \
18474 lt_prog_compiler_pic_GCJ \
18475 lt_prog_compiler_static_GCJ \
18476 lt_prog_compiler_no_builtin_flag_GCJ \
18477 export_dynamic_flag_spec_GCJ \
18478 thread_safe_flag_spec_GCJ \
18479 whole_archive_flag_spec_GCJ \
18480 enable_shared_with_static_runtimes_GCJ \
18481 old_archive_cmds_GCJ \
18482 old_archive_from_new_cmds_GCJ \
18483 predep_objects_GCJ \
18484 postdep_objects_GCJ \
18485 predeps_GCJ \
18486 postdeps_GCJ \
18487 compiler_lib_search_path_GCJ \
18488 archive_cmds_GCJ \
18489 archive_expsym_cmds_GCJ \
18490 postinstall_cmds_GCJ \
18491 postuninstall_cmds_GCJ \
18492 old_archive_from_expsyms_cmds_GCJ \
18493 allow_undefined_flag_GCJ \
18494 no_undefined_flag_GCJ \
18495 export_symbols_cmds_GCJ \
18496 hardcode_libdir_flag_spec_GCJ \
18497 hardcode_libdir_flag_spec_ld_GCJ \
18498 hardcode_libdir_separator_GCJ \
18499 hardcode_automatic_GCJ \
18500 module_cmds_GCJ \
18501 module_expsym_cmds_GCJ \
18502 lt_cv_prog_compiler_c_o_GCJ \
18503 fix_srcfile_path_GCJ \
18504 exclude_expsyms_GCJ \
18505 include_expsyms_GCJ; do
18506
18507 case $var in
18508 old_archive_cmds_GCJ | \
18509 old_archive_from_new_cmds_GCJ | \
18510 archive_cmds_GCJ | \
18511 archive_expsym_cmds_GCJ | \
18512 module_cmds_GCJ | \
18513 module_expsym_cmds_GCJ | \
18514 old_archive_from_expsyms_cmds_GCJ | \
18515 export_symbols_cmds_GCJ | \
18516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18517 postinstall_cmds | postuninstall_cmds | \
18518 old_postinstall_cmds | old_postuninstall_cmds | \
18519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18520 # Double-quote double-evaled strings.
18521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18522 ;;
18523 *)
18524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18525 ;;
18526 esac
18527 done
18528
18529 case $lt_echo in
18530 *'\$0 --fallback-echo"')
18531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18532 ;;
18533 esac
18534
18535 cfgfile="$ofile"
18536
18537 cat <<__EOF__ >> "$cfgfile"
18538 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18539
18540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18541
18542 # Shell to use when invoking shell scripts.
18543 SHELL=$lt_SHELL
18544
18545 # Whether or not to build shared libraries.
18546 build_libtool_libs=$enable_shared
18547
18548 # Whether or not to build static libraries.
18549 build_old_libs=$enable_static
18550
18551 # Whether or not to add -lc for building shared libraries.
18552 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18553
18554 # Whether or not to disallow shared libs when runtime libs are static
18555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18556
18557 # Whether or not to optimize for fast installation.
18558 fast_install=$enable_fast_install
18559
18560 # The host system.
18561 host_alias=$host_alias
18562 host=$host
18563 host_os=$host_os
18564
18565 # The build system.
18566 build_alias=$build_alias
18567 build=$build
18568 build_os=$build_os
18569
18570 # An echo program that does not interpret backslashes.
18571 echo=$lt_echo
18572
18573 # The archiver.
18574 AR=$lt_AR
18575 AR_FLAGS=$lt_AR_FLAGS
18576
18577 # A C compiler.
18578 LTCC=$lt_LTCC
18579
18580 # LTCC compiler flags.
18581 LTCFLAGS=$lt_LTCFLAGS
18582
18583 # A language-specific compiler.
18584 CC=$lt_compiler_GCJ
18585
18586 # Is the compiler the GNU C compiler?
18587 with_gcc=$GCC_GCJ
18588
18589 # An ERE matcher.
18590 EGREP=$lt_EGREP
18591
18592 # The linker used to build libraries.
18593 LD=$lt_LD_GCJ
18594
18595 # Whether we need hard or soft links.
18596 LN_S=$lt_LN_S
18597
18598 # A BSD-compatible nm program.
18599 NM=$lt_NM
18600
18601 # A symbol stripping program
18602 STRIP=$lt_STRIP
18603
18604 # Used to examine libraries when file_magic_cmd begins "file"
18605 MAGIC_CMD=$MAGIC_CMD
18606
18607 # Used on cygwin: DLL creation program.
18608 DLLTOOL="$DLLTOOL"
18609
18610 # Used on cygwin: object dumper.
18611 OBJDUMP="$OBJDUMP"
18612
18613 # Used on cygwin: assembler.
18614 AS="$AS"
18615
18616 # The name of the directory that contains temporary libtool files.
18617 objdir=$objdir
18618
18619 # How to create reloadable object files.
18620 reload_flag=$lt_reload_flag
18621 reload_cmds=$lt_reload_cmds
18622
18623 # How to pass a linker flag through the compiler.
18624 wl=$lt_lt_prog_compiler_wl_GCJ
18625
18626 # Object file suffix (normally "o").
18627 objext="$ac_objext"
18628
18629 # Old archive suffix (normally "a").
18630 libext="$libext"
18631
18632 # Shared library suffix (normally ".so").
18633 shrext_cmds='$shrext_cmds'
18634
18635 # Executable file suffix (normally "").
18636 exeext="$exeext"
18637
18638 # Additional compiler flags for building library objects.
18639 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18640 pic_mode=$pic_mode
18641
18642 # What is the maximum length of a command?
18643 max_cmd_len=$lt_cv_sys_max_cmd_len
18644
18645 # Does compiler simultaneously support -c and -o options?
18646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18647
18648 # Must we lock files when doing compilation?
18649 need_locks=$lt_need_locks
18650
18651 # Do we need the lib prefix for modules?
18652 need_lib_prefix=$need_lib_prefix
18653
18654 # Do we need a version for libraries?
18655 need_version=$need_version
18656
18657 # Whether dlopen is supported.
18658 dlopen_support=$enable_dlopen
18659
18660 # Whether dlopen of programs is supported.
18661 dlopen_self=$enable_dlopen_self
18662
18663 # Whether dlopen of statically linked programs is supported.
18664 dlopen_self_static=$enable_dlopen_self_static
18665
18666 # Compiler flag to prevent dynamic linking.
18667 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18668
18669 # Compiler flag to turn off builtin functions.
18670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18671
18672 # Compiler flag to allow reflexive dlopens.
18673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18674
18675 # Compiler flag to generate shared objects directly from archives.
18676 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18677
18678 # Compiler flag to generate thread-safe objects.
18679 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18680
18681 # Library versioning type.
18682 version_type=$version_type
18683
18684 # Format of library name prefix.
18685 libname_spec=$lt_libname_spec
18686
18687 # List of archive names. First name is the real one, the rest are links.
18688 # The last name is the one that the linker finds with -lNAME.
18689 library_names_spec=$lt_library_names_spec
18690
18691 # The coded name of the library, if different from the real name.
18692 soname_spec=$lt_soname_spec
18693
18694 # Commands used to build and install an old-style archive.
18695 RANLIB=$lt_RANLIB
18696 old_archive_cmds=$lt_old_archive_cmds_GCJ
18697 old_postinstall_cmds=$lt_old_postinstall_cmds
18698 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18699
18700 # Create an old-style archive from a shared archive.
18701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18702
18703 # Create a temporary old-style archive to link instead of a shared archive.
18704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18705
18706 # Commands used to build and install a shared archive.
18707 archive_cmds=$lt_archive_cmds_GCJ
18708 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18709 postinstall_cmds=$lt_postinstall_cmds
18710 postuninstall_cmds=$lt_postuninstall_cmds
18711
18712 # Commands used to build a loadable module (assumed same as above if empty)
18713 module_cmds=$lt_module_cmds_GCJ
18714 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18715
18716 # Commands to strip libraries.
18717 old_striplib=$lt_old_striplib
18718 striplib=$lt_striplib
18719
18720 # Dependencies to place before the objects being linked to create a
18721 # shared library.
18722 predep_objects=$lt_predep_objects_GCJ
18723
18724 # Dependencies to place after the objects being linked to create a
18725 # shared library.
18726 postdep_objects=$lt_postdep_objects_GCJ
18727
18728 # Dependencies to place before the objects being linked to create a
18729 # shared library.
18730 predeps=$lt_predeps_GCJ
18731
18732 # Dependencies to place after the objects being linked to create a
18733 # shared library.
18734 postdeps=$lt_postdeps_GCJ
18735
18736 # The library search path used internally by the compiler when linking
18737 # a shared library.
18738 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18739
18740 # Method to check whether dependent libraries are shared objects.
18741 deplibs_check_method=$lt_deplibs_check_method
18742
18743 # Command to use when deplibs_check_method == file_magic.
18744 file_magic_cmd=$lt_file_magic_cmd
18745
18746 # Flag that allows shared libraries with undefined symbols to be built.
18747 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18748
18749 # Flag that forces no undefined symbols.
18750 no_undefined_flag=$lt_no_undefined_flag_GCJ
18751
18752 # Commands used to finish a libtool library installation in a directory.
18753 finish_cmds=$lt_finish_cmds
18754
18755 # Same as above, but a single script fragment to be evaled but not shown.
18756 finish_eval=$lt_finish_eval
18757
18758 # Take the output of nm and produce a listing of raw symbols and C names.
18759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18760
18761 # Transform the output of nm in a proper C declaration
18762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18763
18764 # Transform the output of nm in a C name address pair
18765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18766
18767 # This is the shared library runtime path variable.
18768 runpath_var=$runpath_var
18769
18770 # This is the shared library path variable.
18771 shlibpath_var=$shlibpath_var
18772
18773 # Is shlibpath searched before the hard-coded library search path?
18774 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18775
18776 # How to hardcode a shared library path into an executable.
18777 hardcode_action=$hardcode_action_GCJ
18778
18779 # Whether we should hardcode library paths into libraries.
18780 hardcode_into_libs=$hardcode_into_libs
18781
18782 # Flag to hardcode \$libdir into a binary during linking.
18783 # This must work even if \$libdir does not exist.
18784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18785
18786 # If ld is used when linking, flag to hardcode \$libdir into
18787 # a binary during linking. This must work even if \$libdir does
18788 # not exist.
18789 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18790
18791 # Whether we need a single -rpath flag with a separated argument.
18792 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18793
18794 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18795 # resulting binary.
18796 hardcode_direct=$hardcode_direct_GCJ
18797
18798 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18799 # resulting binary.
18800 hardcode_minus_L=$hardcode_minus_L_GCJ
18801
18802 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18803 # the resulting binary.
18804 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18805
18806 # Set to yes if building a shared library automatically hardcodes DIR into the library
18807 # and all subsequent libraries and executables linked against it.
18808 hardcode_automatic=$hardcode_automatic_GCJ
18809
18810 # Variables whose values should be saved in libtool wrapper scripts and
18811 # restored at relink time.
18812 variables_saved_for_relink="$variables_saved_for_relink"
18813
18814 # Whether libtool must link a program against all its dependency libraries.
18815 link_all_deplibs=$link_all_deplibs_GCJ
18816
18817 # Compile-time system search path for libraries
18818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18819
18820 # Run-time system search path for libraries
18821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18822
18823 # Fix the shell variable \$srcfile for the compiler.
18824 fix_srcfile_path=$lt_fix_srcfile_path
18825
18826 # Set to yes if exported symbols are required.
18827 always_export_symbols=$always_export_symbols_GCJ
18828
18829 # The commands to list exported symbols.
18830 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18831
18832 # The commands to extract the exported symbol list from a shared archive.
18833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18834
18835 # Symbols that should not be listed in the preloaded symbols.
18836 exclude_expsyms=$lt_exclude_expsyms_GCJ
18837
18838 # Symbols that must always be exported.
18839 include_expsyms=$lt_include_expsyms_GCJ
18840
18841 # ### END LIBTOOL TAG CONFIG: $tagname
18842
18843 __EOF__
18844
18845
18846 else
18847 # If there is no Makefile yet, we rely on a make rule to execute
18848 # `config.status --recheck' to rerun these tests and create the
18849 # libtool script then.
18850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18851 if test -f "$ltmain_in"; then
18852 test -f Makefile && make "$ltmain"
18853 fi
18854 fi
18855
18856
18857 ac_ext=c
18858 ac_cpp='$CPP $CPPFLAGS'
18859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18862
18863 CC="$lt_save_CC"
18864
18865 else
18866 tagname=""
18867 fi
18868 ;;
18869
18870 RC)
18871
18872
18873 # Source file extension for RC test sources.
18874 ac_ext=rc
18875
18876 # Object file extension for compiled RC test sources.
18877 objext=o
18878 objext_RC=$objext
18879
18880 # Code to be used in simple compile tests
18881 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18882
18883 # Code to be used in simple link tests
18884 lt_simple_link_test_code="$lt_simple_compile_test_code"
18885
18886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18887
18888 # If no C compiler was specified, use CC.
18889 LTCC=${LTCC-"$CC"}
18890
18891 # If no C compiler flags were specified, use CFLAGS.
18892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18893
18894 # Allow CC to be a program name with arguments.
18895 compiler=$CC
18896
18897
18898 # save warnings/boilerplate of simple test code
18899 ac_outfile=conftest.$ac_objext
18900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18902 _lt_compiler_boilerplate=`cat conftest.err`
18903 $rm conftest*
18904
18905 ac_outfile=conftest.$ac_objext
18906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18908 _lt_linker_boilerplate=`cat conftest.err`
18909 $rm conftest*
18910
18911
18912 # Allow CC to be a program name with arguments.
18913 lt_save_CC="$CC"
18914 CC=${RC-"windres"}
18915 compiler=$CC
18916 compiler_RC=$CC
18917 for cc_temp in $compiler""; do
18918 case $cc_temp in
18919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18921 \-*) ;;
18922 *) break;;
18923 esac
18924 done
18925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18926
18927 lt_cv_prog_compiler_c_o_RC=yes
18928
18929 # The else clause should only fire when bootstrapping the
18930 # libtool distribution, otherwise you forgot to ship ltmain.sh
18931 # with your package, and you will get complaints that there are
18932 # no rules to generate ltmain.sh.
18933 if test -f "$ltmain"; then
18934 # See if we are running on zsh, and set the options which allow our commands through
18935 # without removal of \ escapes.
18936 if test -n "${ZSH_VERSION+set}" ; then
18937 setopt NO_GLOB_SUBST
18938 fi
18939 # Now quote all the things that may contain metacharacters while being
18940 # careful not to overquote the AC_SUBSTed values. We take copies of the
18941 # variables and quote the copies for generation of the libtool script.
18942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18943 SED SHELL STRIP \
18944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18946 deplibs_check_method reload_flag reload_cmds need_locks \
18947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18948 lt_cv_sys_global_symbol_to_c_name_address \
18949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18950 old_postinstall_cmds old_postuninstall_cmds \
18951 compiler_RC \
18952 CC_RC \
18953 LD_RC \
18954 lt_prog_compiler_wl_RC \
18955 lt_prog_compiler_pic_RC \
18956 lt_prog_compiler_static_RC \
18957 lt_prog_compiler_no_builtin_flag_RC \
18958 export_dynamic_flag_spec_RC \
18959 thread_safe_flag_spec_RC \
18960 whole_archive_flag_spec_RC \
18961 enable_shared_with_static_runtimes_RC \
18962 old_archive_cmds_RC \
18963 old_archive_from_new_cmds_RC \
18964 predep_objects_RC \
18965 postdep_objects_RC \
18966 predeps_RC \
18967 postdeps_RC \
18968 compiler_lib_search_path_RC \
18969 archive_cmds_RC \
18970 archive_expsym_cmds_RC \
18971 postinstall_cmds_RC \
18972 postuninstall_cmds_RC \
18973 old_archive_from_expsyms_cmds_RC \
18974 allow_undefined_flag_RC \
18975 no_undefined_flag_RC \
18976 export_symbols_cmds_RC \
18977 hardcode_libdir_flag_spec_RC \
18978 hardcode_libdir_flag_spec_ld_RC \
18979 hardcode_libdir_separator_RC \
18980 hardcode_automatic_RC \
18981 module_cmds_RC \
18982 module_expsym_cmds_RC \
18983 lt_cv_prog_compiler_c_o_RC \
18984 fix_srcfile_path_RC \
18985 exclude_expsyms_RC \
18986 include_expsyms_RC; do
18987
18988 case $var in
18989 old_archive_cmds_RC | \
18990 old_archive_from_new_cmds_RC | \
18991 archive_cmds_RC | \
18992 archive_expsym_cmds_RC | \
18993 module_cmds_RC | \
18994 module_expsym_cmds_RC | \
18995 old_archive_from_expsyms_cmds_RC | \
18996 export_symbols_cmds_RC | \
18997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18998 postinstall_cmds | postuninstall_cmds | \
18999 old_postinstall_cmds | old_postuninstall_cmds | \
19000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19001 # Double-quote double-evaled strings.
19002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19003 ;;
19004 *)
19005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19006 ;;
19007 esac
19008 done
19009
19010 case $lt_echo in
19011 *'\$0 --fallback-echo"')
19012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19013 ;;
19014 esac
19015
19016 cfgfile="$ofile"
19017
19018 cat <<__EOF__ >> "$cfgfile"
19019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19020
19021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19022
19023 # Shell to use when invoking shell scripts.
19024 SHELL=$lt_SHELL
19025
19026 # Whether or not to build shared libraries.
19027 build_libtool_libs=$enable_shared
19028
19029 # Whether or not to build static libraries.
19030 build_old_libs=$enable_static
19031
19032 # Whether or not to add -lc for building shared libraries.
19033 build_libtool_need_lc=$archive_cmds_need_lc_RC
19034
19035 # Whether or not to disallow shared libs when runtime libs are static
19036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19037
19038 # Whether or not to optimize for fast installation.
19039 fast_install=$enable_fast_install
19040
19041 # The host system.
19042 host_alias=$host_alias
19043 host=$host
19044 host_os=$host_os
19045
19046 # The build system.
19047 build_alias=$build_alias
19048 build=$build
19049 build_os=$build_os
19050
19051 # An echo program that does not interpret backslashes.
19052 echo=$lt_echo
19053
19054 # The archiver.
19055 AR=$lt_AR
19056 AR_FLAGS=$lt_AR_FLAGS
19057
19058 # A C compiler.
19059 LTCC=$lt_LTCC
19060
19061 # LTCC compiler flags.
19062 LTCFLAGS=$lt_LTCFLAGS
19063
19064 # A language-specific compiler.
19065 CC=$lt_compiler_RC
19066
19067 # Is the compiler the GNU C compiler?
19068 with_gcc=$GCC_RC
19069
19070 # An ERE matcher.
19071 EGREP=$lt_EGREP
19072
19073 # The linker used to build libraries.
19074 LD=$lt_LD_RC
19075
19076 # Whether we need hard or soft links.
19077 LN_S=$lt_LN_S
19078
19079 # A BSD-compatible nm program.
19080 NM=$lt_NM
19081
19082 # A symbol stripping program
19083 STRIP=$lt_STRIP
19084
19085 # Used to examine libraries when file_magic_cmd begins "file"
19086 MAGIC_CMD=$MAGIC_CMD
19087
19088 # Used on cygwin: DLL creation program.
19089 DLLTOOL="$DLLTOOL"
19090
19091 # Used on cygwin: object dumper.
19092 OBJDUMP="$OBJDUMP"
19093
19094 # Used on cygwin: assembler.
19095 AS="$AS"
19096
19097 # The name of the directory that contains temporary libtool files.
19098 objdir=$objdir
19099
19100 # How to create reloadable object files.
19101 reload_flag=$lt_reload_flag
19102 reload_cmds=$lt_reload_cmds
19103
19104 # How to pass a linker flag through the compiler.
19105 wl=$lt_lt_prog_compiler_wl_RC
19106
19107 # Object file suffix (normally "o").
19108 objext="$ac_objext"
19109
19110 # Old archive suffix (normally "a").
19111 libext="$libext"
19112
19113 # Shared library suffix (normally ".so").
19114 shrext_cmds='$shrext_cmds'
19115
19116 # Executable file suffix (normally "").
19117 exeext="$exeext"
19118
19119 # Additional compiler flags for building library objects.
19120 pic_flag=$lt_lt_prog_compiler_pic_RC
19121 pic_mode=$pic_mode
19122
19123 # What is the maximum length of a command?
19124 max_cmd_len=$lt_cv_sys_max_cmd_len
19125
19126 # Does compiler simultaneously support -c and -o options?
19127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19128
19129 # Must we lock files when doing compilation?
19130 need_locks=$lt_need_locks
19131
19132 # Do we need the lib prefix for modules?
19133 need_lib_prefix=$need_lib_prefix
19134
19135 # Do we need a version for libraries?
19136 need_version=$need_version
19137
19138 # Whether dlopen is supported.
19139 dlopen_support=$enable_dlopen
19140
19141 # Whether dlopen of programs is supported.
19142 dlopen_self=$enable_dlopen_self
19143
19144 # Whether dlopen of statically linked programs is supported.
19145 dlopen_self_static=$enable_dlopen_self_static
19146
19147 # Compiler flag to prevent dynamic linking.
19148 link_static_flag=$lt_lt_prog_compiler_static_RC
19149
19150 # Compiler flag to turn off builtin functions.
19151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19152
19153 # Compiler flag to allow reflexive dlopens.
19154 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19155
19156 # Compiler flag to generate shared objects directly from archives.
19157 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19158
19159 # Compiler flag to generate thread-safe objects.
19160 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19161
19162 # Library versioning type.
19163 version_type=$version_type
19164
19165 # Format of library name prefix.
19166 libname_spec=$lt_libname_spec
19167
19168 # List of archive names. First name is the real one, the rest are links.
19169 # The last name is the one that the linker finds with -lNAME.
19170 library_names_spec=$lt_library_names_spec
19171
19172 # The coded name of the library, if different from the real name.
19173 soname_spec=$lt_soname_spec
19174
19175 # Commands used to build and install an old-style archive.
19176 RANLIB=$lt_RANLIB
19177 old_archive_cmds=$lt_old_archive_cmds_RC
19178 old_postinstall_cmds=$lt_old_postinstall_cmds
19179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19180
19181 # Create an old-style archive from a shared archive.
19182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19183
19184 # Create a temporary old-style archive to link instead of a shared archive.
19185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19186
19187 # Commands used to build and install a shared archive.
19188 archive_cmds=$lt_archive_cmds_RC
19189 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19190 postinstall_cmds=$lt_postinstall_cmds
19191 postuninstall_cmds=$lt_postuninstall_cmds
19192
19193 # Commands used to build a loadable module (assumed same as above if empty)
19194 module_cmds=$lt_module_cmds_RC
19195 module_expsym_cmds=$lt_module_expsym_cmds_RC
19196
19197 # Commands to strip libraries.
19198 old_striplib=$lt_old_striplib
19199 striplib=$lt_striplib
19200
19201 # Dependencies to place before the objects being linked to create a
19202 # shared library.
19203 predep_objects=$lt_predep_objects_RC
19204
19205 # Dependencies to place after the objects being linked to create a
19206 # shared library.
19207 postdep_objects=$lt_postdep_objects_RC
19208
19209 # Dependencies to place before the objects being linked to create a
19210 # shared library.
19211 predeps=$lt_predeps_RC
19212
19213 # Dependencies to place after the objects being linked to create a
19214 # shared library.
19215 postdeps=$lt_postdeps_RC
19216
19217 # The library search path used internally by the compiler when linking
19218 # a shared library.
19219 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19220
19221 # Method to check whether dependent libraries are shared objects.
19222 deplibs_check_method=$lt_deplibs_check_method
19223
19224 # Command to use when deplibs_check_method == file_magic.
19225 file_magic_cmd=$lt_file_magic_cmd
19226
19227 # Flag that allows shared libraries with undefined symbols to be built.
19228 allow_undefined_flag=$lt_allow_undefined_flag_RC
19229
19230 # Flag that forces no undefined symbols.
19231 no_undefined_flag=$lt_no_undefined_flag_RC
19232
19233 # Commands used to finish a libtool library installation in a directory.
19234 finish_cmds=$lt_finish_cmds
19235
19236 # Same as above, but a single script fragment to be evaled but not shown.
19237 finish_eval=$lt_finish_eval
19238
19239 # Take the output of nm and produce a listing of raw symbols and C names.
19240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19241
19242 # Transform the output of nm in a proper C declaration
19243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19244
19245 # Transform the output of nm in a C name address pair
19246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19247
19248 # This is the shared library runtime path variable.
19249 runpath_var=$runpath_var
19250
19251 # This is the shared library path variable.
19252 shlibpath_var=$shlibpath_var
19253
19254 # Is shlibpath searched before the hard-coded library search path?
19255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19256
19257 # How to hardcode a shared library path into an executable.
19258 hardcode_action=$hardcode_action_RC
19259
19260 # Whether we should hardcode library paths into libraries.
19261 hardcode_into_libs=$hardcode_into_libs
19262
19263 # Flag to hardcode \$libdir into a binary during linking.
19264 # This must work even if \$libdir does not exist.
19265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19266
19267 # If ld is used when linking, flag to hardcode \$libdir into
19268 # a binary during linking. This must work even if \$libdir does
19269 # not exist.
19270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19271
19272 # Whether we need a single -rpath flag with a separated argument.
19273 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19274
19275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19276 # resulting binary.
19277 hardcode_direct=$hardcode_direct_RC
19278
19279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_minus_L=$hardcode_minus_L_RC
19282
19283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19284 # the resulting binary.
19285 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19286
19287 # Set to yes if building a shared library automatically hardcodes DIR into the library
19288 # and all subsequent libraries and executables linked against it.
19289 hardcode_automatic=$hardcode_automatic_RC
19290
19291 # Variables whose values should be saved in libtool wrapper scripts and
19292 # restored at relink time.
19293 variables_saved_for_relink="$variables_saved_for_relink"
19294
19295 # Whether libtool must link a program against all its dependency libraries.
19296 link_all_deplibs=$link_all_deplibs_RC
19297
19298 # Compile-time system search path for libraries
19299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19300
19301 # Run-time system search path for libraries
19302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19303
19304 # Fix the shell variable \$srcfile for the compiler.
19305 fix_srcfile_path=$lt_fix_srcfile_path
19306
19307 # Set to yes if exported symbols are required.
19308 always_export_symbols=$always_export_symbols_RC
19309
19310 # The commands to list exported symbols.
19311 export_symbols_cmds=$lt_export_symbols_cmds_RC
19312
19313 # The commands to extract the exported symbol list from a shared archive.
19314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19315
19316 # Symbols that should not be listed in the preloaded symbols.
19317 exclude_expsyms=$lt_exclude_expsyms_RC
19318
19319 # Symbols that must always be exported.
19320 include_expsyms=$lt_include_expsyms_RC
19321
19322 # ### END LIBTOOL TAG CONFIG: $tagname
19323
19324 __EOF__
19325
19326
19327 else
19328 # If there is no Makefile yet, we rely on a make rule to execute
19329 # `config.status --recheck' to rerun these tests and create the
19330 # libtool script then.
19331 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19332 if test -f "$ltmain_in"; then
19333 test -f Makefile && make "$ltmain"
19334 fi
19335 fi
19336
19337
19338 ac_ext=c
19339 ac_cpp='$CPP $CPPFLAGS'
19340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343
19344 CC="$lt_save_CC"
19345
19346 ;;
19347
19348 *)
19349 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19350 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19351 { (exit 1); exit 1; }; }
19352 ;;
19353 esac
19354
19355 # Append the new tag name to the list of available tags.
19356 if test -n "$tagname" ; then
19357 available_tags="$available_tags $tagname"
19358 fi
19359 fi
19360 done
19361 IFS="$lt_save_ifs"
19362
19363 # Now substitute the updated list of available tags.
19364 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19365 mv "${ofile}T" "$ofile"
19366 chmod +x "$ofile"
19367 else
19368 rm -f "${ofile}T"
19369 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19370 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19371 { (exit 1); exit 1; }; }
19372 fi
19373 fi
19374
19375
19376
19377 # This can be used to rebuild libtool when needed
19378 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19379
19380 # Always use our own libtool.
19381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19382
19383 # Prevent multiple expansion
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404 ac_ext=c
19405 ac_cpp='$CPP $CPPFLAGS'
19406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19409 if test -n "$ac_tool_prefix"; then
19410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19414 if test "${ac_cv_prog_CC+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417 if test -n "$CC"; then
19418 ac_cv_prog_CC="$CC" # Let the user override the test.
19419 else
19420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19421 for as_dir in $PATH
19422 do
19423 IFS=$as_save_IFS
19424 test -z "$as_dir" && as_dir=.
19425 for ac_exec_ext in '' $ac_executable_extensions; do
19426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19429 break 2
19430 fi
19431 done
19432 done
19433 IFS=$as_save_IFS
19434
19435 fi
19436 fi
19437 CC=$ac_cv_prog_CC
19438 if test -n "$CC"; then
19439 { echo "$as_me:$LINENO: result: $CC" >&5
19440 echo "${ECHO_T}$CC" >&6; }
19441 else
19442 { echo "$as_me:$LINENO: result: no" >&5
19443 echo "${ECHO_T}no" >&6; }
19444 fi
19445
19446
19447 fi
19448 if test -z "$ac_cv_prog_CC"; then
19449 ac_ct_CC=$CC
19450 # Extract the first word of "gcc", so it can be a program name with args.
19451 set dummy gcc; ac_word=$2
19452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 if test -n "$ac_ct_CC"; then
19458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19459 else
19460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461 for as_dir in $PATH
19462 do
19463 IFS=$as_save_IFS
19464 test -z "$as_dir" && as_dir=.
19465 for ac_exec_ext in '' $ac_executable_extensions; do
19466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19467 ac_cv_prog_ac_ct_CC="gcc"
19468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19469 break 2
19470 fi
19471 done
19472 done
19473 IFS=$as_save_IFS
19474
19475 fi
19476 fi
19477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19478 if test -n "$ac_ct_CC"; then
19479 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19480 echo "${ECHO_T}$ac_ct_CC" >&6; }
19481 else
19482 { echo "$as_me:$LINENO: result: no" >&5
19483 echo "${ECHO_T}no" >&6; }
19484 fi
19485
19486 if test "x$ac_ct_CC" = x; then
19487 CC=""
19488 else
19489 case $cross_compiling:$ac_tool_warned in
19490 yes:)
19491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19492 whose name does not start with the host triplet. If you think this
19493 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19495 whose name does not start with the host triplet. If you think this
19496 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19497 ac_tool_warned=yes ;;
19498 esac
19499 CC=$ac_ct_CC
19500 fi
19501 else
19502 CC="$ac_cv_prog_CC"
19503 fi
19504
19505 if test -z "$CC"; then
19506 if test -n "$ac_tool_prefix"; then
19507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19508 set dummy ${ac_tool_prefix}cc; ac_word=$2
19509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19511 if test "${ac_cv_prog_CC+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514 if test -n "$CC"; then
19515 ac_cv_prog_CC="$CC" # Let the user override the test.
19516 else
19517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19518 for as_dir in $PATH
19519 do
19520 IFS=$as_save_IFS
19521 test -z "$as_dir" && as_dir=.
19522 for ac_exec_ext in '' $ac_executable_extensions; do
19523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19524 ac_cv_prog_CC="${ac_tool_prefix}cc"
19525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19526 break 2
19527 fi
19528 done
19529 done
19530 IFS=$as_save_IFS
19531
19532 fi
19533 fi
19534 CC=$ac_cv_prog_CC
19535 if test -n "$CC"; then
19536 { echo "$as_me:$LINENO: result: $CC" >&5
19537 echo "${ECHO_T}$CC" >&6; }
19538 else
19539 { echo "$as_me:$LINENO: result: no" >&5
19540 echo "${ECHO_T}no" >&6; }
19541 fi
19542
19543
19544 fi
19545 fi
19546 if test -z "$CC"; then
19547 # Extract the first word of "cc", so it can be a program name with args.
19548 set dummy cc; ac_word=$2
19549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19551 if test "${ac_cv_prog_CC+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554 if test -n "$CC"; then
19555 ac_cv_prog_CC="$CC" # Let the user override the test.
19556 else
19557 ac_prog_rejected=no
19558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559 for as_dir in $PATH
19560 do
19561 IFS=$as_save_IFS
19562 test -z "$as_dir" && as_dir=.
19563 for ac_exec_ext in '' $ac_executable_extensions; do
19564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19566 ac_prog_rejected=yes
19567 continue
19568 fi
19569 ac_cv_prog_CC="cc"
19570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19571 break 2
19572 fi
19573 done
19574 done
19575 IFS=$as_save_IFS
19576
19577 if test $ac_prog_rejected = yes; then
19578 # We found a bogon in the path, so make sure we never use it.
19579 set dummy $ac_cv_prog_CC
19580 shift
19581 if test $# != 0; then
19582 # We chose a different compiler from the bogus one.
19583 # However, it has the same basename, so the bogon will be chosen
19584 # first if we set CC to just the basename; use the full file name.
19585 shift
19586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19587 fi
19588 fi
19589 fi
19590 fi
19591 CC=$ac_cv_prog_CC
19592 if test -n "$CC"; then
19593 { echo "$as_me:$LINENO: result: $CC" >&5
19594 echo "${ECHO_T}$CC" >&6; }
19595 else
19596 { echo "$as_me:$LINENO: result: no" >&5
19597 echo "${ECHO_T}no" >&6; }
19598 fi
19599
19600
19601 fi
19602 if test -z "$CC"; then
19603 if test -n "$ac_tool_prefix"; then
19604 for ac_prog in cl.exe
19605 do
19606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19610 if test "${ac_cv_prog_CC+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 if test -n "$CC"; then
19614 ac_cv_prog_CC="$CC" # Let the user override the test.
19615 else
19616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19617 for as_dir in $PATH
19618 do
19619 IFS=$as_save_IFS
19620 test -z "$as_dir" && as_dir=.
19621 for ac_exec_ext in '' $ac_executable_extensions; do
19622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19625 break 2
19626 fi
19627 done
19628 done
19629 IFS=$as_save_IFS
19630
19631 fi
19632 fi
19633 CC=$ac_cv_prog_CC
19634 if test -n "$CC"; then
19635 { echo "$as_me:$LINENO: result: $CC" >&5
19636 echo "${ECHO_T}$CC" >&6; }
19637 else
19638 { echo "$as_me:$LINENO: result: no" >&5
19639 echo "${ECHO_T}no" >&6; }
19640 fi
19641
19642
19643 test -n "$CC" && break
19644 done
19645 fi
19646 if test -z "$CC"; then
19647 ac_ct_CC=$CC
19648 for ac_prog in cl.exe
19649 do
19650 # Extract the first word of "$ac_prog", so it can be a program name with args.
19651 set dummy $ac_prog; ac_word=$2
19652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657 if test -n "$ac_ct_CC"; then
19658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19659 else
19660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661 for as_dir in $PATH
19662 do
19663 IFS=$as_save_IFS
19664 test -z "$as_dir" && as_dir=.
19665 for ac_exec_ext in '' $ac_executable_extensions; do
19666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667 ac_cv_prog_ac_ct_CC="$ac_prog"
19668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19669 break 2
19670 fi
19671 done
19672 done
19673 IFS=$as_save_IFS
19674
19675 fi
19676 fi
19677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19678 if test -n "$ac_ct_CC"; then
19679 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19680 echo "${ECHO_T}$ac_ct_CC" >&6; }
19681 else
19682 { echo "$as_me:$LINENO: result: no" >&5
19683 echo "${ECHO_T}no" >&6; }
19684 fi
19685
19686
19687 test -n "$ac_ct_CC" && break
19688 done
19689
19690 if test "x$ac_ct_CC" = x; then
19691 CC=""
19692 else
19693 case $cross_compiling:$ac_tool_warned in
19694 yes:)
19695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19696 whose name does not start with the host triplet. If you think this
19697 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19699 whose name does not start with the host triplet. If you think this
19700 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19701 ac_tool_warned=yes ;;
19702 esac
19703 CC=$ac_ct_CC
19704 fi
19705 fi
19706
19707 fi
19708
19709
19710 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19711 See \`config.log' for more details." >&5
19712 echo "$as_me: error: no acceptable C compiler found in \$PATH
19713 See \`config.log' for more details." >&2;}
19714 { (exit 1); exit 1; }; }
19715
19716 # Provide some information about the compiler.
19717 echo "$as_me:$LINENO: checking for C compiler version" >&5
19718 ac_compiler=`set X $ac_compile; echo $2`
19719 { (ac_try="$ac_compiler --version >&5"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_compiler --version >&5") 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }
19729 { (ac_try="$ac_compiler -v >&5"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_compiler -v >&5") 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }
19739 { (ac_try="$ac_compiler -V >&5"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_compiler -V >&5") 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }
19749
19750 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19751 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19752 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761
19762 int
19763 main ()
19764 {
19765 #ifndef __GNUC__
19766 choke me
19767 #endif
19768
19769 ;
19770 return 0;
19771 }
19772 _ACEOF
19773 rm -f conftest.$ac_objext
19774 if { (ac_try="$ac_compile"
19775 case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_compile") 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } && {
19787 test -z "$ac_c_werror_flag" ||
19788 test ! -s conftest.err
19789 } && test -s conftest.$ac_objext; then
19790 ac_compiler_gnu=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_compiler_gnu=no
19796 fi
19797
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19800
19801 fi
19802 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19803 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19804 GCC=`test $ac_compiler_gnu = yes && echo yes`
19805 ac_test_CFLAGS=${CFLAGS+set}
19806 ac_save_CFLAGS=$CFLAGS
19807 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19808 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19809 if test "${ac_cv_prog_cc_g+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812 ac_save_c_werror_flag=$ac_c_werror_flag
19813 ac_c_werror_flag=yes
19814 ac_cv_prog_cc_g=no
19815 CFLAGS="-g"
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822
19823 int
19824 main ()
19825 {
19826
19827 ;
19828 return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext
19832 if { (ac_try="$ac_compile"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_compile") 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } && {
19845 test -z "$ac_c_werror_flag" ||
19846 test ! -s conftest.err
19847 } && test -s conftest.$ac_objext; then
19848 ac_cv_prog_cc_g=yes
19849 else
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19852
19853 CFLAGS=""
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860
19861 int
19862 main ()
19863 {
19864
19865 ;
19866 return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.$ac_objext; then
19886 :
19887 else
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ac_c_werror_flag=$ac_save_c_werror_flag
19892 CFLAGS="-g"
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h. */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899
19900 int
19901 main ()
19902 {
19903
19904 ;
19905 return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (ac_try="$ac_compile"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest.$ac_objext; then
19925 ac_cv_prog_cc_g=yes
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930
19931 fi
19932
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 fi
19935
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 fi
19938
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 ac_c_werror_flag=$ac_save_c_werror_flag
19941 fi
19942 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19944 if test "$ac_test_CFLAGS" = set; then
19945 CFLAGS=$ac_save_CFLAGS
19946 elif test $ac_cv_prog_cc_g = yes; then
19947 if test "$GCC" = yes; then
19948 CFLAGS="-g -O2"
19949 else
19950 CFLAGS="-g"
19951 fi
19952 else
19953 if test "$GCC" = yes; then
19954 CFLAGS="-O2"
19955 else
19956 CFLAGS=
19957 fi
19958 fi
19959 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19960 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19961 if test "${ac_cv_prog_cc_c89+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964 ac_cv_prog_cc_c89=no
19965 ac_save_CC=$CC
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h. */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 #include <stdarg.h>
19973 #include <stdio.h>
19974 #include <sys/types.h>
19975 #include <sys/stat.h>
19976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19977 struct buf { int x; };
19978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19979 static char *e (p, i)
19980 char **p;
19981 int i;
19982 {
19983 return p[i];
19984 }
19985 static char *f (char * (*g) (char **, int), char **p, ...)
19986 {
19987 char *s;
19988 va_list v;
19989 va_start (v,p);
19990 s = g (p, va_arg (v,int));
19991 va_end (v);
19992 return s;
19993 }
19994
19995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19996 function prototypes and stuff, but not '\xHH' hex character constants.
19997 These don't provoke an error unfortunately, instead are silently treated
19998 as 'x'. The following induces an error, until -std is added to get
19999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20000 array size at least. It's necessary to write '\x00'==0 to get something
20001 that's true only with -std. */
20002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20003
20004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20005 inside strings and character constants. */
20006 #define FOO(x) 'x'
20007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20008
20009 int test (int i, double x);
20010 struct s1 {int (*f) (int a);};
20011 struct s2 {int (*f) (double a);};
20012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20013 int argc;
20014 char **argv;
20015 int
20016 main ()
20017 {
20018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20019 ;
20020 return 0;
20021 }
20022 _ACEOF
20023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20025 do
20026 CC="$ac_save_CC $ac_arg"
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest.$ac_objext; then
20044 ac_cv_prog_cc_c89=$ac_arg
20045 else
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049
20050 fi
20051
20052 rm -f core conftest.err conftest.$ac_objext
20053 test "x$ac_cv_prog_cc_c89" != "xno" && break
20054 done
20055 rm -f conftest.$ac_ext
20056 CC=$ac_save_CC
20057
20058 fi
20059 # AC_CACHE_VAL
20060 case "x$ac_cv_prog_cc_c89" in
20061 x)
20062 { echo "$as_me:$LINENO: result: none needed" >&5
20063 echo "${ECHO_T}none needed" >&6; } ;;
20064 xno)
20065 { echo "$as_me:$LINENO: result: unsupported" >&5
20066 echo "${ECHO_T}unsupported" >&6; } ;;
20067 *)
20068 CC="$CC $ac_cv_prog_cc_c89"
20069 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20070 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20071 esac
20072
20073
20074 ac_ext=c
20075 ac_cpp='$CPP $CPPFLAGS'
20076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20079
20080 depcc="$CC" am_compiler_list=
20081
20082 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20083 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20084 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20088 # We make a subdir and do the tests there. Otherwise we can end up
20089 # making bogus files that we don't know about and never remove. For
20090 # instance it was reported that on HP-UX the gcc test will end up
20091 # making a dummy file named `D' -- because `-MD' means `put the output
20092 # in D'.
20093 mkdir conftest.dir
20094 # Copy depcomp to subdir because otherwise we won't find it if we're
20095 # using a relative directory.
20096 cp "$am_depcomp" conftest.dir
20097 cd conftest.dir
20098 # We will build objects and dependencies in a subdirectory because
20099 # it helps to detect inapplicable dependency modes. For instance
20100 # both Tru64's cc and ICC support -MD to output dependencies as a
20101 # side effect of compilation, but ICC will put the dependencies in
20102 # the current directory while Tru64 will put them in the object
20103 # directory.
20104 mkdir sub
20105
20106 am_cv_CC_dependencies_compiler_type=none
20107 if test "$am_compiler_list" = ""; then
20108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20109 fi
20110 for depmode in $am_compiler_list; do
20111 # Setup a source with many dependencies, because some compilers
20112 # like to wrap large dependency lists on column 80 (with \), and
20113 # we should not choose a depcomp mode which is confused by this.
20114 #
20115 # We need to recreate these files for each test, as the compiler may
20116 # overwrite some of them when testing with obscure command lines.
20117 # This happens at least with the AIX C compiler.
20118 : > sub/conftest.c
20119 for i in 1 2 3 4 5 6; do
20120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20121 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20122 # Solaris 8's {/usr,}/bin/sh.
20123 touch sub/conftst$i.h
20124 done
20125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20126
20127 case $depmode in
20128 nosideeffect)
20129 # after this tag, mechanisms are not by side-effect, so they'll
20130 # only be used when explicitly requested
20131 if test "x$enable_dependency_tracking" = xyes; then
20132 continue
20133 else
20134 break
20135 fi
20136 ;;
20137 none) break ;;
20138 esac
20139 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20140 # mode. It turns out that the SunPro C++ compiler does not properly
20141 # handle `-M -o', and we need to detect this.
20142 if depmode=$depmode \
20143 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20145 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20146 >/dev/null 2>conftest.err &&
20147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20149 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20151 # icc doesn't choke on unknown options, it will just issue warnings
20152 # or remarks (even with -Werror). So we grep stderr for any message
20153 # that says an option was ignored or not supported.
20154 # When given -MP, icc 7.0 and 7.1 complain thusly:
20155 # icc: Command line warning: ignoring option '-M'; no argument required
20156 # The diagnosis changed in icc 8.0:
20157 # icc: Command line remark: option '-MP' not supported
20158 if (grep 'ignoring option' conftest.err ||
20159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20160 am_cv_CC_dependencies_compiler_type=$depmode
20161 break
20162 fi
20163 fi
20164 done
20165
20166 cd ..
20167 rm -rf conftest.dir
20168 else
20169 am_cv_CC_dependencies_compiler_type=none
20170 fi
20171
20172 fi
20173 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20174 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20175 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20176
20177 if
20178 test "x$enable_dependency_tracking" != xno \
20179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20180 am__fastdepCC_TRUE=
20181 am__fastdepCC_FALSE='#'
20182 else
20183 am__fastdepCC_TRUE='#'
20184 am__fastdepCC_FALSE=
20185 fi
20186
20187
20188
20189
20190
20191
20192
20193 # Check whether --with-xorg-module-dir was given.
20194 if test "${with_xorg_module_dir+set}" = set; then
20195 withval=$with_xorg_module_dir; moduledir="$withval"
20196 else
20197 moduledir="$libdir/xorg/modules"
20198 fi
20199
20200
20201 # Checks for extensions
20202
20203 SAVE_CFLAGS="$CFLAGS"
20204 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h. */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211
20212 #include "xorg-server.h"
20213 #if !defined RANDR
20214 #error RANDR not defined
20215 #endif
20216
20217 int
20218 main ()
20219 {
20220
20221 ;
20222 return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (ac_try="$ac_compile"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_compile") 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } && {
20239 test -z "$ac_c_werror_flag" ||
20240 test ! -s conftest.err
20241 } && test -s conftest.$ac_objext; then
20242 _EXT_CHECK=yes
20243 else
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 _EXT_CHECK=no
20248 fi
20249
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 CFLAGS="$SAVE_CFLAGS"
20252 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20253 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20254 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20255 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20256 if test "$_EXT_CHECK" != no; then
20257 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20258 fi
20259
20260
20261 SAVE_CFLAGS="$CFLAGS"
20262 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269
20270 #include "xorg-server.h"
20271 #if !defined RENDER
20272 #error RENDER not defined
20273 #endif
20274
20275 int
20276 main ()
20277 {
20278
20279 ;
20280 return 0;
20281 }
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_compile") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest.$ac_objext; then
20300 _EXT_CHECK=yes
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 _EXT_CHECK=no
20306 fi
20307
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 CFLAGS="$SAVE_CFLAGS"
20310 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20311 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20312 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20313 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20314 if test "$_EXT_CHECK" != no; then
20315 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20316 fi
20317
20318
20319 SAVE_CFLAGS="$CFLAGS"
20320 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327
20328 #include "xorg-server.h"
20329 #if !defined XV
20330 #error XV not defined
20331 #endif
20332
20333 int
20334 main ()
20335 {
20336
20337 ;
20338 return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (ac_try="$ac_compile"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_compile") 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest.$ac_objext; then
20358 _EXT_CHECK=yes
20359 else
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 _EXT_CHECK=no
20364 fi
20365
20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367 CFLAGS="$SAVE_CFLAGS"
20368 { echo "$as_me:$LINENO: checking if XV is defined" >&5
20369 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20370 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20371 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20372 if test "$_EXT_CHECK" != no; then
20373 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20374 fi
20375
20376
20377 SAVE_CFLAGS="$CFLAGS"
20378 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20379 cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h. */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20385
20386 #include "xorg-server.h"
20387 #if !defined DPMSExtension
20388 #error DPMSExtension not defined
20389 #endif
20390
20391 int
20392 main ()
20393 {
20394
20395 ;
20396 return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20416 _EXT_CHECK=yes
20417 else
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 _EXT_CHECK=no
20422 fi
20423
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 CFLAGS="$SAVE_CFLAGS"
20426 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20427 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20428 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20429 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20430 if test "$_EXT_CHECK" != no; then
20431 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20432 fi
20433
20434
20435 # Checks for pkg-config packages
20436
20437
20438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20439 if test -n "$ac_tool_prefix"; then
20440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 case $PKG_CONFIG in
20448 [\\/]* | ?:[\\/]*)
20449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20450 ;;
20451 *)
20452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20453 for as_dir in $PATH
20454 do
20455 IFS=$as_save_IFS
20456 test -z "$as_dir" && as_dir=.
20457 for ac_exec_ext in '' $ac_executable_extensions; do
20458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20461 break 2
20462 fi
20463 done
20464 done
20465 IFS=$as_save_IFS
20466
20467 ;;
20468 esac
20469 fi
20470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20471 if test -n "$PKG_CONFIG"; then
20472 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20473 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20474 else
20475 { echo "$as_me:$LINENO: result: no" >&5
20476 echo "${ECHO_T}no" >&6; }
20477 fi
20478
20479
20480 fi
20481 if test -z "$ac_cv_path_PKG_CONFIG"; then
20482 ac_pt_PKG_CONFIG=$PKG_CONFIG
20483 # Extract the first word of "pkg-config", so it can be a program name with args.
20484 set dummy pkg-config; ac_word=$2
20485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20487 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490 case $ac_pt_PKG_CONFIG in
20491 [\\/]* | ?:[\\/]*)
20492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20493 ;;
20494 *)
20495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20496 for as_dir in $PATH
20497 do
20498 IFS=$as_save_IFS
20499 test -z "$as_dir" && as_dir=.
20500 for ac_exec_ext in '' $ac_executable_extensions; do
20501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20504 break 2
20505 fi
20506 done
20507 done
20508 IFS=$as_save_IFS
20509
20510 ;;
20511 esac
20512 fi
20513 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20514 if test -n "$ac_pt_PKG_CONFIG"; then
20515 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20516 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20517 else
20518 { echo "$as_me:$LINENO: result: no" >&5
20519 echo "${ECHO_T}no" >&6; }
20520 fi
20521
20522 if test "x$ac_pt_PKG_CONFIG" = x; then
20523 PKG_CONFIG=""
20524 else
20525 case $cross_compiling:$ac_tool_warned in
20526 yes:)
20527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20528 whose name does not start with the host triplet. If you think this
20529 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20531 whose name does not start with the host triplet. If you think this
20532 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20533 ac_tool_warned=yes ;;
20534 esac
20535 PKG_CONFIG=$ac_pt_PKG_CONFIG
20536 fi
20537 else
20538 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20539 fi
20540
20541 fi
20542 if test -n "$PKG_CONFIG"; then
20543 _pkg_min_version=0.9.0
20544 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20545 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20546 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20547 { echo "$as_me:$LINENO: result: yes" >&5
20548 echo "${ECHO_T}yes" >&6; }
20549 else
20550 { echo "$as_me:$LINENO: result: no" >&5
20551 echo "${ECHO_T}no" >&6; }
20552 PKG_CONFIG=""
20553 fi
20554
20555 fi
20556
20557 pkg_failed=no
20558 { echo "$as_me:$LINENO: checking for XORG" >&5
20559 echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20560
20561 if test -n "$PKG_CONFIG"; then
20562 if test -n "$XORG_CFLAGS"; then
20563 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20564 else
20565 if test -n "$PKG_CONFIG" && \
20566 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20567 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; then
20571 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20572 else
20573 pkg_failed=yes
20574 fi
20575 fi
20576 else
20577 pkg_failed=untried
20578 fi
20579 if test -n "$PKG_CONFIG"; then
20580 if test -n "$XORG_LIBS"; then
20581 pkg_cv_XORG_LIBS="$XORG_LIBS"
20582 else
20583 if test -n "$PKG_CONFIG" && \
20584 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20585 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; then
20589 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20590 else
20591 pkg_failed=yes
20592 fi
20593 fi
20594 else
20595 pkg_failed=untried
20596 fi
20597
20598
20599
20600 if test $pkg_failed = yes; then
20601
20602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20603 _pkg_short_errors_supported=yes
20604 else
20605 _pkg_short_errors_supported=no
20606 fi
20607 if test $_pkg_short_errors_supported = yes; then
20608 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20609 else
20610 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20611 fi
20612 # Put the nasty error message in config.log where it belongs
20613 echo "$XORG_PKG_ERRORS" >&5
20614
20615 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20616
20617 $XORG_PKG_ERRORS
20618
20619 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20620 installed software in a non-standard prefix.
20621
20622 Alternatively, you may set the environment variables XORG_CFLAGS
20623 and XORG_LIBS to avoid the need to call pkg-config.
20624 See the pkg-config man page for more details.
20625 " >&5
20626 echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20627
20628 $XORG_PKG_ERRORS
20629
20630 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20631 installed software in a non-standard prefix.
20632
20633 Alternatively, you may set the environment variables XORG_CFLAGS
20634 and XORG_LIBS to avoid the need to call pkg-config.
20635 See the pkg-config man page for more details.
20636 " >&2;}
20637 { (exit 1); exit 1; }; }
20638 elif test $pkg_failed = untried; then
20639 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20640 is in your PATH or set the PKG_CONFIG environment variable to the full
20641 path to pkg-config.
20642
20643 Alternatively, you may set the environment variables XORG_CFLAGS
20644 and XORG_LIBS to avoid the need to call pkg-config.
20645 See the pkg-config man page for more details.
20646
20647 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20648 See \`config.log' for more details." >&5
20649 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20650 is in your PATH or set the PKG_CONFIG environment variable to the full
20651 path to pkg-config.
20652
20653 Alternatively, you may set the environment variables XORG_CFLAGS
20654 and XORG_LIBS to avoid the need to call pkg-config.
20655 See the pkg-config man page for more details.
20656
20657 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20658 See \`config.log' for more details." >&2;}
20659 { (exit 1); exit 1; }; }
20660 else
20661 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20662 XORG_LIBS=$pkg_cv_XORG_LIBS
20663 { echo "$as_me:$LINENO: result: yes" >&5
20664 echo "${ECHO_T}yes" >&6; }
20665 :
20666 fi
20667 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20668
20669 # Checks for libraries.
20670 SAVE_CPPFLAGS="$CPPFLAGS"
20671 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20672 { echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
20673 echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
20674 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 #include "xorg-server.h"
20684
20685 int
20686 main ()
20687 {
20688 #ifndef XSERVER_LIBPCIACCESS
20689 (void) XSERVER_LIBPCIACCESS;
20690 #endif
20691
20692 ;
20693 return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_compile") 2>conftest.er1
20704 ac_status=$?
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest.$ac_objext; then
20713 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
20714 else
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
20719 fi
20720
20721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20722 fi
20723 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
20724 echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
20725 if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
20726 XSERVER_LIBPCIACCESS=yes
20727 else
20728 XSERVER_LIBPCIACCESS=no
20729 fi
20730
20731 CPPFLAGS="$SAVE_CPPFLAGS"
20732
20733 # Checks for header files.
20734 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20735 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20736 if test "${ac_cv_header_stdc+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h. */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 #include <stdlib.h>
20746 #include <stdarg.h>
20747 #include <string.h>
20748 #include <float.h>
20749
20750 int
20751 main ()
20752 {
20753
20754 ;
20755 return 0;
20756 }
20757 _ACEOF
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_compile") 2>conftest.er1
20766 ac_status=$?
20767 grep -v '^ *+' conftest.er1 >conftest.err
20768 rm -f conftest.er1
20769 cat conftest.err >&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && {
20772 test -z "$ac_c_werror_flag" ||
20773 test ! -s conftest.err
20774 } && test -s conftest.$ac_objext; then
20775 ac_cv_header_stdc=yes
20776 else
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ac_cv_header_stdc=no
20781 fi
20782
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784
20785 if test $ac_cv_header_stdc = yes; then
20786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 #include <string.h>
20794
20795 _ACEOF
20796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20797 $EGREP "memchr" >/dev/null 2>&1; then
20798 :
20799 else
20800 ac_cv_header_stdc=no
20801 fi
20802 rm -f conftest*
20803
20804 fi
20805
20806 if test $ac_cv_header_stdc = yes; then
20807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h. */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20814 #include <stdlib.h>
20815
20816 _ACEOF
20817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20818 $EGREP "free" >/dev/null 2>&1; then
20819 :
20820 else
20821 ac_cv_header_stdc=no
20822 fi
20823 rm -f conftest*
20824
20825 fi
20826
20827 if test $ac_cv_header_stdc = yes; then
20828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20829 if test "$cross_compiling" = yes; then
20830 :
20831 else
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h. */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 #include <ctype.h>
20839 #include <stdlib.h>
20840 #if ((' ' & 0x0FF) == 0x020)
20841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20843 #else
20844 # define ISLOWER(c) \
20845 (('a' <= (c) && (c) <= 'i') \
20846 || ('j' <= (c) && (c) <= 'r') \
20847 || ('s' <= (c) && (c) <= 'z'))
20848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20849 #endif
20850
20851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20852 int
20853 main ()
20854 {
20855 int i;
20856 for (i = 0; i < 256; i++)
20857 if (XOR (islower (i), ISLOWER (i))
20858 || toupper (i) != TOUPPER (i))
20859 return 2;
20860 return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest$ac_exeext
20864 if { (ac_try="$ac_link"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_link") 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20874 { (case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_try") 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 :
20884 else
20885 echo "$as_me: program exited with status $ac_status" >&5
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889 ( exit $ac_status )
20890 ac_cv_header_stdc=no
20891 fi
20892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20893 fi
20894
20895
20896 fi
20897 fi
20898 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20899 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20900 if test $ac_cv_header_stdc = yes; then
20901
20902 cat >>confdefs.h <<\_ACEOF
20903 #define STDC_HEADERS 1
20904 _ACEOF
20905
20906 fi
20907
20908
20909 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20910
20911 pkg_failed=no
20912 { echo "$as_me:$LINENO: checking for PCIACCESS" >&5
20913 echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
20914
20915 if test -n "$PKG_CONFIG"; then
20916 if test -n "$PCIACCESS_CFLAGS"; then
20917 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20918 else
20919 if test -n "$PKG_CONFIG" && \
20920 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20921 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; then
20925 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20926 else
20927 pkg_failed=yes
20928 fi
20929 fi
20930 else
20931 pkg_failed=untried
20932 fi
20933 if test -n "$PKG_CONFIG"; then
20934 if test -n "$PCIACCESS_LIBS"; then
20935 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20936 else
20937 if test -n "$PKG_CONFIG" && \
20938 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20939 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; then
20943 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20944 else
20945 pkg_failed=yes
20946 fi
20947 fi
20948 else
20949 pkg_failed=untried
20950 fi
20951
20952
20953
20954 if test $pkg_failed = yes; then
20955
20956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20957 _pkg_short_errors_supported=yes
20958 else
20959 _pkg_short_errors_supported=no
20960 fi
20961 if test $_pkg_short_errors_supported = yes; then
20962 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
20963 else
20964 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
20965 fi
20966 # Put the nasty error message in config.log where it belongs
20967 echo "$PCIACCESS_PKG_ERRORS" >&5
20968
20969 { { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
20970
20971 $PCIACCESS_PKG_ERRORS
20972
20973 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20974 installed software in a non-standard prefix.
20975
20976 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20977 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20978 See the pkg-config man page for more details.
20979 " >&5
20980 echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
20981
20982 $PCIACCESS_PKG_ERRORS
20983
20984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20985 installed software in a non-standard prefix.
20986
20987 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20988 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20989 See the pkg-config man page for more details.
20990 " >&2;}
20991 { (exit 1); exit 1; }; }
20992 elif test $pkg_failed = untried; then
20993 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20994 is in your PATH or set the PKG_CONFIG environment variable to the full
20995 path to pkg-config.
20996
20997 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20998 and PCIACCESS_LIBS to avoid the need to call pkg-config.
20999 See the pkg-config man page for more details.
21000
21001 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21002 See \`config.log' for more details." >&5
21003 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21004 is in your PATH or set the PKG_CONFIG environment variable to the full
21005 path to pkg-config.
21006
21007 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21008 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21009 See the pkg-config man page for more details.
21010
21011 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21012 See \`config.log' for more details." >&2;}
21013 { (exit 1); exit 1; }; }
21014 else
21015 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21016 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21017 { echo "$as_me:$LINENO: result: yes" >&5
21018 echo "${ECHO_T}yes" >&6; }
21019 :
21020 fi
21021 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21022 fi
21023 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21024 XSERVER_LIBPCIACCESS_TRUE=
21025 XSERVER_LIBPCIACCESS_FALSE='#'
21026 else
21027 XSERVER_LIBPCIACCESS_TRUE='#'
21028 XSERVER_LIBPCIACCESS_FALSE=
21029 fi
21030
21031
21032
21033
21034
21035 DRIVER_NAME=nv
21036
21037
21038
21039
21040
21041 if test x$APP_MAN_SUFFIX = x ; then
21042 APP_MAN_SUFFIX=1
21043 fi
21044 if test x$APP_MAN_DIR = x ; then
21045 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21046 fi
21047
21048 if test x$LIB_MAN_SUFFIX = x ; then
21049 LIB_MAN_SUFFIX=3
21050 fi
21051 if test x$LIB_MAN_DIR = x ; then
21052 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21053 fi
21054
21055 if test x$FILE_MAN_SUFFIX = x ; then
21056 case $host_os in
21057 solaris*) FILE_MAN_SUFFIX=4 ;;
21058 *) FILE_MAN_SUFFIX=5 ;;
21059 esac
21060 fi
21061 if test x$FILE_MAN_DIR = x ; then
21062 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21063 fi
21064
21065 if test x$MISC_MAN_SUFFIX = x ; then
21066 case $host_os in
21067 solaris*) MISC_MAN_SUFFIX=5 ;;
21068 *) MISC_MAN_SUFFIX=7 ;;
21069 esac
21070 fi
21071 if test x$MISC_MAN_DIR = x ; then
21072 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21073 fi
21074
21075 if test x$DRIVER_MAN_SUFFIX = x ; then
21076 case $host_os in
21077 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21078 *) DRIVER_MAN_SUFFIX=4 ;;
21079 esac
21080 fi
21081 if test x$DRIVER_MAN_DIR = x ; then
21082 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21083 fi
21084
21085 if test x$ADMIN_MAN_SUFFIX = x ; then
21086 case $host_os in
21087 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21088 *) ADMIN_MAN_SUFFIX=8 ;;
21089 esac
21090 fi
21091 if test x$ADMIN_MAN_DIR = x ; then
21092 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21093 fi
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111 # Check whether --with-release-version was given.
21112 if test "${with_release_version+set}" = set; then
21113 withval=$with_release_version; RELEASE_VERSION="$withval"
21114 else
21115 RELEASE_VERSION=""
21116 fi
21117
21118 if test "x$RELEASE_VERSION" != "x"; then
21119 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21120 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21121 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21122 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21123 fi
21124
21125 cat >>confdefs.h <<_ACEOF
21126 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21127 _ACEOF
21128
21129 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21130 if test "x$PVM" = "x"; then
21131 PVM="0"
21132 fi
21133
21134 cat >>confdefs.h <<_ACEOF
21135 #define PACKAGE_VERSION_MINOR $PVM
21136 _ACEOF
21137
21138 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21139 if test "x$PVP" = "x"; then
21140 PVP="0"
21141 fi
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21145 _ACEOF
21146
21147
21148
21149 ac_config_files="$ac_config_files Makefile src/Makefile"
21150
21151 cat >confcache <<\_ACEOF
21152 # This file is a shell script that caches the results of configure
21153 # tests run on this system so they can be shared between configure
21154 # scripts and configure runs, see configure's option --config-cache.
21155 # It is not useful on other systems. If it contains results you don't
21156 # want to keep, you may remove or edit it.
21157 #
21158 # config.status only pays attention to the cache file if you give it
21159 # the --recheck option to rerun configure.
21160 #
21161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21163 # following values.
21164
21165 _ACEOF
21166
21167 # The following way of writing the cache mishandles newlines in values,
21168 # but we know of no workaround that is simple, portable, and efficient.
21169 # So, we kill variables containing newlines.
21170 # Ultrix sh set writes to stderr and can't be redirected directly,
21171 # and sets the high bit in the cache file unless we assign to the vars.
21172 (
21173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21174 eval ac_val=\$$ac_var
21175 case $ac_val in #(
21176 *${as_nl}*)
21177 case $ac_var in #(
21178 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21180 esac
21181 case $ac_var in #(
21182 _ | IFS | as_nl) ;; #(
21183 *) $as_unset $ac_var ;;
21184 esac ;;
21185 esac
21186 done
21187
21188 (set) 2>&1 |
21189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21190 *${as_nl}ac_space=\ *)
21191 # `set' does not quote correctly, so add quotes (double-quote
21192 # substitution turns \\\\ into \\, and sed turns \\ into \).
21193 sed -n \
21194 "s/'/'\\\\''/g;
21195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21196 ;; #(
21197 *)
21198 # `set' quotes correctly as required by POSIX, so do not add quotes.
21199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21200 ;;
21201 esac |
21202 sort
21203 ) |
21204 sed '
21205 /^ac_cv_env_/b end
21206 t clear
21207 :clear
21208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21209 t end
21210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21211 :end' >>confcache
21212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21213 if test -w "$cache_file"; then
21214 test "x$cache_file" != "x/dev/null" &&
21215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21216 echo "$as_me: updating cache $cache_file" >&6;}
21217 cat confcache >$cache_file
21218 else
21219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21221 fi
21222 fi
21223 rm -f confcache
21224
21225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21226 # Let make expand exec_prefix.
21227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21228
21229 DEFS=-DHAVE_CONFIG_H
21230
21231 ac_libobjs=
21232 ac_ltlibobjs=
21233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21234 # 1. Remove the extension, and $U if already installed.
21235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21236 ac_i=`echo "$ac_i" | sed "$ac_script"`
21237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21238 # will be set to the directory where LIBOBJS objects are built.
21239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21241 done
21242 LIBOBJS=$ac_libobjs
21243
21244 LTLIBOBJS=$ac_ltlibobjs
21245
21246
21247 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21248 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21249 Usually this means the macro was only invoked conditionally." >&5
21250 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&2;}
21252 { (exit 1); exit 1; }; }
21253 fi
21254 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21255 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21256 Usually this means the macro was only invoked conditionally." >&5
21257 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&2;}
21259 { (exit 1); exit 1; }; }
21260 fi
21261 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21262 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21263 Usually this means the macro was only invoked conditionally." >&5
21264 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21265 Usually this means the macro was only invoked conditionally." >&2;}
21266 { (exit 1); exit 1; }; }
21267 fi
21268 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21269 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21270 Usually this means the macro was only invoked conditionally." >&5
21271 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&2;}
21273 { (exit 1); exit 1; }; }
21274 fi
21275 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21276 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&5
21278 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
21281 fi
21282 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21283 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21284 Usually this means the macro was only invoked conditionally." >&5
21285 echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21286 Usually this means the macro was only invoked conditionally." >&2;}
21287 { (exit 1); exit 1; }; }
21288 fi
21289
21290 : ${CONFIG_STATUS=./config.status}
21291 ac_clean_files_save=$ac_clean_files
21292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21295 cat >$CONFIG_STATUS <<_ACEOF
21296 #! $SHELL
21297 # Generated by $as_me.
21298 # Run this file to recreate the current configuration.
21299 # Compiler output produced by configure, useful for debugging
21300 # configure, is in config.log if it exists.
21301
21302 debug=false
21303 ac_cs_recheck=false
21304 ac_cs_silent=false
21305 SHELL=\${CONFIG_SHELL-$SHELL}
21306 _ACEOF
21307
21308 cat >>$CONFIG_STATUS <<\_ACEOF
21309 ## --------------------- ##
21310 ## M4sh Initialization. ##
21311 ## --------------------- ##
21312
21313 # Be more Bourne compatible
21314 DUALCASE=1; export DUALCASE # for MKS sh
21315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21316 emulate sh
21317 NULLCMD=:
21318 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21319 # is contrary to our usage. Disable this feature.
21320 alias -g '${1+"$@"}'='"$@"'
21321 setopt NO_GLOB_SUBST
21322 else
21323 case `(set -o) 2>/dev/null` in
21324 *posix*) set -o posix ;;
21325 esac
21326
21327 fi
21328
21329
21330
21331
21332 # PATH needs CR
21333 # Avoid depending upon Character Ranges.
21334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21337 as_cr_digits='0123456789'
21338 as_cr_alnum=$as_cr_Letters$as_cr_digits
21339
21340 # The user is always right.
21341 if test "${PATH_SEPARATOR+set}" != set; then
21342 echo "#! /bin/sh" >conf$$.sh
21343 echo "exit 0" >>conf$$.sh
21344 chmod +x conf$$.sh
21345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21346 PATH_SEPARATOR=';'
21347 else
21348 PATH_SEPARATOR=:
21349 fi
21350 rm -f conf$$.sh
21351 fi
21352
21353 # Support unset when possible.
21354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21355 as_unset=unset
21356 else
21357 as_unset=false
21358 fi
21359
21360
21361 # IFS
21362 # We need space, tab and new line, in precisely that order. Quoting is
21363 # there to prevent editors from complaining about space-tab.
21364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21365 # splitting by setting IFS to empty value.)
21366 as_nl='
21367 '
21368 IFS=" "" $as_nl"
21369
21370 # Find who we are. Look in the path if we contain no directory separator.
21371 case $0 in
21372 *[\\/]* ) as_myself=$0 ;;
21373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21374 for as_dir in $PATH
21375 do
21376 IFS=$as_save_IFS
21377 test -z "$as_dir" && as_dir=.
21378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21379 done
21380 IFS=$as_save_IFS
21381
21382 ;;
21383 esac
21384 # We did not find ourselves, most probably we were run as `sh COMMAND'
21385 # in which case we are not to be found in the path.
21386 if test "x$as_myself" = x; then
21387 as_myself=$0
21388 fi
21389 if test ! -f "$as_myself"; then
21390 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21391 { (exit 1); exit 1; }
21392 fi
21393
21394 # Work around bugs in pre-3.0 UWIN ksh.
21395 for as_var in ENV MAIL MAILPATH
21396 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21397 done
21398 PS1='$ '
21399 PS2='> '
21400 PS4='+ '
21401
21402 # NLS nuisances.
21403 for as_var in \
21404 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21405 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21406 LC_TELEPHONE LC_TIME
21407 do
21408 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21409 eval $as_var=C; export $as_var
21410 else
21411 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21412 fi
21413 done
21414
21415 # Required to use basename.
21416 if expr a : '\(a\)' >/dev/null 2>&1 &&
21417 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21418 as_expr=expr
21419 else
21420 as_expr=false
21421 fi
21422
21423 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21424 as_basename=basename
21425 else
21426 as_basename=false
21427 fi
21428
21429
21430 # Name of the executable.
21431 as_me=`$as_basename -- "$0" ||
21432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21433 X"$0" : 'X\(//\)$' \| \
21434 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21435 echo X/"$0" |
21436 sed '/^.*\/\([^/][^/]*\)\/*$/{
21437 s//\1/
21438 q
21439 }
21440 /^X\/\(\/\/\)$/{
21441 s//\1/
21442 q
21443 }
21444 /^X\/\(\/\).*/{
21445 s//\1/
21446 q
21447 }
21448 s/.*/./; q'`
21449
21450 # CDPATH.
21451 $as_unset CDPATH
21452
21453
21454
21455 as_lineno_1=$LINENO
21456 as_lineno_2=$LINENO
21457 test "x$as_lineno_1" != "x$as_lineno_2" &&
21458 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21459
21460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21461 # uniformly replaced by the line number. The first 'sed' inserts a
21462 # line-number line after each line using $LINENO; the second 'sed'
21463 # does the real work. The second script uses 'N' to pair each
21464 # line-number line with the line containing $LINENO, and appends
21465 # trailing '-' during substitution so that $LINENO is not a special
21466 # case at line end.
21467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21468 # scripts with optimization help from Paolo Bonzini. Blame Lee
21469 # E. McMahon (1931-1989) for sed's syntax. :-)
21470 sed -n '
21471 p
21472 /[$]LINENO/=
21473 ' <$as_myself |
21474 sed '
21475 s/[$]LINENO.*/&-/
21476 t lineno
21477 b
21478 :lineno
21479 N
21480 :loop
21481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21482 t loop
21483 s/-\n.*//
21484 ' >$as_me.lineno &&
21485 chmod +x "$as_me.lineno" ||
21486 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21487 { (exit 1); exit 1; }; }
21488
21489 # Don't try to exec as it changes $[0], causing all sort of problems
21490 # (the dirname of $[0] is not the place where we might find the
21491 # original and so on. Autoconf is especially sensitive to this).
21492 . "./$as_me.lineno"
21493 # Exit status is that of the last command.
21494 exit
21495 }
21496
21497
21498 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21499 as_dirname=dirname
21500 else
21501 as_dirname=false
21502 fi
21503
21504 ECHO_C= ECHO_N= ECHO_T=
21505 case `echo -n x` in
21506 -n*)
21507 case `echo 'x\c'` in
21508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21509 *) ECHO_C='\c';;
21510 esac;;
21511 *)
21512 ECHO_N='-n';;
21513 esac
21514
21515 if expr a : '\(a\)' >/dev/null 2>&1 &&
21516 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21517 as_expr=expr
21518 else
21519 as_expr=false
21520 fi
21521
21522 rm -f conf$$ conf$$.exe conf$$.file
21523 if test -d conf$$.dir; then
21524 rm -f conf$$.dir/conf$$.file
21525 else
21526 rm -f conf$$.dir
21527 mkdir conf$$.dir
21528 fi
21529 echo >conf$$.file
21530 if ln -s conf$$.file conf$$ 2>/dev/null; then
21531 as_ln_s='ln -s'
21532 # ... but there are two gotchas:
21533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21535 # In both cases, we have to default to `cp -p'.
21536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21537 as_ln_s='cp -p'
21538 elif ln conf$$.file conf$$ 2>/dev/null; then
21539 as_ln_s=ln
21540 else
21541 as_ln_s='cp -p'
21542 fi
21543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21544 rmdir conf$$.dir 2>/dev/null
21545
21546 if mkdir -p . 2>/dev/null; then
21547 as_mkdir_p=:
21548 else
21549 test -d ./-p && rmdir ./-p
21550 as_mkdir_p=false
21551 fi
21552
21553 if test -x / >/dev/null 2>&1; then
21554 as_test_x='test -x'
21555 else
21556 if ls -dL / >/dev/null 2>&1; then
21557 as_ls_L_option=L
21558 else
21559 as_ls_L_option=
21560 fi
21561 as_test_x='
21562 eval sh -c '\''
21563 if test -d "$1"; then
21564 test -d "$1/.";
21565 else
21566 case $1 in
21567 -*)set "./$1";;
21568 esac;
21569 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21570 ???[sx]*):;;*)false;;esac;fi
21571 '\'' sh
21572 '
21573 fi
21574 as_executable_p=$as_test_x
21575
21576 # Sed expression to map a string onto a valid CPP name.
21577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21578
21579 # Sed expression to map a string onto a valid variable name.
21580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21581
21582
21583 exec 6>&1
21584
21585 # Save the log message, to keep $[0] and so on meaningful, and to
21586 # report actual input values of CONFIG_FILES etc. instead of their
21587 # values after options handling.
21588 ac_log="
21589 This file was extended by xf86-video-ast $as_me 0.89.8, which was
21590 generated by GNU Autoconf 2.61. Invocation command line was
21591
21592 CONFIG_FILES = $CONFIG_FILES
21593 CONFIG_HEADERS = $CONFIG_HEADERS
21594 CONFIG_LINKS = $CONFIG_LINKS
21595 CONFIG_COMMANDS = $CONFIG_COMMANDS
21596 $ $0 $@
21597
21598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21599 "
21600
21601 _ACEOF
21602
21603 cat >>$CONFIG_STATUS <<_ACEOF
21604 # Files that config.status was made for.
21605 config_files="$ac_config_files"
21606 config_headers="$ac_config_headers"
21607 config_commands="$ac_config_commands"
21608
21609 _ACEOF
21610
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 ac_cs_usage="\
21613 \`$as_me' instantiates files from templates according to the
21614 current configuration.
21615
21616 Usage: $0 [OPTIONS] [FILE]...
21617
21618 -h, --help print this help, then exit
21619 -V, --version print version number and configuration settings, then exit
21620 -q, --quiet do not print progress messages
21621 -d, --debug don't remove temporary files
21622 --recheck update $as_me by reconfiguring in the same conditions
21623 --file=FILE[:TEMPLATE]
21624 instantiate the configuration file FILE
21625 --header=FILE[:TEMPLATE]
21626 instantiate the configuration header FILE
21627
21628 Configuration files:
21629 $config_files
21630
21631 Configuration headers:
21632 $config_headers
21633
21634 Configuration commands:
21635 $config_commands
21636
21637 Report bugs to <bug-autoconf (at] gnu.org>."
21638
21639 _ACEOF
21640 cat >>$CONFIG_STATUS <<_ACEOF
21641 ac_cs_version="\\
21642 xf86-video-ast config.status 0.89.8
21643 configured by $0, generated by GNU Autoconf 2.61,
21644 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21645
21646 Copyright (C) 2006 Free Software Foundation, Inc.
21647 This config.status script is free software; the Free Software Foundation
21648 gives unlimited permission to copy, distribute and modify it."
21649
21650 ac_pwd='$ac_pwd'
21651 srcdir='$srcdir'
21652 INSTALL='$INSTALL'
21653 MKDIR_P='$MKDIR_P'
21654 _ACEOF
21655
21656 cat >>$CONFIG_STATUS <<\_ACEOF
21657 # If no file are specified by the user, then we need to provide default
21658 # value. By we need to know if files were specified by the user.
21659 ac_need_defaults=:
21660 while test $# != 0
21661 do
21662 case $1 in
21663 --*=*)
21664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21666 ac_shift=:
21667 ;;
21668 *)
21669 ac_option=$1
21670 ac_optarg=$2
21671 ac_shift=shift
21672 ;;
21673 esac
21674
21675 case $ac_option in
21676 # Handling of the options.
21677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21678 ac_cs_recheck=: ;;
21679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21680 echo "$ac_cs_version"; exit ;;
21681 --debug | --debu | --deb | --de | --d | -d )
21682 debug=: ;;
21683 --file | --fil | --fi | --f )
21684 $ac_shift
21685 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21686 ac_need_defaults=false;;
21687 --header | --heade | --head | --hea )
21688 $ac_shift
21689 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21690 ac_need_defaults=false;;
21691 --he | --h)
21692 # Conflict between --help and --header
21693 { echo "$as_me: error: ambiguous option: $1
21694 Try \`$0 --help' for more information." >&2
21695 { (exit 1); exit 1; }; };;
21696 --help | --hel | -h )
21697 echo "$ac_cs_usage"; exit ;;
21698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21699 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21700 ac_cs_silent=: ;;
21701
21702 # This is an error.
21703 -*) { echo "$as_me: error: unrecognized option: $1
21704 Try \`$0 --help' for more information." >&2
21705 { (exit 1); exit 1; }; } ;;
21706
21707 *) ac_config_targets="$ac_config_targets $1"
21708 ac_need_defaults=false ;;
21709
21710 esac
21711 shift
21712 done
21713
21714 ac_configure_extra_args=
21715
21716 if $ac_cs_silent; then
21717 exec 6>/dev/null
21718 ac_configure_extra_args="$ac_configure_extra_args --silent"
21719 fi
21720
21721 _ACEOF
21722 cat >>$CONFIG_STATUS <<_ACEOF
21723 if \$ac_cs_recheck; then
21724 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21725 CONFIG_SHELL=$SHELL
21726 export CONFIG_SHELL
21727 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21728 fi
21729
21730 _ACEOF
21731 cat >>$CONFIG_STATUS <<\_ACEOF
21732 exec 5>>config.log
21733 {
21734 echo
21735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21736 ## Running $as_me. ##
21737 _ASBOX
21738 echo "$ac_log"
21739 } >&5
21740
21741 _ACEOF
21742 cat >>$CONFIG_STATUS <<_ACEOF
21743 #
21744 # INIT-COMMANDS
21745 #
21746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21747
21748 _ACEOF
21749
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21751
21752 # Handling of arguments.
21753 for ac_config_target in $ac_config_targets
21754 do
21755 case $ac_config_target in
21756 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21757 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21759 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21760
21761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21762 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21763 { (exit 1); exit 1; }; };;
21764 esac
21765 done
21766
21767
21768 # If the user did not use the arguments to specify the items to instantiate,
21769 # then the envvar interface is used. Set only those that are not.
21770 # We use the long form for the default assignment because of an extremely
21771 # bizarre bug on SunOS 4.1.3.
21772 if $ac_need_defaults; then
21773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21776 fi
21777
21778 # Have a temporary directory for convenience. Make it in the build tree
21779 # simply because there is no reason against having it here, and in addition,
21780 # creating and moving files from /tmp can sometimes cause problems.
21781 # Hook for its removal unless debugging.
21782 # Note that there is a small window in which the directory will not be cleaned:
21783 # after its creation but before its name has been assigned to `$tmp'.
21784 $debug ||
21785 {
21786 tmp=
21787 trap 'exit_status=$?
21788 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21789 ' 0
21790 trap '{ (exit 1); exit 1; }' 1 2 13 15
21791 }
21792 # Create a (secure) tmp directory for tmp files.
21793
21794 {
21795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21796 test -n "$tmp" && test -d "$tmp"
21797 } ||
21798 {
21799 tmp=./conf$$-$RANDOM
21800 (umask 077 && mkdir "$tmp")
21801 } ||
21802 {
21803 echo "$me: cannot create a temporary directory in ." >&2
21804 { (exit 1); exit 1; }
21805 }
21806
21807 #
21808 # Set up the sed scripts for CONFIG_FILES section.
21809 #
21810
21811 # No need to generate the scripts if there are no CONFIG_FILES.
21812 # This happens for instance when ./config.status config.h
21813 if test -n "$CONFIG_FILES"; then
21814
21815 _ACEOF
21816
21817
21818
21819 ac_delim='%!_!# '
21820 for ac_last_try in false false false false false :; do
21821 cat >conf$$subs.sed <<_ACEOF
21822 SHELL!$SHELL$ac_delim
21823 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21824 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21825 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21826 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21827 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21828 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21829 exec_prefix!$exec_prefix$ac_delim
21830 prefix!$prefix$ac_delim
21831 program_transform_name!$program_transform_name$ac_delim
21832 bindir!$bindir$ac_delim
21833 sbindir!$sbindir$ac_delim
21834 libexecdir!$libexecdir$ac_delim
21835 datarootdir!$datarootdir$ac_delim
21836 datadir!$datadir$ac_delim
21837 sysconfdir!$sysconfdir$ac_delim
21838 sharedstatedir!$sharedstatedir$ac_delim
21839 localstatedir!$localstatedir$ac_delim
21840 includedir!$includedir$ac_delim
21841 oldincludedir!$oldincludedir$ac_delim
21842 docdir!$docdir$ac_delim
21843 infodir!$infodir$ac_delim
21844 htmldir!$htmldir$ac_delim
21845 dvidir!$dvidir$ac_delim
21846 pdfdir!$pdfdir$ac_delim
21847 psdir!$psdir$ac_delim
21848 libdir!$libdir$ac_delim
21849 localedir!$localedir$ac_delim
21850 mandir!$mandir$ac_delim
21851 DEFS!$DEFS$ac_delim
21852 ECHO_C!$ECHO_C$ac_delim
21853 ECHO_N!$ECHO_N$ac_delim
21854 ECHO_T!$ECHO_T$ac_delim
21855 LIBS!$LIBS$ac_delim
21856 build_alias!$build_alias$ac_delim
21857 host_alias!$host_alias$ac_delim
21858 target_alias!$target_alias$ac_delim
21859 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21860 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21861 INSTALL_DATA!$INSTALL_DATA$ac_delim
21862 am__isrc!$am__isrc$ac_delim
21863 CYGPATH_W!$CYGPATH_W$ac_delim
21864 PACKAGE!$PACKAGE$ac_delim
21865 VERSION!$VERSION$ac_delim
21866 ACLOCAL!$ACLOCAL$ac_delim
21867 AUTOCONF!$AUTOCONF$ac_delim
21868 AUTOMAKE!$AUTOMAKE$ac_delim
21869 AUTOHEADER!$AUTOHEADER$ac_delim
21870 MAKEINFO!$MAKEINFO$ac_delim
21871 install_sh!$install_sh$ac_delim
21872 STRIP!$STRIP$ac_delim
21873 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21874 mkdir_p!$mkdir_p$ac_delim
21875 AWK!$AWK$ac_delim
21876 SET_MAKE!$SET_MAKE$ac_delim
21877 am__leading_dot!$am__leading_dot$ac_delim
21878 AMTAR!$AMTAR$ac_delim
21879 am__tar!$am__tar$ac_delim
21880 am__untar!$am__untar$ac_delim
21881 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21882 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21883 MAINT!$MAINT$ac_delim
21884 build!$build$ac_delim
21885 build_cpu!$build_cpu$ac_delim
21886 build_vendor!$build_vendor$ac_delim
21887 build_os!$build_os$ac_delim
21888 host!$host$ac_delim
21889 host_cpu!$host_cpu$ac_delim
21890 host_vendor!$host_vendor$ac_delim
21891 host_os!$host_os$ac_delim
21892 CC!$CC$ac_delim
21893 CFLAGS!$CFLAGS$ac_delim
21894 LDFLAGS!$LDFLAGS$ac_delim
21895 CPPFLAGS!$CPPFLAGS$ac_delim
21896 ac_ct_CC!$ac_ct_CC$ac_delim
21897 EXEEXT!$EXEEXT$ac_delim
21898 OBJEXT!$OBJEXT$ac_delim
21899 DEPDIR!$DEPDIR$ac_delim
21900 am__include!$am__include$ac_delim
21901 am__quote!$am__quote$ac_delim
21902 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21903 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21904 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21905 CCDEPMODE!$CCDEPMODE$ac_delim
21906 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21907 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21908 SED!$SED$ac_delim
21909 GREP!$GREP$ac_delim
21910 EGREP!$EGREP$ac_delim
21911 LN_S!$LN_S$ac_delim
21912 ECHO!$ECHO$ac_delim
21913 AR!$AR$ac_delim
21914 RANLIB!$RANLIB$ac_delim
21915 CPP!$CPP$ac_delim
21916 CXX!$CXX$ac_delim
21917 CXXFLAGS!$CXXFLAGS$ac_delim
21918 ac_ct_CXX!$ac_ct_CXX$ac_delim
21919 _ACEOF
21920
21921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21922 break
21923 elif $ac_last_try; then
21924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21925 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21926 { (exit 1); exit 1; }; }
21927 else
21928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21929 fi
21930 done
21931
21932 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21933 if test -n "$ac_eof"; then
21934 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21935 ac_eof=`expr $ac_eof + 1`
21936 fi
21937
21938 cat >>$CONFIG_STATUS <<_ACEOF
21939 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21941 _ACEOF
21942 sed '
21943 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21944 s/^/s,@/; s/!/@,|#_!!_#|/
21945 :n
21946 t n
21947 s/'"$ac_delim"'$/,g/; t
21948 s/$/\\/; p
21949 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21950 ' >>$CONFIG_STATUS <conf$$subs.sed
21951 rm -f conf$$subs.sed
21952 cat >>$CONFIG_STATUS <<_ACEOF
21953 CEOF$ac_eof
21954 _ACEOF
21955
21956
21957 ac_delim='%!_!# '
21958 for ac_last_try in false false false false false :; do
21959 cat >conf$$subs.sed <<_ACEOF
21960 CXXDEPMODE!$CXXDEPMODE$ac_delim
21961 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21962 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21963 CXXCPP!$CXXCPP$ac_delim
21964 F77!$F77$ac_delim
21965 FFLAGS!$FFLAGS$ac_delim
21966 ac_ct_F77!$ac_ct_F77$ac_delim
21967 LIBTOOL!$LIBTOOL$ac_delim
21968 PKG_CONFIG!$PKG_CONFIG$ac_delim
21969 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
21970 XORG_LIBS!$XORG_LIBS$ac_delim
21971 PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
21972 PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
21973 XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
21974 XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
21975 moduledir!$moduledir$ac_delim
21976 DRIVER_NAME!$DRIVER_NAME$ac_delim
21977 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21978 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21979 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21980 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21981 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21982 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21983 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21984 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21985 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21986 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21987 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21988 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21989 LIBOBJS!$LIBOBJS$ac_delim
21990 LTLIBOBJS!$LTLIBOBJS$ac_delim
21991 _ACEOF
21992
21993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21994 break
21995 elif $ac_last_try; then
21996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21998 { (exit 1); exit 1; }; }
21999 else
22000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22001 fi
22002 done
22003
22004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22005 if test -n "$ac_eof"; then
22006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22007 ac_eof=`expr $ac_eof + 1`
22008 fi
22009
22010 cat >>$CONFIG_STATUS <<_ACEOF
22011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22013 _ACEOF
22014 sed '
22015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22016 s/^/s,@/; s/!/@,|#_!!_#|/
22017 :n
22018 t n
22019 s/'"$ac_delim"'$/,g/; t
22020 s/$/\\/; p
22021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22022 ' >>$CONFIG_STATUS <conf$$subs.sed
22023 rm -f conf$$subs.sed
22024 cat >>$CONFIG_STATUS <<_ACEOF
22025 :end
22026 s/|#_!!_#|//g
22027 CEOF$ac_eof
22028 _ACEOF
22029
22030
22031 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22032 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22033 # trailing colons and then remove the whole line if VPATH becomes empty
22034 # (actually we leave an empty line to preserve line numbers).
22035 if test "x$srcdir" = x.; then
22036 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22037 s/:*\$(srcdir):*/:/
22038 s/:*\${srcdir}:*/:/
22039 s/:*@srcdir@:*/:/
22040 s/^\([^=]*=[ ]*\):*/\1/
22041 s/:*$//
22042 s/^[^=]*=[ ]*$//
22043 }'
22044 fi
22045
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22047 fi # test -n "$CONFIG_FILES"
22048
22049
22050 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22051 do
22052 case $ac_tag in
22053 :[FHLC]) ac_mode=$ac_tag; continue;;
22054 esac
22055 case $ac_mode$ac_tag in
22056 :[FHL]*:*);;
22057 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22058 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22059 { (exit 1); exit 1; }; };;
22060 :[FH]-) ac_tag=-:-;;
22061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22062 esac
22063 ac_save_IFS=$IFS
22064 IFS=:
22065 set x $ac_tag
22066 IFS=$ac_save_IFS
22067 shift
22068 ac_file=$1
22069 shift
22070
22071 case $ac_mode in
22072 :L) ac_source=$1;;
22073 :[FH])
22074 ac_file_inputs=
22075 for ac_f
22076 do
22077 case $ac_f in
22078 -) ac_f="$tmp/stdin";;
22079 *) # Look for the file first in the build tree, then in the source tree
22080 # (if the path is not absolute). The absolute path cannot be DOS-style,
22081 # because $ac_f cannot contain `:'.
22082 test -f "$ac_f" ||
22083 case $ac_f in
22084 [\\/$]*) false;;
22085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22086 esac ||
22087 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22088 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22089 { (exit 1); exit 1; }; };;
22090 esac
22091 ac_file_inputs="$ac_file_inputs $ac_f"
22092 done
22093
22094 # Let's still pretend it is `configure' which instantiates (i.e., don't
22095 # use $as_me), people would be surprised to read:
22096 # /* config.h. Generated by config.status. */
22097 configure_input="Generated from "`IFS=:
22098 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22099 if test x"$ac_file" != x-; then
22100 configure_input="$ac_file. $configure_input"
22101 { echo "$as_me:$LINENO: creating $ac_file" >&5
22102 echo "$as_me: creating $ac_file" >&6;}
22103 fi
22104
22105 case $ac_tag in
22106 *:-:* | *:-) cat >"$tmp/stdin";;
22107 esac
22108 ;;
22109 esac
22110
22111 ac_dir=`$as_dirname -- "$ac_file" ||
22112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22113 X"$ac_file" : 'X\(//\)[^/]' \| \
22114 X"$ac_file" : 'X\(//\)$' \| \
22115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22116 echo X"$ac_file" |
22117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22118 s//\1/
22119 q
22120 }
22121 /^X\(\/\/\)[^/].*/{
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 { as_dir="$ac_dir"
22135 case $as_dir in #(
22136 -*) as_dir=./$as_dir;;
22137 esac
22138 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22139 as_dirs=
22140 while :; do
22141 case $as_dir in #(
22142 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22143 *) as_qdir=$as_dir;;
22144 esac
22145 as_dirs="'$as_qdir' $as_dirs"
22146 as_dir=`$as_dirname -- "$as_dir" ||
22147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22148 X"$as_dir" : 'X\(//\)[^/]' \| \
22149 X"$as_dir" : 'X\(//\)$' \| \
22150 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22151 echo X"$as_dir" |
22152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22153 s//\1/
22154 q
22155 }
22156 /^X\(\/\/\)[^/].*/{
22157 s//\1/
22158 q
22159 }
22160 /^X\(\/\/\)$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\).*/{
22165 s//\1/
22166 q
22167 }
22168 s/.*/./; q'`
22169 test -d "$as_dir" && break
22170 done
22171 test -z "$as_dirs" || eval "mkdir $as_dirs"
22172 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22173 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22174 { (exit 1); exit 1; }; }; }
22175 ac_builddir=.
22176
22177 case "$ac_dir" in
22178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22179 *)
22180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22181 # A ".." for each directory in $ac_dir_suffix.
22182 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22183 case $ac_top_builddir_sub in
22184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22186 esac ;;
22187 esac
22188 ac_abs_top_builddir=$ac_pwd
22189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22190 # for backward compatibility:
22191 ac_top_builddir=$ac_top_build_prefix
22192
22193 case $srcdir in
22194 .) # We are building in place.
22195 ac_srcdir=.
22196 ac_top_srcdir=$ac_top_builddir_sub
22197 ac_abs_top_srcdir=$ac_pwd ;;
22198 [\\/]* | ?:[\\/]* ) # Absolute name.
22199 ac_srcdir=$srcdir$ac_dir_suffix;
22200 ac_top_srcdir=$srcdir
22201 ac_abs_top_srcdir=$srcdir ;;
22202 *) # Relative name.
22203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22204 ac_top_srcdir=$ac_top_build_prefix$srcdir
22205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22206 esac
22207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22208
22209
22210 case $ac_mode in
22211 :F)
22212 #
22213 # CONFIG_FILE
22214 #
22215
22216 case $INSTALL in
22217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22219 esac
22220 ac_MKDIR_P=$MKDIR_P
22221 case $MKDIR_P in
22222 [\\/$]* | ?:[\\/]* ) ;;
22223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22224 esac
22225 _ACEOF
22226
22227 cat >>$CONFIG_STATUS <<\_ACEOF
22228 # If the template does not know about datarootdir, expand it.
22229 # FIXME: This hack should be removed a few years after 2.60.
22230 ac_datarootdir_hack=; ac_datarootdir_seen=
22231
22232 case `sed -n '/datarootdir/ {
22233 p
22234 q
22235 }
22236 /@datadir@/p
22237 /@docdir@/p
22238 /@infodir@/p
22239 /@localedir@/p
22240 /@mandir@/p
22241 ' $ac_file_inputs` in
22242 *datarootdir*) ac_datarootdir_seen=yes;;
22243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22244 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22245 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22246 _ACEOF
22247 cat >>$CONFIG_STATUS <<_ACEOF
22248 ac_datarootdir_hack='
22249 s&@datadir@&$datadir&g
22250 s&@docdir@&$docdir&g
22251 s&@infodir@&$infodir&g
22252 s&@localedir@&$localedir&g
22253 s&@mandir@&$mandir&g
22254 s&\\\${datarootdir}&$datarootdir&g' ;;
22255 esac
22256 _ACEOF
22257
22258 # Neutralize VPATH when `$srcdir' = `.'.
22259 # Shell code in configure.ac might set extrasub.
22260 # FIXME: do we really want to maintain this feature?
22261 cat >>$CONFIG_STATUS <<_ACEOF
22262 sed "$ac_vpsub
22263 $extrasub
22264 _ACEOF
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22266 :t
22267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22268 s&@configure_input@&$configure_input&;t t
22269 s&@top_builddir@&$ac_top_builddir_sub&;t t
22270 s&@srcdir@&$ac_srcdir&;t t
22271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22272 s&@top_srcdir@&$ac_top_srcdir&;t t
22273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22274 s&@builddir@&$ac_builddir&;t t
22275 s&@abs_builddir@&$ac_abs_builddir&;t t
22276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22277 s&@INSTALL@&$ac_INSTALL&;t t
22278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22279 $ac_datarootdir_hack
22280 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22281
22282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22285 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22286 which seems to be undefined. Please make sure it is defined." >&5
22287 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22288 which seems to be undefined. Please make sure it is defined." >&2;}
22289
22290 rm -f "$tmp/stdin"
22291 case $ac_file in
22292 -) cat "$tmp/out"; rm -f "$tmp/out";;
22293 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22294 esac
22295 ;;
22296 :H)
22297 #
22298 # CONFIG_HEADER
22299 #
22300 _ACEOF
22301
22302 # Transform confdefs.h into a sed script `conftest.defines', that
22303 # substitutes the proper values into config.h.in to produce config.h.
22304 rm -f conftest.defines conftest.tail
22305 # First, append a space to every undef/define line, to ease matching.
22306 echo 's/$/ /' >conftest.defines
22307 # Then, protect against being on the right side of a sed subst, or in
22308 # an unquoted here document, in config.status. If some macros were
22309 # called several times there might be several #defines for the same
22310 # symbol, which is useless. But do not sort them, since the last
22311 # AC_DEFINE must be honored.
22312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22313 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22314 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22315 # PARAMS is the parameter list in the macro definition--in most cases, it's
22316 # just an empty string.
22317 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22318 ac_dB='\\)[ (].*,\\1define\\2'
22319 ac_dC=' '
22320 ac_dD=' ,'
22321
22322 uniq confdefs.h |
22323 sed -n '
22324 t rset
22325 :rset
22326 s/^[ ]*#[ ]*define[ ][ ]*//
22327 t ok
22328 d
22329 :ok
22330 s/[\\&,]/\\&/g
22331 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22332 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22333 ' >>conftest.defines
22334
22335 # Remove the space that was appended to ease matching.
22336 # Then replace #undef with comments. This is necessary, for
22337 # example, in the case of _POSIX_SOURCE, which is predefined and required
22338 # on some systems where configure will not decide to define it.
22339 # (The regexp can be short, since the line contains either #define or #undef.)
22340 echo 's/ $//
22341 s,^[ #]*u.*,/* & */,' >>conftest.defines
22342
22343 # Break up conftest.defines:
22344 ac_max_sed_lines=50
22345
22346 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22347 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22348 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22349 # et cetera.
22350 ac_in='$ac_file_inputs'
22351 ac_out='"$tmp/out1"'
22352 ac_nxt='"$tmp/out2"'
22353
22354 while :
22355 do
22356 # Write a here document:
22357 cat >>$CONFIG_STATUS <<_ACEOF
22358 # First, check the format of the line:
22359 cat >"\$tmp/defines.sed" <<\\CEOF
22360 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22361 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22362 b
22363 :def
22364 _ACEOF
22365 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22366 echo 'CEOF
22367 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22368 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22369 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22370 grep . conftest.tail >/dev/null || break
22371 rm -f conftest.defines
22372 mv conftest.tail conftest.defines
22373 done
22374 rm -f conftest.defines conftest.tail
22375
22376 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22377 cat >>$CONFIG_STATUS <<\_ACEOF
22378 if test x"$ac_file" != x-; then
22379 echo "/* $configure_input */" >"$tmp/config.h"
22380 cat "$ac_result" >>"$tmp/config.h"
22381 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22382 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22383 echo "$as_me: $ac_file is unchanged" >&6;}
22384 else
22385 rm -f $ac_file
22386 mv "$tmp/config.h" $ac_file
22387 fi
22388 else
22389 echo "/* $configure_input */"
22390 cat "$ac_result"
22391 fi
22392 rm -f "$tmp/out12"
22393 # Compute $ac_file's index in $config_headers.
22394 _am_stamp_count=1
22395 for _am_header in $config_headers :; do
22396 case $_am_header in
22397 $ac_file | $ac_file:* )
22398 break ;;
22399 * )
22400 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22401 esac
22402 done
22403 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22404 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22405 X$ac_file : 'X\(//\)[^/]' \| \
22406 X$ac_file : 'X\(//\)$' \| \
22407 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22408 echo X$ac_file |
22409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22410 s//\1/
22411 q
22412 }
22413 /^X\(\/\/\)[^/].*/{
22414 s//\1/
22415 q
22416 }
22417 /^X\(\/\/\)$/{
22418 s//\1/
22419 q
22420 }
22421 /^X\(\/\).*/{
22422 s//\1/
22423 q
22424 }
22425 s/.*/./; q'`/stamp-h$_am_stamp_count
22426 ;;
22427
22428 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22429 echo "$as_me: executing $ac_file commands" >&6;}
22430 ;;
22431 esac
22432
22433
22434 case $ac_file$ac_mode in
22435 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22436 # Strip MF so we end up with the name of the file.
22437 mf=`echo "$mf" | sed -e 's/:.*$//'`
22438 # Check whether this is an Automake generated Makefile or not.
22439 # We used to match only the files named `Makefile.in', but
22440 # some people rename them; so instead we look at the file content.
22441 # Grep'ing the first line is not enough: some people post-process
22442 # each Makefile.in and add a new line on top of each file to say so.
22443 # Grep'ing the whole file is not good either: AIX grep has a line
22444 # limit of 2048, but all sed's we know have understand at least 4000.
22445 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22446 dirpart=`$as_dirname -- "$mf" ||
22447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22448 X"$mf" : 'X\(//\)[^/]' \| \
22449 X"$mf" : 'X\(//\)$' \| \
22450 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22451 echo X"$mf" |
22452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22453 s//\1/
22454 q
22455 }
22456 /^X\(\/\/\)[^/].*/{
22457 s//\1/
22458 q
22459 }
22460 /^X\(\/\/\)$/{
22461 s//\1/
22462 q
22463 }
22464 /^X\(\/\).*/{
22465 s//\1/
22466 q
22467 }
22468 s/.*/./; q'`
22469 else
22470 continue
22471 fi
22472 # Extract the definition of DEPDIR, am__include, and am__quote
22473 # from the Makefile without running `make'.
22474 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22475 test -z "$DEPDIR" && continue
22476 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22477 test -z "am__include" && continue
22478 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22479 # When using ansi2knr, U may be empty or an underscore; expand it
22480 U=`sed -n 's/^U = //p' < "$mf"`
22481 # Find all dependency output files, they are included files with
22482 # $(DEPDIR) in their names. We invoke sed twice because it is the
22483 # simplest approach to changing $(DEPDIR) to its actual value in the
22484 # expansion.
22485 for file in `sed -n "
22486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22488 # Make sure the directory exists.
22489 test -f "$dirpart/$file" && continue
22490 fdir=`$as_dirname -- "$file" ||
22491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22492 X"$file" : 'X\(//\)[^/]' \| \
22493 X"$file" : 'X\(//\)$' \| \
22494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22495 echo X"$file" |
22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22497 s//\1/
22498 q
22499 }
22500 /^X\(\/\/\)[^/].*/{
22501 s//\1/
22502 q
22503 }
22504 /^X\(\/\/\)$/{
22505 s//\1/
22506 q
22507 }
22508 /^X\(\/\).*/{
22509 s//\1/
22510 q
22511 }
22512 s/.*/./; q'`
22513 { as_dir=$dirpart/$fdir
22514 case $as_dir in #(
22515 -*) as_dir=./$as_dir;;
22516 esac
22517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22518 as_dirs=
22519 while :; do
22520 case $as_dir in #(
22521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22522 *) as_qdir=$as_dir;;
22523 esac
22524 as_dirs="'$as_qdir' $as_dirs"
22525 as_dir=`$as_dirname -- "$as_dir" ||
22526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22527 X"$as_dir" : 'X\(//\)[^/]' \| \
22528 X"$as_dir" : 'X\(//\)$' \| \
22529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22530 echo X"$as_dir" |
22531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22532 s//\1/
22533 q
22534 }
22535 /^X\(\/\/\)[^/].*/{
22536 s//\1/
22537 q
22538 }
22539 /^X\(\/\/\)$/{
22540 s//\1/
22541 q
22542 }
22543 /^X\(\/\).*/{
22544 s//\1/
22545 q
22546 }
22547 s/.*/./; q'`
22548 test -d "$as_dir" && break
22549 done
22550 test -z "$as_dirs" || eval "mkdir $as_dirs"
22551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22553 { (exit 1); exit 1; }; }; }
22554 # echo "creating $dirpart/$file"
22555 echo '# dummy' > "$dirpart/$file"
22556 done
22557 done
22558 ;;
22559
22560 esac
22561 done # for ac_tag
22562
22563
22564 { (exit 0); exit 0; }
22565 _ACEOF
22566 chmod +x $CONFIG_STATUS
22567 ac_clean_files=$ac_clean_files_save
22568
22569
22570 # configure is writing to config.log, and then calls config.status.
22571 # config.status does its own redirection, appending to config.log.
22572 # Unfortunately, on DOS this fails, as config.log is still kept open
22573 # by configure, so config.status won't be able to write to it; its
22574 # output is simply discarded. So we exec the FD to /dev/null,
22575 # effectively closing config.log, so it can be properly (re)opened and
22576 # appended to by config.status. When coming back to configure, we
22577 # need to make the FD available again.
22578 if test "$no_create" != yes; then
22579 ac_cs_success=:
22580 ac_config_status_args=
22581 test "$silent" = yes &&
22582 ac_config_status_args="$ac_config_status_args --quiet"
22583 exec 5>/dev/null
22584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22585 exec 5>>config.log
22586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22587 # would make configure fail if this is the last instruction.
22588 $ac_cs_success || { (exit 1); exit 1; }
22589 fi
22590
22591