configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xf86-video-siliconmotion 1.5.1.
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-siliconmotion'
730 PACKAGE_TARNAME='xf86-video-siliconmotion'
731 PACKAGE_VERSION='1.5.1'
732 PACKAGE_STRING='xf86-video-siliconmotion 1.5.1'
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 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 MAINTAINER_MODE_TRUE
831 MAINTAINER_MODE_FALSE
832 MAINT
833 build
834 build_cpu
835 build_vendor
836 build_os
837 host
838 host_cpu
839 host_vendor
840 host_os
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 ac_ct_CC
846 EXEEXT
847 OBJEXT
848 DEPDIR
849 am__include
850 am__quote
851 AMDEP_TRUE
852 AMDEP_FALSE
853 AMDEPBACKSLASH
854 CCDEPMODE
855 am__fastdepCC_TRUE
856 am__fastdepCC_FALSE
857 GREP
858 EGREP
859 LN_S
860 ECHO
861 AR
862 RANLIB
863 CPP
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 PKG_CONFIG
876 XORG_CFLAGS
877 XORG_LIBS
878 moduledir
879 DRIVER_NAME
880 APP_MAN_SUFFIX
881 LIB_MAN_SUFFIX
882 FILE_MAN_SUFFIX
883 MISC_MAN_SUFFIX
884 DRIVER_MAN_SUFFIX
885 ADMIN_MAN_SUFFIX
886 APP_MAN_DIR
887 LIB_MAN_DIR
888 FILE_MAN_DIR
889 MISC_MAN_DIR
890 DRIVER_MAN_DIR
891 ADMIN_MAN_DIR
892 LIBOBJS
893 LTLIBOBJS'
894 ac_subst_files=''
895 ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP
904 CXX
905 CXXFLAGS
906 CCC
907 CXXCPP
908 F77
909 FFLAGS
910 PKG_CONFIG
911 XORG_CFLAGS
912 XORG_LIBS'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
934
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
960
961 ac_prev=
962 ac_dashdash=
963 for ac_option
964 do
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
968 ac_prev=
969 continue
970 fi
971
972 case $ac_option in
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *) ac_optarg=yes ;;
975 esac
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
987
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1002
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1007
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1042
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1051
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1055
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1062
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1067
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1073
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1080
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1085
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1090
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1097
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1102
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1109
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1114
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1118
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1122
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1126
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1135
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1140
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1147
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1154
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1171
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1176
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1181
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=no ;;
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1266
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1270 ;;
1271
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1280
1281 *)
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 ;;
1288
1289 esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1296 fi
1297
1298 # Be sure to have absolute directory names.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1303 do
1304 eval ac_val=\$$ac_var
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 echo X"$0" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1377 fi
1378 else
1379 ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures xf86-video-siliconmotion 1.5.1 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-siliconmotion]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.5.1:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --enable-maintainer-mode enable make rules and dependencies not useful
1493 (and sometimes confusing) to the casual installer
1494 --enable-static[=PKGS] build static libraries [default=no]
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-pic try to use only PIC/non-PIC objects [default=use
1507 both]
1508 --with-tags[=TAGS] include additional configurations [automatic]
1509 --with-xorg-module-dir=DIR
1510 Default xorg module directory
1511 [default=$libdir/xorg/modules]
1512 --with-release-version=STRING
1513 Use release version string in package name
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1526 CXXCPP C++ preprocessor
1527 F77 Fortran 77 compiler command
1528 FFLAGS Fortran 77 compiler flags
1529 PKG_CONFIG path to pkg-config utility
1530 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1531 XORG_LIBS linker flags for XORG, overriding pkg-config
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" || continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 xf86-video-siliconmotion configure 1.5.1
1598 generated by GNU Autoconf 2.61
1599
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1606 fi
1607 cat >config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1610
1611 It was created by xf86-video-siliconmotion $as_me 1.5.1, which was
1612 generated by GNU Autoconf 2.61. Invocation command line was
1613
1614 $ $0 $@
1615
1616 _ACEOF
1617 exec 5>>config.log
1618 {
1619 cat <<_ASUNAME
1620 ## --------- ##
1621 ## Platform. ##
1622 ## --------- ##
1623
1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629
1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1632
1633 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1634 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1637 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1638 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1639 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1640
1641 _ASUNAME
1642
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 echo "PATH: $as_dir"
1649 done
1650 IFS=$as_save_IFS
1651
1652 } >&5
1653
1654 cat >&5 <<_ACEOF
1655
1656
1657 ## ----------- ##
1658 ## Core tests. ##
1659 ## ----------- ##
1660
1661 _ACEOF
1662
1663
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_configure_args=
1670 ac_configure_args0=
1671 ac_configure_args1=
1672 ac_must_keep_next=false
1673 for ac_pass in 1 2
1674 do
1675 for ac_arg
1676 do
1677 case $ac_arg in
1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1681 continue ;;
1682 *\'*)
1683 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 esac
1685 case $ac_pass in
1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 2)
1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689 if test $ac_must_keep_next = true; then
1690 ac_must_keep_next=false # Got value, back to normal.
1691 else
1692 case $ac_arg in
1693 *=* | --config-cache | -C | -disable-* | --disable-* \
1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696 | -with-* | --with-* | -without-* | --without-* | --x)
1697 case "$ac_configure_args0 " in
1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 esac
1700 ;;
1701 -* ) ac_must_keep_next=true ;;
1702 esac
1703 fi
1704 ac_configure_args="$ac_configure_args '$ac_arg'"
1705 ;;
1706 esac
1707 done
1708 done
1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log. We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718 # Save into config.log some information that might help in debugging.
1719 {
1720 echo
1721
1722 cat <<\_ASBOX
1723 ## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##
1726 _ASBOX
1727 echo
1728 # The following way of writing the cache mishandles newlines in values,
1729 (
1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in #(
1733 *${as_nl}*)
1734 case $ac_var in #(
1735 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1736 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737 esac
1738 case $ac_var in #(
1739 _ | IFS | as_nl) ;; #(
1740 *) $as_unset $ac_var ;;
1741 esac ;;
1742 esac
1743 done
1744 (set) 2>&1 |
1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1747 sed -n \
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 ;; #(
1751 *)
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753 ;;
1754 esac |
1755 sort
1756 )
1757 echo
1758
1759 cat <<\_ASBOX
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1763 _ASBOX
1764 echo
1765 for ac_var in $ac_subst_vars
1766 do
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 echo "$ac_var='\''$ac_val'\''"
1772 done | sort
1773 echo
1774
1775 if test -n "$ac_subst_files"; then
1776 cat <<\_ASBOX
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1780 _ASBOX
1781 echo
1782 for ac_var in $ac_subst_files
1783 do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 echo "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1791 fi
1792
1793 if test -s confdefs.h; then
1794 cat <<\_ASBOX
1795 ## ----------- ##
1796 ## confdefs.h. ##
1797 ## ----------- ##
1798 _ASBOX
1799 echo
1800 cat confdefs.h
1801 echo
1802 fi
1803 test "$ac_signal" != 0 &&
1804 echo "$as_me: caught signal $ac_signal"
1805 echo "$as_me: exit $exit_status"
1806 } >&5
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 exit $exit_status
1810 ' 0
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 done
1814 ac_signal=0
1815
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1818
1819 # Predefined preprocessor variables.
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 _ACEOF
1844
1845
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer explicitly selected file to automatically selected ones.
1848 if test -n "$CONFIG_SITE"; then
1849 set x "$CONFIG_SITE"
1850 elif test "x$prefix" != xNONE; then
1851 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1852 else
1853 set x "$ac_default_prefix/share/config.site" \
1854 "$ac_default_prefix/etc/config.site"
1855 fi
1856 shift
1857 for ac_site_file
1858 do
1859 if test -r "$ac_site_file"; then
1860 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861 echo "$as_me: loading site script $ac_site_file" >&6;}
1862 sed 's/^/| /' "$ac_site_file" >&5
1863 . "$ac_site_file"
1864 fi
1865 done
1866
1867 if test -r "$cache_file"; then
1868 # Some versions of bash will fail to source /dev/null (special
1869 # files actually), so we avoid doing that.
1870 if test -f "$cache_file"; then
1871 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872 echo "$as_me: loading cache $cache_file" >&6;}
1873 case $cache_file in
1874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875 *) . "./$cache_file";;
1876 esac
1877 fi
1878 else
1879 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880 echo "$as_me: creating cache $cache_file" >&6;}
1881 >$cache_file
1882 fi
1883
1884 # Check that the precious variables saved in the cache have kept the same
1885 # value.
1886 ac_cache_corrupted=false
1887 for ac_var in $ac_precious_vars; do
1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889 eval ac_new_set=\$ac_env_${ac_var}_set
1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891 eval ac_new_val=\$ac_env_${ac_var}_value
1892 case $ac_old_set,$ac_new_set in
1893 set,)
1894 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1895 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,set)
1898 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,);;
1902 *)
1903 if test "x$ac_old_val" != "x$ac_new_val"; then
1904 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1907 echo "$as_me: former value: $ac_old_val" >&2;}
1908 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1909 echo "$as_me: current value: $ac_new_val" >&2;}
1910 ac_cache_corrupted=:
1911 fi;;
1912 esac
1913 # Pass precious variables to config.status.
1914 if test "$ac_new_set" = set; then
1915 case $ac_new_val in
1916 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 *) ac_arg=$ac_var=$ac_new_val ;;
1918 esac
1919 case " $ac_configure_args " in
1920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1921 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922 esac
1923 fi
1924 done
1925 if $ac_cache_corrupted; then
1926 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1927 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1928 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1929 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1930 { (exit 1); exit 1; }; }
1931 fi
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1963
1964
1965
1966 ac_config_headers="$ac_config_headers config.h"
1967
1968 ac_aux_dir=
1969 for ac_dir in . "$srcdir"/.; do
1970 if test -f "$ac_dir/install-sh"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/install-sh -c"
1973 break
1974 elif test -f "$ac_dir/install.sh"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/install.sh -c"
1977 break
1978 elif test -f "$ac_dir/shtool"; then
1979 ac_aux_dir=$ac_dir
1980 ac_install_sh="$ac_aux_dir/shtool install -c"
1981 break
1982 fi
1983 done
1984 if test -z "$ac_aux_dir"; then
1985 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1986 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1987 { (exit 1); exit 1; }; }
1988 fi
1989
1990 # These three variables are undocumented and unsupported,
1991 # and are intended to be withdrawn in a future Autoconf release.
1992 # They can cause serious problems if a builder's source tree is in a directory
1993 # whose full name contains unusual characters.
1994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1997
1998
1999
2000 am__api_version="1.9"
2001 # Find a good install program. We prefer a C program (faster),
2002 # so one script is as good as another. But avoid the broken or
2003 # incompatible versions:
2004 # SysV /etc/install, /usr/sbin/install
2005 # SunOS /usr/etc/install
2006 # IRIX /sbin/install
2007 # AIX /bin/install
2008 # AmigaOS /C/install, which installs bootblocks on floppy discs
2009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012 # OS/2's system install, which has a completely different semantic
2013 # ./install, which can be erroneously created by make from ./install.sh.
2014 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2015 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2016 if test -z "$INSTALL"; then
2017 if test "${ac_cv_path_install+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 # Account for people who put trailing slashes in PATH elements.
2026 case $as_dir/ in
2027 ./ | .// | /cC/* | \
2028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2030 /usr/ucb/* ) ;;
2031 *)
2032 # OSF1 and SCO ODT 3.0 have their own names for install.
2033 # Don't use installbsd from OSF since it installs stuff as root
2034 # by default.
2035 for ac_prog in ginstall scoinst install; do
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2038 if test $ac_prog = install &&
2039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # AIX install. It has an incompatible calling convention.
2041 :
2042 elif test $ac_prog = install &&
2043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # program-specific install script used by HP pwplus--don't use.
2045 :
2046 else
2047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2048 break 3
2049 fi
2050 fi
2051 done
2052 done
2053 ;;
2054 esac
2055 done
2056 IFS=$as_save_IFS
2057
2058
2059 fi
2060 if test "${ac_cv_path_install+set}" = set; then
2061 INSTALL=$ac_cv_path_install
2062 else
2063 # As a last resort, use the slow shell script. Don't cache a
2064 # value for INSTALL within a source directory, because that will
2065 # break other packages using the cache if that directory is
2066 # removed, or if the value is a relative name.
2067 INSTALL=$ac_install_sh
2068 fi
2069 fi
2070 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2071 echo "${ECHO_T}$INSTALL" >&6; }
2072
2073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074 # It thinks the first close brace ends the variable substitution.
2075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076
2077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2078
2079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080
2081 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2082 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2083 # Just in case
2084 sleep 1
2085 echo timestamp > conftest.file
2086 # Do `set' in a subshell so we don't clobber the current shell's
2087 # arguments. Must try -L first in case configure is actually a
2088 # symlink; some systems play weird games with the mod time of symlinks
2089 # (eg FreeBSD returns the mod time of the symlink's containing
2090 # directory).
2091 if (
2092 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2093 if test "$*" = "X"; then
2094 # -L didn't work.
2095 set X `ls -t $srcdir/configure conftest.file`
2096 fi
2097 rm -f conftest.file
2098 if test "$*" != "X $srcdir/configure conftest.file" \
2099 && test "$*" != "X conftest.file $srcdir/configure"; then
2100
2101 # If neither matched, then we have a broken ls. This can happen
2102 # if, for instance, CONFIG_SHELL is bash and it inherits a
2103 # broken ls alias from the environment. This has actually
2104 # happened. Such a system could not be considered "sane".
2105 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2106 alias in your environment" >&5
2107 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2108 alias in your environment" >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111
2112 test "$2" = conftest.file
2113 )
2114 then
2115 # Ok.
2116 :
2117 else
2118 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2119 Check your system clock" >&5
2120 echo "$as_me: error: newly created file is older than distributed files!
2121 Check your system clock" >&2;}
2122 { (exit 1); exit 1; }; }
2123 fi
2124 { echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6; }
2126 test "$program_prefix" != NONE &&
2127 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2128 # Use a double $ so make ignores it.
2129 test "$program_suffix" != NONE &&
2130 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2131 # Double any \ or $. echo might interpret backslashes.
2132 # By default was `s,x,x', remove it if useless.
2133 cat <<\_ACEOF >conftest.sed
2134 s/[\\$]/&&/g;s/;s,x,x,$//
2135 _ACEOF
2136 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2137 rm -f conftest.sed
2138
2139 # expand $ac_aux_dir to an absolute path
2140 am_aux_dir=`cd $ac_aux_dir && pwd`
2141
2142 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2143 # Use eval to expand $SHELL
2144 if eval "$MISSING --run true"; then
2145 am_missing_run="$MISSING --run "
2146 else
2147 am_missing_run=
2148 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2149 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2150 fi
2151
2152 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2153 # We used to keeping the `.' as first argument, in order to
2154 # allow $(mkdir_p) to be used without argument. As in
2155 # $(mkdir_p) $(somedir)
2156 # where $(somedir) is conditionally defined. However this is wrong
2157 # for two reasons:
2158 # 1. if the package is installed by a user who cannot write `.'
2159 # make install will fail,
2160 # 2. the above comment should most certainly read
2161 # $(mkdir_p) $(DESTDIR)$(somedir)
2162 # so it does not work when $(somedir) is undefined and
2163 # $(DESTDIR) is not.
2164 # To support the latter case, we have to write
2165 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2166 # so the `.' trick is pointless.
2167 mkdir_p='mkdir -p --'
2168 else
2169 # On NextStep and OpenStep, the `mkdir' command does not
2170 # recognize any option. It will interpret all options as
2171 # directories to create, and then abort because `.' already
2172 # exists.
2173 for d in ./-p ./--version;
2174 do
2175 test -d $d && rmdir $d
2176 done
2177 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2178 if test -f "$ac_aux_dir/mkinstalldirs"; then
2179 mkdir_p='$(mkinstalldirs)'
2180 else
2181 mkdir_p='$(install_sh) -d'
2182 fi
2183 fi
2184
2185 for ac_prog in gawk mawk nawk awk
2186 do
2187 # Extract the first word of "$ac_prog", so it can be a program name with args.
2188 set dummy $ac_prog; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_AWK+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 if test -n "$AWK"; then
2195 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_AWK="$ac_prog"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 break 2
2207 fi
2208 done
2209 done
2210 IFS=$as_save_IFS
2211
2212 fi
2213 fi
2214 AWK=$ac_cv_prog_AWK
2215 if test -n "$AWK"; then
2216 { echo "$as_me:$LINENO: result: $AWK" >&5
2217 echo "${ECHO_T}$AWK" >&6; }
2218 else
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 fi
2222
2223
2224 test -n "$AWK" && break
2225 done
2226
2227 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2228 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2229 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2230 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 cat >conftest.make <<\_ACEOF
2234 SHELL = /bin/sh
2235 all:
2236 @echo '@@@%%%=$(MAKE)=@@@%%%'
2237 _ACEOF
2238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2240 *@@@%%%=?*=@@@%%%*)
2241 eval ac_cv_prog_make_${ac_make}_set=yes;;
2242 *)
2243 eval ac_cv_prog_make_${ac_make}_set=no;;
2244 esac
2245 rm -f conftest.make
2246 fi
2247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2248 { echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6; }
2250 SET_MAKE=
2251 else
2252 { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2254 SET_MAKE="MAKE=${MAKE-make}"
2255 fi
2256
2257 rm -rf .tst 2>/dev/null
2258 mkdir .tst 2>/dev/null
2259 if test -d .tst; then
2260 am__leading_dot=.
2261 else
2262 am__leading_dot=_
2263 fi
2264 rmdir .tst 2>/dev/null
2265
2266 # test to see if srcdir already configured
2267 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2268 test -f $srcdir/config.status; then
2269 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2270 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271 { (exit 1); exit 1; }; }
2272 fi
2273
2274 # test whether we have cygpath
2275 if test -z "$CYGPATH_W"; then
2276 if (cygpath --version) >/dev/null 2>/dev/null; then
2277 CYGPATH_W='cygpath -w'
2278 else
2279 CYGPATH_W=echo
2280 fi
2281 fi
2282
2283
2284 # Define the identity of the package.
2285 PACKAGE='xf86-video-siliconmotion'
2286 VERSION='1.5.1'
2287
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE "$PACKAGE"
2291 _ACEOF
2292
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define VERSION "$VERSION"
2296 _ACEOF
2297
2298 # Some tools Automake needs.
2299
2300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2301
2302
2303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2304
2305
2306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2307
2308
2309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2310
2311
2312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2313
2314 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2315
2316 # Installed binaries are usually stripped using `strip' when the user
2317 # run `make install-strip'. However `strip' might not be the right
2318 # tool to use in cross-compilation environments, therefore Automake
2319 # will honor the `STRIP' environment variable to overrule this program.
2320 if test "$cross_compiling" != no; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_STRIP+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$STRIP"; then
2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 STRIP=$ac_cv_prog_STRIP
2350 if test -n "$STRIP"; then
2351 { echo "$as_me:$LINENO: result: $STRIP" >&5
2352 echo "${ECHO_T}$STRIP" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356 fi
2357
2358
2359 fi
2360 if test -z "$ac_cv_prog_STRIP"; then
2361 ac_ct_STRIP=$STRIP
2362 # Extract the first word of "strip", so it can be a program name with args.
2363 set dummy strip; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$ac_ct_STRIP"; then
2370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_STRIP="strip"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2390 if test -n "$ac_ct_STRIP"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2392 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398 if test "x$ac_ct_STRIP" = x; then
2399 STRIP=":"
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2410 esac
2411 STRIP=$ac_ct_STRIP
2412 fi
2413 else
2414 STRIP="$ac_cv_prog_STRIP"
2415 fi
2416
2417 fi
2418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2419
2420 # We need awk for the "check" target. The system "awk" is bad on
2421 # some platforms.
2422 # Always define AMTAR for backward compatibility.
2423
2424 AMTAR=${AMTAR-"${am_missing_run}tar"}
2425
2426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2427
2428
2429
2430
2431
2432
2433 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2434 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2435 # Check whether --enable-maintainer-mode was given.
2436 if test "${enable_maintainer_mode+set}" = set; then
2437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2438 else
2439 USE_MAINTAINER_MODE=no
2440 fi
2441
2442 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2443 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2444
2445
2446 if test $USE_MAINTAINER_MODE = yes; then
2447 MAINTAINER_MODE_TRUE=
2448 MAINTAINER_MODE_FALSE='#'
2449 else
2450 MAINTAINER_MODE_TRUE='#'
2451 MAINTAINER_MODE_FALSE=
2452 fi
2453
2454 MAINT=$MAINTAINER_MODE_TRUE
2455
2456
2457
2458 # Checks for programs.
2459 # Check whether --enable-static was given.
2460 if test "${enable_static+set}" = set; then
2461 enableval=$enable_static; p=${PACKAGE-default}
2462 case $enableval in
2463 yes) enable_static=yes ;;
2464 no) enable_static=no ;;
2465 *)
2466 enable_static=no
2467 # Look at the argument we got. We use all the common list separators.
2468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2469 for pkg in $enableval; do
2470 IFS="$lt_save_ifs"
2471 if test "X$pkg" = "X$p"; then
2472 enable_static=yes
2473 fi
2474 done
2475 IFS="$lt_save_ifs"
2476 ;;
2477 esac
2478 else
2479 enable_static=no
2480 fi
2481
2482
2483
2484 # Check whether --enable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486 enableval=$enable_shared; p=${PACKAGE-default}
2487 case $enableval in
2488 yes) enable_shared=yes ;;
2489 no) enable_shared=no ;;
2490 *)
2491 enable_shared=no
2492 # Look at the argument we got. We use all the common list separators.
2493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2494 for pkg in $enableval; do
2495 IFS="$lt_save_ifs"
2496 if test "X$pkg" = "X$p"; then
2497 enable_shared=yes
2498 fi
2499 done
2500 IFS="$lt_save_ifs"
2501 ;;
2502 esac
2503 else
2504 enable_shared=yes
2505 fi
2506
2507
2508 # Check whether --enable-fast-install was given.
2509 if test "${enable_fast_install+set}" = set; then
2510 enableval=$enable_fast_install; p=${PACKAGE-default}
2511 case $enableval in
2512 yes) enable_fast_install=yes ;;
2513 no) enable_fast_install=no ;;
2514 *)
2515 enable_fast_install=no
2516 # Look at the argument we got. We use all the common list separators.
2517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2518 for pkg in $enableval; do
2519 IFS="$lt_save_ifs"
2520 if test "X$pkg" = "X$p"; then
2521 enable_fast_install=yes
2522 fi
2523 done
2524 IFS="$lt_save_ifs"
2525 ;;
2526 esac
2527 else
2528 enable_fast_install=yes
2529 fi
2530
2531
2532 # Make sure we can run config.sub.
2533 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2534 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2535 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2536 { (exit 1); exit 1; }; }
2537
2538 { echo "$as_me:$LINENO: checking build system type" >&5
2539 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2540 if test "${ac_cv_build+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 ac_build_alias=$build_alias
2544 test "x$ac_build_alias" = x &&
2545 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2546 test "x$ac_build_alias" = x &&
2547 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2548 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2549 { (exit 1); exit 1; }; }
2550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2552 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2553 { (exit 1); exit 1; }; }
2554
2555 fi
2556 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2557 echo "${ECHO_T}$ac_cv_build" >&6; }
2558 case $ac_cv_build in
2559 *-*-*) ;;
2560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2561 echo "$as_me: error: invalid value of canonical build" >&2;}
2562 { (exit 1); exit 1; }; };;
2563 esac
2564 build=$ac_cv_build
2565 ac_save_IFS=$IFS; IFS='-'
2566 set x $ac_cv_build
2567 shift
2568 build_cpu=$1
2569 build_vendor=$2
2570 shift; shift
2571 # Remember, the first character of IFS is used to create $*,
2572 # except with old shells:
2573 build_os=$*
2574 IFS=$ac_save_IFS
2575 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2576
2577
2578 { echo "$as_me:$LINENO: checking host system type" >&5
2579 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2580 if test "${ac_cv_host+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test "x$host_alias" = x; then
2584 ac_cv_host=$ac_cv_build
2585 else
2586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2589 { (exit 1); exit 1; }; }
2590 fi
2591
2592 fi
2593 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2594 echo "${ECHO_T}$ac_cv_host" >&6; }
2595 case $ac_cv_host in
2596 *-*-*) ;;
2597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2598 echo "$as_me: error: invalid value of canonical host" >&2;}
2599 { (exit 1); exit 1; }; };;
2600 esac
2601 host=$ac_cv_host
2602 ac_save_IFS=$IFS; IFS='-'
2603 set x $ac_cv_host
2604 shift
2605 host_cpu=$1
2606 host_vendor=$2
2607 shift; shift
2608 # Remember, the first character of IFS is used to create $*,
2609 # except with old shells:
2610 host_os=$*
2611 IFS=$ac_save_IFS
2612 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2613
2614
2615 DEPDIR="${am__leading_dot}deps"
2616
2617 ac_config_commands="$ac_config_commands depfiles"
2618
2619
2620 am_make=${MAKE-make}
2621 cat > confinc << 'END'
2622 am__doit:
2623 @echo done
2624 .PHONY: am__doit
2625 END
2626 # If we don't find an include directive, just comment out the code.
2627 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2628 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2629 am__include="#"
2630 am__quote=
2631 _am_result=none
2632 # First try GNU make style include.
2633 echo "include confinc" > confmf
2634 # We grep out `Entering directory' and `Leaving directory'
2635 # messages which can occur if `w' ends up in MAKEFLAGS.
2636 # In particular we don't look at `^make:' because GNU make might
2637 # be invoked under some other name (usually "gmake"), in which
2638 # case it prints its new name instead of `make'.
2639 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2640 am__include=include
2641 am__quote=
2642 _am_result=GNU
2643 fi
2644 # Now try BSD make style include.
2645 if test "$am__include" = "#"; then
2646 echo '.include "confinc"' > confmf
2647 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2648 am__include=.include
2649 am__quote="\""
2650 _am_result=BSD
2651 fi
2652 fi
2653
2654
2655 { echo "$as_me:$LINENO: result: $_am_result" >&5
2656 echo "${ECHO_T}$_am_result" >&6; }
2657 rm -f confinc confmf
2658
2659 # Check whether --enable-dependency-tracking was given.
2660 if test "${enable_dependency_tracking+set}" = set; then
2661 enableval=$enable_dependency_tracking;
2662 fi
2663
2664 if test "x$enable_dependency_tracking" != xno; then
2665 am_depcomp="$ac_aux_dir/depcomp"
2666 AMDEPBACKSLASH='\'
2667 fi
2668
2669
2670 if test "x$enable_dependency_tracking" != xno; then
2671 AMDEP_TRUE=
2672 AMDEP_FALSE='#'
2673 else
2674 AMDEP_TRUE='#'
2675 AMDEP_FALSE=
2676 fi
2677
2678
2679
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715 { echo "$as_me:$LINENO: result: $CC" >&5
2716 echo "${ECHO_T}$CC" >&6; }
2717 else
2718 { echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6; }
2720 fi
2721
2722
2723 fi
2724 if test -z "$ac_cv_prog_CC"; then
2725 ac_ct_CC=$CC
2726 # Extract the first word of "gcc", so it can be a program name with args.
2727 set dummy gcc; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 if test -n "$ac_ct_CC"; then
2734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_ac_ct_CC="gcc"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754 if test -n "$ac_ct_CC"; then
2755 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756 echo "${ECHO_T}$ac_ct_CC" >&6; }
2757 else
2758 { echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6; }
2760 fi
2761
2762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766 yes:)
2767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2768 whose name does not start with the host triplet. If you think this
2769 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2771 whose name does not start with the host triplet. If you think this
2772 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 CC=$ac_ct_CC
2776 fi
2777 else
2778 CC="$ac_cv_prog_CC"
2779 fi
2780
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}cc; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}cc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 { echo "$as_me:$LINENO: result: $CC" >&5
2813 echo "${ECHO_T}$CC" >&6; }
2814 else
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819
2820 fi
2821 fi
2822 if test -z "$CC"; then
2823 # Extract the first word of "cc", so it can be a program name with args.
2824 set dummy cc; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 else
2833 ac_prog_rejected=no
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2842 ac_prog_rejected=yes
2843 continue
2844 fi
2845 ac_cv_prog_CC="cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 if test $ac_prog_rejected = yes; then
2854 # We found a bogon in the path, so make sure we never use it.
2855 set dummy $ac_cv_prog_CC
2856 shift
2857 if test $# != 0; then
2858 # We chose a different compiler from the bogus one.
2859 # However, it has the same basename, so the bogon will be chosen
2860 # first if we set CC to just the basename; use the full file name.
2861 shift
2862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2863 fi
2864 fi
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { echo "$as_me:$LINENO: result: $CC" >&5
2870 echo "${ECHO_T}$CC" >&6; }
2871 else
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2874 fi
2875
2876
2877 fi
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 for ac_prog in cl.exe
2881 do
2882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2913 else
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2916 fi
2917
2918
2919 test -n "$CC" && break
2920 done
2921 fi
2922 if test -z "$CC"; then
2923 ac_ct_CC=$CC
2924 for ac_prog in cl.exe
2925 do
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_CC="$ac_prog"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2956 echo "${ECHO_T}$ac_ct_CC" >&6; }
2957 else
2958 { echo "$as_me:$LINENO: result: no" >&5
2959 echo "${ECHO_T}no" >&6; }
2960 fi
2961
2962
2963 test -n "$ac_ct_CC" && break
2964 done
2965
2966 if test "x$ac_ct_CC" = x; then
2967 CC=""
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2972 whose name does not start with the host triplet. If you think this
2973 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2975 whose name does not start with the host triplet. If you think this
2976 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CC=$ac_ct_CC
2980 fi
2981 fi
2982
2983 fi
2984
2985
2986 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: no acceptable C compiler found in \$PATH
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2991
2992 # Provide some information about the compiler.
2993 echo "$as_me:$LINENO: checking for C compiler version" >&5
2994 ac_compiler=`set X $ac_compile; echo $2`
2995 { (ac_try="$ac_compiler --version >&5"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compiler --version >&5") 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005 { (ac_try="$ac_compiler -v >&5"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compiler -v >&5") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3015 { (ac_try="$ac_compiler -V >&5"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compiler -V >&5") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }
3025
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 ac_clean_files_save=$ac_clean_files
3042 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3043 # Try to create an executable without -o first, disregard a.out.
3044 # It will help us diagnose broken compilers, and finding out an intuition
3045 # of exeext.
3046 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3047 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3048 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049 #
3050 # List of possible output files, starting from the most likely.
3051 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3052 # only as a last resort. b.out is created by i960 compilers.
3053 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3054 #
3055 # The IRIX 6 linker writes into existing files which may not be
3056 # executable, retaining their permissions. Remove them first so a
3057 # subsequent execution test works.
3058 ac_rmfiles=
3059 for ac_file in $ac_files
3060 do
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064 esac
3065 done
3066 rm -f $ac_rmfiles
3067
3068 if { (ac_try="$ac_link_default"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_link_default") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
3078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3079 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3080 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3081 # so that the user can short-circuit this test for compilers unknown to
3082 # Autoconf.
3083 for ac_file in $ac_files ''
3084 do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3088 ;;
3089 [ab].out )
3090 # We found the default executable, but exeext='' is most
3091 # certainly right.
3092 break;;
3093 *.* )
3094 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3095 then :; else
3096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3097 fi
3098 # We set ac_cv_exeext here because the later test for it is not
3099 # safe: cross compilers may not add the suffix if given an `-o'
3100 # argument, so we may need to know it at that point already.
3101 # Even if this section looks crufty: it has the advantage of
3102 # actually working.
3103 break;;
3104 * )
3105 break;;
3106 esac
3107 done
3108 test "$ac_cv_exeext" = no && ac_cv_exeext=
3109
3110 else
3111 ac_file=''
3112 fi
3113
3114 { echo "$as_me:$LINENO: result: $ac_file" >&5
3115 echo "${ECHO_T}$ac_file" >&6; }
3116 if test -z "$ac_file"; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3121 See \`config.log' for more details." >&5
3122 echo "$as_me: error: C compiler cannot create executables
3123 See \`config.log' for more details." >&2;}
3124 { (exit 77); exit 77; }; }
3125 fi
3126
3127 ac_exeext=$ac_cv_exeext
3128
3129 # Check that the compiler produces executables we can run. If not, either
3130 # the compiler is broken, or we cross compile.
3131 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3132 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3133 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3134 # If not cross compiling, check that we can run a simple program.
3135 if test "$cross_compiling" != yes; then
3136 if { ac_try='./$ac_file'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3152 If you meant to cross compile, use \`--host'.
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3158 fi
3159 fi
3160 fi
3161 { echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6; }
3163
3164 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3165 ac_clean_files=$ac_clean_files_save
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3169 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3170 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3171 echo "${ECHO_T}$cross_compiling" >&6; }
3172
3173 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3174 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3175 if { (ac_try="$ac_link"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_link") 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; then
3185 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3186 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3187 # work properly (i.e., refer to `conftest.exe'), while it won't with
3188 # `rm'.
3189 for ac_file in conftest.exe conftest conftest.*; do
3190 test -f "$ac_file" || continue
3191 case $ac_file in
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194 break;;
3195 * ) break;;
3196 esac
3197 done
3198 else
3199 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3204 fi
3205
3206 rm -f conftest$ac_cv_exeext
3207 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3208 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3209
3210 rm -f conftest.$ac_ext
3211 EXEEXT=$ac_cv_exeext
3212 ac_exeext=$EXEEXT
3213 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3214 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3215 if test "${ac_cv_objext+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_compile") 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; then
3244 for ac_file in conftest.o conftest.obj conftest.*; do
3245 test -f "$ac_file" || continue;
3246 case $ac_file in
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3249 break;;
3250 esac
3251 done
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3257 See \`config.log' for more details." >&5
3258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3264 fi
3265 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3266 echo "${ECHO_T}$ac_cv_objext" >&6; }
3267 OBJEXT=$ac_cv_objext
3268 ac_objext=$OBJEXT
3269 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284 #ifndef __GNUC__
3285 choke me
3286 #endif
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_compile") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } && {
3306 test -z "$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 } && test -s conftest.$ac_objext; then
3309 ac_compiler_gnu=yes
3310 else
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 ac_compiler_gnu=no
3315 fi
3316
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3319
3320 fi
3321 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3322 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3323 GCC=`test $ac_compiler_gnu = yes && echo yes`
3324 ac_test_CFLAGS=${CFLAGS+set}
3325 ac_save_CFLAGS=$CFLAGS
3326 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3327 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3328 if test "${ac_cv_prog_cc_g+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 ac_save_c_werror_flag=$ac_c_werror_flag
3332 ac_c_werror_flag=yes
3333 ac_cv_prog_cc_g=no
3334 CFLAGS="-g"
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3367 ac_cv_prog_cc_g=yes
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 CFLAGS=""
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } && {
3402 test -z "$ac_c_werror_flag" ||
3403 test ! -s conftest.err
3404 } && test -s conftest.$ac_objext; then
3405 :
3406 else
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3411 CFLAGS="-g"
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } && {
3441 test -z "$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3443 } && test -s conftest.$ac_objext; then
3444 ac_cv_prog_cc_g=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449
3450 fi
3451
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_c_werror_flag=$ac_save_c_werror_flag
3460 fi
3461 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3463 if test "$ac_test_CFLAGS" = set; then
3464 CFLAGS=$ac_save_CFLAGS
3465 elif test $ac_cv_prog_cc_g = yes; then
3466 if test "$GCC" = yes; then
3467 CFLAGS="-g -O2"
3468 else
3469 CFLAGS="-g"
3470 fi
3471 else
3472 if test "$GCC" = yes; then
3473 CFLAGS="-O2"
3474 else
3475 CFLAGS=
3476 fi
3477 fi
3478 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3479 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_cc_c89+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 ac_cv_prog_cc_c89=no
3484 ac_save_CC=$CC
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <stdarg.h>
3492 #include <stdio.h>
3493 #include <sys/types.h>
3494 #include <sys/stat.h>
3495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3496 struct buf { int x; };
3497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3498 static char *e (p, i)
3499 char **p;
3500 int i;
3501 {
3502 return p[i];
3503 }
3504 static char *f (char * (*g) (char **, int), char **p, ...)
3505 {
3506 char *s;
3507 va_list v;
3508 va_start (v,p);
3509 s = g (p, va_arg (v,int));
3510 va_end (v);
3511 return s;
3512 }
3513
3514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3515 function prototypes and stuff, but not '\xHH' hex character constants.
3516 These don't provoke an error unfortunately, instead are silently treated
3517 as 'x'. The following induces an error, until -std is added to get
3518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3519 array size at least. It's necessary to write '\x00'==0 to get something
3520 that's true only with -std. */
3521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3522
3523 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3524 inside strings and character constants. */
3525 #define FOO(x) 'x'
3526 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3527
3528 int test (int i, double x);
3529 struct s1 {int (*f) (int a);};
3530 struct s2 {int (*f) (double a);};
3531 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3532 int argc;
3533 char **argv;
3534 int
3535 main ()
3536 {
3537 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3543 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3544 do
3545 CC="$ac_save_CC $ac_arg"
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ac_cv_prog_cc_c89=$ac_arg
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext
3572 test "x$ac_cv_prog_cc_c89" != "xno" && break
3573 done
3574 rm -f conftest.$ac_ext
3575 CC=$ac_save_CC
3576
3577 fi
3578 # AC_CACHE_VAL
3579 case "x$ac_cv_prog_cc_c89" in
3580 x)
3581 { echo "$as_me:$LINENO: result: none needed" >&5
3582 echo "${ECHO_T}none needed" >&6; } ;;
3583 xno)
3584 { echo "$as_me:$LINENO: result: unsupported" >&5
3585 echo "${ECHO_T}unsupported" >&6; } ;;
3586 *)
3587 CC="$CC $ac_cv_prog_cc_c89"
3588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3589 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3590 esac
3591
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
3599 depcc="$CC" am_compiler_list=
3600
3601 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3602 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3603 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3607 # We make a subdir and do the tests there. Otherwise we can end up
3608 # making bogus files that we don't know about and never remove. For
3609 # instance it was reported that on HP-UX the gcc test will end up
3610 # making a dummy file named `D' -- because `-MD' means `put the output
3611 # in D'.
3612 mkdir conftest.dir
3613 # Copy depcomp to subdir because otherwise we won't find it if we're
3614 # using a relative directory.
3615 cp "$am_depcomp" conftest.dir
3616 cd conftest.dir
3617 # We will build objects and dependencies in a subdirectory because
3618 # it helps to detect inapplicable dependency modes. For instance
3619 # both Tru64's cc and ICC support -MD to output dependencies as a
3620 # side effect of compilation, but ICC will put the dependencies in
3621 # the current directory while Tru64 will put them in the object
3622 # directory.
3623 mkdir sub
3624
3625 am_cv_CC_dependencies_compiler_type=none
3626 if test "$am_compiler_list" = ""; then
3627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3628 fi
3629 for depmode in $am_compiler_list; do
3630 # Setup a source with many dependencies, because some compilers
3631 # like to wrap large dependency lists on column 80 (with \), and
3632 # we should not choose a depcomp mode which is confused by this.
3633 #
3634 # We need to recreate these files for each test, as the compiler may
3635 # overwrite some of them when testing with obscure command lines.
3636 # This happens at least with the AIX C compiler.
3637 : > sub/conftest.c
3638 for i in 1 2 3 4 5 6; do
3639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3641 # Solaris 8's {/usr,}/bin/sh.
3642 touch sub/conftst$i.h
3643 done
3644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3645
3646 case $depmode in
3647 nosideeffect)
3648 # after this tag, mechanisms are not by side-effect, so they'll
3649 # only be used when explicitly requested
3650 if test "x$enable_dependency_tracking" = xyes; then
3651 continue
3652 else
3653 break
3654 fi
3655 ;;
3656 none) break ;;
3657 esac
3658 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3659 # mode. It turns out that the SunPro C++ compiler does not properly
3660 # handle `-M -o', and we need to detect this.
3661 if depmode=$depmode \
3662 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3664 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3665 >/dev/null 2>conftest.err &&
3666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3667 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3669 # icc doesn't choke on unknown options, it will just issue warnings
3670 # or remarks (even with -Werror). So we grep stderr for any message
3671 # that says an option was ignored or not supported.
3672 # When given -MP, icc 7.0 and 7.1 complain thusly:
3673 # icc: Command line warning: ignoring option '-M'; no argument required
3674 # The diagnosis changed in icc 8.0:
3675 # icc: Command line remark: option '-MP' not supported
3676 if (grep 'ignoring option' conftest.err ||
3677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3678 am_cv_CC_dependencies_compiler_type=$depmode
3679 break
3680 fi
3681 fi
3682 done
3683
3684 cd ..
3685 rm -rf conftest.dir
3686 else
3687 am_cv_CC_dependencies_compiler_type=none
3688 fi
3689
3690 fi
3691 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3692 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3693 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3694
3695
3696
3697 if
3698 test "x$enable_dependency_tracking" != xno \
3699 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3700 am__fastdepCC_TRUE=
3701 am__fastdepCC_FALSE='#'
3702 else
3703 am__fastdepCC_TRUE='#'
3704 am__fastdepCC_FALSE=
3705 fi
3706
3707
3708 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3709 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3710 if test "${lt_cv_path_SED+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 # Loop through the user's path and test for sed and gsed.
3714 # Then use that list of sed's as ones to test for truncation.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for lt_ac_prog in sed gsed; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3723 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3724 fi
3725 done
3726 done
3727 done
3728 lt_ac_max=0
3729 lt_ac_count=0
3730 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3731 # along with /bin/sed that truncates output.
3732 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3733 test ! -f $lt_ac_sed && continue
3734 cat /dev/null > conftest.in
3735 lt_ac_count=0
3736 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3737 # Check for GNU sed and select it if it is found.
3738 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3739 lt_cv_path_SED=$lt_ac_sed
3740 break
3741 fi
3742 while true; do
3743 cat conftest.in conftest.in >conftest.tmp
3744 mv conftest.tmp conftest.in
3745 cp conftest.in conftest.nl
3746 echo >>conftest.nl
3747 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3748 cmp -s conftest.out conftest.nl || break
3749 # 10000 chars as input seems more than enough
3750 test $lt_ac_count -gt 10 && break
3751 lt_ac_count=`expr $lt_ac_count + 1`
3752 if test $lt_ac_count -gt $lt_ac_max; then
3753 lt_ac_max=$lt_ac_count
3754 lt_cv_path_SED=$lt_ac_sed
3755 fi
3756 done
3757 done
3758
3759 fi
3760
3761 SED=$lt_cv_path_SED
3762 { echo "$as_me:$LINENO: result: $SED" >&5
3763 echo "${ECHO_T}$SED" >&6; }
3764
3765 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3766 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3767 if test "${ac_cv_path_GREP+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 # Extract the first word of "grep ggrep" to use in msg output
3771 if test -z "$GREP"; then
3772 set dummy grep ggrep; ac_prog_name=$2
3773 if test "${ac_cv_path_GREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 ac_path_GREP_found=false
3777 # Loop through the user's path and test for each of PROGNAME-LIST
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_prog in grep ggrep; do
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3786 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3787 # Check for GNU ac_path_GREP and select it if it is found.
3788 # Check for GNU $ac_path_GREP
3789 case `"$ac_path_GREP" --version 2>&1` in
3790 *GNU*)
3791 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3792 *)
3793 ac_count=0
3794 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3795 while :
3796 do
3797 cat "conftest.in" "conftest.in" >"conftest.tmp"
3798 mv "conftest.tmp" "conftest.in"
3799 cp "conftest.in" "conftest.nl"
3800 echo 'GREP' >> "conftest.nl"
3801 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3803 ac_count=`expr $ac_count + 1`
3804 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3805 # Best one so far, save it but keep looking for a better one
3806 ac_cv_path_GREP="$ac_path_GREP"
3807 ac_path_GREP_max=$ac_count
3808 fi
3809 # 10*(2^10) chars as input seems more than enough
3810 test $ac_count -gt 10 && break
3811 done
3812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813 esac
3814
3815
3816 $ac_path_GREP_found && break 3
3817 done
3818 done
3819
3820 done
3821 IFS=$as_save_IFS
3822
3823
3824 fi
3825
3826 GREP="$ac_cv_path_GREP"
3827 if test -z "$GREP"; then
3828 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3829 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3830 { (exit 1); exit 1; }; }
3831 fi
3832
3833 else
3834 ac_cv_path_GREP=$GREP
3835 fi
3836
3837
3838 fi
3839 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3840 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3841 GREP="$ac_cv_path_GREP"
3842
3843
3844 { echo "$as_me:$LINENO: checking for egrep" >&5
3845 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3846 if test "${ac_cv_path_EGREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3850 then ac_cv_path_EGREP="$GREP -E"
3851 else
3852 # Extract the first word of "egrep" to use in msg output
3853 if test -z "$EGREP"; then
3854 set dummy egrep; ac_prog_name=$2
3855 if test "${ac_cv_path_EGREP+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 ac_path_EGREP_found=false
3859 # Loop through the user's path and test for each of PROGNAME-LIST
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_prog in egrep; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3868 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3869 # Check for GNU ac_path_EGREP and select it if it is found.
3870 # Check for GNU $ac_path_EGREP
3871 case `"$ac_path_EGREP" --version 2>&1` in
3872 *GNU*)
3873 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3874 *)
3875 ac_count=0
3876 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3877 while :
3878 do
3879 cat "conftest.in" "conftest.in" >"conftest.tmp"
3880 mv "conftest.tmp" "conftest.in"
3881 cp "conftest.in" "conftest.nl"
3882 echo 'EGREP' >> "conftest.nl"
3883 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3885 ac_count=`expr $ac_count + 1`
3886 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3887 # Best one so far, save it but keep looking for a better one
3888 ac_cv_path_EGREP="$ac_path_EGREP"
3889 ac_path_EGREP_max=$ac_count
3890 fi
3891 # 10*(2^10) chars as input seems more than enough
3892 test $ac_count -gt 10 && break
3893 done
3894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3895 esac
3896
3897
3898 $ac_path_EGREP_found && break 3
3899 done
3900 done
3901
3902 done
3903 IFS=$as_save_IFS
3904
3905
3906 fi
3907
3908 EGREP="$ac_cv_path_EGREP"
3909 if test -z "$EGREP"; then
3910 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3911 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3912 { (exit 1); exit 1; }; }
3913 fi
3914
3915 else
3916 ac_cv_path_EGREP=$EGREP
3917 fi
3918
3919
3920 fi
3921 fi
3922 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3923 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3924 EGREP="$ac_cv_path_EGREP"
3925
3926
3927
3928 # Check whether --with-gnu-ld was given.
3929 if test "${with_gnu_ld+set}" = set; then
3930 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3931 else
3932 with_gnu_ld=no
3933 fi
3934
3935 ac_prog=ld
3936 if test "$GCC" = yes; then
3937 # Check if gcc -print-prog-name=ld gives a path.
3938 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3939 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3940 case $host in
3941 *-*-mingw*)
3942 # gcc leaves a trailing carriage return which upsets mingw
3943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3944 *)
3945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3946 esac
3947 case $ac_prog in
3948 # Accept absolute paths.
3949 [\\/]* | ?:[\\/]*)
3950 re_direlt='/[^/][^/]*/\.\./'
3951 # Canonicalize the pathname of ld
3952 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3954 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3955 done
3956 test -z "$LD" && LD="$ac_prog"
3957 ;;
3958 "")
3959 # If it fails, then pretend we aren't using GCC.
3960 ac_prog=ld
3961 ;;
3962 *)
3963 # If it is relative, then search for the first ld in PATH.
3964 with_gnu_ld=unknown
3965 ;;
3966 esac
3967 elif test "$with_gnu_ld" = yes; then
3968 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3969 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3970 else
3971 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3972 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3973 fi
3974 if test "${lt_cv_path_LD+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if test -z "$LD"; then
3978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3979 for ac_dir in $PATH; do
3980 IFS="$lt_save_ifs"
3981 test -z "$ac_dir" && ac_dir=.
3982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3983 lt_cv_path_LD="$ac_dir/$ac_prog"
3984 # Check to see if the program is GNU ld. I'd rather use --version,
3985 # but apparently some variants of GNU ld only accept -v.
3986 # Break only if it was the GNU/non-GNU ld that we prefer.
3987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3988 *GNU* | *'with BFD'*)
3989 test "$with_gnu_ld" != no && break
3990 ;;
3991 *)
3992 test "$with_gnu_ld" != yes && break
3993 ;;
3994 esac
3995 fi
3996 done
3997 IFS="$lt_save_ifs"
3998 else
3999 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4000 fi
4001 fi
4002
4003 LD="$lt_cv_path_LD"
4004 if test -n "$LD"; then
4005 { echo "$as_me:$LINENO: result: $LD" >&5
4006 echo "${ECHO_T}$LD" >&6; }
4007 else
4008 { echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6; }
4010 fi
4011 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4012 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4013 { (exit 1); exit 1; }; }
4014 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4015 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4016 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4020 case `$LD -v 2>&1 </dev/null` in
4021 *GNU* | *'with BFD'*)
4022 lt_cv_prog_gnu_ld=yes
4023 ;;
4024 *)
4025 lt_cv_prog_gnu_ld=no
4026 ;;
4027 esac
4028 fi
4029 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4030 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4031 with_gnu_ld=$lt_cv_prog_gnu_ld
4032
4033
4034 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4035 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4036 if test "${lt_cv_ld_reload_flag+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 lt_cv_ld_reload_flag='-r'
4040 fi
4041 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4042 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4043 reload_flag=$lt_cv_ld_reload_flag
4044 case $reload_flag in
4045 "" | " "*) ;;
4046 *) reload_flag=" $reload_flag" ;;
4047 esac
4048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4049 case $host_os in
4050 darwin*)
4051 if test "$GCC" = yes; then
4052 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4053 else
4054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4055 fi
4056 ;;
4057 esac
4058
4059 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4060 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4061 if test "${lt_cv_path_NM+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 if test -n "$NM"; then
4065 # Let the user override the test.
4066 lt_cv_path_NM="$NM"
4067 else
4068 lt_nm_to_check="${ac_tool_prefix}nm"
4069 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4070 lt_nm_to_check="$lt_nm_to_check nm"
4071 fi
4072 for lt_tmp_nm in $lt_nm_to_check; do
4073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4074 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4075 IFS="$lt_save_ifs"
4076 test -z "$ac_dir" && ac_dir=.
4077 tmp_nm="$ac_dir/$lt_tmp_nm"
4078 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4079 # Check to see if the nm accepts a BSD-compat flag.
4080 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4081 # nm: unknown option "B" ignored
4082 # Tru64's nm complains that /dev/null is an invalid object file
4083 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4084 */dev/null* | *'Invalid file or object type'*)
4085 lt_cv_path_NM="$tmp_nm -B"
4086 break
4087 ;;
4088 *)
4089 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4090 */dev/null*)
4091 lt_cv_path_NM="$tmp_nm -p"
4092 break
4093 ;;
4094 *)
4095 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4096 continue # so that we can try to find one that supports BSD flags
4097 ;;
4098 esac
4099 ;;
4100 esac
4101 fi
4102 done
4103 IFS="$lt_save_ifs"
4104 done
4105 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4106 fi
4107 fi
4108 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4109 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4110 NM="$lt_cv_path_NM"
4111
4112 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4113 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4114 LN_S=$as_ln_s
4115 if test "$LN_S" = "ln -s"; then
4116 { echo "$as_me:$LINENO: result: yes" >&5
4117 echo "${ECHO_T}yes" >&6; }
4118 else
4119 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4120 echo "${ECHO_T}no, using $LN_S" >&6; }
4121 fi
4122
4123 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4124 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4125 if test "${lt_cv_deplibs_check_method+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 lt_cv_file_magic_cmd='$MAGIC_CMD'
4129 lt_cv_file_magic_test_file=
4130 lt_cv_deplibs_check_method='unknown'
4131 # Need to set the preceding variable on all platforms that support
4132 # interlibrary dependencies.
4133 # 'none' -- dependencies not supported.
4134 # `unknown' -- same as none, but documents that we really don't know.
4135 # 'pass_all' -- all dependencies passed with no checks.
4136 # 'test_compile' -- check by making test program.
4137 # 'file_magic [[regex]]' -- check by looking for files in library path
4138 # which responds to the $file_magic_cmd with a given extended regex.
4139 # If you have `file' or equivalent on your system and you're not sure
4140 # whether `pass_all' will *always* work, you probably want this one.
4141
4142 case $host_os in
4143 aix4* | aix5*)
4144 lt_cv_deplibs_check_method=pass_all
4145 ;;
4146
4147 beos*)
4148 lt_cv_deplibs_check_method=pass_all
4149 ;;
4150
4151 bsdi[45]*)
4152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4153 lt_cv_file_magic_cmd='/usr/bin/file -L'
4154 lt_cv_file_magic_test_file=/shlib/libc.so
4155 ;;
4156
4157 cygwin*)
4158 # func_win32_libid is a shell function defined in ltmain.sh
4159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4160 lt_cv_file_magic_cmd='func_win32_libid'
4161 ;;
4162
4163 mingw* | pw32*)
4164 # Base MSYS/MinGW do not provide the 'file' command needed by
4165 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4166 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4167 lt_cv_file_magic_cmd='$OBJDUMP -f'
4168 ;;
4169
4170 darwin* | rhapsody*)
4171 lt_cv_deplibs_check_method=pass_all
4172 ;;
4173
4174 freebsd* | dragonfly*)
4175 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4176 case $host_cpu in
4177 i*86 )
4178 # Not sure whether the presence of OpenBSD here was a mistake.
4179 # Let's accept both of them until this is cleared up.
4180 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4181 lt_cv_file_magic_cmd=/usr/bin/file
4182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4183 ;;
4184 esac
4185 else
4186 lt_cv_deplibs_check_method=pass_all
4187 fi
4188 ;;
4189
4190 gnu*)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193
4194 hpux10.20* | hpux11*)
4195 lt_cv_file_magic_cmd=/usr/bin/file
4196 case $host_cpu in
4197 ia64*)
4198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4199 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4200 ;;
4201 hppa*64*)
4202 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]'
4203 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4204 ;;
4205 *)
4206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4207 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4208 ;;
4209 esac
4210 ;;
4211
4212 interix3*)
4213 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4215 ;;
4216
4217 irix5* | irix6* | nonstopux*)
4218 case $LD in
4219 *-32|*"-32 ") libmagic=32-bit;;
4220 *-n32|*"-n32 ") libmagic=N32;;
4221 *-64|*"-64 ") libmagic=64-bit;;
4222 *) libmagic=never-match;;
4223 esac
4224 lt_cv_deplibs_check_method=pass_all
4225 ;;
4226
4227 # This must be Linux ELF.
4228 linux* | k*bsd*-gnu)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231
4232 netbsd* | netbsdelf*-gnu)
4233 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4235 else
4236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4237 fi
4238 ;;
4239
4240 newos6*)
4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4242 lt_cv_file_magic_cmd=/usr/bin/file
4243 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4244 ;;
4245
4246 nto-qnx*)
4247 lt_cv_deplibs_check_method=unknown
4248 ;;
4249
4250 openbsd*)
4251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4253 else
4254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4255 fi
4256 ;;
4257
4258 osf3* | osf4* | osf5*)
4259 lt_cv_deplibs_check_method=pass_all
4260 ;;
4261
4262 solaris*)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266 sysv4 | sysv4.3*)
4267 case $host_vendor in
4268 motorola)
4269 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]'
4270 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4271 ;;
4272 ncr)
4273 lt_cv_deplibs_check_method=pass_all
4274 ;;
4275 sequent)
4276 lt_cv_file_magic_cmd='/bin/file'
4277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4278 ;;
4279 sni)
4280 lt_cv_file_magic_cmd='/bin/file'
4281 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4282 lt_cv_file_magic_test_file=/lib/libc.so
4283 ;;
4284 siemens)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287 pc)
4288 lt_cv_deplibs_check_method=pass_all
4289 ;;
4290 esac
4291 ;;
4292
4293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4294 lt_cv_deplibs_check_method=pass_all
4295 ;;
4296 esac
4297
4298 fi
4299 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4300 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4301 file_magic_cmd=$lt_cv_file_magic_cmd
4302 deplibs_check_method=$lt_cv_deplibs_check_method
4303 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4304
4305
4306
4307
4308 # If no C compiler was specified, use CC.
4309 LTCC=${LTCC-"$CC"}
4310
4311 # If no C compiler flags were specified, use CFLAGS.
4312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4313
4314 # Allow CC to be a program name with arguments.
4315 compiler=$CC
4316
4317
4318 # Check whether --enable-libtool-lock was given.
4319 if test "${enable_libtool_lock+set}" = set; then
4320 enableval=$enable_libtool_lock;
4321 fi
4322
4323 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4324
4325 # Some flags need to be propagated to the compiler or linker for good
4326 # libtool support.
4327 case $host in
4328 ia64-*-hpux*)
4329 # Find out which ABI we are using.
4330 echo 'int i;' > conftest.$ac_ext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; then
4336 case `/usr/bin/file conftest.$ac_objext` in
4337 *ELF-32*)
4338 HPUX_IA64_MODE="32"
4339 ;;
4340 *ELF-64*)
4341 HPUX_IA64_MODE="64"
4342 ;;
4343 esac
4344 fi
4345 rm -rf conftest*
4346 ;;
4347 *-*-irix6*)
4348 # Find out which ABI we are using.
4349 echo '#line 4349 "configure"' > conftest.$ac_ext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; then
4355 if test "$lt_cv_prog_gnu_ld" = yes; then
4356 case `/usr/bin/file conftest.$ac_objext` in
4357 *32-bit*)
4358 LD="${LD-ld} -melf32bsmip"
4359 ;;
4360 *N32*)
4361 LD="${LD-ld} -melf32bmipn32"
4362 ;;
4363 *64-bit*)
4364 LD="${LD-ld} -melf64bmip"
4365 ;;
4366 esac
4367 else
4368 case `/usr/bin/file conftest.$ac_objext` in
4369 *32-bit*)
4370 LD="${LD-ld} -32"
4371 ;;
4372 *N32*)
4373 LD="${LD-ld} -n32"
4374 ;;
4375 *64-bit*)
4376 LD="${LD-ld} -64"
4377 ;;
4378 esac
4379 fi
4380 fi
4381 rm -rf conftest*
4382 ;;
4383
4384 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4385 # Find out which ABI we are using.
4386 echo 'int i;' > conftest.$ac_ext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
4392 case `/usr/bin/file conftest.o` in
4393 *32-bit*)
4394 case $host in
4395 x86_64-*linux*)
4396 LD="${LD-ld} -m elf_i386"
4397 ;;
4398 ppc64-*linux*|powerpc64-*linux*)
4399 LD="${LD-ld} -m elf32ppclinux"
4400 ;;
4401 s390x-*linux*)
4402 LD="${LD-ld} -m elf_s390"
4403 ;;
4404 sparc64-*linux*)
4405 LD="${LD-ld} -m elf32_sparc"
4406 ;;
4407 esac
4408 ;;
4409 *64-bit*)
4410 case $host in
4411 x86_64-*linux*)
4412 LD="${LD-ld} -m elf_x86_64"
4413 ;;
4414 ppc*-*linux*|powerpc*-*linux*)
4415 LD="${LD-ld} -m elf64ppc"
4416 ;;
4417 s390*-*linux*)
4418 LD="${LD-ld} -m elf64_s390"
4419 ;;
4420 sparc*-*linux*)
4421 LD="${LD-ld} -m elf64_sparc"
4422 ;;
4423 esac
4424 ;;
4425 esac
4426 fi
4427 rm -rf conftest*
4428 ;;
4429
4430 *-*-sco3.2v5*)
4431 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4432 SAVE_CFLAGS="$CFLAGS"
4433 CFLAGS="$CFLAGS -belf"
4434 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4435 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4436 if test "${lt_cv_cc_needs_belf+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451
4452 int
4453 main ()
4454 {
4455
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext conftest$ac_exeext
4461 if { (ac_try="$ac_link"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_link") 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest$ac_exeext &&
4477 $as_test_x conftest$ac_exeext; then
4478 lt_cv_cc_needs_belf=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 lt_cv_cc_needs_belf=no
4484 fi
4485
4486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4487 conftest$ac_exeext conftest.$ac_ext
4488 ac_ext=c
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493
4494 fi
4495 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4496 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4497 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4498 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4499 CFLAGS="$SAVE_CFLAGS"
4500 fi
4501 ;;
4502 sparc*-*solaris*)
4503 # Find out which ABI we are using.
4504 echo 'int i;' > conftest.$ac_ext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; then
4510 case `/usr/bin/file conftest.o` in
4511 *64-bit*)
4512 case $lt_cv_prog_gnu_ld in
4513 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4514 *) LD="${LD-ld} -64" ;;
4515 esac
4516 ;;
4517 esac
4518 fi
4519 rm -rf conftest*
4520 ;;
4521
4522
4523 esac
4524
4525 need_locks="$enable_libtool_lock"
4526
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4534 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4535 # On Suns, sometimes $CPP names a directory.
4536 if test -n "$CPP" && test -d "$CPP"; then
4537 CPP=
4538 fi
4539 if test -z "$CPP"; then
4540 if test "${ac_cv_prog_CPP+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 # Double quotes because CPP needs to be expanded
4544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4545 do
4546 ac_preproc_ok=false
4547 for ac_c_preproc_warn_flag in '' yes
4548 do
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #ifdef __STDC__
4562 # include <limits.h>
4563 #else
4564 # include <assert.h>
4565 #endif
4566 Syntax error
4567 _ACEOF
4568 if { (ac_try="$ac_cpp conftest.$ac_ext"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } >/dev/null && {
4581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 }; then
4584 :
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 # Broken: fails on valid input.
4590 continue
4591 fi
4592
4593 rm -f conftest.err conftest.$ac_ext
4594
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 #include <ac_nonexistent.h>
4604 _ACEOF
4605 if { (ac_try="$ac_cpp conftest.$ac_ext"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } >/dev/null && {
4618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 }; then
4621 # Broken: success on invalid input.
4622 continue
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 # Passes both tests.
4628 ac_preproc_ok=:
4629 break
4630 fi
4631
4632 rm -f conftest.err conftest.$ac_ext
4633
4634 done
4635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4636 rm -f conftest.err conftest.$ac_ext
4637 if $ac_preproc_ok; then
4638 break
4639 fi
4640
4641 done
4642 ac_cv_prog_CPP=$CPP
4643
4644 fi
4645 CPP=$ac_cv_prog_CPP
4646 else
4647 ac_cv_prog_CPP=$CPP
4648 fi
4649 { echo "$as_me:$LINENO: result: $CPP" >&5
4650 echo "${ECHO_T}$CPP" >&6; }
4651 ac_preproc_ok=false
4652 for ac_c_preproc_warn_flag in '' yes
4653 do
4654 # Use a header file that comes with gcc, so configuring glibc
4655 # with a fresh cross-compiler works.
4656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4657 # <limits.h> exists even on freestanding compilers.
4658 # On the NeXT, cc -E runs the code through the compiler's parser,
4659 # not just through cpp. "Syntax error" is here to catch this case.
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671 Syntax error
4672 _ACEOF
4673 if { (ac_try="$ac_cpp conftest.$ac_ext"
4674 case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } >/dev/null && {
4686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4687 test ! -s conftest.err
4688 }; then
4689 :
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 # Broken: fails on valid input.
4695 continue
4696 fi
4697
4698 rm -f conftest.err conftest.$ac_ext
4699
4700 # OK, works on sane cases. Now check whether nonexistent headers
4701 # can be detected and how.
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <ac_nonexistent.h>
4709 _ACEOF
4710 if { (ac_try="$ac_cpp conftest.$ac_ext"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null && {
4723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4724 test ! -s conftest.err
4725 }; then
4726 # Broken: success on invalid input.
4727 continue
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 # Passes both tests.
4733 ac_preproc_ok=:
4734 break
4735 fi
4736
4737 rm -f conftest.err conftest.$ac_ext
4738
4739 done
4740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4741 rm -f conftest.err conftest.$ac_ext
4742 if $ac_preproc_ok; then
4743 :
4744 else
4745 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details." >&5
4747 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4748 See \`config.log' for more details." >&2;}
4749 { (exit 1); exit 1; }; }
4750 fi
4751
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757
4758
4759 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4761 if test "${ac_cv_header_stdc+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 #include <stdlib.h>
4771 #include <stdarg.h>
4772 #include <string.h>
4773 #include <float.h>
4774
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_compile") 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } && {
4797 test -z "$ac_c_werror_flag" ||
4798 test ! -s conftest.err
4799 } && test -s conftest.$ac_objext; then
4800 ac_cv_header_stdc=yes
4801 else
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 ac_cv_header_stdc=no
4806 fi
4807
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809
4810 if test $ac_cv_header_stdc = yes; then
4811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <string.h>
4819
4820 _ACEOF
4821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4822 $EGREP "memchr" >/dev/null 2>&1; then
4823 :
4824 else
4825 ac_cv_header_stdc=no
4826 fi
4827 rm -f conftest*
4828
4829 fi
4830
4831 if test $ac_cv_header_stdc = yes; then
4832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #include <stdlib.h>
4840
4841 _ACEOF
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 $EGREP "free" >/dev/null 2>&1; then
4844 :
4845 else
4846 ac_cv_header_stdc=no
4847 fi
4848 rm -f conftest*
4849
4850 fi
4851
4852 if test $ac_cv_header_stdc = yes; then
4853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4854 if test "$cross_compiling" = yes; then
4855 :
4856 else
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h. */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 #include <ctype.h>
4864 #include <stdlib.h>
4865 #if ((' ' & 0x0FF) == 0x020)
4866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4868 #else
4869 # define ISLOWER(c) \
4870 (('a' <= (c) && (c) <= 'i') \
4871 || ('j' <= (c) && (c) <= 'r') \
4872 || ('s' <= (c) && (c) <= 'z'))
4873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4874 #endif
4875
4876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4877 int
4878 main ()
4879 {
4880 int i;
4881 for (i = 0; i < 256; i++)
4882 if (XOR (islower (i), ISLOWER (i))
4883 || toupper (i) != TOUPPER (i))
4884 return 2;
4885 return 0;
4886 }
4887 _ACEOF
4888 rm -f conftest$ac_exeext
4889 if { (ac_try="$ac_link"
4890 case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893 esac
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_link") 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4899 { (case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_try") 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 :
4909 else
4910 echo "$as_me: program exited with status $ac_status" >&5
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ( exit $ac_status )
4915 ac_cv_header_stdc=no
4916 fi
4917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4918 fi
4919
4920
4921 fi
4922 fi
4923 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4924 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4925 if test $ac_cv_header_stdc = yes; then
4926
4927 cat >>confdefs.h <<\_ACEOF
4928 #define STDC_HEADERS 1
4929 _ACEOF
4930
4931 fi
4932
4933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4944 inttypes.h stdint.h unistd.h
4945 do
4946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4959
4960 #include <$ac_header>
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 eval "$as_ac_Header=yes"
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 eval "$as_ac_Header=no"
4985 fi
4986
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 fi
4989 ac_res=`eval echo '${'$as_ac_Header'}'`
4990 { echo "$as_me:$LINENO: result: $ac_res" >&5
4991 echo "${ECHO_T}$ac_res" >&6; }
4992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4993 cat >>confdefs.h <<_ACEOF
4994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995 _ACEOF
4996
4997 fi
4998
4999 done
5000
5001
5002
5003 for ac_header in dlfcn.h
5004 do
5005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 fi
5012 ac_res=`eval echo '${'$as_ac_Header'}'`
5013 { echo "$as_me:$LINENO: result: $ac_res" >&5
5014 echo "${ECHO_T}$ac_res" >&6; }
5015 else
5016 # Is the header compilable?
5017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 #include <$ac_header>
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
5045 ac_header_compiler=yes
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_header_compiler=no
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5055 echo "${ECHO_T}$ac_header_compiler" >&6; }
5056
5057 # Is the header present?
5058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #include <$ac_header>
5067 _ACEOF
5068 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null && {
5081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5082 test ! -s conftest.err
5083 }; then
5084 ac_header_preproc=yes
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 ac_header_preproc=no
5090 fi
5091
5092 rm -f conftest.err conftest.$ac_ext
5093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5094 echo "${ECHO_T}$ac_header_preproc" >&6; }
5095
5096 # So? What about this header?
5097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5098 yes:no: )
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5103 ac_header_preproc=yes
5104 ;;
5105 no:yes:* )
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5118 ( cat <<\_ASBOX
5119 ## ---------------------------------------------------------------------- ##
5120 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5121 ## ---------------------------------------------------------------------- ##
5122 _ASBOX
5123 ) | sed "s/^/$as_me: WARNING: /" >&2
5124 ;;
5125 esac
5126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 eval "$as_ac_Header=\$ac_header_preproc"
5132 fi
5133 ac_res=`eval echo '${'$as_ac_Header'}'`
5134 { echo "$as_me:$LINENO: result: $ac_res" >&5
5135 echo "${ECHO_T}$ac_res" >&6; }
5136
5137 fi
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139 cat >>confdefs.h <<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141 _ACEOF
5142
5143 fi
5144
5145 done
5146
5147 ac_ext=cpp
5148 ac_cpp='$CXXCPP $CPPFLAGS'
5149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5152 if test -z "$CXX"; then
5153 if test -n "$CCC"; then
5154 CXX=$CCC
5155 else
5156 if test -n "$ac_tool_prefix"; then
5157 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5158 do
5159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_prog_CXX+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 if test -n "$CXX"; then
5167 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 CXX=$ac_cv_prog_CXX
5187 if test -n "$CXX"; then
5188 { echo "$as_me:$LINENO: result: $CXX" >&5
5189 echo "${ECHO_T}$CXX" >&6; }
5190 else
5191 { echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6; }
5193 fi
5194
5195
5196 test -n "$CXX" && break
5197 done
5198 fi
5199 if test -z "$CXX"; then
5200 ac_ct_CXX=$CXX
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5202 do
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$ac_ct_CXX"; then
5211 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_ac_ct_CXX="$ac_prog"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5231 if test -n "$ac_ct_CXX"; then
5232 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5233 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5237 fi
5238
5239
5240 test -n "$ac_ct_CXX" && break
5241 done
5242
5243 if test "x$ac_ct_CXX" = x; then
5244 CXX="g++"
5245 else
5246 case $cross_compiling:$ac_tool_warned in
5247 yes:)
5248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5249 whose name does not start with the host triplet. If you think this
5250 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5252 whose name does not start with the host triplet. If you think this
5253 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 CXX=$ac_ct_CXX
5257 fi
5258 fi
5259
5260 fi
5261 fi
5262 # Provide some information about the compiler.
5263 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5264 ac_compiler=`set X $ac_compile; echo $2`
5265 { (ac_try="$ac_compiler --version >&5"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_compiler --version >&5") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275 { (ac_try="$ac_compiler -v >&5"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compiler -v >&5") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285 { (ac_try="$ac_compiler -V >&5"
5286 case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler -V >&5") 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295
5296 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5297 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5298 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307
5308 int
5309 main ()
5310 {
5311 #ifndef __GNUC__
5312 choke me
5313 #endif
5314
5315 ;
5316 return 0;
5317 }
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_cxx_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
5336 ac_compiler_gnu=yes
5337 else
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_compiler_gnu=no
5342 fi
5343
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5346
5347 fi
5348 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5349 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5350 GXX=`test $ac_compiler_gnu = yes && echo yes`
5351 ac_test_CXXFLAGS=${CXXFLAGS+set}
5352 ac_save_CXXFLAGS=$CXXFLAGS
5353 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5354 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5355 if test "${ac_cv_prog_cxx_g+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5359 ac_cxx_werror_flag=yes
5360 ac_cv_prog_cxx_g=no
5361 CXXFLAGS="-g"
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368
5369 int
5370 main ()
5371 {
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compile") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_cxx_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
5394 ac_cv_prog_cxx_g=yes
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 CXXFLAGS=""
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h. */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && {
5429 test -z "$ac_cxx_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest.$ac_objext; then
5432 :
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5438 CXXFLAGS="-g"
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h. */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445
5446 int
5447 main ()
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_cxx_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 ac_cv_prog_cxx_g=yes
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5487 fi
5488 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5489 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5490 if test "$ac_test_CXXFLAGS" = set; then
5491 CXXFLAGS=$ac_save_CXXFLAGS
5492 elif test $ac_cv_prog_cxx_g = yes; then
5493 if test "$GXX" = yes; then
5494 CXXFLAGS="-g -O2"
5495 else
5496 CXXFLAGS="-g"
5497 fi
5498 else
5499 if test "$GXX" = yes; then
5500 CXXFLAGS="-O2"
5501 else
5502 CXXFLAGS=
5503 fi
5504 fi
5505 ac_ext=cpp
5506 ac_cpp='$CXXCPP $CPPFLAGS'
5507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5510
5511 depcc="$CXX" am_compiler_list=
5512
5513 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5514 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5515 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5519 # We make a subdir and do the tests there. Otherwise we can end up
5520 # making bogus files that we don't know about and never remove. For
5521 # instance it was reported that on HP-UX the gcc test will end up
5522 # making a dummy file named `D' -- because `-MD' means `put the output
5523 # in D'.
5524 mkdir conftest.dir
5525 # Copy depcomp to subdir because otherwise we won't find it if we're
5526 # using a relative directory.
5527 cp "$am_depcomp" conftest.dir
5528 cd conftest.dir
5529 # We will build objects and dependencies in a subdirectory because
5530 # it helps to detect inapplicable dependency modes. For instance
5531 # both Tru64's cc and ICC support -MD to output dependencies as a
5532 # side effect of compilation, but ICC will put the dependencies in
5533 # the current directory while Tru64 will put them in the object
5534 # directory.
5535 mkdir sub
5536
5537 am_cv_CXX_dependencies_compiler_type=none
5538 if test "$am_compiler_list" = ""; then
5539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5540 fi
5541 for depmode in $am_compiler_list; do
5542 # Setup a source with many dependencies, because some compilers
5543 # like to wrap large dependency lists on column 80 (with \), and
5544 # we should not choose a depcomp mode which is confused by this.
5545 #
5546 # We need to recreate these files for each test, as the compiler may
5547 # overwrite some of them when testing with obscure command lines.
5548 # This happens at least with the AIX C compiler.
5549 : > sub/conftest.c
5550 for i in 1 2 3 4 5 6; do
5551 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5552 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5553 # Solaris 8's {/usr,}/bin/sh.
5554 touch sub/conftst$i.h
5555 done
5556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5557
5558 case $depmode in
5559 nosideeffect)
5560 # after this tag, mechanisms are not by side-effect, so they'll
5561 # only be used when explicitly requested
5562 if test "x$enable_dependency_tracking" = xyes; then
5563 continue
5564 else
5565 break
5566 fi
5567 ;;
5568 none) break ;;
5569 esac
5570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5571 # mode. It turns out that the SunPro C++ compiler does not properly
5572 # handle `-M -o', and we need to detect this.
5573 if depmode=$depmode \
5574 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5576 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5577 >/dev/null 2>conftest.err &&
5578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5579 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5581 # icc doesn't choke on unknown options, it will just issue warnings
5582 # or remarks (even with -Werror). So we grep stderr for any message
5583 # that says an option was ignored or not supported.
5584 # When given -MP, icc 7.0 and 7.1 complain thusly:
5585 # icc: Command line warning: ignoring option '-M'; no argument required
5586 # The diagnosis changed in icc 8.0:
5587 # icc: Command line remark: option '-MP' not supported
5588 if (grep 'ignoring option' conftest.err ||
5589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5590 am_cv_CXX_dependencies_compiler_type=$depmode
5591 break
5592 fi
5593 fi
5594 done
5595
5596 cd ..
5597 rm -rf conftest.dir
5598 else
5599 am_cv_CXX_dependencies_compiler_type=none
5600 fi
5601
5602 fi
5603 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5604 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5605 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5606
5607
5608
5609 if
5610 test "x$enable_dependency_tracking" != xno \
5611 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5612 am__fastdepCXX_TRUE=
5613 am__fastdepCXX_FALSE='#'
5614 else
5615 am__fastdepCXX_TRUE='#'
5616 am__fastdepCXX_FALSE=
5617 fi
5618
5619
5620
5621
5622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5624 (test "X$CXX" != "Xg++"))) ; then
5625 ac_ext=cpp
5626 ac_cpp='$CXXCPP $CPPFLAGS'
5627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5630 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5631 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5632 if test -z "$CXXCPP"; then
5633 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 # Double quotes because CXXCPP needs to be expanded
5637 for CXXCPP in "$CXX -E" "/lib/cpp"
5638 do
5639 ac_preproc_ok=false
5640 for ac_cxx_preproc_warn_flag in '' yes
5641 do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659 Syntax error
5660 _ACEOF
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5675 test ! -s conftest.err
5676 }; then
5677 :
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 # Broken: fails on valid input.
5683 continue
5684 fi
5685
5686 rm -f conftest.err conftest.$ac_ext
5687
5688 # OK, works on sane cases. Now check whether nonexistent headers
5689 # can be detected and how.
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5697 _ACEOF
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5712 test ! -s conftest.err
5713 }; then
5714 # Broken: success on invalid input.
5715 continue
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 # Passes both tests.
5721 ac_preproc_ok=:
5722 break
5723 fi
5724
5725 rm -f conftest.err conftest.$ac_ext
5726
5727 done
5728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729 rm -f conftest.err conftest.$ac_ext
5730 if $ac_preproc_ok; then
5731 break
5732 fi
5733
5734 done
5735 ac_cv_prog_CXXCPP=$CXXCPP
5736
5737 fi
5738 CXXCPP=$ac_cv_prog_CXXCPP
5739 else
5740 ac_cv_prog_CXXCPP=$CXXCPP
5741 fi
5742 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5743 echo "${ECHO_T}$CXXCPP" >&6; }
5744 ac_preproc_ok=false
5745 for ac_cxx_preproc_warn_flag in '' yes
5746 do
5747 # Use a header file that comes with gcc, so configuring glibc
5748 # with a fresh cross-compiler works.
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 # <limits.h> exists even on freestanding compilers.
5751 # On the NeXT, cc -E runs the code through the compiler's parser,
5752 # not just through cpp. "Syntax error" is here to catch this case.
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #ifdef __STDC__
5760 # include <limits.h>
5761 #else
5762 # include <assert.h>
5763 #endif
5764 Syntax error
5765 _ACEOF
5766 if { (ac_try="$ac_cpp conftest.$ac_ext"
5767 case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } >/dev/null && {
5779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5780 test ! -s conftest.err
5781 }; then
5782 :
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 # Broken: fails on valid input.
5788 continue
5789 fi
5790
5791 rm -f conftest.err conftest.$ac_ext
5792
5793 # OK, works on sane cases. Now check whether nonexistent headers
5794 # can be detected and how.
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <ac_nonexistent.h>
5802 _ACEOF
5803 if { (ac_try="$ac_cpp conftest.$ac_ext"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev/null && {
5816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5817 test ! -s conftest.err
5818 }; then
5819 # Broken: success on invalid input.
5820 continue
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 # Passes both tests.
5826 ac_preproc_ok=:
5827 break
5828 fi
5829
5830 rm -f conftest.err conftest.$ac_ext
5831
5832 done
5833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834 rm -f conftest.err conftest.$ac_ext
5835 if $ac_preproc_ok; then
5836 :
5837 else
5838 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5839 See \`config.log' for more details." >&5
5840 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5841 See \`config.log' for more details." >&2;}
5842 { (exit 1); exit 1; }; }
5843 fi
5844
5845 ac_ext=cpp
5846 ac_cpp='$CXXCPP $CPPFLAGS'
5847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5850
5851 fi
5852
5853
5854 ac_ext=f
5855 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5856 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5858 if test -n "$ac_tool_prefix"; then
5859 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
5860 do
5861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_prog_F77+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 if test -n "$F77"; then
5869 ac_cv_prog_F77="$F77" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 F77=$ac_cv_prog_F77
5889 if test -n "$F77"; then
5890 { echo "$as_me:$LINENO: result: $F77" >&5
5891 echo "${ECHO_T}$F77" >&6; }
5892 else
5893 { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5895 fi
5896
5897
5898 test -n "$F77" && break
5899 done
5900 fi
5901 if test -z "$F77"; then
5902 ac_ct_F77=$F77
5903 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
5904 do
5905 # Extract the first word of "$ac_prog", so it can be a program name with args.
5906 set dummy $ac_prog; ac_word=$2
5907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 if test -n "$ac_ct_F77"; then
5913 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_ac_ct_F77="$ac_prog"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926 done
5927 done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5933 if test -n "$ac_ct_F77"; then
5934 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5935 echo "${ECHO_T}$ac_ct_F77" >&6; }
5936 else
5937 { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5939 fi
5940
5941
5942 test -n "$ac_ct_F77" && break
5943 done
5944
5945 if test "x$ac_ct_F77" = x; then
5946 F77=""
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949 yes:)
5950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5951 whose name does not start with the host triplet. If you think this
5952 configuration is useful to you, please write to autoconf@gnu.org." >&5
5953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5954 whose name does not start with the host triplet. If you think this
5955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958 F77=$ac_ct_F77
5959 fi
5960 fi
5961
5962
5963 # Provide some information about the compiler.
5964 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5965 ac_compiler=`set X $ac_compile; echo $2`
5966 { (ac_try="$ac_compiler --version >&5"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_compiler --version >&5") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }
5976 { (ac_try="$ac_compiler -v >&5"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compiler -v >&5") 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }
5986 { (ac_try="$ac_compiler -V >&5"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compiler -V >&5") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }
5996 rm -f a.out
5997
5998 # If we don't use `.F' as extension, the preprocessor is not run on the
5999 # input file. (Note that this only needs to work for GNU compilers.)
6000 ac_save_ext=$ac_ext
6001 ac_ext=F
6002 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6003 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6004 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 cat >conftest.$ac_ext <<_ACEOF
6008 program main
6009 #ifndef __GNUC__
6010 choke me
6011 #endif
6012
6013 end
6014 _ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6017 case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_f77_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.$ac_objext; then
6032 ac_compiler_gnu=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_compiler_gnu=no
6038 fi
6039
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6042
6043 fi
6044 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6045 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6046 ac_ext=$ac_save_ext
6047 ac_test_FFLAGS=${FFLAGS+set}
6048 ac_save_FFLAGS=$FFLAGS
6049 FFLAGS=
6050 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6051 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6052 if test "${ac_cv_prog_f77_g+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 FFLAGS=-g
6056 cat >conftest.$ac_ext <<_ACEOF
6057 program main
6058
6059 end
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compile") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && {
6075 test -z "$ac_f77_werror_flag" ||
6076 test ! -s conftest.err
6077 } && test -s conftest.$ac_objext; then
6078 ac_cv_prog_f77_g=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_cv_prog_f77_g=no
6084 fi
6085
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087
6088 fi
6089 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6090 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6091 if test "$ac_test_FFLAGS" = set; then
6092 FFLAGS=$ac_save_FFLAGS
6093 elif test $ac_cv_prog_f77_g = yes; then
6094 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6095 FFLAGS="-g -O2"
6096 else
6097 FFLAGS="-g"
6098 fi
6099 else
6100 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6101 FFLAGS="-O2"
6102 else
6103 FFLAGS=
6104 fi
6105 fi
6106
6107 G77=`test $ac_compiler_gnu = yes && echo yes`
6108 ac_ext=c
6109 ac_cpp='$CPP $CPPFLAGS'
6110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113
6114
6115
6116 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6117
6118 # find the maximum length of command line arguments
6119 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6120 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6121 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 i=0
6125 teststring="ABCD"
6126
6127 case $build_os in
6128 msdosdjgpp*)
6129 # On DJGPP, this test can blow up pretty badly due to problems in libc
6130 # (any single argument exceeding 2000 bytes causes a buffer overrun
6131 # during glob expansion). Even if it were fixed, the result of this
6132 # check would be larger than it should be.
6133 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6134 ;;
6135
6136 gnu*)
6137 # Under GNU Hurd, this test is not required because there is
6138 # no limit to the length of command line arguments.
6139 # Libtool will interpret -1 as no limit whatsoever
6140 lt_cv_sys_max_cmd_len=-1;
6141 ;;
6142
6143 cygwin* | mingw*)
6144 # On Win9x/ME, this test blows up -- it succeeds, but takes
6145 # about 5 minutes as the teststring grows exponentially.
6146 # Worse, since 9x/ME are not pre-emptively multitasking,
6147 # you end up with a "frozen" computer, even though with patience
6148 # the test eventually succeeds (with a max line length of 256k).
6149 # Instead, let's just punt: use the minimum linelength reported by
6150 # all of the supported platforms: 8192 (on NT/2K/XP).
6151 lt_cv_sys_max_cmd_len=8192;
6152 ;;
6153
6154 amigaos*)
6155 # On AmigaOS with pdksh, this test takes hours, literally.
6156 # So we just punt and use a minimum line length of 8192.
6157 lt_cv_sys_max_cmd_len=8192;
6158 ;;
6159
6160 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6161 # This has been around since 386BSD, at least. Likely further.
6162 if test -x /sbin/sysctl; then
6163 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6164 elif test -x /usr/sbin/sysctl; then
6165 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6166 else
6167 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6168 fi
6169 # And add a safety zone
6170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6172 ;;
6173
6174 interix*)
6175 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6176 lt_cv_sys_max_cmd_len=196608
6177 ;;
6178
6179 osf*)
6180 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6181 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6182 # nice to cause kernel panics so lets avoid the loop below.
6183 # First set a reasonable default.
6184 lt_cv_sys_max_cmd_len=16384
6185 #
6186 if test -x /sbin/sysconfig; then
6187 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6188 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6189 esac
6190 fi
6191 ;;
6192 sco3.2v5*)
6193 lt_cv_sys_max_cmd_len=102400
6194 ;;
6195 sysv5* | sco5v6* | sysv4.2uw2*)
6196 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6197 if test -n "$kargmax"; then
6198 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6199 else
6200 lt_cv_sys_max_cmd_len=32768
6201 fi
6202 ;;
6203 *)
6204 # If test is not a shell built-in, we'll probably end up computing a
6205 # maximum length that is only half of the actual maximum length, but
6206 # we can't tell.
6207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6208 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6209 = "XX$teststring") >/dev/null 2>&1 &&
6210 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6211 lt_cv_sys_max_cmd_len=$new_result &&
6212 test $i != 17 # 1/2 MB should be enough
6213 do
6214 i=`expr $i + 1`
6215 teststring=$teststring$teststring
6216 done
6217 teststring=
6218 # Add a significant safety factor because C++ compilers can tack on massive
6219 # amounts of additional arguments before passing them to the linker.
6220 # It appears as though 1/2 is a usable value.
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6222 ;;
6223 esac
6224
6225 fi
6226
6227 if test -n $lt_cv_sys_max_cmd_len ; then
6228 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6229 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6230 else
6231 { echo "$as_me:$LINENO: result: none" >&5
6232 echo "${ECHO_T}none" >&6; }
6233 fi
6234
6235
6236
6237
6238 # Check for command to grab the raw symbol name followed by C symbol from nm.
6239 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244
6245 # These are sane defaults that work on at least a few old systems.
6246 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6247
6248 # Character class describing NM global symbol codes.
6249 symcode='[BCDEGRST]'
6250
6251 # Regexp to match symbols that can be accessed directly from C.
6252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6253
6254 # Transform an extracted symbol line into a proper C declaration
6255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6256
6257 # Transform an extracted symbol line into symbol name and symbol address
6258 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'"
6259
6260 # Define system-specific variables.
6261 case $host_os in
6262 aix*)
6263 symcode='[BCDT]'
6264 ;;
6265 cygwin* | mingw* | pw32*)
6266 symcode='[ABCDGISTW]'
6267 ;;
6268 hpux*) # Its linker distinguishes data from code symbols
6269 if test "$host_cpu" = ia64; then
6270 symcode='[ABCDEGRST]'
6271 fi
6272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6273 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'"
6274 ;;
6275 linux* | k*bsd*-gnu)
6276 if test "$host_cpu" = ia64; then
6277 symcode='[ABCDGIRSTW]'
6278 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6279 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'"
6280 fi
6281 ;;
6282 irix* | nonstopux*)
6283 symcode='[BCDEGRST]'
6284 ;;
6285 osf*)
6286 symcode='[BCDEGQRST]'
6287 ;;
6288 solaris*)
6289 symcode='[BDRT]'
6290 ;;
6291 sco3.2v5*)
6292 symcode='[DT]'
6293 ;;
6294 sysv4.2uw2*)
6295 symcode='[DT]'
6296 ;;
6297 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6298 symcode='[ABDT]'
6299 ;;
6300 sysv4)
6301 symcode='[DFNSTU]'
6302 ;;
6303 esac
6304
6305 # Handle CRLF in mingw tool chain
6306 opt_cr=
6307 case $build_os in
6308 mingw*)
6309 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6310 ;;
6311 esac
6312
6313 # If we're using GNU nm, then use its standard symbol codes.
6314 case `$NM -V 2>&1` in
6315 *GNU* | *'with BFD'*)
6316 symcode='[ABCDGIRSTW]' ;;
6317 esac
6318
6319 # Try without a prefix undercore, then with it.
6320 for ac_symprfx in "" "_"; do
6321
6322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6323 symxfrm="\\1 $ac_symprfx\\2 \\2"
6324
6325 # Write the raw and C identifiers.
6326 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6327
6328 # Check to see that the pipe works correctly.
6329 pipe_works=no
6330
6331 rm -f conftest*
6332 cat > conftest.$ac_ext <<EOF
6333 #ifdef __cplusplus
6334 extern "C" {
6335 #endif
6336 char nm_test_var;
6337 void nm_test_func(){}
6338 #ifdef __cplusplus
6339 }
6340 #endif
6341 int main(){nm_test_var='a';nm_test_func();return(0);}
6342 EOF
6343
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; then
6349 # Now try to grab the symbols.
6350 nlist=conftest.nm
6351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && test -s "$nlist"; then
6356 # Try sorting and uniquifying the output.
6357 if sort "$nlist" | uniq > "$nlist"T; then
6358 mv -f "$nlist"T "$nlist"
6359 else
6360 rm -f "$nlist"T
6361 fi
6362
6363 # Make sure that we snagged all the symbols we need.
6364 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6365 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6366 cat <<EOF > conftest.$ac_ext
6367 #ifdef __cplusplus
6368 extern "C" {
6369 #endif
6370
6371 EOF
6372 # Now generate the symbol file.
6373 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6374
6375 cat <<EOF >> conftest.$ac_ext
6376 #if defined (__STDC__) && __STDC__
6377 # define lt_ptr_t void *
6378 #else
6379 # define lt_ptr_t char *
6380 # define const
6381 #endif
6382
6383 /* The mapping between symbol names and symbols. */
6384 const struct {
6385 const char *name;
6386 lt_ptr_t address;
6387 }
6388 lt_preloaded_symbols[] =
6389 {
6390 EOF
6391 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6392 cat <<\EOF >> conftest.$ac_ext
6393 {0, (lt_ptr_t) 0}
6394 };
6395
6396 #ifdef __cplusplus
6397 }
6398 #endif
6399 EOF
6400 # Now try linking the two files.
6401 mv conftest.$ac_objext conftstm.$ac_objext
6402 lt_save_LIBS="$LIBS"
6403 lt_save_CFLAGS="$CFLAGS"
6404 LIBS="conftstm.$ac_objext"
6405 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6411 pipe_works=yes
6412 fi
6413 LIBS="$lt_save_LIBS"
6414 CFLAGS="$lt_save_CFLAGS"
6415 else
6416 echo "cannot find nm_test_func in $nlist" >&5
6417 fi
6418 else
6419 echo "cannot find nm_test_var in $nlist" >&5
6420 fi
6421 else
6422 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6423 fi
6424 else
6425 echo "$progname: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 fi
6428 rm -f conftest* conftst*
6429
6430 # Do not use the global_symbol_pipe unless it works.
6431 if test "$pipe_works" = yes; then
6432 break
6433 else
6434 lt_cv_sys_global_symbol_pipe=
6435 fi
6436 done
6437
6438 fi
6439
6440 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6441 lt_cv_sys_global_symbol_to_cdecl=
6442 fi
6443 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6444 { echo "$as_me:$LINENO: result: failed" >&5
6445 echo "${ECHO_T}failed" >&6; }
6446 else
6447 { echo "$as_me:$LINENO: result: ok" >&5
6448 echo "${ECHO_T}ok" >&6; }
6449 fi
6450
6451 { echo "$as_me:$LINENO: checking for objdir" >&5
6452 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6453 if test "${lt_cv_objdir+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456 rm -f .libs 2>/dev/null
6457 mkdir .libs 2>/dev/null
6458 if test -d .libs; then
6459 lt_cv_objdir=.libs
6460 else
6461 # MS-DOS does not allow filenames that begin with a dot.
6462 lt_cv_objdir=_libs
6463 fi
6464 rmdir .libs 2>/dev/null
6465 fi
6466 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6467 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6468 objdir=$lt_cv_objdir
6469
6470
6471
6472
6473
6474 case $host_os in
6475 aix3*)
6476 # AIX sometimes has problems with the GCC collect2 program. For some
6477 # reason, if we set the COLLECT_NAMES environment variable, the problems
6478 # vanish in a puff of smoke.
6479 if test "X${COLLECT_NAMES+set}" != Xset; then
6480 COLLECT_NAMES=
6481 export COLLECT_NAMES
6482 fi
6483 ;;
6484 esac
6485
6486 # Sed substitution that helps us do robust quoting. It backslashifies
6487 # metacharacters that are still active within double-quoted strings.
6488 Xsed='sed -e 1s/^X//'
6489 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6490
6491 # Same as above, but do not quote variable references.
6492 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6493
6494 # Sed substitution to delay expansion of an escaped shell variable in a
6495 # double_quote_subst'ed string.
6496 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6497
6498 # Sed substitution to avoid accidental globbing in evaled expressions
6499 no_glob_subst='s/\*/\\\*/g'
6500
6501 # Constants:
6502 rm="rm -f"
6503
6504 # Global variables:
6505 default_ofile=libtool
6506 can_build_shared=yes
6507
6508 # All known linkers require a `.a' archive for static linking (except MSVC,
6509 # which needs '.lib').
6510 libext=a
6511 ltmain="$ac_aux_dir/ltmain.sh"
6512 ofile="$default_ofile"
6513 with_gnu_ld="$lt_cv_prog_gnu_ld"
6514
6515 if test -n "$ac_tool_prefix"; then
6516 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6517 set dummy ${ac_tool_prefix}ar; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_AR+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 if test -n "$AR"; then
6524 ac_cv_prog_AR="$AR" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_AR="${ac_tool_prefix}ar"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 AR=$ac_cv_prog_AR
6544 if test -n "$AR"; then
6545 { echo "$as_me:$LINENO: result: $AR" >&5
6546 echo "${ECHO_T}$AR" >&6; }
6547 else
6548 { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6550 fi
6551
6552
6553 fi
6554 if test -z "$ac_cv_prog_AR"; then
6555 ac_ct_AR=$AR
6556 # Extract the first word of "ar", so it can be a program name with args.
6557 set dummy ar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 if test -n "$ac_ct_AR"; then
6564 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_ac_ct_AR="ar"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6584 if test -n "$ac_ct_AR"; then
6585 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6586 echo "${ECHO_T}$ac_ct_AR" >&6; }
6587 else
6588 { echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6; }
6590 fi
6591
6592 if test "x$ac_ct_AR" = x; then
6593 AR="false"
6594 else
6595 case $cross_compiling:$ac_tool_warned in
6596 yes:)
6597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6598 whose name does not start with the host triplet. If you think this
6599 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6601 whose name does not start with the host triplet. If you think this
6602 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6603 ac_tool_warned=yes ;;
6604 esac
6605 AR=$ac_ct_AR
6606 fi
6607 else
6608 AR="$ac_cv_prog_AR"
6609 fi
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_prog_RANLIB+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 RANLIB=$ac_cv_prog_RANLIB
6640 if test -n "$RANLIB"; then
6641 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6642 echo "${ECHO_T}$RANLIB" >&6; }
6643 else
6644 { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653 set dummy ranlib; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_ac_ct_RANLIB="ranlib"
6670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680 if test -n "$ac_ct_RANLIB"; then
6681 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6682 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6683 else
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6694 whose name does not start with the host triplet. If you think this
6695 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6697 whose name does not start with the host triplet. If you think this
6698 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 RANLIB=$ac_ct_RANLIB
6702 fi
6703 else
6704 RANLIB="$ac_cv_prog_RANLIB"
6705 fi
6706
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_STRIP+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 if test -n "$STRIP"; then
6716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 STRIP=$ac_cv_prog_STRIP
6736 if test -n "$STRIP"; then
6737 { echo "$as_me:$LINENO: result: $STRIP" >&5
6738 echo "${ECHO_T}$STRIP" >&6; }
6739 else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_STRIP"; then
6747 ac_ct_STRIP=$STRIP
6748 # Extract the first word of "strip", so it can be a program name with args.
6749 set dummy strip; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 if test -n "$ac_ct_STRIP"; then
6756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_ac_ct_STRIP="strip"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6776 if test -n "$ac_ct_STRIP"; then
6777 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6778 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6779 else
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_STRIP" = x; then
6785 STRIP=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6790 whose name does not start with the host triplet. If you think this
6791 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6793 whose name does not start with the host triplet. If you think this
6794 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797 STRIP=$ac_ct_STRIP
6798 fi
6799 else
6800 STRIP="$ac_cv_prog_STRIP"
6801 fi
6802
6803
6804 old_CC="$CC"
6805 old_CFLAGS="$CFLAGS"
6806
6807 # Set sane defaults for various variables
6808 test -z "$AR" && AR=ar
6809 test -z "$AR_FLAGS" && AR_FLAGS=cru
6810 test -z "$AS" && AS=as
6811 test -z "$CC" && CC=cc
6812 test -z "$LTCC" && LTCC=$CC
6813 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6814 test -z "$DLLTOOL" && DLLTOOL=dlltool
6815 test -z "$LD" && LD=ld
6816 test -z "$LN_S" && LN_S="ln -s"
6817 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6818 test -z "$NM" && NM=nm
6819 test -z "$SED" && SED=sed
6820 test -z "$OBJDUMP" && OBJDUMP=objdump
6821 test -z "$RANLIB" && RANLIB=:
6822 test -z "$STRIP" && STRIP=:
6823 test -z "$ac_objext" && ac_objext=o
6824
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6829
6830 if test -n "$RANLIB"; then
6831 case $host_os in
6832 openbsd*)
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6834 ;;
6835 *)
6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6837 ;;
6838 esac
6839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6840 fi
6841
6842 for cc_temp in $compiler""; do
6843 case $cc_temp in
6844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6846 \-*) ;;
6847 *) break;;
6848 esac
6849 done
6850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6851
6852
6853 # Only perform the check for file, if the check method requires it
6854 case $deplibs_check_method in
6855 file_magic*)
6856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6857 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6858 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 case $MAGIC_CMD in
6863 [\\/*] | ?:[\\/]*)
6864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 lt_save_MAGIC_CMD="$MAGIC_CMD"
6868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6870 for ac_dir in $ac_dummy; do
6871 IFS="$lt_save_ifs"
6872 test -z "$ac_dir" && ac_dir=.
6873 if test -f $ac_dir/${ac_tool_prefix}file; then
6874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6875 if test -n "$file_magic_test_file"; then
6876 case $deplibs_check_method in
6877 "file_magic "*)
6878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6881 $EGREP "$file_magic_regex" > /dev/null; then
6882 :
6883 else
6884 cat <<EOF 1>&2
6885
6886 *** Warning: the command libtool uses to detect shared libraries,
6887 *** $file_magic_cmd, produces output that libtool cannot recognize.
6888 *** The result is that libtool may fail to recognize shared libraries
6889 *** as such. This will affect the creation of libtool libraries that
6890 *** depend on shared libraries, but programs linked with such libtool
6891 *** libraries will work regardless of this problem. Nevertheless, you
6892 *** may want to report the problem to your system manager and/or to
6893 *** bug-libtool@gnu.org
6894
6895 EOF
6896 fi ;;
6897 esac
6898 fi
6899 break
6900 fi
6901 done
6902 IFS="$lt_save_ifs"
6903 MAGIC_CMD="$lt_save_MAGIC_CMD"
6904 ;;
6905 esac
6906 fi
6907
6908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6909 if test -n "$MAGIC_CMD"; then
6910 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6911 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6912 else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6915 fi
6916
6917 if test -z "$lt_cv_path_MAGIC_CMD"; then
6918 if test -n "$ac_tool_prefix"; then
6919 { echo "$as_me:$LINENO: checking for file" >&5
6920 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6921 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 case $MAGIC_CMD in
6925 [\\/*] | ?:[\\/]*)
6926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6927 ;;
6928 *)
6929 lt_save_MAGIC_CMD="$MAGIC_CMD"
6930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6932 for ac_dir in $ac_dummy; do
6933 IFS="$lt_save_ifs"
6934 test -z "$ac_dir" && ac_dir=.
6935 if test -f $ac_dir/file; then
6936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6937 if test -n "$file_magic_test_file"; then
6938 case $deplibs_check_method in
6939 "file_magic "*)
6940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6943 $EGREP "$file_magic_regex" > /dev/null; then
6944 :
6945 else
6946 cat <<EOF 1>&2
6947
6948 *** Warning: the command libtool uses to detect shared libraries,
6949 *** $file_magic_cmd, produces output that libtool cannot recognize.
6950 *** The result is that libtool may fail to recognize shared libraries
6951 *** as such. This will affect the creation of libtool libraries that
6952 *** depend on shared libraries, but programs linked with such libtool
6953 *** libraries will work regardless of this problem. Nevertheless, you
6954 *** may want to report the problem to your system manager and/or to
6955 *** bug-libtool@gnu.org
6956
6957 EOF
6958 fi ;;
6959 esac
6960 fi
6961 break
6962 fi
6963 done
6964 IFS="$lt_save_ifs"
6965 MAGIC_CMD="$lt_save_MAGIC_CMD"
6966 ;;
6967 esac
6968 fi
6969
6970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6971 if test -n "$MAGIC_CMD"; then
6972 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6973 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6974 else
6975 { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6977 fi
6978
6979 else
6980 MAGIC_CMD=:
6981 fi
6982 fi
6983
6984 fi
6985 ;;
6986 esac
6987
6988 enable_dlopen=no
6989 enable_win32_dll=no
6990
6991 # Check whether --enable-libtool-lock was given.
6992 if test "${enable_libtool_lock+set}" = set; then
6993 enableval=$enable_libtool_lock;
6994 fi
6995
6996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6997
6998
6999 # Check whether --with-pic was given.
7000 if test "${with_pic+set}" = set; then
7001 withval=$with_pic; pic_mode="$withval"
7002 else
7003 pic_mode=default
7004 fi
7005
7006 test -z "$pic_mode" && pic_mode=default
7007
7008 # Use C for the default configuration in the libtool script
7009 tagname=
7010 lt_save_CC="$CC"
7011 ac_ext=c
7012 ac_cpp='$CPP $CPPFLAGS'
7013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016
7017
7018 # Source file extension for C test sources.
7019 ac_ext=c
7020
7021 # Object file extension for compiled C test sources.
7022 objext=o
7023 objext=$objext
7024
7025 # Code to be used in simple compile tests
7026 lt_simple_compile_test_code="int some_variable = 0;\n"
7027
7028 # Code to be used in simple link tests
7029 lt_simple_link_test_code='int main(){return(0);}\n'
7030
7031
7032 # If no C compiler was specified, use CC.
7033 LTCC=${LTCC-"$CC"}
7034
7035 # If no C compiler flags were specified, use CFLAGS.
7036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7037
7038 # Allow CC to be a program name with arguments.
7039 compiler=$CC
7040
7041
7042 # save warnings/boilerplate of simple test code
7043 ac_outfile=conftest.$ac_objext
7044 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7046 _lt_compiler_boilerplate=`cat conftest.err`
7047 $rm conftest*
7048
7049 ac_outfile=conftest.$ac_objext
7050 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7052 _lt_linker_boilerplate=`cat conftest.err`
7053 $rm conftest*
7054
7055
7056
7057 lt_prog_compiler_no_builtin_flag=
7058
7059 if test "$GCC" = yes; then
7060 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7061
7062
7063 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7064 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7065 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 lt_cv_prog_compiler_rtti_exceptions=no
7069 ac_outfile=conftest.$ac_objext
7070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7071 lt_compiler_flag="-fno-rtti -fno-exceptions"
7072 # Insert the option either (1) after the last *FLAGS variable, or
7073 # (2) before a word containing "conftest.", or (3) at the end.
7074 # Note that $ac_compile itself does not contain backslashes and begins
7075 # with a dollar sign (not a hyphen), so the echo should work correctly.
7076 # The option is referenced via a variable to avoid confusing sed.
7077 lt_compile=`echo "$ac_compile" | $SED \
7078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7080 -e 's:$: $lt_compiler_flag:'`
7081 (eval echo "\"\$as_me:7081: $lt_compile\"" >&5)
7082 (eval "$lt_compile" 2>conftest.err)
7083 ac_status=$?
7084 cat conftest.err >&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 if (exit $ac_status) && test -s "$ac_outfile"; then
7087 # The compiler can only warn and ignore the option if not recognized
7088 # So say no if there are warnings other than the usual output.
7089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7092 lt_cv_prog_compiler_rtti_exceptions=yes
7093 fi
7094 fi
7095 $rm conftest*
7096
7097 fi
7098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7099 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7100
7101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7102 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7103 else
7104 :
7105 fi
7106
7107 fi
7108
7109 lt_prog_compiler_wl=
7110 lt_prog_compiler_pic=
7111 lt_prog_compiler_static=
7112
7113 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7114 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7115
7116 if test "$GCC" = yes; then
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_static='-static'
7119
7120 case $host_os in
7121 aix*)
7122 # All AIX code is PIC.
7123 if test "$host_cpu" = ia64; then
7124 # AIX 5 now supports IA64 processor
7125 lt_prog_compiler_static='-Bstatic'
7126 fi
7127 ;;
7128
7129 amigaos*)
7130 # FIXME: we need at least 68020 code to build shared libraries, but
7131 # adding the `-m68020' flag to GCC prevents building anything better,
7132 # like `-m68040'.
7133 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7134 ;;
7135
7136 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7137 # PIC is the default for these OSes.
7138 ;;
7139
7140 mingw* | pw32* | os2*)
7141 # This hack is so that the source file can tell whether it is being
7142 # built for inclusion in a dll (and should export symbols for example).
7143 lt_prog_compiler_pic='-DDLL_EXPORT'
7144 ;;
7145
7146 darwin* | rhapsody*)
7147 # PIC is the default on this platform
7148 # Common symbols not allowed in MH_DYLIB files
7149 lt_prog_compiler_pic='-fno-common'
7150 ;;
7151
7152 interix3*)
7153 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7154 # Instead, we relocate shared libraries at runtime.
7155 ;;
7156
7157 msdosdjgpp*)
7158 # Just because we use GCC doesn't mean we suddenly get shared libraries
7159 # on systems that don't support them.
7160 lt_prog_compiler_can_build_shared=no
7161 enable_shared=no
7162 ;;
7163
7164 sysv4*MP*)
7165 if test -d /usr/nec; then
7166 lt_prog_compiler_pic=-Kconform_pic
7167 fi
7168 ;;
7169
7170 hpux*)
7171 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7172 # not for PA HP-UX.
7173 case $host_cpu in
7174 hppa*64*|ia64*)
7175 # +Z the default
7176 ;;
7177 *)
7178 lt_prog_compiler_pic='-fPIC'
7179 ;;
7180 esac
7181 ;;
7182
7183 *)
7184 lt_prog_compiler_pic='-fPIC'
7185 ;;
7186 esac
7187 else
7188 # PORTME Check for flag to pass linker flags through the system compiler.
7189 case $host_os in
7190 aix*)
7191 lt_prog_compiler_wl='-Wl,'
7192 if test "$host_cpu" = ia64; then
7193 # AIX 5 now supports IA64 processor
7194 lt_prog_compiler_static='-Bstatic'
7195 else
7196 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7197 fi
7198 ;;
7199 darwin*)
7200 # PIC is the default on this platform
7201 # Common symbols not allowed in MH_DYLIB files
7202 case $cc_basename in
7203 xlc*)
7204 lt_prog_compiler_pic='-qnocommon'
7205 lt_prog_compiler_wl='-Wl,'
7206 ;;
7207 esac
7208 ;;
7209
7210 mingw* | pw32* | os2*)
7211 # This hack is so that the source file can tell whether it is being
7212 # built for inclusion in a dll (and should export symbols for example).
7213 lt_prog_compiler_pic='-DDLL_EXPORT'
7214 ;;
7215
7216 hpux9* | hpux10* | hpux11*)
7217 lt_prog_compiler_wl='-Wl,'
7218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7219 # not for PA HP-UX.
7220 case $host_cpu in
7221 hppa*64*|ia64*)
7222 # +Z the default
7223 ;;
7224 *)
7225 lt_prog_compiler_pic='+Z'
7226 ;;
7227 esac
7228 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7229 lt_prog_compiler_static='${wl}-a ${wl}archive'
7230 ;;
7231
7232 irix5* | irix6* | nonstopux*)
7233 lt_prog_compiler_wl='-Wl,'
7234 # PIC (with -KPIC) is the default.
7235 lt_prog_compiler_static='-non_shared'
7236 ;;
7237
7238 newsos6)
7239 lt_prog_compiler_pic='-KPIC'
7240 lt_prog_compiler_static='-Bstatic'
7241 ;;
7242
7243 linux* | k*bsd*-gnu)
7244 case $cc_basename in
7245 icc* | ecc*)
7246 lt_prog_compiler_wl='-Wl,'
7247 lt_prog_compiler_pic='-KPIC'
7248 lt_prog_compiler_static='-static'
7249 ;;
7250 pgcc* | pgf77* | pgf90* | pgf95*)
7251 # Portland Group compilers (*not* the Pentium gcc compiler,
7252 # which looks to be a dead project)
7253 lt_prog_compiler_wl='-Wl,'
7254 lt_prog_compiler_pic='-fpic'
7255 lt_prog_compiler_static='-Bstatic'
7256 ;;
7257 ccc*)
7258 lt_prog_compiler_wl='-Wl,'
7259 # All Alpha code is PIC.
7260 lt_prog_compiler_static='-non_shared'
7261 ;;
7262 esac
7263 ;;
7264
7265 osf3* | osf4* | osf5*)
7266 lt_prog_compiler_wl='-Wl,'
7267 # All OSF/1 code is PIC.
7268 lt_prog_compiler_static='-non_shared'
7269 ;;
7270
7271 solaris*)
7272 lt_prog_compiler_pic='-KPIC'
7273 lt_prog_compiler_static='-Bstatic'
7274 case $cc_basename in
7275 f77* | f90* | f95*)
7276 lt_prog_compiler_wl='-Qoption ld ';;
7277 *)
7278 lt_prog_compiler_wl='-Wl,';;
7279 esac
7280 ;;
7281
7282 sunos4*)
7283 lt_prog_compiler_wl='-Qoption ld '
7284 lt_prog_compiler_pic='-PIC'
7285 lt_prog_compiler_static='-Bstatic'
7286 ;;
7287
7288 sysv4 | sysv4.2uw2* | sysv4.3*)
7289 lt_prog_compiler_wl='-Wl,'
7290 lt_prog_compiler_pic='-KPIC'
7291 lt_prog_compiler_static='-Bstatic'
7292 ;;
7293
7294 sysv4*MP*)
7295 if test -d /usr/nec ;then
7296 lt_prog_compiler_pic='-Kconform_pic'
7297 lt_prog_compiler_static='-Bstatic'
7298 fi
7299 ;;
7300
7301 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7302 lt_prog_compiler_wl='-Wl,'
7303 lt_prog_compiler_pic='-KPIC'
7304 lt_prog_compiler_static='-Bstatic'
7305 ;;
7306
7307 unicos*)
7308 lt_prog_compiler_wl='-Wl,'
7309 lt_prog_compiler_can_build_shared=no
7310 ;;
7311
7312 uts4*)
7313 lt_prog_compiler_pic='-pic'
7314 lt_prog_compiler_static='-Bstatic'
7315 ;;
7316
7317 *)
7318 lt_prog_compiler_can_build_shared=no
7319 ;;
7320 esac
7321 fi
7322
7323 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7324 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7325
7326 #
7327 # Check to make sure the PIC flag actually works.
7328 #
7329 if test -n "$lt_prog_compiler_pic"; then
7330
7331 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7332 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7333 if test "${lt_prog_compiler_pic_works+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 lt_prog_compiler_pic_works=no
7337 ac_outfile=conftest.$ac_objext
7338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7339 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7340 # Insert the option either (1) after the last *FLAGS variable, or
7341 # (2) before a word containing "conftest.", or (3) at the end.
7342 # Note that $ac_compile itself does not contain backslashes and begins
7343 # with a dollar sign (not a hyphen), so the echo should work correctly.
7344 # The option is referenced via a variable to avoid confusing sed.
7345 lt_compile=`echo "$ac_compile" | $SED \
7346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7348 -e 's:$: $lt_compiler_flag:'`
7349 (eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
7350 (eval "$lt_compile" 2>conftest.err)
7351 ac_status=$?
7352 cat conftest.err >&5
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 if (exit $ac_status) && test -s "$ac_outfile"; then
7355 # The compiler can only warn and ignore the option if not recognized
7356 # So say no if there are warnings other than the usual output.
7357 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7360 lt_prog_compiler_pic_works=yes
7361 fi
7362 fi
7363 $rm conftest*
7364
7365 fi
7366 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7367 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7368
7369 if test x"$lt_prog_compiler_pic_works" = xyes; then
7370 case $lt_prog_compiler_pic in
7371 "" | " "*) ;;
7372 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7373 esac
7374 else
7375 lt_prog_compiler_pic=
7376 lt_prog_compiler_can_build_shared=no
7377 fi
7378
7379 fi
7380 case $host_os in
7381 # For platforms which do not support PIC, -DPIC is meaningless:
7382 *djgpp*)
7383 lt_prog_compiler_pic=
7384 ;;
7385 *)
7386 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7387 ;;
7388 esac
7389
7390 #
7391 # Check to make sure the static flag actually works.
7392 #
7393 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7394 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7395 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7396 if test "${lt_prog_compiler_static_works+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 lt_prog_compiler_static_works=no
7400 save_LDFLAGS="$LDFLAGS"
7401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7402 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7404 # The linker can only warn and ignore the option if not recognized
7405 # So say no if there are warnings
7406 if test -s conftest.err; then
7407 # Append any errors to the config.log.
7408 cat conftest.err 1>&5
7409 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7411 if diff conftest.exp conftest.er2 >/dev/null; then
7412 lt_prog_compiler_static_works=yes
7413 fi
7414 else
7415 lt_prog_compiler_static_works=yes
7416 fi
7417 fi
7418 $rm conftest*
7419 LDFLAGS="$save_LDFLAGS"
7420
7421 fi
7422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7423 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7424
7425 if test x"$lt_prog_compiler_static_works" = xyes; then
7426 :
7427 else
7428 lt_prog_compiler_static=
7429 fi
7430
7431
7432 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7433 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7434 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 lt_cv_prog_compiler_c_o=no
7438 $rm -r conftest 2>/dev/null
7439 mkdir conftest
7440 cd conftest
7441 mkdir out
7442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7443
7444 lt_compiler_flag="-o out/conftest2.$ac_objext"
7445 # Insert the option either (1) after the last *FLAGS variable, or
7446 # (2) before a word containing "conftest.", or (3) at the end.
7447 # Note that $ac_compile itself does not contain backslashes and begins
7448 # with a dollar sign (not a hyphen), so the echo should work correctly.
7449 lt_compile=`echo "$ac_compile" | $SED \
7450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7452 -e 's:$: $lt_compiler_flag:'`
7453 (eval echo "\"\$as_me:7453: $lt_compile\"" >&5)
7454 (eval "$lt_compile" 2>out/conftest.err)
7455 ac_status=$?
7456 cat out/conftest.err >&5
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7459 then
7460 # The compiler can only warn and ignore the option if not recognized
7461 # So say no if there are warnings
7462 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7465 lt_cv_prog_compiler_c_o=yes
7466 fi
7467 fi
7468 chmod u+w . 2>&5
7469 $rm conftest*
7470 # SGI C++ compiler will create directory out/ii_files/ for
7471 # template instantiation
7472 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7473 $rm out/* && rmdir out
7474 cd ..
7475 rmdir conftest
7476 $rm conftest*
7477
7478 fi
7479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7480 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7481
7482
7483 hard_links="nottested"
7484 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7485 # do not overwrite the value of need_locks provided by the user
7486 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7488 hard_links=yes
7489 $rm conftest*
7490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7491 touch conftest.a
7492 ln conftest.a conftest.b 2>&5 || hard_links=no
7493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7494 { echo "$as_me:$LINENO: result: $hard_links" >&5
7495 echo "${ECHO_T}$hard_links" >&6; }
7496 if test "$hard_links" = no; then
7497 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7499 need_locks=warn
7500 fi
7501 else
7502 need_locks=no
7503 fi
7504
7505 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7506 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7507
7508 runpath_var=
7509 allow_undefined_flag=
7510 enable_shared_with_static_runtimes=no
7511 archive_cmds=
7512 archive_expsym_cmds=
7513 old_archive_From_new_cmds=
7514 old_archive_from_expsyms_cmds=
7515 export_dynamic_flag_spec=
7516 whole_archive_flag_spec=
7517 thread_safe_flag_spec=
7518 hardcode_libdir_flag_spec=
7519 hardcode_libdir_flag_spec_ld=
7520 hardcode_libdir_separator=
7521 hardcode_direct=no
7522 hardcode_minus_L=no
7523 hardcode_shlibpath_var=unsupported
7524 link_all_deplibs=unknown
7525 hardcode_automatic=no
7526 module_cmds=
7527 module_expsym_cmds=
7528 always_export_symbols=no
7529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7530 # include_expsyms should be a list of space-separated symbols to be *always*
7531 # included in the symbol list
7532 include_expsyms=
7533 # exclude_expsyms can be an extended regexp of symbols to exclude
7534 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7535 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7536 # as well as any symbol that contains `d'.
7537 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7538 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7539 # platforms (ab)use it in PIC code, but their linkers get confused if
7540 # the symbol is explicitly referenced. Since portable code cannot
7541 # rely on this symbol name, it's probably fine to never include it in
7542 # preloaded symbol tables.
7543 extract_expsyms_cmds=
7544 # Just being paranoid about ensuring that cc_basename is set.
7545 for cc_temp in $compiler""; do
7546 case $cc_temp in
7547 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 \-*) ;;
7550 *) break;;
7551 esac
7552 done
7553 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7554
7555 case $host_os in
7556 cygwin* | mingw* | pw32*)
7557 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7558 # When not using gcc, we currently assume that we are using
7559 # Microsoft Visual C++.
7560 if test "$GCC" != yes; then
7561 with_gnu_ld=no
7562 fi
7563 ;;
7564 interix*)
7565 # we just hope/assume this is gcc and not c89 (= MSVC++)
7566 with_gnu_ld=yes
7567 ;;
7568 openbsd*)
7569 with_gnu_ld=no
7570 ;;
7571 esac
7572
7573 ld_shlibs=yes
7574 if test "$with_gnu_ld" = yes; then
7575 # If archive_cmds runs LD, not CC, wlarc should be empty
7576 wlarc='${wl}'
7577
7578 # Set some defaults for GNU ld with shared library support. These
7579 # are reset later if shared libraries are not supported. Putting them
7580 # here allows them to be overridden if necessary.
7581 runpath_var=LD_RUN_PATH
7582 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7583 export_dynamic_flag_spec='${wl}--export-dynamic'
7584 # ancient GNU ld didn't support --whole-archive et. al.
7585 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7586 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7587 else
7588 whole_archive_flag_spec=
7589 fi
7590 supports_anon_versioning=no
7591 case `$LD -v 2>/dev/null` in
7592 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7593 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7594 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7595 *\ 2.11.*) ;; # other 2.11 versions
7596 *) supports_anon_versioning=yes ;;
7597 esac
7598
7599 # See if GNU ld supports shared libraries.
7600 case $host_os in
7601 aix3* | aix4* | aix5*)
7602 # On AIX/PPC, the GNU linker is very broken
7603 if test "$host_cpu" != ia64; then
7604 ld_shlibs=no
7605 cat <<EOF 1>&2
7606
7607 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7608 *** to be unable to reliably create shared libraries on AIX.
7609 *** Therefore, libtool is disabling shared libraries support. If you
7610 *** really care for shared libraries, you may want to modify your PATH
7611 *** so that a non-GNU linker is found, and then restart.
7612
7613 EOF
7614 fi
7615 ;;
7616
7617 amigaos*)
7618 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)'
7619 hardcode_libdir_flag_spec='-L$libdir'
7620 hardcode_minus_L=yes
7621
7622 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7623 # that the semantics of dynamic libraries on AmigaOS, at least up
7624 # to version 4, is to share data among multiple programs linked
7625 # with the same dynamic library. Since this doesn't match the
7626 # behavior of shared libraries on other platforms, we can't use
7627 # them.
7628 ld_shlibs=no
7629 ;;
7630
7631 beos*)
7632 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7633 allow_undefined_flag=unsupported
7634 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7635 # support --undefined. This deserves some investigation. FIXME
7636 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7637 else
7638 ld_shlibs=no
7639 fi
7640 ;;
7641
7642 cygwin* | mingw* | pw32*)
7643 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7644 # as there is no search path for DLLs.
7645 hardcode_libdir_flag_spec='-L$libdir'
7646 allow_undefined_flag=unsupported
7647 always_export_symbols=no
7648 enable_shared_with_static_runtimes=yes
7649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7650
7651 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7653 # If the export-symbols file already is a .def file (1st line
7654 # is EXPORTS), use it as is; otherwise, prepend...
7655 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7656 cp $export_symbols $output_objdir/$soname.def;
7657 else
7658 echo EXPORTS > $output_objdir/$soname.def;
7659 cat $export_symbols >> $output_objdir/$soname.def;
7660 fi~
7661 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7662 else
7663 ld_shlibs=no
7664 fi
7665 ;;
7666
7667 interix3*)
7668 hardcode_direct=no
7669 hardcode_shlibpath_var=no
7670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7671 export_dynamic_flag_spec='${wl}-E'
7672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7673 # Instead, shared libraries are loaded at an image base (0x10000000 by
7674 # default) and relocated if they conflict, which is a slow very memory
7675 # consuming and fragmenting process. To avoid this, we pick a random,
7676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7679 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'
7680 ;;
7681
7682 linux* | k*bsd*-gnu)
7683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7684 tmp_addflag=
7685 case $cc_basename,$host_cpu in
7686 pgcc*) # Portland Group C compiler
7687 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'
7688 tmp_addflag=' $pic_flag'
7689 ;;
7690 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7691 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'
7692 tmp_addflag=' $pic_flag -Mnomain' ;;
7693 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7694 tmp_addflag=' -i_dynamic' ;;
7695 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7696 tmp_addflag=' -i_dynamic -nofor_main' ;;
7697 ifc* | ifort*) # Intel Fortran compiler
7698 tmp_addflag=' -nofor_main' ;;
7699 esac
7700 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7701
7702 if test $supports_anon_versioning = yes; then
7703 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7705 $echo "local: *; };" >> $output_objdir/$libname.ver~
7706 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7707 fi
7708 link_all_deplibs=no
7709 else
7710 ld_shlibs=no
7711 fi
7712 ;;
7713
7714 netbsd* | netbsdelf*-gnu)
7715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7717 wlarc=
7718 else
7719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7721 fi
7722 ;;
7723
7724 solaris*)
7725 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7726 ld_shlibs=no
7727 cat <<EOF 1>&2
7728
7729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7730 *** create shared libraries on Solaris systems. Therefore, libtool
7731 *** is disabling shared libraries support. We urge you to upgrade GNU
7732 *** binutils to release 2.9.1 or newer. Another option is to modify
7733 *** your PATH or compiler configuration so that the native linker is
7734 *** used, and then restart.
7735
7736 EOF
7737 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7740 else
7741 ld_shlibs=no
7742 fi
7743 ;;
7744
7745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7746 case `$LD -v 2>&1` in
7747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7748 ld_shlibs=no
7749 cat <<_LT_EOF 1>&2
7750
7751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7752 *** reliably create shared libraries on SCO systems. Therefore, libtool
7753 *** is disabling shared libraries support. We urge you to upgrade GNU
7754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7755 *** your PATH or compiler configuration so that the native linker is
7756 *** used, and then restart.
7757
7758 _LT_EOF
7759 ;;
7760 *)
7761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7762 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7765 else
7766 ld_shlibs=no
7767 fi
7768 ;;
7769 esac
7770 ;;
7771
7772 sunos4*)
7773 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7774 wlarc=
7775 hardcode_direct=yes
7776 hardcode_shlibpath_var=no
7777 ;;
7778
7779 *)
7780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7783 else
7784 ld_shlibs=no
7785 fi
7786 ;;
7787 esac
7788
7789 if test "$ld_shlibs" = no; then
7790 runpath_var=
7791 hardcode_libdir_flag_spec=
7792 export_dynamic_flag_spec=
7793 whole_archive_flag_spec=
7794 fi
7795 else
7796 # PORTME fill in a description of your system's linker (not GNU ld)
7797 case $host_os in
7798 aix3*)
7799 allow_undefined_flag=unsupported
7800 always_export_symbols=yes
7801 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'
7802 # Note: this linker hardcodes the directories in LIBPATH if there
7803 # are no directories specified by -L.
7804 hardcode_minus_L=yes
7805 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7806 # Neither direct hardcoding nor static linking is supported with a
7807 # broken collect2.
7808 hardcode_direct=unsupported
7809 fi
7810 ;;
7811
7812 aix4* | aix5*)
7813 if test "$host_cpu" = ia64; then
7814 # On IA64, the linker does run time linking by default, so we don't
7815 # have to do anything special.
7816 aix_use_runtimelinking=no
7817 exp_sym_flag='-Bexport'
7818 no_entry_flag=""
7819 else
7820 # If we're using GNU nm, then we don't want the "-C" option.
7821 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7822 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7823 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'
7824 else
7825 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'
7826 fi
7827 aix_use_runtimelinking=no
7828
7829 # Test if we are trying to use run time linking or normal
7830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7831 # need to do runtime linking.
7832 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7833 for ld_flag in $LDFLAGS; do
7834 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7835 aix_use_runtimelinking=yes
7836 break
7837 fi
7838 done
7839 ;;
7840 esac
7841
7842 exp_sym_flag='-bexport'
7843 no_entry_flag='-bnoentry'
7844 fi
7845
7846 # When large executables or shared objects are built, AIX ld can
7847 # have problems creating the table of contents. If linking a library
7848 # or program results in "error TOC overflow" add -mminimal-toc to
7849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7851
7852 archive_cmds=''
7853 hardcode_direct=yes
7854 hardcode_libdir_separator=':'
7855 link_all_deplibs=yes
7856
7857 if test "$GCC" = yes; then
7858 case $host_os in aix4.[012]|aix4.[012].*)
7859 # We only want to do this on AIX 4.2 and lower, the check
7860 # below for broken collect2 doesn't work under 4.3+
7861 collect2name=`${CC} -print-prog-name=collect2`
7862 if test -f "$collect2name" && \
7863 strings "$collect2name" | grep resolve_lib_name >/dev/null
7864 then
7865 # We have reworked collect2
7866 hardcode_direct=yes
7867 else
7868 # We have old collect2
7869 hardcode_direct=unsupported
7870 # It fails to find uninstalled libraries when the uninstalled
7871 # path is not listed in the libpath. Setting hardcode_minus_L
7872 # to unsupported forces relinking
7873 hardcode_minus_L=yes
7874 hardcode_libdir_flag_spec='-L$libdir'
7875 hardcode_libdir_separator=
7876 fi
7877 ;;
7878 esac
7879 shared_flag='-shared'
7880 if test "$aix_use_runtimelinking" = yes; then
7881 shared_flag="$shared_flag "'${wl}-G'
7882 fi
7883 else
7884 # not using gcc
7885 if test "$host_cpu" = ia64; then
7886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7887 # chokes on -Wl,-G. The following line is correct:
7888 shared_flag='-G'
7889 else
7890 if test "$aix_use_runtimelinking" = yes; then
7891 shared_flag='${wl}-G'
7892 else
7893 shared_flag='${wl}-bM:SRE'
7894 fi
7895 fi
7896 fi
7897
7898 # It seems that -bexpall does not export symbols beginning with
7899 # underscore (_), so it is better to generate a list of symbols to export.
7900 always_export_symbols=yes
7901 if test "$aix_use_runtimelinking" = yes; then
7902 # Warning - without using the other runtime loading flags (-brtl),
7903 # -berok will link without error, but may produce a broken library.
7904 allow_undefined_flag='-berok'
7905 # Determine the default libpath from the value encoded in an empty executable.
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912
7913 int
7914 main ()
7915 {
7916
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (ac_try="$ac_link"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest$ac_exeext &&
7938 $as_test_x conftest$ac_exeext; then
7939
7940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7941 }'`
7942 # Check for a 64-bit object if we didn't find anything.
7943 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7944 }'`; fi
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949
7950 fi
7951
7952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953 conftest$ac_exeext conftest.$ac_ext
7954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7955
7956 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7957 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"
7958 else
7959 if test "$host_cpu" = ia64; then
7960 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7961 allow_undefined_flag="-z nodefs"
7962 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"
7963 else
7964 # Determine the default libpath from the value encoded in an empty executable.
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971
7972 int
7973 main ()
7974 {
7975
7976 ;
7977 return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (ac_try="$ac_link"
7982 case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_link") 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest$ac_exeext &&
7997 $as_test_x conftest$ac_exeext; then
7998
7999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8000 }'`
8001 # Check for a 64-bit object if we didn't find anything.
8002 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8003 }'`; fi
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008
8009 fi
8010
8011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8012 conftest$ac_exeext conftest.$ac_ext
8013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8014
8015 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8016 # Warning - without using the other run time loading flags,
8017 # -berok will link without error, but may produce a broken library.
8018 no_undefined_flag=' ${wl}-bernotok'
8019 allow_undefined_flag=' ${wl}-berok'
8020 # Exported symbols can be pulled into shared objects from archives
8021 whole_archive_flag_spec='$convenience'
8022 archive_cmds_need_lc=yes
8023 # This is similar to how AIX traditionally builds its shared libraries.
8024 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'
8025 fi
8026 fi
8027 ;;
8028
8029 amigaos*)
8030 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)'
8031 hardcode_libdir_flag_spec='-L$libdir'
8032 hardcode_minus_L=yes
8033 # see comment about different semantics on the GNU ld section
8034 ld_shlibs=no
8035 ;;
8036
8037 bsdi[45]*)
8038 export_dynamic_flag_spec=-rdynamic
8039 ;;
8040
8041 cygwin* | mingw* | pw32*)
8042 # When not using gcc, we currently assume that we are using
8043 # Microsoft Visual C++.
8044 # hardcode_libdir_flag_spec is actually meaningless, as there is
8045 # no search path for DLLs.
8046 hardcode_libdir_flag_spec=' '
8047 allow_undefined_flag=unsupported
8048 # Tell ltmain to make .lib files, not .a files.
8049 libext=lib
8050 # Tell ltmain to make .dll files, not .so files.
8051 shrext_cmds=".dll"
8052 # FIXME: Setting linknames here is a bad hack.
8053 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8054 # The linker will automatically build a .lib file if we build a DLL.
8055 old_archive_From_new_cmds='true'
8056 # FIXME: Should let the user specify the lib program.
8057 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8058 fix_srcfile_path='`cygpath -w "$srcfile"`'
8059 enable_shared_with_static_runtimes=yes
8060 ;;
8061
8062 darwin* | rhapsody*)
8063 case $host_os in
8064 rhapsody* | darwin1.[012])
8065 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8066 ;;
8067 *) # Darwin 1.3 on
8068 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8069 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8070 else
8071 case ${MACOSX_DEPLOYMENT_TARGET} in
8072 10.[012])
8073 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8074 ;;
8075 10.*)
8076 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8077 ;;
8078 esac
8079 fi
8080 ;;
8081 esac
8082 archive_cmds_need_lc=no
8083 hardcode_direct=no
8084 hardcode_automatic=yes
8085 hardcode_shlibpath_var=unsupported
8086 whole_archive_flag_spec=''
8087 link_all_deplibs=yes
8088 if test "$GCC" = yes ; then
8089 output_verbose_link_cmd='echo'
8090 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8091 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8092 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8093 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}'
8094 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}'
8095 else
8096 case $cc_basename in
8097 xlc*)
8098 output_verbose_link_cmd='echo'
8099 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8100 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8102 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8103 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}'
8104 ;;
8105 *)
8106 ld_shlibs=no
8107 ;;
8108 esac
8109 fi
8110 ;;
8111
8112 dgux*)
8113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8114 hardcode_libdir_flag_spec='-L$libdir'
8115 hardcode_shlibpath_var=no
8116 ;;
8117
8118 freebsd1*)
8119 ld_shlibs=no
8120 ;;
8121
8122 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8123 # support. Future versions do this automatically, but an explicit c++rt0.o
8124 # does not break anything, and helps significantly (at the cost of a little
8125 # extra space).
8126 freebsd2.2*)
8127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8128 hardcode_libdir_flag_spec='-R$libdir'
8129 hardcode_direct=yes
8130 hardcode_shlibpath_var=no
8131 ;;
8132
8133 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8134 freebsd2*)
8135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8136 hardcode_direct=yes
8137 hardcode_minus_L=yes
8138 hardcode_shlibpath_var=no
8139 ;;
8140
8141 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8142 freebsd* | dragonfly*)
8143 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8144 hardcode_libdir_flag_spec='-R$libdir'
8145 hardcode_direct=yes
8146 hardcode_shlibpath_var=no
8147 ;;
8148
8149 hpux9*)
8150 if test "$GCC" = yes; then
8151 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'
8152 else
8153 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'
8154 fi
8155 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8156 hardcode_libdir_separator=:
8157 hardcode_direct=yes
8158
8159 # hardcode_minus_L: Not really in the search PATH,
8160 # but as the default location of the library.
8161 hardcode_minus_L=yes
8162 export_dynamic_flag_spec='${wl}-E'
8163 ;;
8164
8165 hpux10*)
8166 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8167 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8168 else
8169 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8170 fi
8171 if test "$with_gnu_ld" = no; then
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8174
8175 hardcode_direct=yes
8176 export_dynamic_flag_spec='${wl}-E'
8177
8178 # hardcode_minus_L: Not really in the search PATH,
8179 # but as the default location of the library.
8180 hardcode_minus_L=yes
8181 fi
8182 ;;
8183
8184 hpux11*)
8185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8186 case $host_cpu in
8187 hppa*64*)
8188 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8189 ;;
8190 ia64*)
8191 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8192 ;;
8193 *)
8194 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8195 ;;
8196 esac
8197 else
8198 case $host_cpu in
8199 hppa*64*)
8200 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8201 ;;
8202 ia64*)
8203 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8204 ;;
8205 *)
8206 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 ;;
8208 esac
8209 fi
8210 if test "$with_gnu_ld" = no; then
8211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8212 hardcode_libdir_separator=:
8213
8214 case $host_cpu in
8215 hppa*64*|ia64*)
8216 hardcode_libdir_flag_spec_ld='+b $libdir'
8217 hardcode_direct=no
8218 hardcode_shlibpath_var=no
8219 ;;
8220 *)
8221 hardcode_direct=yes
8222 export_dynamic_flag_spec='${wl}-E'
8223
8224 # hardcode_minus_L: Not really in the search PATH,
8225 # but as the default location of the library.
8226 hardcode_minus_L=yes
8227 ;;
8228 esac
8229 fi
8230 ;;
8231
8232 irix5* | irix6* | nonstopux*)
8233 if test "$GCC" = yes; then
8234 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'
8235 else
8236 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'
8237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8238 fi
8239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8240 hardcode_libdir_separator=:
8241 link_all_deplibs=yes
8242 ;;
8243
8244 netbsd* | netbsdelf*-gnu)
8245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8247 else
8248 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8249 fi
8250 hardcode_libdir_flag_spec='-R$libdir'
8251 hardcode_direct=yes
8252 hardcode_shlibpath_var=no
8253 ;;
8254
8255 newsos6)
8256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_direct=yes
8258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8259 hardcode_libdir_separator=:
8260 hardcode_shlibpath_var=no
8261 ;;
8262
8263 openbsd*)
8264 hardcode_direct=yes
8265 hardcode_shlibpath_var=no
8266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8270 export_dynamic_flag_spec='${wl}-E'
8271 else
8272 case $host_os in
8273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_libdir_flag_spec='-R$libdir'
8276 ;;
8277 *)
8278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8280 ;;
8281 esac
8282 fi
8283 ;;
8284
8285 os2*)
8286 hardcode_libdir_flag_spec='-L$libdir'
8287 hardcode_minus_L=yes
8288 allow_undefined_flag=unsupported
8289 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'
8290 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8291 ;;
8292
8293 osf3*)
8294 if test "$GCC" = yes; then
8295 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8296 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'
8297 else
8298 allow_undefined_flag=' -expect_unresolved \*'
8299 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'
8300 fi
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 hardcode_libdir_separator=:
8303 ;;
8304
8305 osf4* | osf5*) # as osf3* with the addition of -msym flag
8306 if test "$GCC" = yes; then
8307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8308 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'
8309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8310 else
8311 allow_undefined_flag=' -expect_unresolved \*'
8312 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'
8313 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8314 $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'
8315
8316 # Both c and cxx compiler support -rpath directly
8317 hardcode_libdir_flag_spec='-rpath $libdir'
8318 fi
8319 hardcode_libdir_separator=:
8320 ;;
8321
8322 solaris*)
8323 no_undefined_flag=' -z text'
8324 if test "$GCC" = yes; then
8325 wlarc='${wl}'
8326 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8328 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8329 else
8330 wlarc=''
8331 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8332 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8334 fi
8335 hardcode_libdir_flag_spec='-R$libdir'
8336 hardcode_shlibpath_var=no
8337 case $host_os in
8338 solaris2.[0-5] | solaris2.[0-5].*) ;;
8339 *)
8340 # The compiler driver will combine linker options so we
8341 # cannot just pass the convience library names through
8342 # without $wl, iff we do not link with $LD.
8343 # Luckily, gcc supports the same syntax we need for Sun Studio.
8344 # Supported since Solaris 2.6 (maybe 2.5.1?)
8345 case $wlarc in
8346 '')
8347 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8348 *)
8349 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8350 esac ;;
8351 esac
8352 link_all_deplibs=yes
8353 ;;
8354
8355 sunos4*)
8356 if test "x$host_vendor" = xsequent; then
8357 # Use $CC to link under sequent, because it throws in some extra .o
8358 # files that make .init and .fini sections work.
8359 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8360 else
8361 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8362 fi
8363 hardcode_libdir_flag_spec='-L$libdir'
8364 hardcode_direct=yes
8365 hardcode_minus_L=yes
8366 hardcode_shlibpath_var=no
8367 ;;
8368
8369 sysv4)
8370 case $host_vendor in
8371 sni)
8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_direct=yes # is this really true???
8374 ;;
8375 siemens)
8376 ## LD is ld it makes a PLAMLIB
8377 ## CC just makes a GrossModule.
8378 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8379 reload_cmds='$CC -r -o $output$reload_objs'
8380 hardcode_direct=no
8381 ;;
8382 motorola)
8383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8385 ;;
8386 esac
8387 runpath_var='LD_RUN_PATH'
8388 hardcode_shlibpath_var=no
8389 ;;
8390
8391 sysv4.3*)
8392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393 hardcode_shlibpath_var=no
8394 export_dynamic_flag_spec='-Bexport'
8395 ;;
8396
8397 sysv4*MP*)
8398 if test -d /usr/nec; then
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_shlibpath_var=no
8401 runpath_var=LD_RUN_PATH
8402 hardcode_runpath_var=yes
8403 ld_shlibs=yes
8404 fi
8405 ;;
8406
8407 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8408 no_undefined_flag='${wl}-z,text'
8409 archive_cmds_need_lc=no
8410 hardcode_shlibpath_var=no
8411 runpath_var='LD_RUN_PATH'
8412
8413 if test "$GCC" = yes; then
8414 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 else
8417 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 fi
8420 ;;
8421
8422 sysv5* | sco3.2v5* | sco5v6*)
8423 # Note: We can NOT use -z defs as we might desire, because we do not
8424 # link with -lc, and that would cause any symbols used from libc to
8425 # always be unresolved, which means just about no library would
8426 # ever link correctly. If we're not using GNU ld we use -z text
8427 # though, which does catch some bad symbols but isn't as heavy-handed
8428 # as -z defs.
8429 no_undefined_flag='${wl}-z,text'
8430 allow_undefined_flag='${wl}-z,nodefs'
8431 archive_cmds_need_lc=no
8432 hardcode_shlibpath_var=no
8433 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8434 hardcode_libdir_separator=':'
8435 link_all_deplibs=yes
8436 export_dynamic_flag_spec='${wl}-Bexport'
8437 runpath_var='LD_RUN_PATH'
8438
8439 if test "$GCC" = yes; then
8440 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 else
8443 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 fi
8446 ;;
8447
8448 uts4*)
8449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_shlibpath_var=no
8452 ;;
8453
8454 *)
8455 ld_shlibs=no
8456 ;;
8457 esac
8458 fi
8459
8460 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8461 echo "${ECHO_T}$ld_shlibs" >&6; }
8462 test "$ld_shlibs" = no && can_build_shared=no
8463
8464 #
8465 # Do we need to explicitly link libc?
8466 #
8467 case "x$archive_cmds_need_lc" in
8468 x|xyes)
8469 # Assume -lc should be added
8470 archive_cmds_need_lc=yes
8471
8472 if test "$enable_shared" = yes && test "$GCC" = yes; then
8473 case $archive_cmds in
8474 *'~'*)
8475 # FIXME: we may have to deal with multi-command sequences.
8476 ;;
8477 '$CC '*)
8478 # Test whether the compiler implicitly links with -lc since on some
8479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8480 # to ld, don't add -lc before -lgcc.
8481 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8482 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8483 $rm conftest*
8484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8485
8486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8487 (eval $ac_compile) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } 2>conftest.err; then
8491 soname=conftest
8492 lib=conftest
8493 libobjs=conftest.$ac_objext
8494 deplibs=
8495 wl=$lt_prog_compiler_wl
8496 pic_flag=$lt_prog_compiler_pic
8497 compiler_flags=-v
8498 linker_flags=-v
8499 verstring=
8500 output_objdir=.
8501 libname=conftest
8502 lt_save_allow_undefined_flag=$allow_undefined_flag
8503 allow_undefined_flag=
8504 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8505 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }
8509 then
8510 archive_cmds_need_lc=no
8511 else
8512 archive_cmds_need_lc=yes
8513 fi
8514 allow_undefined_flag=$lt_save_allow_undefined_flag
8515 else
8516 cat conftest.err 1>&5
8517 fi
8518 $rm conftest*
8519 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8520 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8521 ;;
8522 esac
8523 fi
8524 ;;
8525 esac
8526
8527 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8528 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8529 library_names_spec=
8530 libname_spec='lib$name'
8531 soname_spec=
8532 shrext_cmds=".so"
8533 postinstall_cmds=
8534 postuninstall_cmds=
8535 finish_cmds=
8536 finish_eval=
8537 shlibpath_var=
8538 shlibpath_overrides_runpath=unknown
8539 version_type=none
8540 dynamic_linker="$host_os ld.so"
8541 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8542 if test "$GCC" = yes; then
8543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8544 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8545 # if the path contains ";" then we assume it to be the separator
8546 # otherwise default to the standard path separator (i.e. ":") - it is
8547 # assumed that no part of a normal pathname contains ";" but that should
8548 # okay in the real world where ";" in dirpaths is itself problematic.
8549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8550 else
8551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8552 fi
8553 else
8554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8555 fi
8556 need_lib_prefix=unknown
8557 hardcode_into_libs=no
8558
8559 # when you set need_version to no, make sure it does not cause -set_version
8560 # flags to be left without arguments
8561 need_version=unknown
8562
8563 case $host_os in
8564 aix3*)
8565 version_type=linux
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8567 shlibpath_var=LIBPATH
8568
8569 # AIX 3 has no versioning support, so we append a major version to the name.
8570 soname_spec='${libname}${release}${shared_ext}$major'
8571 ;;
8572
8573 aix4* | aix5*)
8574 version_type=linux
8575 need_lib_prefix=no
8576 need_version=no
8577 hardcode_into_libs=yes
8578 if test "$host_cpu" = ia64; then
8579 # AIX 5 supports IA64
8580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8581 shlibpath_var=LD_LIBRARY_PATH
8582 else
8583 # With GCC up to 2.95.x, collect2 would create an import file
8584 # for dependence libraries. The import file would start with
8585 # the line `#! .'. This would cause the generated library to
8586 # depend on `.', always an invalid library. This was fixed in
8587 # development snapshots of GCC prior to 3.0.
8588 case $host_os in
8589 aix4 | aix4.[01] | aix4.[01].*)
8590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8591 echo ' yes '
8592 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8593 :
8594 else
8595 can_build_shared=no
8596 fi
8597 ;;
8598 esac
8599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8600 # soname into executable. Probably we can add versioning support to
8601 # collect2, so additional links can be useful in future.
8602 if test "$aix_use_runtimelinking" = yes; then
8603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8604 # instead of lib<name>.a to let people know that these are not
8605 # typical AIX shared libraries.
8606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8607 else
8608 # We preserve .a as extension for shared libraries through AIX4.2
8609 # and later when we are not doing run time linking.
8610 library_names_spec='${libname}${release}.a $libname.a'
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 fi
8613 shlibpath_var=LIBPATH
8614 fi
8615 ;;
8616
8617 amigaos*)
8618 library_names_spec='$libname.ixlibrary $libname.a'
8619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8620 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'
8621 ;;
8622
8623 beos*)
8624 library_names_spec='${libname}${shared_ext}'
8625 dynamic_linker="$host_os ld.so"
8626 shlibpath_var=LIBRARY_PATH
8627 ;;
8628
8629 bsdi[45]*)
8630 version_type=linux
8631 need_version=no
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633 soname_spec='${libname}${release}${shared_ext}$major'
8634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8635 shlibpath_var=LD_LIBRARY_PATH
8636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8638 # the default ld.so.conf also contains /usr/contrib/lib and
8639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8640 # libtool to hard-code these into programs
8641 ;;
8642
8643 cygwin* | mingw* | pw32*)
8644 version_type=windows
8645 shrext_cmds=".dll"
8646 need_version=no
8647 need_lib_prefix=no
8648
8649 case $GCC,$host_os in
8650 yes,cygwin* | yes,mingw* | yes,pw32*)
8651 library_names_spec='$libname.dll.a'
8652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8653 postinstall_cmds='base_file=`basename \${file}`~
8654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8655 dldir=$destdir/`dirname \$dlpath`~
8656 test -d \$dldir || mkdir -p \$dldir~
8657 $install_prog $dir/$dlname \$dldir/$dlname~
8658 chmod a+x \$dldir/$dlname'
8659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8660 dlpath=$dir/\$dldll~
8661 $rm \$dlpath'
8662 shlibpath_overrides_runpath=yes
8663
8664 case $host_os in
8665 cygwin*)
8666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8668 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8669 ;;
8670 mingw*)
8671 # MinGW DLLs use traditional 'lib' prefix
8672 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8674 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8675 # It is most probably a Windows format PATH printed by
8676 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8677 # path with ; separators, and with drive letters. We can handle the
8678 # drive letters (cygwin fileutils understands them), so leave them,
8679 # especially as we might pass files found there to a mingw objdump,
8680 # which wouldn't understand a cygwinified path. Ahh.
8681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8682 else
8683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8684 fi
8685 ;;
8686 pw32*)
8687 # pw32 DLLs use 'pw' prefix rather than 'lib'
8688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689 ;;
8690 esac
8691 ;;
8692
8693 *)
8694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8695 ;;
8696 esac
8697 dynamic_linker='Win32 ld.exe'
8698 # FIXME: first we should search . and the directory the executable is in
8699 shlibpath_var=PATH
8700 ;;
8701
8702 darwin* | rhapsody*)
8703 dynamic_linker="$host_os dyld"
8704 version_type=darwin
8705 need_lib_prefix=no
8706 need_version=no
8707 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8708 soname_spec='${libname}${release}${major}$shared_ext'
8709 shlibpath_overrides_runpath=yes
8710 shlibpath_var=DYLD_LIBRARY_PATH
8711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8712 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8713 if test "$GCC" = yes; then
8714 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8715 else
8716 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8717 fi
8718 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8719 ;;
8720
8721 dgux*)
8722 version_type=linux
8723 need_lib_prefix=no
8724 need_version=no
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 ;;
8729
8730 freebsd1*)
8731 dynamic_linker=no
8732 ;;
8733
8734 freebsd* | dragonfly*)
8735 # DragonFly does not have aout. When/if they implement a new
8736 # versioning mechanism, adjust this.
8737 if test -x /usr/bin/objformat; then
8738 objformat=`/usr/bin/objformat`
8739 else
8740 case $host_os in
8741 freebsd[123]*) objformat=aout ;;
8742 *) objformat=elf ;;
8743 esac
8744 fi
8745 version_type=freebsd-$objformat
8746 case $version_type in
8747 freebsd-elf*)
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8749 need_version=no
8750 need_lib_prefix=no
8751 ;;
8752 freebsd-*)
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8754 need_version=yes
8755 ;;
8756 esac
8757 shlibpath_var=LD_LIBRARY_PATH
8758 case $host_os in
8759 freebsd2*)
8760 shlibpath_overrides_runpath=yes
8761 ;;
8762 freebsd3.[01]* | freebsdelf3.[01]*)
8763 shlibpath_overrides_runpath=yes
8764 hardcode_into_libs=yes
8765 ;;
8766 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8767 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8768 shlibpath_overrides_runpath=no
8769 hardcode_into_libs=yes
8770 ;;
8771 freebsd*) # from 4.6 on
8772 shlibpath_overrides_runpath=yes
8773 hardcode_into_libs=yes
8774 ;;
8775 esac
8776 ;;
8777
8778 gnu*)
8779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 hardcode_into_libs=yes
8786 ;;
8787
8788 hpux9* | hpux10* | hpux11*)
8789 # Give a soname corresponding to the major version so that dld.sl refuses to
8790 # link against other versions.
8791 version_type=sunos
8792 need_lib_prefix=no
8793 need_version=no
8794 case $host_cpu in
8795 ia64*)
8796 shrext_cmds='.so'
8797 hardcode_into_libs=yes
8798 dynamic_linker="$host_os dld.so"
8799 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 if test "X$HPUX_IA64_MODE" = X32; then
8804 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8805 else
8806 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8807 fi
8808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8809 ;;
8810 hppa*64*)
8811 shrext_cmds='.sl'
8812 hardcode_into_libs=yes
8813 dynamic_linker="$host_os dld.sl"
8814 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8820 ;;
8821 *)
8822 shrext_cmds='.sl'
8823 dynamic_linker="$host_os dld.sl"
8824 shlibpath_var=SHLIB_PATH
8825 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 ;;
8829 esac
8830 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8831 postinstall_cmds='chmod 555 $lib'
8832 ;;
8833
8834 interix3*)
8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8841 shlibpath_var=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath=no
8843 hardcode_into_libs=yes
8844 ;;
8845
8846 irix5* | irix6* | nonstopux*)
8847 case $host_os in
8848 nonstopux*) version_type=nonstopux ;;
8849 *)
8850 if test "$lt_cv_prog_gnu_ld" = yes; then
8851 version_type=linux
8852 else
8853 version_type=irix
8854 fi ;;
8855 esac
8856 need_lib_prefix=no
8857 need_version=no
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8860 case $host_os in
8861 irix5* | nonstopux*)
8862 libsuff= shlibsuff=
8863 ;;
8864 *)
8865 case $LD in # libtool.m4 will add one of these switches to LD
8866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8867 libsuff= shlibsuff= libmagic=32-bit;;
8868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8869 libsuff=32 shlibsuff=N32 libmagic=N32;;
8870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8872 *) libsuff= shlibsuff= libmagic=never-match;;
8873 esac
8874 ;;
8875 esac
8876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8877 shlibpath_overrides_runpath=no
8878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8880 hardcode_into_libs=yes
8881 ;;
8882
8883 # No shared lib support for Linux oldld, aout, or coff.
8884 linux*oldld* | linux*aout* | linux*coff*)
8885 dynamic_linker=no
8886 ;;
8887
8888 # This must be Linux ELF.
8889 linux* | k*bsd*-gnu)
8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=no
8898 # This implies no fast_install, which is unacceptable.
8899 # Some rework will be needed to allow for fast_install
8900 # before this can be enabled.
8901 hardcode_into_libs=yes
8902
8903 # Append ld.so.conf contents to the search path
8904 if test -f /etc/ld.so.conf; then
8905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8907 fi
8908
8909 # We used to test for /lib/ld.so.1 and disable shared libraries on
8910 # powerpc, because MkLinux only supported shared libraries with the
8911 # GNU dynamic linker. Since this was broken with cross compilers,
8912 # most powerpc-linux boxes support dynamic linking these days and
8913 # people can always --disable-shared, the test was removed, and we
8914 # assume the GNU/Linux dynamic linker is in use.
8915 dynamic_linker='GNU/Linux ld.so'
8916 ;;
8917
8918 netbsdelf*-gnu)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8927 dynamic_linker='NetBSD ld.elf_so'
8928 ;;
8929
8930 netbsd*)
8931 version_type=sunos
8932 need_lib_prefix=no
8933 need_version=no
8934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8937 dynamic_linker='NetBSD (a.out) ld.so'
8938 else
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 dynamic_linker='NetBSD ld.elf_so'
8942 fi
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 hardcode_into_libs=yes
8946 ;;
8947
8948 newsos6)
8949 version_type=linux
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes
8953 ;;
8954
8955 nto-qnx*)
8956 version_type=linux
8957 need_lib_prefix=no
8958 need_version=no
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 shlibpath_overrides_runpath=yes
8963 ;;
8964
8965 openbsd*)
8966 version_type=sunos
8967 sys_lib_dlsearch_path_spec="/usr/lib"
8968 need_lib_prefix=no
8969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8970 case $host_os in
8971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8972 *) need_version=no ;;
8973 esac
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8976 shlibpath_var=LD_LIBRARY_PATH
8977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8978 case $host_os in
8979 openbsd2.[89] | openbsd2.[89].*)
8980 shlibpath_overrides_runpath=no
8981 ;;
8982 *)
8983 shlibpath_overrides_runpath=yes
8984 ;;
8985 esac
8986 else
8987 shlibpath_overrides_runpath=yes
8988 fi
8989 ;;
8990
8991 os2*)
8992 libname_spec='$name'
8993 shrext_cmds=".dll"
8994 need_lib_prefix=no
8995 library_names_spec='$libname${shared_ext} $libname.a'
8996 dynamic_linker='OS/2 ld.exe'
8997 shlibpath_var=LIBPATH
8998 ;;
8999
9000 osf3* | osf4* | osf5*)
9001 version_type=osf
9002 need_lib_prefix=no
9003 need_version=no
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9009 ;;
9010
9011 solaris*)
9012 version_type=linux
9013 need_lib_prefix=no
9014 need_version=no
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9019 hardcode_into_libs=yes
9020 # ldd complains unless libraries are executable
9021 postinstall_cmds='chmod +x $lib'
9022 ;;
9023
9024 sunos4*)
9025 version_type=sunos
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes
9030 if test "$with_gnu_ld" = yes; then
9031 need_lib_prefix=no
9032 fi
9033 need_version=yes
9034 ;;
9035
9036 sysv4 | sysv4.3*)
9037 version_type=linux
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 case $host_vendor in
9042 sni)
9043 shlibpath_overrides_runpath=no
9044 need_lib_prefix=no
9045 export_dynamic_flag_spec='${wl}-Blargedynsym'
9046 runpath_var=LD_RUN_PATH
9047 ;;
9048 siemens)
9049 need_lib_prefix=no
9050 ;;
9051 motorola)
9052 need_lib_prefix=no
9053 need_version=no
9054 shlibpath_overrides_runpath=no
9055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9056 ;;
9057 esac
9058 ;;
9059
9060 sysv4*MP*)
9061 if test -d /usr/nec ;then
9062 version_type=linux
9063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9064 soname_spec='$libname${shared_ext}.$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 fi
9067 ;;
9068
9069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9070 version_type=freebsd-elf
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 hardcode_into_libs=yes
9077 if test "$with_gnu_ld" = yes; then
9078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9079 shlibpath_overrides_runpath=no
9080 else
9081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9082 shlibpath_overrides_runpath=yes
9083 case $host_os in
9084 sco3.2v5*)
9085 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9086 ;;
9087 esac
9088 fi
9089 sys_lib_dlsearch_path_spec='/usr/lib'
9090 ;;
9091
9092 uts4*)
9093 version_type=linux
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 ;;
9098
9099 *)
9100 dynamic_linker=no
9101 ;;
9102 esac
9103 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9104 echo "${ECHO_T}$dynamic_linker" >&6; }
9105 test "$dynamic_linker" = no && can_build_shared=no
9106
9107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9108 if test "$GCC" = yes; then
9109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9110 fi
9111
9112 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9113 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9114 hardcode_action=
9115 if test -n "$hardcode_libdir_flag_spec" || \
9116 test -n "$runpath_var" || \
9117 test "X$hardcode_automatic" = "Xyes" ; then
9118
9119 # We can hardcode non-existant directories.
9120 if test "$hardcode_direct" != no &&
9121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9122 # have to relink, otherwise we might link with an installed library
9123 # when we should be linking with a yet-to-be-installed one
9124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9125 test "$hardcode_minus_L" != no; then
9126 # Linking always hardcodes the temporary library directory.
9127 hardcode_action=relink
9128 else
9129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9130 hardcode_action=immediate
9131 fi
9132 else
9133 # We cannot hardcode anything, or else we can only hardcode existing
9134 # directories.
9135 hardcode_action=unsupported
9136 fi
9137 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9138 echo "${ECHO_T}$hardcode_action" >&6; }
9139
9140 if test "$hardcode_action" = relink; then
9141 # Fast installation is not supported
9142 enable_fast_install=no
9143 elif test "$shlibpath_overrides_runpath" = yes ||
9144 test "$enable_shared" = no; then
9145 # Fast installation is not necessary
9146 enable_fast_install=needless
9147 fi
9148
9149 striplib=
9150 old_striplib=
9151 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9152 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9153 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9156 { echo "$as_me:$LINENO: result: yes" >&5
9157 echo "${ECHO_T}yes" >&6; }
9158 else
9159 # FIXME - insert some real tests, host_os isn't really good enough
9160 case $host_os in
9161 darwin*)
9162 if test -n "$STRIP" ; then
9163 striplib="$STRIP -x"
9164 { echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6; }
9166 else
9167 { echo "$as_me:$LINENO: result: no" >&5
9168 echo "${ECHO_T}no" >&6; }
9169 fi
9170 ;;
9171 *)
9172 { echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6; }
9174 ;;
9175 esac
9176 fi
9177
9178 if test "x$enable_dlopen" != xyes; then
9179 enable_dlopen=unknown
9180 enable_dlopen_self=unknown
9181 enable_dlopen_self_static=unknown
9182 else
9183 lt_cv_dlopen=no
9184 lt_cv_dlopen_libs=
9185
9186 case $host_os in
9187 beos*)
9188 lt_cv_dlopen="load_add_on"
9189 lt_cv_dlopen_libs=
9190 lt_cv_dlopen_self=yes
9191 ;;
9192
9193 mingw* | pw32*)
9194 lt_cv_dlopen="LoadLibrary"
9195 lt_cv_dlopen_libs=
9196 ;;
9197
9198 cygwin*)
9199 lt_cv_dlopen="dlopen"
9200 lt_cv_dlopen_libs=
9201 ;;
9202
9203 darwin*)
9204 # if libdl is installed we need to link against it
9205 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-ldl $LIBS"
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218
9219 /* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9222 #ifdef __cplusplus
9223 extern "C"
9224 #endif
9225 char dlopen ();
9226 int
9227 main ()
9228 {
9229 return dlopen ();
9230 ;
9231 return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9236 case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9239 esac
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest$ac_exeext &&
9251 $as_test_x conftest$ac_exeext; then
9252 ac_cv_lib_dl_dlopen=yes
9253 else
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257 ac_cv_lib_dl_dlopen=no
9258 fi
9259
9260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9261 conftest$ac_exeext conftest.$ac_ext
9262 LIBS=$ac_check_lib_save_LIBS
9263 fi
9264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9265 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9266 if test $ac_cv_lib_dl_dlopen = yes; then
9267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9268 else
9269
9270 lt_cv_dlopen="dyld"
9271 lt_cv_dlopen_libs=
9272 lt_cv_dlopen_self=yes
9273
9274 fi
9275
9276 ;;
9277
9278 *)
9279 { echo "$as_me:$LINENO: checking for shl_load" >&5
9280 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9281 if test "${ac_cv_func_shl_load+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9292 #define shl_load innocuous_shl_load
9293
9294 /* System header to define __stub macros and hopefully few prototypes,
9295 which can conflict with char shl_load (); below.
9296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9297 <limits.h> exists even on freestanding compilers. */
9298
9299 #ifdef __STDC__
9300 # include <limits.h>
9301 #else
9302 # include <assert.h>
9303 #endif
9304
9305 #undef shl_load
9306
9307 /* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 char shl_load ();
9314 /* The GNU C library defines this for functions which it implements
9315 to always fail with ENOSYS. Some functions are actually named
9316 something starting with __ and the normal name is an alias. */
9317 #if defined __stub_shl_load || defined __stub___shl_load
9318 choke me
9319 #endif
9320
9321 int
9322 main ()
9323 {
9324 return shl_load ();
9325 ;
9326 return 0;
9327 }
9328 _ACEOF
9329 rm -f conftest.$ac_objext conftest$ac_exeext
9330 if { (ac_try="$ac_link"
9331 case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_link") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest$ac_exeext &&
9346 $as_test_x conftest$ac_exeext; then
9347 ac_cv_func_shl_load=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_cv_func_shl_load=no
9353 fi
9354
9355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9356 conftest$ac_exeext conftest.$ac_ext
9357 fi
9358 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9359 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9360 if test $ac_cv_func_shl_load = yes; then
9361 lt_cv_dlopen="shl_load"
9362 else
9363 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9364 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9365 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368 ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-ldld $LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376
9377 /* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9380 #ifdef __cplusplus
9381 extern "C"
9382 #endif
9383 char shl_load ();
9384 int
9385 main ()
9386 {
9387 return shl_load ();
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest$ac_exeext &&
9409 $as_test_x conftest$ac_exeext; then
9410 ac_cv_lib_dld_shl_load=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 ac_cv_lib_dld_shl_load=no
9416 fi
9417
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419 conftest$ac_exeext conftest.$ac_ext
9420 LIBS=$ac_check_lib_save_LIBS
9421 fi
9422 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9423 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9424 if test $ac_cv_lib_dld_shl_load = yes; then
9425 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9426 else
9427 { echo "$as_me:$LINENO: checking for dlopen" >&5
9428 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9429 if test "${ac_cv_func_dlopen+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9440 #define dlopen innocuous_dlopen
9441
9442 /* System header to define __stub macros and hopefully few prototypes,
9443 which can conflict with char dlopen (); below.
9444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445 <limits.h> exists even on freestanding compilers. */
9446
9447 #ifdef __STDC__
9448 # include <limits.h>
9449 #else
9450 # include <assert.h>
9451 #endif
9452
9453 #undef dlopen
9454
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 char dlopen ();
9462 /* The GNU C library defines this for functions which it implements
9463 to always fail with ENOSYS. Some functions are actually named
9464 something starting with __ and the normal name is an alias. */
9465 #if defined __stub_dlopen || defined __stub___dlopen
9466 choke me
9467 #endif
9468
9469 int
9470 main ()
9471 {
9472 return dlopen ();
9473 ;
9474 return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (ac_try="$ac_link"
9479 case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest$ac_exeext &&
9494 $as_test_x conftest$ac_exeext; then
9495 ac_cv_func_dlopen=yes
9496 else
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ac_cv_func_dlopen=no
9501 fi
9502
9503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9504 conftest$ac_exeext conftest.$ac_ext
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9507 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9508 if test $ac_cv_func_dlopen = yes; then
9509 lt_cv_dlopen="dlopen"
9510 else
9511 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 ac_check_lib_save_LIBS=$LIBS
9517 LIBS="-ldl $LIBS"
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524
9525 /* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9528 #ifdef __cplusplus
9529 extern "C"
9530 #endif
9531 char dlopen ();
9532 int
9533 main ()
9534 {
9535 return dlopen ();
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (ac_try="$ac_link"
9542 case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext &&
9557 $as_test_x conftest$ac_exeext; then
9558 ac_cv_lib_dl_dlopen=yes
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 ac_cv_lib_dl_dlopen=no
9564 fi
9565
9566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 conftest$ac_exeext conftest.$ac_ext
9568 LIBS=$ac_check_lib_save_LIBS
9569 fi
9570 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9571 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9572 if test $ac_cv_lib_dl_dlopen = yes; then
9573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9574 else
9575 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9576 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9577 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580 ac_check_lib_save_LIBS=$LIBS
9581 LIBS="-lsvld $LIBS"
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 char dlopen ();
9596 int
9597 main ()
9598 {
9599 return dlopen ();
9600 ;
9601 return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (ac_try="$ac_link"
9606 case "(($ac_try" in
9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608 *) ac_try_echo=$ac_try;;
9609 esac
9610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9611 (eval "$ac_link") 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && {
9618 test -z "$ac_c_werror_flag" ||
9619 test ! -s conftest.err
9620 } && test -s conftest$ac_exeext &&
9621 $as_test_x conftest$ac_exeext; then
9622 ac_cv_lib_svld_dlopen=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9626
9627 ac_cv_lib_svld_dlopen=no
9628 fi
9629
9630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9631 conftest$ac_exeext conftest.$ac_ext
9632 LIBS=$ac_check_lib_save_LIBS
9633 fi
9634 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9635 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9636 if test $ac_cv_lib_svld_dlopen = yes; then
9637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9638 else
9639 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9640 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9641 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644 ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-ldld $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652
9653 /* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 char dld_link ();
9660 int
9661 main ()
9662 {
9663 return dld_link ();
9664 ;
9665 return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (ac_try="$ac_link"
9670 case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_link") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest$ac_exeext &&
9685 $as_test_x conftest$ac_exeext; then
9686 ac_cv_lib_dld_dld_link=yes
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_cv_lib_dld_dld_link=no
9692 fi
9693
9694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9695 conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_lib_save_LIBS
9697 fi
9698 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9699 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9700 if test $ac_cv_lib_dld_dld_link = yes; then
9701 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9702 fi
9703
9704
9705 fi
9706
9707
9708 fi
9709
9710
9711 fi
9712
9713
9714 fi
9715
9716
9717 fi
9718
9719 ;;
9720 esac
9721
9722 if test "x$lt_cv_dlopen" != xno; then
9723 enable_dlopen=yes
9724 else
9725 enable_dlopen=no
9726 fi
9727
9728 case $lt_cv_dlopen in
9729 dlopen)
9730 save_CPPFLAGS="$CPPFLAGS"
9731 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9732
9733 save_LDFLAGS="$LDFLAGS"
9734 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9735
9736 save_LIBS="$LIBS"
9737 LIBS="$lt_cv_dlopen_libs $LIBS"
9738
9739 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9740 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9741 if test "${lt_cv_dlopen_self+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 if test "$cross_compiling" = yes; then :
9745 lt_cv_dlopen_self=cross
9746 else
9747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9748 lt_status=$lt_dlunknown
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9750 "configure"
9751 #include "confdefs.h"
9752
9753 #if HAVE_DLFCN_H
9754 #include <dlfcn.h>
9755 #endif
9756
9757 #include <stdio.h>
9758
9759 #ifdef RTLD_GLOBAL
9760 # define LT_DLGLOBAL RTLD_GLOBAL
9761 #else
9762 # ifdef DL_GLOBAL
9763 # define LT_DLGLOBAL DL_GLOBAL
9764 # else
9765 # define LT_DLGLOBAL 0
9766 # endif
9767 #endif
9768
9769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9770 find out it does not work in some platform. */
9771 #ifndef LT_DLLAZY_OR_NOW
9772 # ifdef RTLD_LAZY
9773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9774 # else
9775 # ifdef DL_LAZY
9776 # define LT_DLLAZY_OR_NOW DL_LAZY
9777 # else
9778 # ifdef RTLD_NOW
9779 # define LT_DLLAZY_OR_NOW RTLD_NOW
9780 # else
9781 # ifdef DL_NOW
9782 # define LT_DLLAZY_OR_NOW DL_NOW
9783 # else
9784 # define LT_DLLAZY_OR_NOW 0
9785 # endif
9786 # endif
9787 # endif
9788 # endif
9789 #endif
9790
9791 #ifdef __cplusplus
9792 extern "C" void exit (int);
9793 #endif
9794
9795 void fnord() { int i=42;}
9796 int main ()
9797 {
9798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9799 int status = $lt_dlunknown;
9800
9801 if (self)
9802 {
9803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9804 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9805 /* dlclose (self); */
9806 }
9807 else
9808 puts (dlerror ());
9809
9810 exit (status);
9811 }
9812 EOF
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9818 (./conftest; exit; ) >&5 2>/dev/null
9819 lt_status=$?
9820 case x$lt_status in
9821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9823 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9824 esac
9825 else :
9826 # compilation failed
9827 lt_cv_dlopen_self=no
9828 fi
9829 fi
9830 rm -fr conftest*
9831
9832
9833 fi
9834 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9835 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9836
9837 if test "x$lt_cv_dlopen_self" = xyes; then
9838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9839 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9840 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9841 if test "${lt_cv_dlopen_self_static+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 if test "$cross_compiling" = yes; then :
9845 lt_cv_dlopen_self_static=cross
9846 else
9847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9848 lt_status=$lt_dlunknown
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9850 "configure"
9851 #include "confdefs.h"
9852
9853 #if HAVE_DLFCN_H
9854 #include <dlfcn.h>
9855 #endif
9856
9857 #include <stdio.h>
9858
9859 #ifdef RTLD_GLOBAL
9860 # define LT_DLGLOBAL RTLD_GLOBAL
9861 #else
9862 # ifdef DL_GLOBAL
9863 # define LT_DLGLOBAL DL_GLOBAL
9864 # else
9865 # define LT_DLGLOBAL 0
9866 # endif
9867 #endif
9868
9869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9870 find out it does not work in some platform. */
9871 #ifndef LT_DLLAZY_OR_NOW
9872 # ifdef RTLD_LAZY
9873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9874 # else
9875 # ifdef DL_LAZY
9876 # define LT_DLLAZY_OR_NOW DL_LAZY
9877 # else
9878 # ifdef RTLD_NOW
9879 # define LT_DLLAZY_OR_NOW RTLD_NOW
9880 # else
9881 # ifdef DL_NOW
9882 # define LT_DLLAZY_OR_NOW DL_NOW
9883 # else
9884 # define LT_DLLAZY_OR_NOW 0
9885 # endif
9886 # endif
9887 # endif
9888 # endif
9889 #endif
9890
9891 #ifdef __cplusplus
9892 extern "C" void exit (int);
9893 #endif
9894
9895 void fnord() { int i=42;}
9896 int main ()
9897 {
9898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9899 int status = $lt_dlunknown;
9900
9901 if (self)
9902 {
9903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9905 /* dlclose (self); */
9906 }
9907 else
9908 puts (dlerror ());
9909
9910 exit (status);
9911 }
9912 EOF
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9918 (./conftest; exit; ) >&5 2>/dev/null
9919 lt_status=$?
9920 case x$lt_status in
9921 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9922 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9923 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9924 esac
9925 else :
9926 # compilation failed
9927 lt_cv_dlopen_self_static=no
9928 fi
9929 fi
9930 rm -fr conftest*
9931
9932
9933 fi
9934 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9935 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9936 fi
9937
9938 CPPFLAGS="$save_CPPFLAGS"
9939 LDFLAGS="$save_LDFLAGS"
9940 LIBS="$save_LIBS"
9941 ;;
9942 esac
9943
9944 case $lt_cv_dlopen_self in
9945 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9946 *) enable_dlopen_self=unknown ;;
9947 esac
9948
9949 case $lt_cv_dlopen_self_static in
9950 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9951 *) enable_dlopen_self_static=unknown ;;
9952 esac
9953 fi
9954
9955
9956 # Report which library types will actually be built
9957 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9958 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9959 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9960 echo "${ECHO_T}$can_build_shared" >&6; }
9961
9962 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9963 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9964 test "$can_build_shared" = "no" && enable_shared=no
9965
9966 # On AIX, shared libraries and static libraries use the same namespace, and
9967 # are all built from PIC.
9968 case $host_os in
9969 aix3*)
9970 test "$enable_shared" = yes && enable_static=no
9971 if test -n "$RANLIB"; then
9972 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9973 postinstall_cmds='$RANLIB $lib'
9974 fi
9975 ;;
9976
9977 aix4* | aix5*)
9978 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9979 test "$enable_shared" = yes && enable_static=no
9980 fi
9981 ;;
9982 esac
9983 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9984 echo "${ECHO_T}$enable_shared" >&6; }
9985
9986 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9987 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9988 # Make sure either enable_shared or enable_static is yes.
9989 test "$enable_shared" = yes || enable_static=yes
9990 { echo "$as_me:$LINENO: result: $enable_static" >&5
9991 echo "${ECHO_T}$enable_static" >&6; }
9992
9993 # The else clause should only fire when bootstrapping the
9994 # libtool distribution, otherwise you forgot to ship ltmain.sh
9995 # with your package, and you will get complaints that there are
9996 # no rules to generate ltmain.sh.
9997 if test -f "$ltmain"; then
9998 # See if we are running on zsh, and set the options which allow our commands through
9999 # without removal of \ escapes.
10000 if test -n "${ZSH_VERSION+set}" ; then
10001 setopt NO_GLOB_SUBST
10002 fi
10003 # Now quote all the things that may contain metacharacters while being
10004 # careful not to overquote the AC_SUBSTed values. We take copies of the
10005 # variables and quote the copies for generation of the libtool script.
10006 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10007 SED SHELL STRIP \
10008 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10009 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10010 deplibs_check_method reload_flag reload_cmds need_locks \
10011 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10012 lt_cv_sys_global_symbol_to_c_name_address \
10013 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10014 old_postinstall_cmds old_postuninstall_cmds \
10015 compiler \
10016 CC \
10017 LD \
10018 lt_prog_compiler_wl \
10019 lt_prog_compiler_pic \
10020 lt_prog_compiler_static \
10021 lt_prog_compiler_no_builtin_flag \
10022 export_dynamic_flag_spec \
10023 thread_safe_flag_spec \
10024 whole_archive_flag_spec \
10025 enable_shared_with_static_runtimes \
10026 old_archive_cmds \
10027 old_archive_from_new_cmds \
10028 predep_objects \
10029 postdep_objects \
10030 predeps \
10031 postdeps \
10032 compiler_lib_search_path \
10033 archive_cmds \
10034 archive_expsym_cmds \
10035 postinstall_cmds \
10036 postuninstall_cmds \
10037 old_archive_from_expsyms_cmds \
10038 allow_undefined_flag \
10039 no_undefined_flag \
10040 export_symbols_cmds \
10041 hardcode_libdir_flag_spec \
10042 hardcode_libdir_flag_spec_ld \
10043 hardcode_libdir_separator \
10044 hardcode_automatic \
10045 module_cmds \
10046 module_expsym_cmds \
10047 lt_cv_prog_compiler_c_o \
10048 exclude_expsyms \
10049 include_expsyms; do
10050
10051 case $var in
10052 old_archive_cmds | \
10053 old_archive_from_new_cmds | \
10054 archive_cmds | \
10055 archive_expsym_cmds | \
10056 module_cmds | \
10057 module_expsym_cmds | \
10058 old_archive_from_expsyms_cmds | \
10059 export_symbols_cmds | \
10060 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10061 postinstall_cmds | postuninstall_cmds | \
10062 old_postinstall_cmds | old_postuninstall_cmds | \
10063 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10064 # Double-quote double-evaled strings.
10065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10066 ;;
10067 *)
10068 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10069 ;;
10070 esac
10071 done
10072
10073 case $lt_echo in
10074 *'\$0 --fallback-echo"')
10075 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10076 ;;
10077 esac
10078
10079 cfgfile="${ofile}T"
10080 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10081 $rm -f "$cfgfile"
10082 { echo "$as_me:$LINENO: creating $ofile" >&5
10083 echo "$as_me: creating $ofile" >&6;}
10084
10085 cat <<__EOF__ >> "$cfgfile"
10086 #! $SHELL
10087
10088 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10089 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10090 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10091 #
10092 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10093 # Free Software Foundation, Inc.
10094 #
10095 # This file is part of GNU Libtool:
10096 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10097 #
10098 # This program is free software; you can redistribute it and/or modify
10099 # it under the terms of the GNU General Public License as published by
10100 # the Free Software Foundation; either version 2 of the License, or
10101 # (at your option) any later version.
10102 #
10103 # This program is distributed in the hope that it will be useful, but
10104 # WITHOUT ANY WARRANTY; without even the implied warranty of
10105 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10106 # General Public License for more details.
10107 #
10108 # You should have received a copy of the GNU General Public License
10109 # along with this program; if not, write to the Free Software
10110 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10111 #
10112 # As a special exception to the GNU General Public License, if you
10113 # distribute this file as part of a program that contains a
10114 # configuration script generated by Autoconf, you may include it under
10115 # the same distribution terms that you use for the rest of that program.
10116
10117 # A sed program that does not truncate output.
10118 SED=$lt_SED
10119
10120 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10121 Xsed="$SED -e 1s/^X//"
10122
10123 # The HP-UX ksh and POSIX shell print the target directory to stdout
10124 # if CDPATH is set.
10125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10126
10127 # The names of the tagged configurations supported by this script.
10128 available_tags=
10129
10130 # ### BEGIN LIBTOOL CONFIG
10131
10132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10133
10134 # Shell to use when invoking shell scripts.
10135 SHELL=$lt_SHELL
10136
10137 # Whether or not to build shared libraries.
10138 build_libtool_libs=$enable_shared
10139
10140 # Whether or not to build static libraries.
10141 build_old_libs=$enable_static
10142
10143 # Whether or not to add -lc for building shared libraries.
10144 build_libtool_need_lc=$archive_cmds_need_lc
10145
10146 # Whether or not to disallow shared libs when runtime libs are static
10147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10148
10149 # Whether or not to optimize for fast installation.
10150 fast_install=$enable_fast_install
10151
10152 # The host system.
10153 host_alias=$host_alias
10154 host=$host
10155 host_os=$host_os
10156
10157 # The build system.
10158 build_alias=$build_alias
10159 build=$build
10160 build_os=$build_os
10161
10162 # An echo program that does not interpret backslashes.
10163 echo=$lt_echo
10164
10165 # The archiver.
10166 AR=$lt_AR
10167 AR_FLAGS=$lt_AR_FLAGS
10168
10169 # A C compiler.
10170 LTCC=$lt_LTCC
10171
10172 # LTCC compiler flags.
10173 LTCFLAGS=$lt_LTCFLAGS
10174
10175 # A language-specific compiler.
10176 CC=$lt_compiler
10177
10178 # Is the compiler the GNU C compiler?
10179 with_gcc=$GCC
10180
10181 # An ERE matcher.
10182 EGREP=$lt_EGREP
10183
10184 # The linker used to build libraries.
10185 LD=$lt_LD
10186
10187 # Whether we need hard or soft links.
10188 LN_S=$lt_LN_S
10189
10190 # A BSD-compatible nm program.
10191 NM=$lt_NM
10192
10193 # A symbol stripping program
10194 STRIP=$lt_STRIP
10195
10196 # Used to examine libraries when file_magic_cmd begins "file"
10197 MAGIC_CMD=$MAGIC_CMD
10198
10199 # Used on cygwin: DLL creation program.
10200 DLLTOOL="$DLLTOOL"
10201
10202 # Used on cygwin: object dumper.
10203 OBJDUMP="$OBJDUMP"
10204
10205 # Used on cygwin: assembler.
10206 AS="$AS"
10207
10208 # The name of the directory that contains temporary libtool files.
10209 objdir=$objdir
10210
10211 # How to create reloadable object files.
10212 reload_flag=$lt_reload_flag
10213 reload_cmds=$lt_reload_cmds
10214
10215 # How to pass a linker flag through the compiler.
10216 wl=$lt_lt_prog_compiler_wl
10217
10218 # Object file suffix (normally "o").
10219 objext="$ac_objext"
10220
10221 # Old archive suffix (normally "a").
10222 libext="$libext"
10223
10224 # Shared library suffix (normally ".so").
10225 shrext_cmds='$shrext_cmds'
10226
10227 # Executable file suffix (normally "").
10228 exeext="$exeext"
10229
10230 # Additional compiler flags for building library objects.
10231 pic_flag=$lt_lt_prog_compiler_pic
10232 pic_mode=$pic_mode
10233
10234 # What is the maximum length of a command?
10235 max_cmd_len=$lt_cv_sys_max_cmd_len
10236
10237 # Does compiler simultaneously support -c and -o options?
10238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10239
10240 # Must we lock files when doing compilation?
10241 need_locks=$lt_need_locks
10242
10243 # Do we need the lib prefix for modules?
10244 need_lib_prefix=$need_lib_prefix
10245
10246 # Do we need a version for libraries?
10247 need_version=$need_version
10248
10249 # Whether dlopen is supported.
10250 dlopen_support=$enable_dlopen
10251
10252 # Whether dlopen of programs is supported.
10253 dlopen_self=$enable_dlopen_self
10254
10255 # Whether dlopen of statically linked programs is supported.
10256 dlopen_self_static=$enable_dlopen_self_static
10257
10258 # Compiler flag to prevent dynamic linking.
10259 link_static_flag=$lt_lt_prog_compiler_static
10260
10261 # Compiler flag to turn off builtin functions.
10262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10263
10264 # Compiler flag to allow reflexive dlopens.
10265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10266
10267 # Compiler flag to generate shared objects directly from archives.
10268 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10269
10270 # Compiler flag to generate thread-safe objects.
10271 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10272
10273 # Library versioning type.
10274 version_type=$version_type
10275
10276 # Format of library name prefix.
10277 libname_spec=$lt_libname_spec
10278
10279 # List of archive names. First name is the real one, the rest are links.
10280 # The last name is the one that the linker finds with -lNAME.
10281 library_names_spec=$lt_library_names_spec
10282
10283 # The coded name of the library, if different from the real name.
10284 soname_spec=$lt_soname_spec
10285
10286 # Commands used to build and install an old-style archive.
10287 RANLIB=$lt_RANLIB
10288 old_archive_cmds=$lt_old_archive_cmds
10289 old_postinstall_cmds=$lt_old_postinstall_cmds
10290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10291
10292 # Create an old-style archive from a shared archive.
10293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10294
10295 # Create a temporary old-style archive to link instead of a shared archive.
10296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10297
10298 # Commands used to build and install a shared archive.
10299 archive_cmds=$lt_archive_cmds
10300 archive_expsym_cmds=$lt_archive_expsym_cmds
10301 postinstall_cmds=$lt_postinstall_cmds
10302 postuninstall_cmds=$lt_postuninstall_cmds
10303
10304 # Commands used to build a loadable module (assumed same as above if empty)
10305 module_cmds=$lt_module_cmds
10306 module_expsym_cmds=$lt_module_expsym_cmds
10307
10308 # Commands to strip libraries.
10309 old_striplib=$lt_old_striplib
10310 striplib=$lt_striplib
10311
10312 # Dependencies to place before the objects being linked to create a
10313 # shared library.
10314 predep_objects=$lt_predep_objects
10315
10316 # Dependencies to place after the objects being linked to create a
10317 # shared library.
10318 postdep_objects=$lt_postdep_objects
10319
10320 # Dependencies to place before the objects being linked to create a
10321 # shared library.
10322 predeps=$lt_predeps
10323
10324 # Dependencies to place after the objects being linked to create a
10325 # shared library.
10326 postdeps=$lt_postdeps
10327
10328 # The library search path used internally by the compiler when linking
10329 # a shared library.
10330 compiler_lib_search_path=$lt_compiler_lib_search_path
10331
10332 # Method to check whether dependent libraries are shared objects.
10333 deplibs_check_method=$lt_deplibs_check_method
10334
10335 # Command to use when deplibs_check_method == file_magic.
10336 file_magic_cmd=$lt_file_magic_cmd
10337
10338 # Flag that allows shared libraries with undefined symbols to be built.
10339 allow_undefined_flag=$lt_allow_undefined_flag
10340
10341 # Flag that forces no undefined symbols.
10342 no_undefined_flag=$lt_no_undefined_flag
10343
10344 # Commands used to finish a libtool library installation in a directory.
10345 finish_cmds=$lt_finish_cmds
10346
10347 # Same as above, but a single script fragment to be evaled but not shown.
10348 finish_eval=$lt_finish_eval
10349
10350 # Take the output of nm and produce a listing of raw symbols and C names.
10351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10352
10353 # Transform the output of nm in a proper C declaration
10354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10355
10356 # Transform the output of nm in a C name address pair
10357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10358
10359 # This is the shared library runtime path variable.
10360 runpath_var=$runpath_var
10361
10362 # This is the shared library path variable.
10363 shlibpath_var=$shlibpath_var
10364
10365 # Is shlibpath searched before the hard-coded library search path?
10366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10367
10368 # How to hardcode a shared library path into an executable.
10369 hardcode_action=$hardcode_action
10370
10371 # Whether we should hardcode library paths into libraries.
10372 hardcode_into_libs=$hardcode_into_libs
10373
10374 # Flag to hardcode \$libdir into a binary during linking.
10375 # This must work even if \$libdir does not exist.
10376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10377
10378 # If ld is used when linking, flag to hardcode \$libdir into
10379 # a binary during linking. This must work even if \$libdir does
10380 # not exist.
10381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10382
10383 # Whether we need a single -rpath flag with a separated argument.
10384 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10385
10386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10387 # resulting binary.
10388 hardcode_direct=$hardcode_direct
10389
10390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10391 # resulting binary.
10392 hardcode_minus_L=$hardcode_minus_L
10393
10394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10395 # the resulting binary.
10396 hardcode_shlibpath_var=$hardcode_shlibpath_var
10397
10398 # Set to yes if building a shared library automatically hardcodes DIR into the library
10399 # and all subsequent libraries and executables linked against it.
10400 hardcode_automatic=$hardcode_automatic
10401
10402 # Variables whose values should be saved in libtool wrapper scripts and
10403 # restored at relink time.
10404 variables_saved_for_relink="$variables_saved_for_relink"
10405
10406 # Whether libtool must link a program against all its dependency libraries.
10407 link_all_deplibs=$link_all_deplibs
10408
10409 # Compile-time system search path for libraries
10410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10411
10412 # Run-time system search path for libraries
10413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10414
10415 # Fix the shell variable \$srcfile for the compiler.
10416 fix_srcfile_path="$fix_srcfile_path"
10417
10418 # Set to yes if exported symbols are required.
10419 always_export_symbols=$always_export_symbols
10420
10421 # The commands to list exported symbols.
10422 export_symbols_cmds=$lt_export_symbols_cmds
10423
10424 # The commands to extract the exported symbol list from a shared archive.
10425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10426
10427 # Symbols that should not be listed in the preloaded symbols.
10428 exclude_expsyms=$lt_exclude_expsyms
10429
10430 # Symbols that must always be exported.
10431 include_expsyms=$lt_include_expsyms
10432
10433 # ### END LIBTOOL CONFIG
10434
10435 __EOF__
10436
10437
10438 case $host_os in
10439 aix3*)
10440 cat <<\EOF >> "$cfgfile"
10441
10442 # AIX sometimes has problems with the GCC collect2 program. For some
10443 # reason, if we set the COLLECT_NAMES environment variable, the problems
10444 # vanish in a puff of smoke.
10445 if test "X${COLLECT_NAMES+set}" != Xset; then
10446 COLLECT_NAMES=
10447 export COLLECT_NAMES
10448 fi
10449 EOF
10450 ;;
10451 esac
10452
10453 # We use sed instead of cat because bash on DJGPP gets confused if
10454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10455 # text mode, it properly converts lines to CR/LF. This bash problem
10456 # is reportedly fixed, but why not run on old versions too?
10457 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10458
10459 mv -f "$cfgfile" "$ofile" || \
10460 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10461 chmod +x "$ofile"
10462
10463 else
10464 # If there is no Makefile yet, we rely on a make rule to execute
10465 # `config.status --recheck' to rerun these tests and create the
10466 # libtool script then.
10467 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10468 if test -f "$ltmain_in"; then
10469 test -f Makefile && make "$ltmain"
10470 fi
10471 fi
10472
10473
10474 ac_ext=c
10475 ac_cpp='$CPP $CPPFLAGS'
10476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10479
10480 CC="$lt_save_CC"
10481
10482
10483 # Check whether --with-tags was given.
10484 if test "${with_tags+set}" = set; then
10485 withval=$with_tags; tagnames="$withval"
10486 fi
10487
10488
10489 if test -f "$ltmain" && test -n "$tagnames"; then
10490 if test ! -f "${ofile}"; then
10491 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10492 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10493 fi
10494
10495 if test -z "$LTCC"; then
10496 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10497 if test -z "$LTCC"; then
10498 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10499 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10500 else
10501 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10502 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10503 fi
10504 fi
10505 if test -z "$LTCFLAGS"; then
10506 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10507 fi
10508
10509 # Extract list of available tagged configurations in $ofile.
10510 # Note that this assumes the entire list is on one line.
10511 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10512
10513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10514 for tagname in $tagnames; do
10515 IFS="$lt_save_ifs"
10516 # Check whether tagname contains only valid characters
10517 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10518 "") ;;
10519 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10521 { (exit 1); exit 1; }; }
10522 ;;
10523 esac
10524
10525 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10526 then
10527 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10529 { (exit 1); exit 1; }; }
10530 fi
10531
10532 # Update the list of available tags.
10533 if test -n "$tagname"; then
10534 echo appending configuration tag \"$tagname\" to $ofile
10535
10536 case $tagname in
10537 CXX)
10538 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10540 (test "X$CXX" != "Xg++"))) ; then
10541 ac_ext=cpp
10542 ac_cpp='$CXXCPP $CPPFLAGS'
10543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10546
10547
10548
10549
10550 archive_cmds_need_lc_CXX=no
10551 allow_undefined_flag_CXX=
10552 always_export_symbols_CXX=no
10553 archive_expsym_cmds_CXX=
10554 export_dynamic_flag_spec_CXX=
10555 hardcode_direct_CXX=no
10556 hardcode_libdir_flag_spec_CXX=
10557 hardcode_libdir_flag_spec_ld_CXX=
10558 hardcode_libdir_separator_CXX=
10559 hardcode_minus_L_CXX=no
10560 hardcode_shlibpath_var_CXX=unsupported
10561 hardcode_automatic_CXX=no
10562 module_cmds_CXX=
10563 module_expsym_cmds_CXX=
10564 link_all_deplibs_CXX=unknown
10565 old_archive_cmds_CXX=$old_archive_cmds
10566 no_undefined_flag_CXX=
10567 whole_archive_flag_spec_CXX=
10568 enable_shared_with_static_runtimes_CXX=no
10569
10570 # Dependencies to place before and after the object being linked:
10571 predep_objects_CXX=
10572 postdep_objects_CXX=
10573 predeps_CXX=
10574 postdeps_CXX=
10575 compiler_lib_search_path_CXX=
10576
10577 # Source file extension for C++ test sources.
10578 ac_ext=cpp
10579
10580 # Object file extension for compiled C++ test sources.
10581 objext=o
10582 objext_CXX=$objext
10583
10584 # Code to be used in simple compile tests
10585 lt_simple_compile_test_code="int some_variable = 0;\n"
10586
10587 # Code to be used in simple link tests
10588 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10589
10590 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10591
10592 # If no C compiler was specified, use CC.
10593 LTCC=${LTCC-"$CC"}
10594
10595 # If no C compiler flags were specified, use CFLAGS.
10596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10597
10598 # Allow CC to be a program name with arguments.
10599 compiler=$CC
10600
10601
10602 # save warnings/boilerplate of simple test code
10603 ac_outfile=conftest.$ac_objext
10604 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10605 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10606 _lt_compiler_boilerplate=`cat conftest.err`
10607 $rm conftest*
10608
10609 ac_outfile=conftest.$ac_objext
10610 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10611 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10612 _lt_linker_boilerplate=`cat conftest.err`
10613 $rm conftest*
10614
10615
10616 # Allow CC to be a program name with arguments.
10617 lt_save_CC=$CC
10618 lt_save_LD=$LD
10619 lt_save_GCC=$GCC
10620 GCC=$GXX
10621 lt_save_with_gnu_ld=$with_gnu_ld
10622 lt_save_path_LD=$lt_cv_path_LD
10623 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10624 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10625 else
10626 $as_unset lt_cv_prog_gnu_ld
10627 fi
10628 if test -n "${lt_cv_path_LDCXX+set}"; then
10629 lt_cv_path_LD=$lt_cv_path_LDCXX
10630 else
10631 $as_unset lt_cv_path_LD
10632 fi
10633 test -z "${LDCXX+set}" || LD=$LDCXX
10634 CC=${CXX-"c++"}
10635 compiler=$CC
10636 compiler_CXX=$CC
10637 for cc_temp in $compiler""; do
10638 case $cc_temp in
10639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10641 \-*) ;;
10642 *) break;;
10643 esac
10644 done
10645 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10646
10647
10648 # We don't want -fno-exception wen compiling C++ code, so set the
10649 # no_builtin_flag separately
10650 if test "$GXX" = yes; then
10651 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10652 else
10653 lt_prog_compiler_no_builtin_flag_CXX=
10654 fi
10655
10656 if test "$GXX" = yes; then
10657 # Set up default GNU C++ configuration
10658
10659
10660 # Check whether --with-gnu-ld was given.
10661 if test "${with_gnu_ld+set}" = set; then
10662 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10663 else
10664 with_gnu_ld=no
10665 fi
10666
10667 ac_prog=ld
10668 if test "$GCC" = yes; then
10669 # Check if gcc -print-prog-name=ld gives a path.
10670 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10671 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10672 case $host in
10673 *-*-mingw*)
10674 # gcc leaves a trailing carriage return which upsets mingw
10675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10676 *)
10677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10678 esac
10679 case $ac_prog in
10680 # Accept absolute paths.
10681 [\\/]* | ?:[\\/]*)
10682 re_direlt='/[^/][^/]*/\.\./'
10683 # Canonicalize the pathname of ld
10684 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10685 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10686 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10687 done
10688 test -z "$LD" && LD="$ac_prog"
10689 ;;
10690 "")
10691 # If it fails, then pretend we aren't using GCC.
10692 ac_prog=ld
10693 ;;
10694 *)
10695 # If it is relative, then search for the first ld in PATH.
10696 with_gnu_ld=unknown
10697 ;;
10698 esac
10699 elif test "$with_gnu_ld" = yes; then
10700 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10701 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10702 else
10703 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10704 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10705 fi
10706 if test "${lt_cv_path_LD+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709 if test -z "$LD"; then
10710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10711 for ac_dir in $PATH; do
10712 IFS="$lt_save_ifs"
10713 test -z "$ac_dir" && ac_dir=.
10714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10715 lt_cv_path_LD="$ac_dir/$ac_prog"
10716 # Check to see if the program is GNU ld. I'd rather use --version,
10717 # but apparently some variants of GNU ld only accept -v.
10718 # Break only if it was the GNU/non-GNU ld that we prefer.
10719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10720 *GNU* | *'with BFD'*)
10721 test "$with_gnu_ld" != no && break
10722 ;;
10723 *)
10724 test "$with_gnu_ld" != yes && break
10725 ;;
10726 esac
10727 fi
10728 done
10729 IFS="$lt_save_ifs"
10730 else
10731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10732 fi
10733 fi
10734
10735 LD="$lt_cv_path_LD"
10736 if test -n "$LD"; then
10737 { echo "$as_me:$LINENO: result: $LD" >&5
10738 echo "${ECHO_T}$LD" >&6; }
10739 else
10740 { echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6; }
10742 fi
10743 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10744 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10745 { (exit 1); exit 1; }; }
10746 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10747 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10748 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10752 case `$LD -v 2>&1 </dev/null` in
10753 *GNU* | *'with BFD'*)
10754 lt_cv_prog_gnu_ld=yes
10755 ;;
10756 *)
10757 lt_cv_prog_gnu_ld=no
10758 ;;
10759 esac
10760 fi
10761 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10762 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10763 with_gnu_ld=$lt_cv_prog_gnu_ld
10764
10765
10766
10767 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10768 # archiving commands below assume that GNU ld is being used.
10769 if test "$with_gnu_ld" = yes; then
10770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10771 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'
10772
10773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10775
10776 # If archive_cmds runs LD, not CC, wlarc should be empty
10777 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10778 # investigate it a little bit more. (MM)
10779 wlarc='${wl}'
10780
10781 # ancient GNU ld didn't support --whole-archive et. al.
10782 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10783 grep 'no-whole-archive' > /dev/null; then
10784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10785 else
10786 whole_archive_flag_spec_CXX=
10787 fi
10788 else
10789 with_gnu_ld=no
10790 wlarc=
10791
10792 # A generic and very simple default shared library creation
10793 # command for GNU C++ for the case where it uses the native
10794 # linker, instead of GNU ld. If possible, this setting should
10795 # overridden to take advantage of the native linker features on
10796 # the platform it is being used on.
10797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10798 fi
10799
10800 # Commands to make compiler produce verbose output that lists
10801 # what "hidden" libraries, object files and flags are used when
10802 # linking a shared library.
10803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10804
10805 else
10806 GXX=no
10807 with_gnu_ld=no
10808 wlarc=
10809 fi
10810
10811 # PORTME: fill in a description of your system's C++ link characteristics
10812 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10814 ld_shlibs_CXX=yes
10815 case $host_os in
10816 aix3*)
10817 # FIXME: insert proper C++ library support
10818 ld_shlibs_CXX=no
10819 ;;
10820 aix4* | aix5*)
10821 if test "$host_cpu" = ia64; then
10822 # On IA64, the linker does run time linking by default, so we don't
10823 # have to do anything special.
10824 aix_use_runtimelinking=no
10825 exp_sym_flag='-Bexport'
10826 no_entry_flag=""
10827 else
10828 aix_use_runtimelinking=no
10829
10830 # Test if we are trying to use run time linking or normal
10831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10832 # need to do runtime linking.
10833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10834 for ld_flag in $LDFLAGS; do
10835 case $ld_flag in
10836 *-brtl*)
10837 aix_use_runtimelinking=yes
10838 break
10839 ;;
10840 esac
10841 done
10842 ;;
10843 esac
10844
10845 exp_sym_flag='-bexport'
10846 no_entry_flag='-bnoentry'
10847 fi
10848
10849 # When large executables or shared objects are built, AIX ld can
10850 # have problems creating the table of contents. If linking a library
10851 # or program results in "error TOC overflow" add -mminimal-toc to
10852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10854
10855 archive_cmds_CXX=''
10856 hardcode_direct_CXX=yes
10857 hardcode_libdir_separator_CXX=':'
10858 link_all_deplibs_CXX=yes
10859
10860 if test "$GXX" = yes; then
10861 case $host_os in aix4.[012]|aix4.[012].*)
10862 # We only want to do this on AIX 4.2 and lower, the check
10863 # below for broken collect2 doesn't work under 4.3+
10864 collect2name=`${CC} -print-prog-name=collect2`
10865 if test -f "$collect2name" && \
10866 strings "$collect2name" | grep resolve_lib_name >/dev/null
10867 then
10868 # We have reworked collect2
10869 hardcode_direct_CXX=yes
10870 else
10871 # We have old collect2
10872 hardcode_direct_CXX=unsupported
10873 # It fails to find uninstalled libraries when the uninstalled
10874 # path is not listed in the libpath. Setting hardcode_minus_L
10875 # to unsupported forces relinking
10876 hardcode_minus_L_CXX=yes
10877 hardcode_libdir_flag_spec_CXX='-L$libdir'
10878 hardcode_libdir_separator_CXX=
10879 fi
10880 ;;
10881 esac
10882 shared_flag='-shared'
10883 if test "$aix_use_runtimelinking" = yes; then
10884 shared_flag="$shared_flag "'${wl}-G'
10885 fi
10886 else
10887 # not using gcc
10888 if test "$host_cpu" = ia64; then
10889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10890 # chokes on -Wl,-G. The following line is correct:
10891 shared_flag='-G'
10892 else
10893 if test "$aix_use_runtimelinking" = yes; then
10894 shared_flag='${wl}-G'
10895 else
10896 shared_flag='${wl}-bM:SRE'
10897 fi
10898 fi
10899 fi
10900
10901 # It seems that -bexpall does not export symbols beginning with
10902 # underscore (_), so it is better to generate a list of symbols to export.
10903 always_export_symbols_CXX=yes
10904 if test "$aix_use_runtimelinking" = yes; then
10905 # Warning - without using the other runtime loading flags (-brtl),
10906 # -berok will link without error, but may produce a broken library.
10907 allow_undefined_flag_CXX='-berok'
10908 # Determine the default libpath from the value encoded in an empty executable.
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915
10916 int
10917 main ()
10918 {
10919
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_link") 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_cxx_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest$ac_exeext &&
10941 $as_test_x conftest$ac_exeext; then
10942
10943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10944 }'`
10945 # Check for a 64-bit object if we didn't find anything.
10946 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10947 }'`; fi
10948 else
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952
10953 fi
10954
10955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956 conftest$ac_exeext conftest.$ac_ext
10957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10958
10959 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10960
10961 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"
10962 else
10963 if test "$host_cpu" = ia64; then
10964 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10965 allow_undefined_flag_CXX="-z nodefs"
10966 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"
10967 else
10968 # Determine the default libpath from the value encoded in an empty executable.
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975
10976 int
10977 main ()
10978 {
10979
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_link") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_cxx_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest$ac_exeext &&
11001 $as_test_x conftest$ac_exeext; then
11002
11003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11004 }'`
11005 # Check for a 64-bit object if we didn't find anything.
11006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11007 }'`; fi
11008 else
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016 conftest$ac_exeext conftest.$ac_ext
11017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11018
11019 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11020 # Warning - without using the other run time loading flags,
11021 # -berok will link without error, but may produce a broken library.
11022 no_undefined_flag_CXX=' ${wl}-bernotok'
11023 allow_undefined_flag_CXX=' ${wl}-berok'
11024 # Exported symbols can be pulled into shared objects from archives
11025 whole_archive_flag_spec_CXX='$convenience'
11026 archive_cmds_need_lc_CXX=yes
11027 # This is similar to how AIX traditionally builds its shared libraries.
11028 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'
11029 fi
11030 fi
11031 ;;
11032
11033 beos*)
11034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11035 allow_undefined_flag_CXX=unsupported
11036 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11037 # support --undefined. This deserves some investigation. FIXME
11038 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11039 else
11040 ld_shlibs_CXX=no
11041 fi
11042 ;;
11043
11044 chorus*)
11045 case $cc_basename in
11046 *)
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11049 ;;
11050 esac
11051 ;;
11052
11053 cygwin* | mingw* | pw32*)
11054 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11055 # as there is no search path for DLLs.
11056 hardcode_libdir_flag_spec_CXX='-L$libdir'
11057 allow_undefined_flag_CXX=unsupported
11058 always_export_symbols_CXX=no
11059 enable_shared_with_static_runtimes_CXX=yes
11060
11061 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11062 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'
11063 # If the export-symbols file already is a .def file (1st line
11064 # is EXPORTS), use it as is; otherwise, prepend...
11065 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11066 cp $export_symbols $output_objdir/$soname.def;
11067 else
11068 echo EXPORTS > $output_objdir/$soname.def;
11069 cat $export_symbols >> $output_objdir/$soname.def;
11070 fi~
11071 $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'
11072 else
11073 ld_shlibs_CXX=no
11074 fi
11075 ;;
11076 darwin* | rhapsody*)
11077 case $host_os in
11078 rhapsody* | darwin1.[012])
11079 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11080 ;;
11081 *) # Darwin 1.3 on
11082 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11083 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11084 else
11085 case ${MACOSX_DEPLOYMENT_TARGET} in
11086 10.[012])
11087 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11088 ;;
11089 10.*)
11090 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11091 ;;
11092 esac
11093 fi
11094 ;;
11095 esac
11096 archive_cmds_need_lc_CXX=no
11097 hardcode_direct_CXX=no
11098 hardcode_automatic_CXX=yes
11099 hardcode_shlibpath_var_CXX=unsupported
11100 whole_archive_flag_spec_CXX=''
11101 link_all_deplibs_CXX=yes
11102
11103 if test "$GXX" = yes ; then
11104 lt_int_apple_cc_single_mod=no
11105 output_verbose_link_cmd='echo'
11106 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11107 lt_int_apple_cc_single_mod=yes
11108 fi
11109 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11110 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11111 else
11112 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'
11113 fi
11114 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11116 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11117 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}'
11118 else
11119 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}'
11120 fi
11121 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}'
11122 else
11123 case $cc_basename in
11124 xlc*)
11125 output_verbose_link_cmd='echo'
11126 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11127 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11129 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11130 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}'
11131 ;;
11132 *)
11133 ld_shlibs_CXX=no
11134 ;;
11135 esac
11136 fi
11137 ;;
11138
11139 dgux*)
11140 case $cc_basename in
11141 ec++*)
11142 # FIXME: insert proper C++ library support
11143 ld_shlibs_CXX=no
11144 ;;
11145 ghcx*)
11146 # Green Hills C++ Compiler
11147 # FIXME: insert proper C++ library support
11148 ld_shlibs_CXX=no
11149 ;;
11150 *)
11151 # FIXME: insert proper C++ library support
11152 ld_shlibs_CXX=no
11153 ;;
11154 esac
11155 ;;
11156 freebsd[12]*)
11157 # C++ shared libraries reported to be fairly broken before switch to ELF
11158 ld_shlibs_CXX=no
11159 ;;
11160 freebsd-elf*)
11161 archive_cmds_need_lc_CXX=no
11162 ;;
11163 freebsd* | dragonfly*)
11164 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11165 # conventions
11166 ld_shlibs_CXX=yes
11167 ;;
11168 gnu*)
11169 ;;
11170 hpux9*)
11171 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11172 hardcode_libdir_separator_CXX=:
11173 export_dynamic_flag_spec_CXX='${wl}-E'
11174 hardcode_direct_CXX=yes
11175 hardcode_minus_L_CXX=yes # Not in the search PATH,
11176 # but as the default
11177 # location of the library.
11178
11179 case $cc_basename in
11180 CC*)
11181 # FIXME: insert proper C++ library support
11182 ld_shlibs_CXX=no
11183 ;;
11184 aCC*)
11185 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'
11186 # Commands to make compiler produce verbose output that lists
11187 # what "hidden" libraries, object files and flags are used when
11188 # linking a shared library.
11189 #
11190 # There doesn't appear to be a way to prevent this compiler from
11191 # explicitly linking system object files so we need to strip them
11192 # from the output so that they don't get included in the library
11193 # dependencies.
11194 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'
11195 ;;
11196 *)
11197 if test "$GXX" = yes; then
11198 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'
11199 else
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11202 fi
11203 ;;
11204 esac
11205 ;;
11206 hpux10*|hpux11*)
11207 if test $with_gnu_ld = no; then
11208 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11209 hardcode_libdir_separator_CXX=:
11210
11211 case $host_cpu in
11212 hppa*64*|ia64*)
11213 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11214 ;;
11215 *)
11216 export_dynamic_flag_spec_CXX='${wl}-E'
11217 ;;
11218 esac
11219 fi
11220 case $host_cpu in
11221 hppa*64*|ia64*)
11222 hardcode_direct_CXX=no
11223 hardcode_shlibpath_var_CXX=no
11224 ;;
11225 *)
11226 hardcode_direct_CXX=yes
11227 hardcode_minus_L_CXX=yes # Not in the search PATH,
11228 # but as the default
11229 # location of the library.
11230 ;;
11231 esac
11232
11233 case $cc_basename in
11234 CC*)
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11237 ;;
11238 aCC*)
11239 case $host_cpu in
11240 hppa*64*)
11241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11242 ;;
11243 ia64*)
11244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11245 ;;
11246 *)
11247 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11248 ;;
11249 esac
11250 # Commands to make compiler produce verbose output that lists
11251 # what "hidden" libraries, object files and flags are used when
11252 # linking a shared library.
11253 #
11254 # There doesn't appear to be a way to prevent this compiler from
11255 # explicitly linking system object files so we need to strip them
11256 # from the output so that they don't get included in the library
11257 # dependencies.
11258 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'
11259 ;;
11260 *)
11261 if test "$GXX" = yes; then
11262 if test $with_gnu_ld = no; then
11263 case $host_cpu in
11264 hppa*64*)
11265 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11266 ;;
11267 ia64*)
11268 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11269 ;;
11270 *)
11271 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'
11272 ;;
11273 esac
11274 fi
11275 else
11276 # FIXME: insert proper C++ library support
11277 ld_shlibs_CXX=no
11278 fi
11279 ;;
11280 esac
11281 ;;
11282 interix3*)
11283 hardcode_direct_CXX=no
11284 hardcode_shlibpath_var_CXX=no
11285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11286 export_dynamic_flag_spec_CXX='${wl}-E'
11287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11288 # Instead, shared libraries are loaded at an image base (0x10000000 by
11289 # default) and relocated if they conflict, which is a slow very memory
11290 # consuming and fragmenting process. To avoid this, we pick a random,
11291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11293 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'
11294 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'
11295 ;;
11296 irix5* | irix6*)
11297 case $cc_basename in
11298 CC*)
11299 # SGI C++
11300 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'
11301
11302 # Archives containing C++ object files must be created using
11303 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11304 # necessary to make sure instantiated templates are included
11305 # in the archive.
11306 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11307 ;;
11308 *)
11309 if test "$GXX" = yes; then
11310 if test "$with_gnu_ld" = no; then
11311 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'
11312 else
11313 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'
11314 fi
11315 fi
11316 link_all_deplibs_CXX=yes
11317 ;;
11318 esac
11319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11320 hardcode_libdir_separator_CXX=:
11321 ;;
11322 linux* | k*bsd*-gnu)
11323 case $cc_basename in
11324 KCC*)
11325 # Kuck and Associates, Inc. (KAI) C++ Compiler
11326
11327 # KCC will only create a shared library if the output file
11328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11329 # to its proper name (with version) after linking.
11330 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'
11331 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'
11332 # Commands to make compiler produce verbose output that lists
11333 # what "hidden" libraries, object files and flags are used when
11334 # linking a shared library.
11335 #
11336 # There doesn't appear to be a way to prevent this compiler from
11337 # explicitly linking system object files so we need to strip them
11338 # from the output so that they don't get included in the library
11339 # dependencies.
11340 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'
11341
11342 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11344
11345 # Archives containing C++ object files must be created using
11346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11347 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11348 ;;
11349 icpc*)
11350 # Intel C++
11351 with_gnu_ld=yes
11352 # version 8.0 and above of icpc choke on multiply defined symbols
11353 # if we add $predep_objects and $postdep_objects, however 7.1 and
11354 # earlier do not add the objects themselves.
11355 case `$CC -V 2>&1` in
11356 *"Version 7."*)
11357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11358 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'
11359 ;;
11360 *) # Version 8.0 or newer
11361 tmp_idyn=
11362 case $host_cpu in
11363 ia64*) tmp_idyn=' -i_dynamic';;
11364 esac
11365 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11366 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'
11367 ;;
11368 esac
11369 archive_cmds_need_lc_CXX=no
11370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11372 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11373 ;;
11374 pgCC*)
11375 # Portland Group C++ compiler
11376 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11377 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'
11378
11379 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11381 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'
11382 ;;
11383 cxx*)
11384 # Compaq C++
11385 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11386 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'
11387
11388 runpath_var=LD_RUN_PATH
11389 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11390 hardcode_libdir_separator_CXX=:
11391
11392 # Commands to make compiler produce verbose output that lists
11393 # what "hidden" libraries, object files and flags are used when
11394 # linking a shared library.
11395 #
11396 # There doesn't appear to be a way to prevent this compiler from
11397 # explicitly linking system object files so we need to strip them
11398 # from the output so that they don't get included in the library
11399 # dependencies.
11400 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'
11401 ;;
11402 esac
11403 ;;
11404 lynxos*)
11405 # FIXME: insert proper C++ library support
11406 ld_shlibs_CXX=no
11407 ;;
11408 m88k*)
11409 # FIXME: insert proper C++ library support
11410 ld_shlibs_CXX=no
11411 ;;
11412 mvs*)
11413 case $cc_basename in
11414 cxx*)
11415 # FIXME: insert proper C++ library support
11416 ld_shlibs_CXX=no
11417 ;;
11418 *)
11419 # FIXME: insert proper C++ library support
11420 ld_shlibs_CXX=no
11421 ;;
11422 esac
11423 ;;
11424 netbsd* | netbsdelf*-gnu)
11425 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11426 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11427 wlarc=
11428 hardcode_libdir_flag_spec_CXX='-R$libdir'
11429 hardcode_direct_CXX=yes
11430 hardcode_shlibpath_var_CXX=no
11431 fi
11432 # Workaround some broken pre-1.5 toolchains
11433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11434 ;;
11435 openbsd2*)
11436 # C++ shared libraries are fairly broken
11437 ld_shlibs_CXX=no
11438 ;;
11439 openbsd*)
11440 hardcode_direct_CXX=yes
11441 hardcode_shlibpath_var_CXX=no
11442 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11445 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11446 export_dynamic_flag_spec_CXX='${wl}-E'
11447 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11448 fi
11449 output_verbose_link_cmd='echo'
11450 ;;
11451 osf3*)
11452 case $cc_basename in
11453 KCC*)
11454 # Kuck and Associates, Inc. (KAI) C++ Compiler
11455
11456 # KCC will only create a shared library if the output file
11457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11458 # to its proper name (with version) after linking.
11459 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'
11460
11461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11462 hardcode_libdir_separator_CXX=:
11463
11464 # Archives containing C++ object files must be created using
11465 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11466 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11467
11468 ;;
11469 RCC*)
11470 # Rational C++ 2.4.1
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 ;;
11474 cxx*)
11475 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11476 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'
11477
11478 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11479 hardcode_libdir_separator_CXX=:
11480
11481 # Commands to make compiler produce verbose output that lists
11482 # what "hidden" libraries, object files and flags are used when
11483 # linking a shared library.
11484 #
11485 # There doesn't appear to be a way to prevent this compiler from
11486 # explicitly linking system object files so we need to strip them
11487 # from the output so that they don't get included in the library
11488 # dependencies.
11489 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'
11490 ;;
11491 *)
11492 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11494 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'
11495
11496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11497 hardcode_libdir_separator_CXX=:
11498
11499 # Commands to make compiler produce verbose output that lists
11500 # what "hidden" libraries, object files and flags are used when
11501 # linking a shared library.
11502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11503
11504 else
11505 # FIXME: insert proper C++ library support
11506 ld_shlibs_CXX=no
11507 fi
11508 ;;
11509 esac
11510 ;;
11511 osf4* | osf5*)
11512 case $cc_basename in
11513 KCC*)
11514 # Kuck and Associates, Inc. (KAI) C++ Compiler
11515
11516 # KCC will only create a shared library if the output file
11517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11518 # to its proper name (with version) after linking.
11519 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'
11520
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522 hardcode_libdir_separator_CXX=:
11523
11524 # Archives containing C++ object files must be created using
11525 # the KAI C++ compiler.
11526 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11527 ;;
11528 RCC*)
11529 # Rational C++ 2.4.1
11530 # FIXME: insert proper C++ library support
11531 ld_shlibs_CXX=no
11532 ;;
11533 cxx*)
11534 allow_undefined_flag_CXX=' -expect_unresolved \*'
11535 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'
11536 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11537 echo "-hidden">> $lib.exp~
11538 $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~
11539 $rm $lib.exp'
11540
11541 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11542 hardcode_libdir_separator_CXX=:
11543
11544 # Commands to make compiler produce verbose output that lists
11545 # what "hidden" libraries, object files and flags are used when
11546 # linking a shared library.
11547 #
11548 # There doesn't appear to be a way to prevent this compiler from
11549 # explicitly linking system object files so we need to strip them
11550 # from the output so that they don't get included in the library
11551 # dependencies.
11552 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'
11553 ;;
11554 *)
11555 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11556 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11557 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'
11558
11559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11560 hardcode_libdir_separator_CXX=:
11561
11562 # Commands to make compiler produce verbose output that lists
11563 # what "hidden" libraries, object files and flags are used when
11564 # linking a shared library.
11565 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11566
11567 else
11568 # FIXME: insert proper C++ library support
11569 ld_shlibs_CXX=no
11570 fi
11571 ;;
11572 esac
11573 ;;
11574 psos*)
11575 # FIXME: insert proper C++ library support
11576 ld_shlibs_CXX=no
11577 ;;
11578 sunos4*)
11579 case $cc_basename in
11580 CC*)
11581 # Sun C++ 4.x
11582 # FIXME: insert proper C++ library support
11583 ld_shlibs_CXX=no
11584 ;;
11585 lcc*)
11586 # Lucid
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 *)
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 esac
11595 ;;
11596 solaris*)
11597 case $cc_basename in
11598 CC*)
11599 # Sun C++ 4.2, 5.x and Centerline C++
11600 archive_cmds_need_lc_CXX=yes
11601 no_undefined_flag_CXX=' -zdefs'
11602 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11604 $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'
11605
11606 hardcode_libdir_flag_spec_CXX='-R$libdir'
11607 hardcode_shlibpath_var_CXX=no
11608 case $host_os in
11609 solaris2.[0-5] | solaris2.[0-5].*) ;;
11610 *)
11611 # The C++ compiler is used as linker so we must use $wl
11612 # flag to pass the commands to the underlying system
11613 # linker. We must also pass each convience library through
11614 # to the system linker between allextract/defaultextract.
11615 # The C++ compiler will combine linker options so we
11616 # cannot just pass the convience library names through
11617 # without $wl.
11618 # Supported since Solaris 2.6 (maybe 2.5.1?)
11619 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11620 ;;
11621 esac
11622 link_all_deplibs_CXX=yes
11623
11624 output_verbose_link_cmd='echo'
11625
11626 # Archives containing C++ object files must be created using
11627 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11628 # necessary to make sure instantiated templates are included
11629 # in the archive.
11630 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11631 ;;
11632 gcx*)
11633 # Green Hills C++ Compiler
11634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11635
11636 # The C++ compiler must be used to create the archive.
11637 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11638 ;;
11639 *)
11640 # GNU C++ compiler with Solaris linker
11641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11642 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11643 if $CC --version | grep -v '^2\.7' > /dev/null; then
11644 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11645 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11646 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11647
11648 # Commands to make compiler produce verbose output that lists
11649 # what "hidden" libraries, object files and flags are used when
11650 # linking a shared library.
11651 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11652 else
11653 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11654 # platform.
11655 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11656 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11657 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11658
11659 # Commands to make compiler produce verbose output that lists
11660 # what "hidden" libraries, object files and flags are used when
11661 # linking a shared library.
11662 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11663 fi
11664
11665 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11666 fi
11667 ;;
11668 esac
11669 ;;
11670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11671 no_undefined_flag_CXX='${wl}-z,text'
11672 archive_cmds_need_lc_CXX=no
11673 hardcode_shlibpath_var_CXX=no
11674 runpath_var='LD_RUN_PATH'
11675
11676 case $cc_basename in
11677 CC*)
11678 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11679 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11680 ;;
11681 *)
11682 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11683 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11684 ;;
11685 esac
11686 ;;
11687 sysv5* | sco3.2v5* | sco5v6*)
11688 # Note: We can NOT use -z defs as we might desire, because we do not
11689 # link with -lc, and that would cause any symbols used from libc to
11690 # always be unresolved, which means just about no library would
11691 # ever link correctly. If we're not using GNU ld we use -z text
11692 # though, which does catch some bad symbols but isn't as heavy-handed
11693 # as -z defs.
11694 # For security reasons, it is highly recommended that you always
11695 # use absolute paths for naming shared libraries, and exclude the
11696 # DT_RUNPATH tag from executables and libraries. But doing so
11697 # requires that you compile everything twice, which is a pain.
11698 # So that behaviour is only enabled if SCOABSPATH is set to a
11699 # non-empty value in the environment. Most likely only useful for
11700 # creating official distributions of packages.
11701 # This is a hack until libtool officially supports absolute path
11702 # names for shared libraries.
11703 no_undefined_flag_CXX='${wl}-z,text'
11704 allow_undefined_flag_CXX='${wl}-z,nodefs'
11705 archive_cmds_need_lc_CXX=no
11706 hardcode_shlibpath_var_CXX=no
11707 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11708 hardcode_libdir_separator_CXX=':'
11709 link_all_deplibs_CXX=yes
11710 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11711 runpath_var='LD_RUN_PATH'
11712
11713 case $cc_basename in
11714 CC*)
11715 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11716 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11717 ;;
11718 *)
11719 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11720 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11721 ;;
11722 esac
11723 ;;
11724 tandem*)
11725 case $cc_basename in
11726 NCC*)
11727 # NonStop-UX NCC 3.20
11728 # FIXME: insert proper C++ library support
11729 ld_shlibs_CXX=no
11730 ;;
11731 *)
11732 # FIXME: insert proper C++ library support
11733 ld_shlibs_CXX=no
11734 ;;
11735 esac
11736 ;;
11737 vxworks*)
11738 # FIXME: insert proper C++ library support
11739 ld_shlibs_CXX=no
11740 ;;
11741 *)
11742 # FIXME: insert proper C++ library support
11743 ld_shlibs_CXX=no
11744 ;;
11745 esac
11746 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11747 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11748 test "$ld_shlibs_CXX" = no && can_build_shared=no
11749
11750 GCC_CXX="$GXX"
11751 LD_CXX="$LD"
11752
11753
11754 cat > conftest.$ac_ext <<EOF
11755 class Foo
11756 {
11757 public:
11758 Foo (void) { a = 0; }
11759 private:
11760 int a;
11761 };
11762 EOF
11763
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; then
11769 # Parse the compiler output and extract the necessary
11770 # objects, libraries and library flags.
11771
11772 # Sentinel used to keep track of whether or not we are before
11773 # the conftest object file.
11774 pre_test_object_deps_done=no
11775
11776 # The `*' in the case matches for architectures that use `case' in
11777 # $output_verbose_cmd can trigger glob expansion during the loop
11778 # eval without this substitution.
11779 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11780
11781 for p in `eval $output_verbose_link_cmd`; do
11782 case $p in
11783
11784 -L* | -R* | -l*)
11785 # Some compilers place space between "-{L,R}" and the path.
11786 # Remove the space.
11787 if test $p = "-L" \
11788 || test $p = "-R"; then
11789 prev=$p
11790 continue
11791 else
11792 prev=
11793 fi
11794
11795 if test "$pre_test_object_deps_done" = no; then
11796 case $p in
11797 -L* | -R*)
11798 # Internal compiler library paths should come after those
11799 # provided the user. The postdeps already come after the
11800 # user supplied libs so there is no need to process them.
11801 if test -z "$compiler_lib_search_path_CXX"; then
11802 compiler_lib_search_path_CXX="${prev}${p}"
11803 else
11804 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11805 fi
11806 ;;
11807 # The "-l" case would never come before the object being
11808 # linked, so don't bother handling this case.
11809 esac
11810 else
11811 if test -z "$postdeps_CXX"; then
11812 postdeps_CXX="${prev}${p}"
11813 else
11814 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11815 fi
11816 fi
11817 ;;
11818
11819 *.$objext)
11820 # This assumes that the test object file only shows up
11821 # once in the compiler output.
11822 if test "$p" = "conftest.$objext"; then
11823 pre_test_object_deps_done=yes
11824 continue
11825 fi
11826
11827 if test "$pre_test_object_deps_done" = no; then
11828 if test -z "$predep_objects_CXX"; then
11829 predep_objects_CXX="$p"
11830 else
11831 predep_objects_CXX="$predep_objects_CXX $p"
11832 fi
11833 else
11834 if test -z "$postdep_objects_CXX"; then
11835 postdep_objects_CXX="$p"
11836 else
11837 postdep_objects_CXX="$postdep_objects_CXX $p"
11838 fi
11839 fi
11840 ;;
11841
11842 *) ;; # Ignore the rest.
11843
11844 esac
11845 done
11846
11847 # Clean up.
11848 rm -f a.out a.exe
11849 else
11850 echo "libtool.m4: error: problem compiling CXX test program"
11851 fi
11852
11853 $rm -f confest.$objext
11854
11855 # PORTME: override above test on systems where it is broken
11856 case $host_os in
11857 interix3*)
11858 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11859 # hack all around it, let's just trust "g++" to DTRT.
11860 predep_objects_CXX=
11861 postdep_objects_CXX=
11862 postdeps_CXX=
11863 ;;
11864
11865 solaris*)
11866 case $cc_basename in
11867 CC*)
11868 # Adding this requires a known-good setup of shared libraries for
11869 # Sun compiler versions before 5.6, else PIC objects from an old
11870 # archive will be linked into the output, leading to subtle bugs.
11871 postdeps_CXX='-lCstd -lCrun'
11872 ;;
11873 esac
11874 ;;
11875 esac
11876
11877
11878 case " $postdeps_CXX " in
11879 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11880 esac
11881
11882 lt_prog_compiler_wl_CXX=
11883 lt_prog_compiler_pic_CXX=
11884 lt_prog_compiler_static_CXX=
11885
11886 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11887 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11888
11889 # C++ specific cases for pic, static, wl, etc.
11890 if test "$GXX" = yes; then
11891 lt_prog_compiler_wl_CXX='-Wl,'
11892 lt_prog_compiler_static_CXX='-static'
11893
11894 case $host_os in
11895 aix*)
11896 # All AIX code is PIC.
11897 if test "$host_cpu" = ia64; then
11898 # AIX 5 now supports IA64 processor
11899 lt_prog_compiler_static_CXX='-Bstatic'
11900 fi
11901 ;;
11902 amigaos*)
11903 # FIXME: we need at least 68020 code to build shared libraries, but
11904 # adding the `-m68020' flag to GCC prevents building anything better,
11905 # like `-m68040'.
11906 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11907 ;;
11908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11909 # PIC is the default for these OSes.
11910 ;;
11911 mingw* | os2* | pw32*)
11912 # This hack is so that the source file can tell whether it is being
11913 # built for inclusion in a dll (and should export symbols for example).
11914 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11915 ;;
11916 darwin* | rhapsody*)
11917 # PIC is the default on this platform
11918 # Common symbols not allowed in MH_DYLIB files
11919 lt_prog_compiler_pic_CXX='-fno-common'
11920 ;;
11921 *djgpp*)
11922 # DJGPP does not support shared libraries at all
11923 lt_prog_compiler_pic_CXX=
11924 ;;
11925 interix3*)
11926 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11927 # Instead, we relocate shared libraries at runtime.
11928 ;;
11929 sysv4*MP*)
11930 if test -d /usr/nec; then
11931 lt_prog_compiler_pic_CXX=-Kconform_pic
11932 fi
11933 ;;
11934 hpux*)
11935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11936 # not for PA HP-UX.
11937 case $host_cpu in
11938 hppa*64*|ia64*)
11939 ;;
11940 *)
11941 lt_prog_compiler_pic_CXX='-fPIC'
11942 ;;
11943 esac
11944 ;;
11945 *)
11946 lt_prog_compiler_pic_CXX='-fPIC'
11947 ;;
11948 esac
11949 else
11950 case $host_os in
11951 aix4* | aix5*)
11952 # All AIX code is PIC.
11953 if test "$host_cpu" = ia64; then
11954 # AIX 5 now supports IA64 processor
11955 lt_prog_compiler_static_CXX='-Bstatic'
11956 else
11957 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11958 fi
11959 ;;
11960 chorus*)
11961 case $cc_basename in
11962 cxch68*)
11963 # Green Hills C++ Compiler
11964 # _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"
11965 ;;
11966 esac
11967 ;;
11968 darwin*)
11969 # PIC is the default on this platform
11970 # Common symbols not allowed in MH_DYLIB files
11971 case $cc_basename in
11972 xlc*)
11973 lt_prog_compiler_pic_CXX='-qnocommon'
11974 lt_prog_compiler_wl_CXX='-Wl,'
11975 ;;
11976 esac
11977 ;;
11978 dgux*)
11979 case $cc_basename in
11980 ec++*)
11981 lt_prog_compiler_pic_CXX='-KPIC'
11982 ;;
11983 ghcx*)
11984 # Green Hills C++ Compiler
11985 lt_prog_compiler_pic_CXX='-pic'
11986 ;;
11987 *)
11988 ;;
11989 esac
11990 ;;
11991 freebsd* | dragonfly*)
11992 # FreeBSD uses GNU C++
11993 ;;
11994 hpux9* | hpux10* | hpux11*)
11995 case $cc_basename in
11996 CC*)
11997 lt_prog_compiler_wl_CXX='-Wl,'
11998 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11999 if test "$host_cpu" != ia64; then
12000 lt_prog_compiler_pic_CXX='+Z'
12001 fi
12002 ;;
12003 aCC*)
12004 lt_prog_compiler_wl_CXX='-Wl,'
12005 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12006 case $host_cpu in
12007 hppa*64*|ia64*)
12008 # +Z the default
12009 ;;
12010 *)
12011 lt_prog_compiler_pic_CXX='+Z'
12012 ;;
12013 esac
12014 ;;
12015 *)
12016 ;;
12017 esac
12018 ;;
12019 interix*)
12020 # This is c89, which is MS Visual C++ (no shared libs)
12021 # Anyone wants to do a port?
12022 ;;
12023 irix5* | irix6* | nonstopux*)
12024 case $cc_basename in
12025 CC*)
12026 lt_prog_compiler_wl_CXX='-Wl,'
12027 lt_prog_compiler_static_CXX='-non_shared'
12028 # CC pic flag -KPIC is the default.
12029 ;;
12030 *)
12031 ;;
12032 esac
12033 ;;
12034 linux* | k*bsd*-gnu)
12035 case $cc_basename in
12036 KCC*)
12037 # KAI C++ Compiler
12038 lt_prog_compiler_wl_CXX='--backend -Wl,'
12039 lt_prog_compiler_pic_CXX='-fPIC'
12040 ;;
12041 icpc* | ecpc*)
12042 # Intel C++
12043 lt_prog_compiler_wl_CXX='-Wl,'
12044 lt_prog_compiler_pic_CXX='-KPIC'
12045 lt_prog_compiler_static_CXX='-static'
12046 ;;
12047 pgCC*)
12048 # Portland Group C++ compiler.
12049 lt_prog_compiler_wl_CXX='-Wl,'
12050 lt_prog_compiler_pic_CXX='-fpic'
12051 lt_prog_compiler_static_CXX='-Bstatic'
12052 ;;
12053 cxx*)
12054 # Compaq C++
12055 # Make sure the PIC flag is empty. It appears that all Alpha
12056 # Linux and Compaq Tru64 Unix objects are PIC.
12057 lt_prog_compiler_pic_CXX=
12058 lt_prog_compiler_static_CXX='-non_shared'
12059 ;;
12060 *)
12061 ;;
12062 esac
12063 ;;
12064 lynxos*)
12065 ;;
12066 m88k*)
12067 ;;
12068 mvs*)
12069 case $cc_basename in
12070 cxx*)
12071 lt_prog_compiler_pic_CXX='-W c,exportall'
12072 ;;
12073 *)
12074 ;;
12075 esac
12076 ;;
12077 netbsd* | netbsdelf*-gnu)
12078 ;;
12079 osf3* | osf4* | osf5*)
12080 case $cc_basename in
12081 KCC*)
12082 lt_prog_compiler_wl_CXX='--backend -Wl,'
12083 ;;
12084 RCC*)
12085 # Rational C++ 2.4.1
12086 lt_prog_compiler_pic_CXX='-pic'
12087 ;;
12088 cxx*)
12089 # Digital/Compaq C++
12090 lt_prog_compiler_wl_CXX='-Wl,'
12091 # Make sure the PIC flag is empty. It appears that all Alpha
12092 # Linux and Compaq Tru64 Unix objects are PIC.
12093 lt_prog_compiler_pic_CXX=
12094 lt_prog_compiler_static_CXX='-non_shared'
12095 ;;
12096 *)
12097 ;;
12098 esac
12099 ;;
12100 psos*)
12101 ;;
12102 solaris*)
12103 case $cc_basename in
12104 CC*)
12105 # Sun C++ 4.2, 5.x and Centerline C++
12106 lt_prog_compiler_pic_CXX='-KPIC'
12107 lt_prog_compiler_static_CXX='-Bstatic'
12108 lt_prog_compiler_wl_CXX='-Qoption ld '
12109 ;;
12110 gcx*)
12111 # Green Hills C++ Compiler
12112 lt_prog_compiler_pic_CXX='-PIC'
12113 ;;
12114 *)
12115 ;;
12116 esac
12117 ;;
12118 sunos4*)
12119 case $cc_basename in
12120 CC*)
12121 # Sun C++ 4.x
12122 lt_prog_compiler_pic_CXX='-pic'
12123 lt_prog_compiler_static_CXX='-Bstatic'
12124 ;;
12125 lcc*)
12126 # Lucid
12127 lt_prog_compiler_pic_CXX='-pic'
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 tandem*)
12134 case $cc_basename in
12135 NCC*)
12136 # NonStop-UX NCC 3.20
12137 lt_prog_compiler_pic_CXX='-KPIC'
12138 ;;
12139 *)
12140 ;;
12141 esac
12142 ;;
12143 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12144 case $cc_basename in
12145 CC*)
12146 lt_prog_compiler_wl_CXX='-Wl,'
12147 lt_prog_compiler_pic_CXX='-KPIC'
12148 lt_prog_compiler_static_CXX='-Bstatic'
12149 ;;
12150 esac
12151 ;;
12152 vxworks*)
12153 ;;
12154 *)
12155 lt_prog_compiler_can_build_shared_CXX=no
12156 ;;
12157 esac
12158 fi
12159
12160 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12161 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12162
12163 #
12164 # Check to make sure the PIC flag actually works.
12165 #
12166 if test -n "$lt_prog_compiler_pic_CXX"; then
12167
12168 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12169 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12170 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173 lt_prog_compiler_pic_works_CXX=no
12174 ac_outfile=conftest.$ac_objext
12175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12176 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12177 # Insert the option either (1) after the last *FLAGS variable, or
12178 # (2) before a word containing "conftest.", or (3) at the end.
12179 # Note that $ac_compile itself does not contain backslashes and begins
12180 # with a dollar sign (not a hyphen), so the echo should work correctly.
12181 # The option is referenced via a variable to avoid confusing sed.
12182 lt_compile=`echo "$ac_compile" | $SED \
12183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12185 -e 's:$: $lt_compiler_flag:'`
12186 (eval echo "\"\$as_me:12186: $lt_compile\"" >&5)
12187 (eval "$lt_compile" 2>conftest.err)
12188 ac_status=$?
12189 cat conftest.err >&5
12190 echo "$as_me:12190: \$? = $ac_status" >&5
12191 if (exit $ac_status) && test -s "$ac_outfile"; then
12192 # The compiler can only warn and ignore the option if not recognized
12193 # So say no if there are warnings other than the usual output.
12194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12197 lt_prog_compiler_pic_works_CXX=yes
12198 fi
12199 fi
12200 $rm conftest*
12201
12202 fi
12203 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12204 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12205
12206 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12207 case $lt_prog_compiler_pic_CXX in
12208 "" | " "*) ;;
12209 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12210 esac
12211 else
12212 lt_prog_compiler_pic_CXX=
12213 lt_prog_compiler_can_build_shared_CXX=no
12214 fi
12215
12216 fi
12217 case $host_os in
12218 # For platforms which do not support PIC, -DPIC is meaningless:
12219 *djgpp*)
12220 lt_prog_compiler_pic_CXX=
12221 ;;
12222 *)
12223 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12224 ;;
12225 esac
12226
12227 #
12228 # Check to make sure the static flag actually works.
12229 #
12230 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12231 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12232 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12233 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 lt_prog_compiler_static_works_CXX=no
12237 save_LDFLAGS="$LDFLAGS"
12238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12239 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12241 # The linker can only warn and ignore the option if not recognized
12242 # So say no if there are warnings
12243 if test -s conftest.err; then
12244 # Append any errors to the config.log.
12245 cat conftest.err 1>&5
12246 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12248 if diff conftest.exp conftest.er2 >/dev/null; then
12249 lt_prog_compiler_static_works_CXX=yes
12250 fi
12251 else
12252 lt_prog_compiler_static_works_CXX=yes
12253 fi
12254 fi
12255 $rm conftest*
12256 LDFLAGS="$save_LDFLAGS"
12257
12258 fi
12259 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12260 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12261
12262 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12263 :
12264 else
12265 lt_prog_compiler_static_CXX=
12266 fi
12267
12268
12269 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12270 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12271 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 lt_cv_prog_compiler_c_o_CXX=no
12275 $rm -r conftest 2>/dev/null
12276 mkdir conftest
12277 cd conftest
12278 mkdir out
12279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12280
12281 lt_compiler_flag="-o out/conftest2.$ac_objext"
12282 # Insert the option either (1) after the last *FLAGS variable, or
12283 # (2) before a word containing "conftest.", or (3) at the end.
12284 # Note that $ac_compile itself does not contain backslashes and begins
12285 # with a dollar sign (not a hyphen), so the echo should work correctly.
12286 lt_compile=`echo "$ac_compile" | $SED \
12287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12289 -e 's:$: $lt_compiler_flag:'`
12290 (eval echo "\"\$as_me:12290: $lt_compile\"" >&5)
12291 (eval "$lt_compile" 2>out/conftest.err)
12292 ac_status=$?
12293 cat out/conftest.err >&5
12294 echo "$as_me:12294: \$? = $ac_status" >&5
12295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12296 then
12297 # The compiler can only warn and ignore the option if not recognized
12298 # So say no if there are warnings
12299 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12302 lt_cv_prog_compiler_c_o_CXX=yes
12303 fi
12304 fi
12305 chmod u+w . 2>&5
12306 $rm conftest*
12307 # SGI C++ compiler will create directory out/ii_files/ for
12308 # template instantiation
12309 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12310 $rm out/* && rmdir out
12311 cd ..
12312 rmdir conftest
12313 $rm conftest*
12314
12315 fi
12316 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12317 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12318
12319
12320 hard_links="nottested"
12321 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12322 # do not overwrite the value of need_locks provided by the user
12323 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12324 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12325 hard_links=yes
12326 $rm conftest*
12327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12328 touch conftest.a
12329 ln conftest.a conftest.b 2>&5 || hard_links=no
12330 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12331 { echo "$as_me:$LINENO: result: $hard_links" >&5
12332 echo "${ECHO_T}$hard_links" >&6; }
12333 if test "$hard_links" = no; then
12334 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12335 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12336 need_locks=warn
12337 fi
12338 else
12339 need_locks=no
12340 fi
12341
12342 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12344
12345 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12346 case $host_os in
12347 aix4* | aix5*)
12348 # If we're using GNU nm, then we don't want the "-C" option.
12349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12350 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12351 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'
12352 else
12353 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'
12354 fi
12355 ;;
12356 pw32*)
12357 export_symbols_cmds_CXX="$ltdll_cmds"
12358 ;;
12359 cygwin* | mingw*)
12360 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'
12361 ;;
12362 linux* | k*bsd*-gnu)
12363 link_all_deplibs_CXX=no
12364 ;;
12365 *)
12366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12367 ;;
12368 esac
12369
12370 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12371 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12372 test "$ld_shlibs_CXX" = no && can_build_shared=no
12373
12374 #
12375 # Do we need to explicitly link libc?
12376 #
12377 case "x$archive_cmds_need_lc_CXX" in
12378 x|xyes)
12379 # Assume -lc should be added
12380 archive_cmds_need_lc_CXX=yes
12381
12382 if test "$enable_shared" = yes && test "$GCC" = yes; then
12383 case $archive_cmds_CXX in
12384 *'~'*)
12385 # FIXME: we may have to deal with multi-command sequences.
12386 ;;
12387 '$CC '*)
12388 # Test whether the compiler implicitly links with -lc since on some
12389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12390 # to ld, don't add -lc before -lgcc.
12391 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12392 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12393 $rm conftest*
12394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12395
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } 2>conftest.err; then
12401 soname=conftest
12402 lib=conftest
12403 libobjs=conftest.$ac_objext
12404 deplibs=
12405 wl=$lt_prog_compiler_wl_CXX
12406 pic_flag=$lt_prog_compiler_pic_CXX
12407 compiler_flags=-v
12408 linker_flags=-v
12409 verstring=
12410 output_objdir=.
12411 libname=conftest
12412 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12413 allow_undefined_flag_CXX=
12414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12415 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }
12419 then
12420 archive_cmds_need_lc_CXX=no
12421 else
12422 archive_cmds_need_lc_CXX=yes
12423 fi
12424 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12425 else
12426 cat conftest.err 1>&5
12427 fi
12428 $rm conftest*
12429 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12430 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12431 ;;
12432 esac
12433 fi
12434 ;;
12435 esac
12436
12437 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12438 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12439 library_names_spec=
12440 libname_spec='lib$name'
12441 soname_spec=
12442 shrext_cmds=".so"
12443 postinstall_cmds=
12444 postuninstall_cmds=
12445 finish_cmds=
12446 finish_eval=
12447 shlibpath_var=
12448 shlibpath_overrides_runpath=unknown
12449 version_type=none
12450 dynamic_linker="$host_os ld.so"
12451 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12452 if test "$GCC" = yes; then
12453 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12454 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12455 # if the path contains ";" then we assume it to be the separator
12456 # otherwise default to the standard path separator (i.e. ":") - it is
12457 # assumed that no part of a normal pathname contains ";" but that should
12458 # okay in the real world where ";" in dirpaths is itself problematic.
12459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12460 else
12461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12462 fi
12463 else
12464 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12465 fi
12466 need_lib_prefix=unknown
12467 hardcode_into_libs=no
12468
12469 # when you set need_version to no, make sure it does not cause -set_version
12470 # flags to be left without arguments
12471 need_version=unknown
12472
12473 case $host_os in
12474 aix3*)
12475 version_type=linux
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12477 shlibpath_var=LIBPATH
12478
12479 # AIX 3 has no versioning support, so we append a major version to the name.
12480 soname_spec='${libname}${release}${shared_ext}$major'
12481 ;;
12482
12483 aix4* | aix5*)
12484 version_type=linux
12485 need_lib_prefix=no
12486 need_version=no
12487 hardcode_into_libs=yes
12488 if test "$host_cpu" = ia64; then
12489 # AIX 5 supports IA64
12490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 else
12493 # With GCC up to 2.95.x, collect2 would create an import file
12494 # for dependence libraries. The import file would start with
12495 # the line `#! .'. This would cause the generated library to
12496 # depend on `.', always an invalid library. This was fixed in
12497 # development snapshots of GCC prior to 3.0.
12498 case $host_os in
12499 aix4 | aix4.[01] | aix4.[01].*)
12500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12501 echo ' yes '
12502 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12503 :
12504 else
12505 can_build_shared=no
12506 fi
12507 ;;
12508 esac
12509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12510 # soname into executable. Probably we can add versioning support to
12511 # collect2, so additional links can be useful in future.
12512 if test "$aix_use_runtimelinking" = yes; then
12513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12514 # instead of lib<name>.a to let people know that these are not
12515 # typical AIX shared libraries.
12516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12517 else
12518 # We preserve .a as extension for shared libraries through AIX4.2
12519 # and later when we are not doing run time linking.
12520 library_names_spec='${libname}${release}.a $libname.a'
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 fi
12523 shlibpath_var=LIBPATH
12524 fi
12525 ;;
12526
12527 amigaos*)
12528 library_names_spec='$libname.ixlibrary $libname.a'
12529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12530 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'
12531 ;;
12532
12533 beos*)
12534 library_names_spec='${libname}${shared_ext}'
12535 dynamic_linker="$host_os ld.so"
12536 shlibpath_var=LIBRARY_PATH
12537 ;;
12538
12539 bsdi[45]*)
12540 version_type=linux
12541 need_version=no
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 soname_spec='${libname}${release}${shared_ext}$major'
12544 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12547 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12548 # the default ld.so.conf also contains /usr/contrib/lib and
12549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12550 # libtool to hard-code these into programs
12551 ;;
12552
12553 cygwin* | mingw* | pw32*)
12554 version_type=windows
12555 shrext_cmds=".dll"
12556 need_version=no
12557 need_lib_prefix=no
12558
12559 case $GCC,$host_os in
12560 yes,cygwin* | yes,mingw* | yes,pw32*)
12561 library_names_spec='$libname.dll.a'
12562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12563 postinstall_cmds='base_file=`basename \${file}`~
12564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12565 dldir=$destdir/`dirname \$dlpath`~
12566 test -d \$dldir || mkdir -p \$dldir~
12567 $install_prog $dir/$dlname \$dldir/$dlname~
12568 chmod a+x \$dldir/$dlname'
12569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12570 dlpath=$dir/\$dldll~
12571 $rm \$dlpath'
12572 shlibpath_overrides_runpath=yes
12573
12574 case $host_os in
12575 cygwin*)
12576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12578 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12579 ;;
12580 mingw*)
12581 # MinGW DLLs use traditional 'lib' prefix
12582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12583 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12584 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12585 # It is most probably a Windows format PATH printed by
12586 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12587 # path with ; separators, and with drive letters. We can handle the
12588 # drive letters (cygwin fileutils understands them), so leave them,
12589 # especially as we might pass files found there to a mingw objdump,
12590 # which wouldn't understand a cygwinified path. Ahh.
12591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12592 else
12593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12594 fi
12595 ;;
12596 pw32*)
12597 # pw32 DLLs use 'pw' prefix rather than 'lib'
12598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12599 ;;
12600 esac
12601 ;;
12602
12603 *)
12604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12605 ;;
12606 esac
12607 dynamic_linker='Win32 ld.exe'
12608 # FIXME: first we should search . and the directory the executable is in
12609 shlibpath_var=PATH
12610 ;;
12611
12612 darwin* | rhapsody*)
12613 dynamic_linker="$host_os dyld"
12614 version_type=darwin
12615 need_lib_prefix=no
12616 need_version=no
12617 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12618 soname_spec='${libname}${release}${major}$shared_ext'
12619 shlibpath_overrides_runpath=yes
12620 shlibpath_var=DYLD_LIBRARY_PATH
12621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12622 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12623 if test "$GCC" = yes; then
12624 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12625 else
12626 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12627 fi
12628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12629 ;;
12630
12631 dgux*)
12632 version_type=linux
12633 need_lib_prefix=no
12634 need_version=no
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 ;;
12639
12640 freebsd1*)
12641 dynamic_linker=no
12642 ;;
12643
12644 freebsd* | dragonfly*)
12645 # DragonFly does not have aout. When/if they implement a new
12646 # versioning mechanism, adjust this.
12647 if test -x /usr/bin/objformat; then
12648 objformat=`/usr/bin/objformat`
12649 else
12650 case $host_os in
12651 freebsd[123]*) objformat=aout ;;
12652 *) objformat=elf ;;
12653 esac
12654 fi
12655 version_type=freebsd-$objformat
12656 case $version_type in
12657 freebsd-elf*)
12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12659 need_version=no
12660 need_lib_prefix=no
12661 ;;
12662 freebsd-*)
12663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12664 need_version=yes
12665 ;;
12666 esac
12667 shlibpath_var=LD_LIBRARY_PATH
12668 case $host_os in
12669 freebsd2*)
12670 shlibpath_overrides_runpath=yes
12671 ;;
12672 freebsd3.[01]* | freebsdelf3.[01]*)
12673 shlibpath_overrides_runpath=yes
12674 hardcode_into_libs=yes
12675 ;;
12676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12678 shlibpath_overrides_runpath=no
12679 hardcode_into_libs=yes
12680 ;;
12681 freebsd*) # from 4.6 on
12682 shlibpath_overrides_runpath=yes
12683 hardcode_into_libs=yes
12684 ;;
12685 esac
12686 ;;
12687
12688 gnu*)
12689 version_type=linux
12690 need_lib_prefix=no
12691 need_version=no
12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12693 soname_spec='${libname}${release}${shared_ext}$major'
12694 shlibpath_var=LD_LIBRARY_PATH
12695 hardcode_into_libs=yes
12696 ;;
12697
12698 hpux9* | hpux10* | hpux11*)
12699 # Give a soname corresponding to the major version so that dld.sl refuses to
12700 # link against other versions.
12701 version_type=sunos
12702 need_lib_prefix=no
12703 need_version=no
12704 case $host_cpu in
12705 ia64*)
12706 shrext_cmds='.so'
12707 hardcode_into_libs=yes
12708 dynamic_linker="$host_os dld.so"
12709 shlibpath_var=LD_LIBRARY_PATH
12710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 if test "X$HPUX_IA64_MODE" = X32; then
12714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12715 else
12716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12717 fi
12718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12719 ;;
12720 hppa*64*)
12721 shrext_cmds='.sl'
12722 hardcode_into_libs=yes
12723 dynamic_linker="$host_os dld.sl"
12724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12730 ;;
12731 *)
12732 shrext_cmds='.sl'
12733 dynamic_linker="$host_os dld.sl"
12734 shlibpath_var=SHLIB_PATH
12735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12738 ;;
12739 esac
12740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12741 postinstall_cmds='chmod 555 $lib'
12742 ;;
12743
12744 interix3*)
12745 version_type=linux
12746 need_lib_prefix=no
12747 need_version=no
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12751 shlibpath_var=LD_LIBRARY_PATH
12752 shlibpath_overrides_runpath=no
12753 hardcode_into_libs=yes
12754 ;;
12755
12756 irix5* | irix6* | nonstopux*)
12757 case $host_os in
12758 nonstopux*) version_type=nonstopux ;;
12759 *)
12760 if test "$lt_cv_prog_gnu_ld" = yes; then
12761 version_type=linux
12762 else
12763 version_type=irix
12764 fi ;;
12765 esac
12766 need_lib_prefix=no
12767 need_version=no
12768 soname_spec='${libname}${release}${shared_ext}$major'
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12770 case $host_os in
12771 irix5* | nonstopux*)
12772 libsuff= shlibsuff=
12773 ;;
12774 *)
12775 case $LD in # libtool.m4 will add one of these switches to LD
12776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12777 libsuff= shlibsuff= libmagic=32-bit;;
12778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12779 libsuff=32 shlibsuff=N32 libmagic=N32;;
12780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12782 *) libsuff= shlibsuff= libmagic=never-match;;
12783 esac
12784 ;;
12785 esac
12786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12787 shlibpath_overrides_runpath=no
12788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12790 hardcode_into_libs=yes
12791 ;;
12792
12793 # No shared lib support for Linux oldld, aout, or coff.
12794 linux*oldld* | linux*aout* | linux*coff*)
12795 dynamic_linker=no
12796 ;;
12797
12798 # This must be Linux ELF.
12799 linux* | k*bsd*-gnu)
12800 version_type=linux
12801 need_lib_prefix=no
12802 need_version=no
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 shlibpath_overrides_runpath=no
12808 # This implies no fast_install, which is unacceptable.
12809 # Some rework will be needed to allow for fast_install
12810 # before this can be enabled.
12811 hardcode_into_libs=yes
12812
12813 # Append ld.so.conf contents to the search path
12814 if test -f /etc/ld.so.conf; then
12815 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12817 fi
12818
12819 # We used to test for /lib/ld.so.1 and disable shared libraries on
12820 # powerpc, because MkLinux only supported shared libraries with the
12821 # GNU dynamic linker. Since this was broken with cross compilers,
12822 # most powerpc-linux boxes support dynamic linking these days and
12823 # people can always --disable-shared, the test was removed, and we
12824 # assume the GNU/Linux dynamic linker is in use.
12825 dynamic_linker='GNU/Linux ld.so'
12826 ;;
12827
12828 netbsdelf*-gnu)
12829 version_type=linux
12830 need_lib_prefix=no
12831 need_version=no
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 shlibpath_overrides_runpath=no
12836 hardcode_into_libs=yes
12837 dynamic_linker='NetBSD ld.elf_so'
12838 ;;
12839
12840 netbsd*)
12841 version_type=sunos
12842 need_lib_prefix=no
12843 need_version=no
12844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12847 dynamic_linker='NetBSD (a.out) ld.so'
12848 else
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12850 soname_spec='${libname}${release}${shared_ext}$major'
12851 dynamic_linker='NetBSD ld.elf_so'
12852 fi
12853 shlibpath_var=LD_LIBRARY_PATH
12854 shlibpath_overrides_runpath=yes
12855 hardcode_into_libs=yes
12856 ;;
12857
12858 newsos6)
12859 version_type=linux
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12861 shlibpath_var=LD_LIBRARY_PATH
12862 shlibpath_overrides_runpath=yes
12863 ;;
12864
12865 nto-qnx*)
12866 version_type=linux
12867 need_lib_prefix=no
12868 need_version=no
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870 soname_spec='${libname}${release}${shared_ext}$major'
12871 shlibpath_var=LD_LIBRARY_PATH
12872 shlibpath_overrides_runpath=yes
12873 ;;
12874
12875 openbsd*)
12876 version_type=sunos
12877 sys_lib_dlsearch_path_spec="/usr/lib"
12878 need_lib_prefix=no
12879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12880 case $host_os in
12881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12882 *) need_version=no ;;
12883 esac
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888 case $host_os in
12889 openbsd2.[89] | openbsd2.[89].*)
12890 shlibpath_overrides_runpath=no
12891 ;;
12892 *)
12893 shlibpath_overrides_runpath=yes
12894 ;;
12895 esac
12896 else
12897 shlibpath_overrides_runpath=yes
12898 fi
12899 ;;
12900
12901 os2*)
12902 libname_spec='$name'
12903 shrext_cmds=".dll"
12904 need_lib_prefix=no
12905 library_names_spec='$libname${shared_ext} $libname.a'
12906 dynamic_linker='OS/2 ld.exe'
12907 shlibpath_var=LIBPATH
12908 ;;
12909
12910 osf3* | osf4* | osf5*)
12911 version_type=osf
12912 need_lib_prefix=no
12913 need_version=no
12914 soname_spec='${libname}${release}${shared_ext}$major'
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12919 ;;
12920
12921 solaris*)
12922 version_type=linux
12923 need_lib_prefix=no
12924 need_version=no
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 soname_spec='${libname}${release}${shared_ext}$major'
12927 shlibpath_var=LD_LIBRARY_PATH
12928 shlibpath_overrides_runpath=yes
12929 hardcode_into_libs=yes
12930 # ldd complains unless libraries are executable
12931 postinstall_cmds='chmod +x $lib'
12932 ;;
12933
12934 sunos4*)
12935 version_type=sunos
12936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=yes
12940 if test "$with_gnu_ld" = yes; then
12941 need_lib_prefix=no
12942 fi
12943 need_version=yes
12944 ;;
12945
12946 sysv4 | sysv4.3*)
12947 version_type=linux
12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949 soname_spec='${libname}${release}${shared_ext}$major'
12950 shlibpath_var=LD_LIBRARY_PATH
12951 case $host_vendor in
12952 sni)
12953 shlibpath_overrides_runpath=no
12954 need_lib_prefix=no
12955 export_dynamic_flag_spec='${wl}-Blargedynsym'
12956 runpath_var=LD_RUN_PATH
12957 ;;
12958 siemens)
12959 need_lib_prefix=no
12960 ;;
12961 motorola)
12962 need_lib_prefix=no
12963 need_version=no
12964 shlibpath_overrides_runpath=no
12965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12966 ;;
12967 esac
12968 ;;
12969
12970 sysv4*MP*)
12971 if test -d /usr/nec ;then
12972 version_type=linux
12973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12974 soname_spec='$libname${shared_ext}.$major'
12975 shlibpath_var=LD_LIBRARY_PATH
12976 fi
12977 ;;
12978
12979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12980 version_type=freebsd-elf
12981 need_lib_prefix=no
12982 need_version=no
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 hardcode_into_libs=yes
12987 if test "$with_gnu_ld" = yes; then
12988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12989 shlibpath_overrides_runpath=no
12990 else
12991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12992 shlibpath_overrides_runpath=yes
12993 case $host_os in
12994 sco3.2v5*)
12995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12996 ;;
12997 esac
12998 fi
12999 sys_lib_dlsearch_path_spec='/usr/lib'
13000 ;;
13001
13002 uts4*)
13003 version_type=linux
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 ;;
13008
13009 *)
13010 dynamic_linker=no
13011 ;;
13012 esac
13013 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13014 echo "${ECHO_T}$dynamic_linker" >&6; }
13015 test "$dynamic_linker" = no && can_build_shared=no
13016
13017 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13018 if test "$GCC" = yes; then
13019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13020 fi
13021
13022 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13023 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13024 hardcode_action_CXX=
13025 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13026 test -n "$runpath_var_CXX" || \
13027 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13028
13029 # We can hardcode non-existant directories.
13030 if test "$hardcode_direct_CXX" != no &&
13031 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13032 # have to relink, otherwise we might link with an installed library
13033 # when we should be linking with a yet-to-be-installed one
13034 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13035 test "$hardcode_minus_L_CXX" != no; then
13036 # Linking always hardcodes the temporary library directory.
13037 hardcode_action_CXX=relink
13038 else
13039 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13040 hardcode_action_CXX=immediate
13041 fi
13042 else
13043 # We cannot hardcode anything, or else we can only hardcode existing
13044 # directories.
13045 hardcode_action_CXX=unsupported
13046 fi
13047 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13048 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13049
13050 if test "$hardcode_action_CXX" = relink; then
13051 # Fast installation is not supported
13052 enable_fast_install=no
13053 elif test "$shlibpath_overrides_runpath" = yes ||
13054 test "$enable_shared" = no; then
13055 # Fast installation is not necessary
13056 enable_fast_install=needless
13057 fi
13058
13059
13060 # The else clause should only fire when bootstrapping the
13061 # libtool distribution, otherwise you forgot to ship ltmain.sh
13062 # with your package, and you will get complaints that there are
13063 # no rules to generate ltmain.sh.
13064 if test -f "$ltmain"; then
13065 # See if we are running on zsh, and set the options which allow our commands through
13066 # without removal of \ escapes.
13067 if test -n "${ZSH_VERSION+set}" ; then
13068 setopt NO_GLOB_SUBST
13069 fi
13070 # Now quote all the things that may contain metacharacters while being
13071 # careful not to overquote the AC_SUBSTed values. We take copies of the
13072 # variables and quote the copies for generation of the libtool script.
13073 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13074 SED SHELL STRIP \
13075 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13076 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13077 deplibs_check_method reload_flag reload_cmds need_locks \
13078 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13079 lt_cv_sys_global_symbol_to_c_name_address \
13080 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13081 old_postinstall_cmds old_postuninstall_cmds \
13082 compiler_CXX \
13083 CC_CXX \
13084 LD_CXX \
13085 lt_prog_compiler_wl_CXX \
13086 lt_prog_compiler_pic_CXX \
13087 lt_prog_compiler_static_CXX \
13088 lt_prog_compiler_no_builtin_flag_CXX \
13089 export_dynamic_flag_spec_CXX \
13090 thread_safe_flag_spec_CXX \
13091 whole_archive_flag_spec_CXX \
13092 enable_shared_with_static_runtimes_CXX \
13093 old_archive_cmds_CXX \
13094 old_archive_from_new_cmds_CXX \
13095 predep_objects_CXX \
13096 postdep_objects_CXX \
13097 predeps_CXX \
13098 postdeps_CXX \
13099 compiler_lib_search_path_CXX \
13100 archive_cmds_CXX \
13101 archive_expsym_cmds_CXX \
13102 postinstall_cmds_CXX \
13103 postuninstall_cmds_CXX \
13104 old_archive_from_expsyms_cmds_CXX \
13105 allow_undefined_flag_CXX \
13106 no_undefined_flag_CXX \
13107 export_symbols_cmds_CXX \
13108 hardcode_libdir_flag_spec_CXX \
13109 hardcode_libdir_flag_spec_ld_CXX \
13110 hardcode_libdir_separator_CXX \
13111 hardcode_automatic_CXX \
13112 module_cmds_CXX \
13113 module_expsym_cmds_CXX \
13114 lt_cv_prog_compiler_c_o_CXX \
13115 exclude_expsyms_CXX \
13116 include_expsyms_CXX; do
13117
13118 case $var in
13119 old_archive_cmds_CXX | \
13120 old_archive_from_new_cmds_CXX | \
13121 archive_cmds_CXX | \
13122 archive_expsym_cmds_CXX | \
13123 module_cmds_CXX | \
13124 module_expsym_cmds_CXX | \
13125 old_archive_from_expsyms_cmds_CXX | \
13126 export_symbols_cmds_CXX | \
13127 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13128 postinstall_cmds | postuninstall_cmds | \
13129 old_postinstall_cmds | old_postuninstall_cmds | \
13130 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13131 # Double-quote double-evaled strings.
13132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13133 ;;
13134 *)
13135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13136 ;;
13137 esac
13138 done
13139
13140 case $lt_echo in
13141 *'\$0 --fallback-echo"')
13142 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13143 ;;
13144 esac
13145
13146 cfgfile="$ofile"
13147
13148 cat <<__EOF__ >> "$cfgfile"
13149 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13150
13151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13152
13153 # Shell to use when invoking shell scripts.
13154 SHELL=$lt_SHELL
13155
13156 # Whether or not to build shared libraries.
13157 build_libtool_libs=$enable_shared
13158
13159 # Whether or not to build static libraries.
13160 build_old_libs=$enable_static
13161
13162 # Whether or not to add -lc for building shared libraries.
13163 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13164
13165 # Whether or not to disallow shared libs when runtime libs are static
13166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13167
13168 # Whether or not to optimize for fast installation.
13169 fast_install=$enable_fast_install
13170
13171 # The host system.
13172 host_alias=$host_alias
13173 host=$host
13174 host_os=$host_os
13175
13176 # The build system.
13177 build_alias=$build_alias
13178 build=$build
13179 build_os=$build_os
13180
13181 # An echo program that does not interpret backslashes.
13182 echo=$lt_echo
13183
13184 # The archiver.
13185 AR=$lt_AR
13186 AR_FLAGS=$lt_AR_FLAGS
13187
13188 # A C compiler.
13189 LTCC=$lt_LTCC
13190
13191 # LTCC compiler flags.
13192 LTCFLAGS=$lt_LTCFLAGS
13193
13194 # A language-specific compiler.
13195 CC=$lt_compiler_CXX
13196
13197 # Is the compiler the GNU C compiler?
13198 with_gcc=$GCC_CXX
13199
13200 # An ERE matcher.
13201 EGREP=$lt_EGREP
13202
13203 # The linker used to build libraries.
13204 LD=$lt_LD_CXX
13205
13206 # Whether we need hard or soft links.
13207 LN_S=$lt_LN_S
13208
13209 # A BSD-compatible nm program.
13210 NM=$lt_NM
13211
13212 # A symbol stripping program
13213 STRIP=$lt_STRIP
13214
13215 # Used to examine libraries when file_magic_cmd begins "file"
13216 MAGIC_CMD=$MAGIC_CMD
13217
13218 # Used on cygwin: DLL creation program.
13219 DLLTOOL="$DLLTOOL"
13220
13221 # Used on cygwin: object dumper.
13222 OBJDUMP="$OBJDUMP"
13223
13224 # Used on cygwin: assembler.
13225 AS="$AS"
13226
13227 # The name of the directory that contains temporary libtool files.
13228 objdir=$objdir
13229
13230 # How to create reloadable object files.
13231 reload_flag=$lt_reload_flag
13232 reload_cmds=$lt_reload_cmds
13233
13234 # How to pass a linker flag through the compiler.
13235 wl=$lt_lt_prog_compiler_wl_CXX
13236
13237 # Object file suffix (normally "o").
13238 objext="$ac_objext"
13239
13240 # Old archive suffix (normally "a").
13241 libext="$libext"
13242
13243 # Shared library suffix (normally ".so").
13244 shrext_cmds='$shrext_cmds'
13245
13246 # Executable file suffix (normally "").
13247 exeext="$exeext"
13248
13249 # Additional compiler flags for building library objects.
13250 pic_flag=$lt_lt_prog_compiler_pic_CXX
13251 pic_mode=$pic_mode
13252
13253 # What is the maximum length of a command?
13254 max_cmd_len=$lt_cv_sys_max_cmd_len
13255
13256 # Does compiler simultaneously support -c and -o options?
13257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13258
13259 # Must we lock files when doing compilation?
13260 need_locks=$lt_need_locks
13261
13262 # Do we need the lib prefix for modules?
13263 need_lib_prefix=$need_lib_prefix
13264
13265 # Do we need a version for libraries?
13266 need_version=$need_version
13267
13268 # Whether dlopen is supported.
13269 dlopen_support=$enable_dlopen
13270
13271 # Whether dlopen of programs is supported.
13272 dlopen_self=$enable_dlopen_self
13273
13274 # Whether dlopen of statically linked programs is supported.
13275 dlopen_self_static=$enable_dlopen_self_static
13276
13277 # Compiler flag to prevent dynamic linking.
13278 link_static_flag=$lt_lt_prog_compiler_static_CXX
13279
13280 # Compiler flag to turn off builtin functions.
13281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13282
13283 # Compiler flag to allow reflexive dlopens.
13284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13285
13286 # Compiler flag to generate shared objects directly from archives.
13287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13288
13289 # Compiler flag to generate thread-safe objects.
13290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13291
13292 # Library versioning type.
13293 version_type=$version_type
13294
13295 # Format of library name prefix.
13296 libname_spec=$lt_libname_spec
13297
13298 # List of archive names. First name is the real one, the rest are links.
13299 # The last name is the one that the linker finds with -lNAME.
13300 library_names_spec=$lt_library_names_spec
13301
13302 # The coded name of the library, if different from the real name.
13303 soname_spec=$lt_soname_spec
13304
13305 # Commands used to build and install an old-style archive.
13306 RANLIB=$lt_RANLIB
13307 old_archive_cmds=$lt_old_archive_cmds_CXX
13308 old_postinstall_cmds=$lt_old_postinstall_cmds
13309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13310
13311 # Create an old-style archive from a shared archive.
13312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13313
13314 # Create a temporary old-style archive to link instead of a shared archive.
13315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13316
13317 # Commands used to build and install a shared archive.
13318 archive_cmds=$lt_archive_cmds_CXX
13319 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13320 postinstall_cmds=$lt_postinstall_cmds
13321 postuninstall_cmds=$lt_postuninstall_cmds
13322
13323 # Commands used to build a loadable module (assumed same as above if empty)
13324 module_cmds=$lt_module_cmds_CXX
13325 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13326
13327 # Commands to strip libraries.
13328 old_striplib=$lt_old_striplib
13329 striplib=$lt_striplib
13330
13331 # Dependencies to place before the objects being linked to create a
13332 # shared library.
13333 predep_objects=$lt_predep_objects_CXX
13334
13335 # Dependencies to place after the objects being linked to create a
13336 # shared library.
13337 postdep_objects=$lt_postdep_objects_CXX
13338
13339 # Dependencies to place before the objects being linked to create a
13340 # shared library.
13341 predeps=$lt_predeps_CXX
13342
13343 # Dependencies to place after the objects being linked to create a
13344 # shared library.
13345 postdeps=$lt_postdeps_CXX
13346
13347 # The library search path used internally by the compiler when linking
13348 # a shared library.
13349 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13350
13351 # Method to check whether dependent libraries are shared objects.
13352 deplibs_check_method=$lt_deplibs_check_method
13353
13354 # Command to use when deplibs_check_method == file_magic.
13355 file_magic_cmd=$lt_file_magic_cmd
13356
13357 # Flag that allows shared libraries with undefined symbols to be built.
13358 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13359
13360 # Flag that forces no undefined symbols.
13361 no_undefined_flag=$lt_no_undefined_flag_CXX
13362
13363 # Commands used to finish a libtool library installation in a directory.
13364 finish_cmds=$lt_finish_cmds
13365
13366 # Same as above, but a single script fragment to be evaled but not shown.
13367 finish_eval=$lt_finish_eval
13368
13369 # Take the output of nm and produce a listing of raw symbols and C names.
13370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13371
13372 # Transform the output of nm in a proper C declaration
13373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13374
13375 # Transform the output of nm in a C name address pair
13376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13377
13378 # This is the shared library runtime path variable.
13379 runpath_var=$runpath_var
13380
13381 # This is the shared library path variable.
13382 shlibpath_var=$shlibpath_var
13383
13384 # Is shlibpath searched before the hard-coded library search path?
13385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13386
13387 # How to hardcode a shared library path into an executable.
13388 hardcode_action=$hardcode_action_CXX
13389
13390 # Whether we should hardcode library paths into libraries.
13391 hardcode_into_libs=$hardcode_into_libs
13392
13393 # Flag to hardcode \$libdir into a binary during linking.
13394 # This must work even if \$libdir does not exist.
13395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13396
13397 # If ld is used when linking, flag to hardcode \$libdir into
13398 # a binary during linking. This must work even if \$libdir does
13399 # not exist.
13400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13401
13402 # Whether we need a single -rpath flag with a separated argument.
13403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13404
13405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13406 # resulting binary.
13407 hardcode_direct=$hardcode_direct_CXX
13408
13409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13410 # resulting binary.
13411 hardcode_minus_L=$hardcode_minus_L_CXX
13412
13413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13414 # the resulting binary.
13415 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13416
13417 # Set to yes if building a shared library automatically hardcodes DIR into the library
13418 # and all subsequent libraries and executables linked against it.
13419 hardcode_automatic=$hardcode_automatic_CXX
13420
13421 # Variables whose values should be saved in libtool wrapper scripts and
13422 # restored at relink time.
13423 variables_saved_for_relink="$variables_saved_for_relink"
13424
13425 # Whether libtool must link a program against all its dependency libraries.
13426 link_all_deplibs=$link_all_deplibs_CXX
13427
13428 # Compile-time system search path for libraries
13429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13430
13431 # Run-time system search path for libraries
13432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13433
13434 # Fix the shell variable \$srcfile for the compiler.
13435 fix_srcfile_path="$fix_srcfile_path_CXX"
13436
13437 # Set to yes if exported symbols are required.
13438 always_export_symbols=$always_export_symbols_CXX
13439
13440 # The commands to list exported symbols.
13441 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13442
13443 # The commands to extract the exported symbol list from a shared archive.
13444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13445
13446 # Symbols that should not be listed in the preloaded symbols.
13447 exclude_expsyms=$lt_exclude_expsyms_CXX
13448
13449 # Symbols that must always be exported.
13450 include_expsyms=$lt_include_expsyms_CXX
13451
13452 # ### END LIBTOOL TAG CONFIG: $tagname
13453
13454 __EOF__
13455
13456
13457 else
13458 # If there is no Makefile yet, we rely on a make rule to execute
13459 # `config.status --recheck' to rerun these tests and create the
13460 # libtool script then.
13461 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13462 if test -f "$ltmain_in"; then
13463 test -f Makefile && make "$ltmain"
13464 fi
13465 fi
13466
13467
13468 ac_ext=c
13469 ac_cpp='$CPP $CPPFLAGS'
13470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13473
13474 CC=$lt_save_CC
13475 LDCXX=$LD
13476 LD=$lt_save_LD
13477 GCC=$lt_save_GCC
13478 with_gnu_ldcxx=$with_gnu_ld
13479 with_gnu_ld=$lt_save_with_gnu_ld
13480 lt_cv_path_LDCXX=$lt_cv_path_LD
13481 lt_cv_path_LD=$lt_save_path_LD
13482 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13483 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13484
13485 else
13486 tagname=""
13487 fi
13488 ;;
13489
13490 F77)
13491 if test -n "$F77" && test "X$F77" != "Xno"; then
13492
13493 ac_ext=f
13494 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13495 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13496 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13497
13498
13499 archive_cmds_need_lc_F77=no
13500 allow_undefined_flag_F77=
13501 always_export_symbols_F77=no
13502 archive_expsym_cmds_F77=
13503 export_dynamic_flag_spec_F77=
13504 hardcode_direct_F77=no
13505 hardcode_libdir_flag_spec_F77=
13506 hardcode_libdir_flag_spec_ld_F77=
13507 hardcode_libdir_separator_F77=
13508 hardcode_minus_L_F77=no
13509 hardcode_automatic_F77=no
13510 module_cmds_F77=
13511 module_expsym_cmds_F77=
13512 link_all_deplibs_F77=unknown
13513 old_archive_cmds_F77=$old_archive_cmds
13514 no_undefined_flag_F77=
13515 whole_archive_flag_spec_F77=
13516 enable_shared_with_static_runtimes_F77=no
13517
13518 # Source file extension for f77 test sources.
13519 ac_ext=f
13520
13521 # Object file extension for compiled f77 test sources.
13522 objext=o
13523 objext_F77=$objext
13524
13525 # Code to be used in simple compile tests
13526 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13527
13528 # Code to be used in simple link tests
13529 lt_simple_link_test_code=" program t\n end\n"
13530
13531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13532
13533 # If no C compiler was specified, use CC.
13534 LTCC=${LTCC-"$CC"}
13535
13536 # If no C compiler flags were specified, use CFLAGS.
13537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13538
13539 # Allow CC to be a program name with arguments.
13540 compiler=$CC
13541
13542
13543 # save warnings/boilerplate of simple test code
13544 ac_outfile=conftest.$ac_objext
13545 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13547 _lt_compiler_boilerplate=`cat conftest.err`
13548 $rm conftest*
13549
13550 ac_outfile=conftest.$ac_objext
13551 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13553 _lt_linker_boilerplate=`cat conftest.err`
13554 $rm conftest*
13555
13556
13557 # Allow CC to be a program name with arguments.
13558 lt_save_CC="$CC"
13559 CC=${F77-"f77"}
13560 compiler=$CC
13561 compiler_F77=$CC
13562 for cc_temp in $compiler""; do
13563 case $cc_temp in
13564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13566 \-*) ;;
13567 *) break;;
13568 esac
13569 done
13570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13571
13572
13573 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13574 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13575 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13576 echo "${ECHO_T}$can_build_shared" >&6; }
13577
13578 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13579 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13580 test "$can_build_shared" = "no" && enable_shared=no
13581
13582 # On AIX, shared libraries and static libraries use the same namespace, and
13583 # are all built from PIC.
13584 case $host_os in
13585 aix3*)
13586 test "$enable_shared" = yes && enable_static=no
13587 if test -n "$RANLIB"; then
13588 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13589 postinstall_cmds='$RANLIB $lib'
13590 fi
13591 ;;
13592 aix4* | aix5*)
13593 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13594 test "$enable_shared" = yes && enable_static=no
13595 fi
13596 ;;
13597 esac
13598 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13599 echo "${ECHO_T}$enable_shared" >&6; }
13600
13601 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13602 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13603 # Make sure either enable_shared or enable_static is yes.
13604 test "$enable_shared" = yes || enable_static=yes
13605 { echo "$as_me:$LINENO: result: $enable_static" >&5
13606 echo "${ECHO_T}$enable_static" >&6; }
13607
13608 GCC_F77="$G77"
13609 LD_F77="$LD"
13610
13611 lt_prog_compiler_wl_F77=
13612 lt_prog_compiler_pic_F77=
13613 lt_prog_compiler_static_F77=
13614
13615 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13616 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13617
13618 if test "$GCC" = yes; then
13619 lt_prog_compiler_wl_F77='-Wl,'
13620 lt_prog_compiler_static_F77='-static'
13621
13622 case $host_os in
13623 aix*)
13624 # All AIX code is PIC.
13625 if test "$host_cpu" = ia64; then
13626 # AIX 5 now supports IA64 processor
13627 lt_prog_compiler_static_F77='-Bstatic'
13628 fi
13629 ;;
13630
13631 amigaos*)
13632 # FIXME: we need at least 68020 code to build shared libraries, but
13633 # adding the `-m68020' flag to GCC prevents building anything better,
13634 # like `-m68040'.
13635 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13636 ;;
13637
13638 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13639 # PIC is the default for these OSes.
13640 ;;
13641
13642 mingw* | pw32* | os2*)
13643 # This hack is so that the source file can tell whether it is being
13644 # built for inclusion in a dll (and should export symbols for example).
13645 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13646 ;;
13647
13648 darwin* | rhapsody*)
13649 # PIC is the default on this platform
13650 # Common symbols not allowed in MH_DYLIB files
13651 lt_prog_compiler_pic_F77='-fno-common'
13652 ;;
13653
13654 interix3*)
13655 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13656 # Instead, we relocate shared libraries at runtime.
13657 ;;
13658
13659 msdosdjgpp*)
13660 # Just because we use GCC doesn't mean we suddenly get shared libraries
13661 # on systems that don't support them.
13662 lt_prog_compiler_can_build_shared_F77=no
13663 enable_shared=no
13664 ;;
13665
13666 sysv4*MP*)
13667 if test -d /usr/nec; then
13668 lt_prog_compiler_pic_F77=-Kconform_pic
13669 fi
13670 ;;
13671
13672 hpux*)
13673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13674 # not for PA HP-UX.
13675 case $host_cpu in
13676 hppa*64*|ia64*)
13677 # +Z the default
13678 ;;
13679 *)
13680 lt_prog_compiler_pic_F77='-fPIC'
13681 ;;
13682 esac
13683 ;;
13684
13685 *)
13686 lt_prog_compiler_pic_F77='-fPIC'
13687 ;;
13688 esac
13689 else
13690 # PORTME Check for flag to pass linker flags through the system compiler.
13691 case $host_os in
13692 aix*)
13693 lt_prog_compiler_wl_F77='-Wl,'
13694 if test "$host_cpu" = ia64; then
13695 # AIX 5 now supports IA64 processor
13696 lt_prog_compiler_static_F77='-Bstatic'
13697 else
13698 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13699 fi
13700 ;;
13701 darwin*)
13702 # PIC is the default on this platform
13703 # Common symbols not allowed in MH_DYLIB files
13704 case $cc_basename in
13705 xlc*)
13706 lt_prog_compiler_pic_F77='-qnocommon'
13707 lt_prog_compiler_wl_F77='-Wl,'
13708 ;;
13709 esac
13710 ;;
13711
13712 mingw* | pw32* | os2*)
13713 # This hack is so that the source file can tell whether it is being
13714 # built for inclusion in a dll (and should export symbols for example).
13715 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13716 ;;
13717
13718 hpux9* | hpux10* | hpux11*)
13719 lt_prog_compiler_wl_F77='-Wl,'
13720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13721 # not for PA HP-UX.
13722 case $host_cpu in
13723 hppa*64*|ia64*)
13724 # +Z the default
13725 ;;
13726 *)
13727 lt_prog_compiler_pic_F77='+Z'
13728 ;;
13729 esac
13730 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13731 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13732 ;;
13733
13734 irix5* | irix6* | nonstopux*)
13735 lt_prog_compiler_wl_F77='-Wl,'
13736 # PIC (with -KPIC) is the default.
13737 lt_prog_compiler_static_F77='-non_shared'
13738 ;;
13739
13740 newsos6)
13741 lt_prog_compiler_pic_F77='-KPIC'
13742 lt_prog_compiler_static_F77='-Bstatic'
13743 ;;
13744
13745 linux* | k*bsd*-gnu)
13746 case $cc_basename in
13747 icc* | ecc*)
13748 lt_prog_compiler_wl_F77='-Wl,'
13749 lt_prog_compiler_pic_F77='-KPIC'
13750 lt_prog_compiler_static_F77='-static'
13751 ;;
13752 pgcc* | pgf77* | pgf90* | pgf95*)
13753 # Portland Group compilers (*not* the Pentium gcc compiler,
13754 # which looks to be a dead project)
13755 lt_prog_compiler_wl_F77='-Wl,'
13756 lt_prog_compiler_pic_F77='-fpic'
13757 lt_prog_compiler_static_F77='-Bstatic'
13758 ;;
13759 ccc*)
13760 lt_prog_compiler_wl_F77='-Wl,'
13761 # All Alpha code is PIC.
13762 lt_prog_compiler_static_F77='-non_shared'
13763 ;;
13764 esac
13765 ;;
13766
13767 osf3* | osf4* | osf5*)
13768 lt_prog_compiler_wl_F77='-Wl,'
13769 # All OSF/1 code is PIC.
13770 lt_prog_compiler_static_F77='-non_shared'
13771 ;;
13772
13773 solaris*)
13774 lt_prog_compiler_pic_F77='-KPIC'
13775 lt_prog_compiler_static_F77='-Bstatic'
13776 case $cc_basename in
13777 f77* | f90* | f95*)
13778 lt_prog_compiler_wl_F77='-Qoption ld ';;
13779 *)
13780 lt_prog_compiler_wl_F77='-Wl,';;
13781 esac
13782 ;;
13783
13784 sunos4*)
13785 lt_prog_compiler_wl_F77='-Qoption ld '
13786 lt_prog_compiler_pic_F77='-PIC'
13787 lt_prog_compiler_static_F77='-Bstatic'
13788 ;;
13789
13790 sysv4 | sysv4.2uw2* | sysv4.3*)
13791 lt_prog_compiler_wl_F77='-Wl,'
13792 lt_prog_compiler_pic_F77='-KPIC'
13793 lt_prog_compiler_static_F77='-Bstatic'
13794 ;;
13795
13796 sysv4*MP*)
13797 if test -d /usr/nec ;then
13798 lt_prog_compiler_pic_F77='-Kconform_pic'
13799 lt_prog_compiler_static_F77='-Bstatic'
13800 fi
13801 ;;
13802
13803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13804 lt_prog_compiler_wl_F77='-Wl,'
13805 lt_prog_compiler_pic_F77='-KPIC'
13806 lt_prog_compiler_static_F77='-Bstatic'
13807 ;;
13808
13809 unicos*)
13810 lt_prog_compiler_wl_F77='-Wl,'
13811 lt_prog_compiler_can_build_shared_F77=no
13812 ;;
13813
13814 uts4*)
13815 lt_prog_compiler_pic_F77='-pic'
13816 lt_prog_compiler_static_F77='-Bstatic'
13817 ;;
13818
13819 *)
13820 lt_prog_compiler_can_build_shared_F77=no
13821 ;;
13822 esac
13823 fi
13824
13825 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13826 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13827
13828 #
13829 # Check to make sure the PIC flag actually works.
13830 #
13831 if test -n "$lt_prog_compiler_pic_F77"; then
13832
13833 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13834 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13835 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 lt_prog_compiler_pic_works_F77=no
13839 ac_outfile=conftest.$ac_objext
13840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13841 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13842 # Insert the option either (1) after the last *FLAGS variable, or
13843 # (2) before a word containing "conftest.", or (3) at the end.
13844 # Note that $ac_compile itself does not contain backslashes and begins
13845 # with a dollar sign (not a hyphen), so the echo should work correctly.
13846 # The option is referenced via a variable to avoid confusing sed.
13847 lt_compile=`echo "$ac_compile" | $SED \
13848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13850 -e 's:$: $lt_compiler_flag:'`
13851 (eval echo "\"\$as_me:13851: $lt_compile\"" >&5)
13852 (eval "$lt_compile" 2>conftest.err)
13853 ac_status=$?
13854 cat conftest.err >&5
13855 echo "$as_me:13855: \$? = $ac_status" >&5
13856 if (exit $ac_status) && test -s "$ac_outfile"; then
13857 # The compiler can only warn and ignore the option if not recognized
13858 # So say no if there are warnings other than the usual output.
13859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13862 lt_prog_compiler_pic_works_F77=yes
13863 fi
13864 fi
13865 $rm conftest*
13866
13867 fi
13868 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13869 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13870
13871 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13872 case $lt_prog_compiler_pic_F77 in
13873 "" | " "*) ;;
13874 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13875 esac
13876 else
13877 lt_prog_compiler_pic_F77=
13878 lt_prog_compiler_can_build_shared_F77=no
13879 fi
13880
13881 fi
13882 case $host_os in
13883 # For platforms which do not support PIC, -DPIC is meaningless:
13884 *djgpp*)
13885 lt_prog_compiler_pic_F77=
13886 ;;
13887 *)
13888 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13889 ;;
13890 esac
13891
13892 #
13893 # Check to make sure the static flag actually works.
13894 #
13895 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13896 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13897 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13898 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901 lt_prog_compiler_static_works_F77=no
13902 save_LDFLAGS="$LDFLAGS"
13903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13904 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13906 # The linker can only warn and ignore the option if not recognized
13907 # So say no if there are warnings
13908 if test -s conftest.err; then
13909 # Append any errors to the config.log.
13910 cat conftest.err 1>&5
13911 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13913 if diff conftest.exp conftest.er2 >/dev/null; then
13914 lt_prog_compiler_static_works_F77=yes
13915 fi
13916 else
13917 lt_prog_compiler_static_works_F77=yes
13918 fi
13919 fi
13920 $rm conftest*
13921 LDFLAGS="$save_LDFLAGS"
13922
13923 fi
13924 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13925 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13926
13927 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13928 :
13929 else
13930 lt_prog_compiler_static_F77=
13931 fi
13932
13933
13934 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13935 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13936 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939 lt_cv_prog_compiler_c_o_F77=no
13940 $rm -r conftest 2>/dev/null
13941 mkdir conftest
13942 cd conftest
13943 mkdir out
13944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13945
13946 lt_compiler_flag="-o out/conftest2.$ac_objext"
13947 # Insert the option either (1) after the last *FLAGS variable, or
13948 # (2) before a word containing "conftest.", or (3) at the end.
13949 # Note that $ac_compile itself does not contain backslashes and begins
13950 # with a dollar sign (not a hyphen), so the echo should work correctly.
13951 lt_compile=`echo "$ac_compile" | $SED \
13952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13954 -e 's:$: $lt_compiler_flag:'`
13955 (eval echo "\"\$as_me:13955: $lt_compile\"" >&5)
13956 (eval "$lt_compile" 2>out/conftest.err)
13957 ac_status=$?
13958 cat out/conftest.err >&5
13959 echo "$as_me:13959: \$? = $ac_status" >&5
13960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13961 then
13962 # The compiler can only warn and ignore the option if not recognized
13963 # So say no if there are warnings
13964 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13967 lt_cv_prog_compiler_c_o_F77=yes
13968 fi
13969 fi
13970 chmod u+w . 2>&5
13971 $rm conftest*
13972 # SGI C++ compiler will create directory out/ii_files/ for
13973 # template instantiation
13974 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13975 $rm out/* && rmdir out
13976 cd ..
13977 rmdir conftest
13978 $rm conftest*
13979
13980 fi
13981 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13983
13984
13985 hard_links="nottested"
13986 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13987 # do not overwrite the value of need_locks provided by the user
13988 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13990 hard_links=yes
13991 $rm conftest*
13992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13993 touch conftest.a
13994 ln conftest.a conftest.b 2>&5 || hard_links=no
13995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13996 { echo "$as_me:$LINENO: result: $hard_links" >&5
13997 echo "${ECHO_T}$hard_links" >&6; }
13998 if test "$hard_links" = no; then
13999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14001 need_locks=warn
14002 fi
14003 else
14004 need_locks=no
14005 fi
14006
14007 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14009
14010 runpath_var=
14011 allow_undefined_flag_F77=
14012 enable_shared_with_static_runtimes_F77=no
14013 archive_cmds_F77=
14014 archive_expsym_cmds_F77=
14015 old_archive_From_new_cmds_F77=
14016 old_archive_from_expsyms_cmds_F77=
14017 export_dynamic_flag_spec_F77=
14018 whole_archive_flag_spec_F77=
14019 thread_safe_flag_spec_F77=
14020 hardcode_libdir_flag_spec_F77=
14021 hardcode_libdir_flag_spec_ld_F77=
14022 hardcode_libdir_separator_F77=
14023 hardcode_direct_F77=no
14024 hardcode_minus_L_F77=no
14025 hardcode_shlibpath_var_F77=unsupported
14026 link_all_deplibs_F77=unknown
14027 hardcode_automatic_F77=no
14028 module_cmds_F77=
14029 module_expsym_cmds_F77=
14030 always_export_symbols_F77=no
14031 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14032 # include_expsyms should be a list of space-separated symbols to be *always*
14033 # included in the symbol list
14034 include_expsyms_F77=
14035 # exclude_expsyms can be an extended regexp of symbols to exclude
14036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14038 # as well as any symbol that contains `d'.
14039 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14041 # platforms (ab)use it in PIC code, but their linkers get confused if
14042 # the symbol is explicitly referenced. Since portable code cannot
14043 # rely on this symbol name, it's probably fine to never include it in
14044 # preloaded symbol tables.
14045 extract_expsyms_cmds=
14046 # Just being paranoid about ensuring that cc_basename is set.
14047 for cc_temp in $compiler""; do
14048 case $cc_temp in
14049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14051 \-*) ;;
14052 *) break;;
14053 esac
14054 done
14055 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14056
14057 case $host_os in
14058 cygwin* | mingw* | pw32*)
14059 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14060 # When not using gcc, we currently assume that we are using
14061 # Microsoft Visual C++.
14062 if test "$GCC" != yes; then
14063 with_gnu_ld=no
14064 fi
14065 ;;
14066 interix*)
14067 # we just hope/assume this is gcc and not c89 (= MSVC++)
14068 with_gnu_ld=yes
14069 ;;
14070 openbsd*)
14071 with_gnu_ld=no
14072 ;;
14073 esac
14074
14075 ld_shlibs_F77=yes
14076 if test "$with_gnu_ld" = yes; then
14077 # If archive_cmds runs LD, not CC, wlarc should be empty
14078 wlarc='${wl}'
14079
14080 # Set some defaults for GNU ld with shared library support. These
14081 # are reset later if shared libraries are not supported. Putting them
14082 # here allows them to be overridden if necessary.
14083 runpath_var=LD_RUN_PATH
14084 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14085 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14086 # ancient GNU ld didn't support --whole-archive et. al.
14087 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14088 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14089 else
14090 whole_archive_flag_spec_F77=
14091 fi
14092 supports_anon_versioning=no
14093 case `$LD -v 2>/dev/null` in
14094 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14095 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14096 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14097 *\ 2.11.*) ;; # other 2.11 versions
14098 *) supports_anon_versioning=yes ;;
14099 esac
14100
14101 # See if GNU ld supports shared libraries.
14102 case $host_os in
14103 aix3* | aix4* | aix5*)
14104 # On AIX/PPC, the GNU linker is very broken
14105 if test "$host_cpu" != ia64; then
14106 ld_shlibs_F77=no
14107 cat <<EOF 1>&2
14108
14109 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14110 *** to be unable to reliably create shared libraries on AIX.
14111 *** Therefore, libtool is disabling shared libraries support. If you
14112 *** really care for shared libraries, you may want to modify your PATH
14113 *** so that a non-GNU linker is found, and then restart.
14114
14115 EOF
14116 fi
14117 ;;
14118
14119 amigaos*)
14120 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)'
14121 hardcode_libdir_flag_spec_F77='-L$libdir'
14122 hardcode_minus_L_F77=yes
14123
14124 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14125 # that the semantics of dynamic libraries on AmigaOS, at least up
14126 # to version 4, is to share data among multiple programs linked
14127 # with the same dynamic library. Since this doesn't match the
14128 # behavior of shared libraries on other platforms, we can't use
14129 # them.
14130 ld_shlibs_F77=no
14131 ;;
14132
14133 beos*)
14134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14135 allow_undefined_flag_F77=unsupported
14136 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14137 # support --undefined. This deserves some investigation. FIXME
14138 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14139 else
14140 ld_shlibs_F77=no
14141 fi
14142 ;;
14143
14144 cygwin* | mingw* | pw32*)
14145 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14146 # as there is no search path for DLLs.
14147 hardcode_libdir_flag_spec_F77='-L$libdir'
14148 allow_undefined_flag_F77=unsupported
14149 always_export_symbols_F77=no
14150 enable_shared_with_static_runtimes_F77=yes
14151 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14152
14153 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14154 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14155 # If the export-symbols file already is a .def file (1st line
14156 # is EXPORTS), use it as is; otherwise, prepend...
14157 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14158 cp $export_symbols $output_objdir/$soname.def;
14159 else
14160 echo EXPORTS > $output_objdir/$soname.def;
14161 cat $export_symbols >> $output_objdir/$soname.def;
14162 fi~
14163 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14164 else
14165 ld_shlibs_F77=no
14166 fi
14167 ;;
14168
14169 interix3*)
14170 hardcode_direct_F77=no
14171 hardcode_shlibpath_var_F77=no
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 export_dynamic_flag_spec_F77='${wl}-E'
14174 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14175 # Instead, shared libraries are loaded at an image base (0x10000000 by
14176 # default) and relocated if they conflict, which is a slow very memory
14177 # consuming and fragmenting process. To avoid this, we pick a random,
14178 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14179 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14180 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'
14181 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'
14182 ;;
14183
14184 linux* | k*bsd*-gnu)
14185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14186 tmp_addflag=
14187 case $cc_basename,$host_cpu in
14188 pgcc*) # Portland Group C compiler
14189 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'
14190 tmp_addflag=' $pic_flag'
14191 ;;
14192 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14193 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'
14194 tmp_addflag=' $pic_flag -Mnomain' ;;
14195 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14196 tmp_addflag=' -i_dynamic' ;;
14197 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14198 tmp_addflag=' -i_dynamic -nofor_main' ;;
14199 ifc* | ifort*) # Intel Fortran compiler
14200 tmp_addflag=' -nofor_main' ;;
14201 esac
14202 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14203
14204 if test $supports_anon_versioning = yes; then
14205 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14207 $echo "local: *; };" >> $output_objdir/$libname.ver~
14208 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14209 fi
14210 link_all_deplibs_F77=no
14211 else
14212 ld_shlibs_F77=no
14213 fi
14214 ;;
14215
14216 netbsd* | netbsdelf*-gnu)
14217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14218 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14219 wlarc=
14220 else
14221 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14222 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14223 fi
14224 ;;
14225
14226 solaris*)
14227 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14228 ld_shlibs_F77=no
14229 cat <<EOF 1>&2
14230
14231 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14232 *** create shared libraries on Solaris systems. Therefore, libtool
14233 *** is disabling shared libraries support. We urge you to upgrade GNU
14234 *** binutils to release 2.9.1 or newer. Another option is to modify
14235 *** your PATH or compiler configuration so that the native linker is
14236 *** used, and then restart.
14237
14238 EOF
14239 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14242 else
14243 ld_shlibs_F77=no
14244 fi
14245 ;;
14246
14247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14248 case `$LD -v 2>&1` in
14249 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14250 ld_shlibs_F77=no
14251 cat <<_LT_EOF 1>&2
14252
14253 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14254 *** reliably create shared libraries on SCO systems. Therefore, libtool
14255 *** is disabling shared libraries support. We urge you to upgrade GNU
14256 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14257 *** your PATH or compiler configuration so that the native linker is
14258 *** used, and then restart.
14259
14260 _LT_EOF
14261 ;;
14262 *)
14263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14264 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14267 else
14268 ld_shlibs_F77=no
14269 fi
14270 ;;
14271 esac
14272 ;;
14273
14274 sunos4*)
14275 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14276 wlarc=
14277 hardcode_direct_F77=yes
14278 hardcode_shlibpath_var_F77=no
14279 ;;
14280
14281 *)
14282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14284 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14285 else
14286 ld_shlibs_F77=no
14287 fi
14288 ;;
14289 esac
14290
14291 if test "$ld_shlibs_F77" = no; then
14292 runpath_var=
14293 hardcode_libdir_flag_spec_F77=
14294 export_dynamic_flag_spec_F77=
14295 whole_archive_flag_spec_F77=
14296 fi
14297 else
14298 # PORTME fill in a description of your system's linker (not GNU ld)
14299 case $host_os in
14300 aix3*)
14301 allow_undefined_flag_F77=unsupported
14302 always_export_symbols_F77=yes
14303 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'
14304 # Note: this linker hardcodes the directories in LIBPATH if there
14305 # are no directories specified by -L.
14306 hardcode_minus_L_F77=yes
14307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14308 # Neither direct hardcoding nor static linking is supported with a
14309 # broken collect2.
14310 hardcode_direct_F77=unsupported
14311 fi
14312 ;;
14313
14314 aix4* | aix5*)
14315 if test "$host_cpu" = ia64; then
14316 # On IA64, the linker does run time linking by default, so we don't
14317 # have to do anything special.
14318 aix_use_runtimelinking=no
14319 exp_sym_flag='-Bexport'
14320 no_entry_flag=""
14321 else
14322 # If we're using GNU nm, then we don't want the "-C" option.
14323 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14324 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14325 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'
14326 else
14327 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'
14328 fi
14329 aix_use_runtimelinking=no
14330
14331 # Test if we are trying to use run time linking or normal
14332 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14333 # need to do runtime linking.
14334 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14335 for ld_flag in $LDFLAGS; do
14336 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14337 aix_use_runtimelinking=yes
14338 break
14339 fi
14340 done
14341 ;;
14342 esac
14343
14344 exp_sym_flag='-bexport'
14345 no_entry_flag='-bnoentry'
14346 fi
14347
14348 # When large executables or shared objects are built, AIX ld can
14349 # have problems creating the table of contents. If linking a library
14350 # or program results in "error TOC overflow" add -mminimal-toc to
14351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14353
14354 archive_cmds_F77=''
14355 hardcode_direct_F77=yes
14356 hardcode_libdir_separator_F77=':'
14357 link_all_deplibs_F77=yes
14358
14359 if test "$GCC" = yes; then
14360 case $host_os in aix4.[012]|aix4.[012].*)
14361 # We only want to do this on AIX 4.2 and lower, the check
14362 # below for broken collect2 doesn't work under 4.3+
14363 collect2name=`${CC} -print-prog-name=collect2`
14364 if test -f "$collect2name" && \
14365 strings "$collect2name" | grep resolve_lib_name >/dev/null
14366 then
14367 # We have reworked collect2
14368 hardcode_direct_F77=yes
14369 else
14370 # We have old collect2
14371 hardcode_direct_F77=unsupported
14372 # It fails to find uninstalled libraries when the uninstalled
14373 # path is not listed in the libpath. Setting hardcode_minus_L
14374 # to unsupported forces relinking
14375 hardcode_minus_L_F77=yes
14376 hardcode_libdir_flag_spec_F77='-L$libdir'
14377 hardcode_libdir_separator_F77=
14378 fi
14379 ;;
14380 esac
14381 shared_flag='-shared'
14382 if test "$aix_use_runtimelinking" = yes; then
14383 shared_flag="$shared_flag "'${wl}-G'
14384 fi
14385 else
14386 # not using gcc
14387 if test "$host_cpu" = ia64; then
14388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14389 # chokes on -Wl,-G. The following line is correct:
14390 shared_flag='-G'
14391 else
14392 if test "$aix_use_runtimelinking" = yes; then
14393 shared_flag='${wl}-G'
14394 else
14395 shared_flag='${wl}-bM:SRE'
14396 fi
14397 fi
14398 fi
14399
14400 # It seems that -bexpall does not export symbols beginning with
14401 # underscore (_), so it is better to generate a list of symbols to export.
14402 always_export_symbols_F77=yes
14403 if test "$aix_use_runtimelinking" = yes; then
14404 # Warning - without using the other runtime loading flags (-brtl),
14405 # -berok will link without error, but may produce a broken library.
14406 allow_undefined_flag_F77='-berok'
14407 # Determine the default libpath from the value encoded in an empty executable.
14408 cat >conftest.$ac_ext <<_ACEOF
14409 program main
14410
14411 end
14412 _ACEOF
14413 rm -f conftest.$ac_objext conftest$ac_exeext
14414 if { (ac_try="$ac_link"
14415 case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_link") 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } && {
14427 test -z "$ac_f77_werror_flag" ||
14428 test ! -s conftest.err
14429 } && test -s conftest$ac_exeext &&
14430 $as_test_x conftest$ac_exeext; then
14431
14432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14433 }'`
14434 # Check for a 64-bit object if we didn't find anything.
14435 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14436 }'`; fi
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14440
14441
14442 fi
14443
14444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14445 conftest$ac_exeext conftest.$ac_ext
14446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14447
14448 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14449 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"
14450 else
14451 if test "$host_cpu" = ia64; then
14452 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14453 allow_undefined_flag_F77="-z nodefs"
14454 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"
14455 else
14456 # Determine the default libpath from the value encoded in an empty executable.
14457 cat >conftest.$ac_ext <<_ACEOF
14458 program main
14459
14460 end
14461 _ACEOF
14462 rm -f conftest.$ac_objext conftest$ac_exeext
14463 if { (ac_try="$ac_link"
14464 case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_link") 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_f77_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest$ac_exeext &&
14479 $as_test_x conftest$ac_exeext; then
14480
14481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14482 }'`
14483 # Check for a 64-bit object if we didn't find anything.
14484 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14485 }'`; fi
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490
14491 fi
14492
14493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14494 conftest$ac_exeext conftest.$ac_ext
14495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14496
14497 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14498 # Warning - without using the other run time loading flags,
14499 # -berok will link without error, but may produce a broken library.
14500 no_undefined_flag_F77=' ${wl}-bernotok'
14501 allow_undefined_flag_F77=' ${wl}-berok'
14502 # Exported symbols can be pulled into shared objects from archives
14503 whole_archive_flag_spec_F77='$convenience'
14504 archive_cmds_need_lc_F77=yes
14505 # This is similar to how AIX traditionally builds its shared libraries.
14506 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'
14507 fi
14508 fi
14509 ;;
14510
14511 amigaos*)
14512 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)'
14513 hardcode_libdir_flag_spec_F77='-L$libdir'
14514 hardcode_minus_L_F77=yes
14515 # see comment about different semantics on the GNU ld section
14516 ld_shlibs_F77=no
14517 ;;
14518
14519 bsdi[45]*)
14520 export_dynamic_flag_spec_F77=-rdynamic
14521 ;;
14522
14523 cygwin* | mingw* | pw32*)
14524 # When not using gcc, we currently assume that we are using
14525 # Microsoft Visual C++.
14526 # hardcode_libdir_flag_spec is actually meaningless, as there is
14527 # no search path for DLLs.
14528 hardcode_libdir_flag_spec_F77=' '
14529 allow_undefined_flag_F77=unsupported
14530 # Tell ltmain to make .lib files, not .a files.
14531 libext=lib
14532 # Tell ltmain to make .dll files, not .so files.
14533 shrext_cmds=".dll"
14534 # FIXME: Setting linknames here is a bad hack.
14535 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14536 # The linker will automatically build a .lib file if we build a DLL.
14537 old_archive_From_new_cmds_F77='true'
14538 # FIXME: Should let the user specify the lib program.
14539 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14540 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14541 enable_shared_with_static_runtimes_F77=yes
14542 ;;
14543
14544 darwin* | rhapsody*)
14545 case $host_os in
14546 rhapsody* | darwin1.[012])
14547 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14548 ;;
14549 *) # Darwin 1.3 on
14550 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14551 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14552 else
14553 case ${MACOSX_DEPLOYMENT_TARGET} in
14554 10.[012])
14555 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14556 ;;
14557 10.*)
14558 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14559 ;;
14560 esac
14561 fi
14562 ;;
14563 esac
14564 archive_cmds_need_lc_F77=no
14565 hardcode_direct_F77=no
14566 hardcode_automatic_F77=yes
14567 hardcode_shlibpath_var_F77=unsupported
14568 whole_archive_flag_spec_F77=''
14569 link_all_deplibs_F77=yes
14570 if test "$GCC" = yes ; then
14571 output_verbose_link_cmd='echo'
14572 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14573 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14575 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}'
14576 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}'
14577 else
14578 case $cc_basename in
14579 xlc*)
14580 output_verbose_link_cmd='echo'
14581 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14582 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14584 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14585 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}'
14586 ;;
14587 *)
14588 ld_shlibs_F77=no
14589 ;;
14590 esac
14591 fi
14592 ;;
14593
14594 dgux*)
14595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14596 hardcode_libdir_flag_spec_F77='-L$libdir'
14597 hardcode_shlibpath_var_F77=no
14598 ;;
14599
14600 freebsd1*)
14601 ld_shlibs_F77=no
14602 ;;
14603
14604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14605 # support. Future versions do this automatically, but an explicit c++rt0.o
14606 # does not break anything, and helps significantly (at the cost of a little
14607 # extra space).
14608 freebsd2.2*)
14609 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14610 hardcode_libdir_flag_spec_F77='-R$libdir'
14611 hardcode_direct_F77=yes
14612 hardcode_shlibpath_var_F77=no
14613 ;;
14614
14615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14616 freebsd2*)
14617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14618 hardcode_direct_F77=yes
14619 hardcode_minus_L_F77=yes
14620 hardcode_shlibpath_var_F77=no
14621 ;;
14622
14623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14624 freebsd* | dragonfly*)
14625 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14626 hardcode_libdir_flag_spec_F77='-R$libdir'
14627 hardcode_direct_F77=yes
14628 hardcode_shlibpath_var_F77=no
14629 ;;
14630
14631 hpux9*)
14632 if test "$GCC" = yes; then
14633 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'
14634 else
14635 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'
14636 fi
14637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14638 hardcode_libdir_separator_F77=:
14639 hardcode_direct_F77=yes
14640
14641 # hardcode_minus_L: Not really in the search PATH,
14642 # but as the default location of the library.
14643 hardcode_minus_L_F77=yes
14644 export_dynamic_flag_spec_F77='${wl}-E'
14645 ;;
14646
14647 hpux10*)
14648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14649 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14650 else
14651 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14652 fi
14653 if test "$with_gnu_ld" = no; then
14654 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14655 hardcode_libdir_separator_F77=:
14656
14657 hardcode_direct_F77=yes
14658 export_dynamic_flag_spec_F77='${wl}-E'
14659
14660 # hardcode_minus_L: Not really in the search PATH,
14661 # but as the default location of the library.
14662 hardcode_minus_L_F77=yes
14663 fi
14664 ;;
14665
14666 hpux11*)
14667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14668 case $host_cpu in
14669 hppa*64*)
14670 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14671 ;;
14672 ia64*)
14673 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14674 ;;
14675 *)
14676 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14677 ;;
14678 esac
14679 else
14680 case $host_cpu in
14681 hppa*64*)
14682 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 ;;
14684 ia64*)
14685 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14686 ;;
14687 *)
14688 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14689 ;;
14690 esac
14691 fi
14692 if test "$with_gnu_ld" = no; then
14693 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14694 hardcode_libdir_separator_F77=:
14695
14696 case $host_cpu in
14697 hppa*64*|ia64*)
14698 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14699 hardcode_direct_F77=no
14700 hardcode_shlibpath_var_F77=no
14701 ;;
14702 *)
14703 hardcode_direct_F77=yes
14704 export_dynamic_flag_spec_F77='${wl}-E'
14705
14706 # hardcode_minus_L: Not really in the search PATH,
14707 # but as the default location of the library.
14708 hardcode_minus_L_F77=yes
14709 ;;
14710 esac
14711 fi
14712 ;;
14713
14714 irix5* | irix6* | nonstopux*)
14715 if test "$GCC" = yes; then
14716 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'
14717 else
14718 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'
14719 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14720 fi
14721 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14722 hardcode_libdir_separator_F77=:
14723 link_all_deplibs_F77=yes
14724 ;;
14725
14726 netbsd* | netbsdelf*-gnu)
14727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14728 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14729 else
14730 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14731 fi
14732 hardcode_libdir_flag_spec_F77='-R$libdir'
14733 hardcode_direct_F77=yes
14734 hardcode_shlibpath_var_F77=no
14735 ;;
14736
14737 newsos6)
14738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_direct_F77=yes
14740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14741 hardcode_libdir_separator_F77=:
14742 hardcode_shlibpath_var_F77=no
14743 ;;
14744
14745 openbsd*)
14746 hardcode_direct_F77=yes
14747 hardcode_shlibpath_var_F77=no
14748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14749 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14750 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14751 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14752 export_dynamic_flag_spec_F77='${wl}-E'
14753 else
14754 case $host_os in
14755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14756 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14757 hardcode_libdir_flag_spec_F77='-R$libdir'
14758 ;;
14759 *)
14760 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14762 ;;
14763 esac
14764 fi
14765 ;;
14766
14767 os2*)
14768 hardcode_libdir_flag_spec_F77='-L$libdir'
14769 hardcode_minus_L_F77=yes
14770 allow_undefined_flag_F77=unsupported
14771 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'
14772 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14773 ;;
14774
14775 osf3*)
14776 if test "$GCC" = yes; then
14777 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14778 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'
14779 else
14780 allow_undefined_flag_F77=' -expect_unresolved \*'
14781 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'
14782 fi
14783 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14784 hardcode_libdir_separator_F77=:
14785 ;;
14786
14787 osf4* | osf5*) # as osf3* with the addition of -msym flag
14788 if test "$GCC" = yes; then
14789 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14790 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'
14791 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14792 else
14793 allow_undefined_flag_F77=' -expect_unresolved \*'
14794 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'
14795 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~
14796 $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'
14797
14798 # Both c and cxx compiler support -rpath directly
14799 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14800 fi
14801 hardcode_libdir_separator_F77=:
14802 ;;
14803
14804 solaris*)
14805 no_undefined_flag_F77=' -z text'
14806 if test "$GCC" = yes; then
14807 wlarc='${wl}'
14808 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14810 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14811 else
14812 wlarc=''
14813 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14814 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14815 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14816 fi
14817 hardcode_libdir_flag_spec_F77='-R$libdir'
14818 hardcode_shlibpath_var_F77=no
14819 case $host_os in
14820 solaris2.[0-5] | solaris2.[0-5].*) ;;
14821 *)
14822 # The compiler driver will combine linker options so we
14823 # cannot just pass the convience library names through
14824 # without $wl, iff we do not link with $LD.
14825 # Luckily, gcc supports the same syntax we need for Sun Studio.
14826 # Supported since Solaris 2.6 (maybe 2.5.1?)
14827 case $wlarc in
14828 '')
14829 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14830 *)
14831 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14832 esac ;;
14833 esac
14834 link_all_deplibs_F77=yes
14835 ;;
14836
14837 sunos4*)
14838 if test "x$host_vendor" = xsequent; then
14839 # Use $CC to link under sequent, because it throws in some extra .o
14840 # files that make .init and .fini sections work.
14841 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14842 else
14843 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14844 fi
14845 hardcode_libdir_flag_spec_F77='-L$libdir'
14846 hardcode_direct_F77=yes
14847 hardcode_minus_L_F77=yes
14848 hardcode_shlibpath_var_F77=no
14849 ;;
14850
14851 sysv4)
14852 case $host_vendor in
14853 sni)
14854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14855 hardcode_direct_F77=yes # is this really true???
14856 ;;
14857 siemens)
14858 ## LD is ld it makes a PLAMLIB
14859 ## CC just makes a GrossModule.
14860 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14861 reload_cmds_F77='$CC -r -o $output$reload_objs'
14862 hardcode_direct_F77=no
14863 ;;
14864 motorola)
14865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14867 ;;
14868 esac
14869 runpath_var='LD_RUN_PATH'
14870 hardcode_shlibpath_var_F77=no
14871 ;;
14872
14873 sysv4.3*)
14874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_shlibpath_var_F77=no
14876 export_dynamic_flag_spec_F77='-Bexport'
14877 ;;
14878
14879 sysv4*MP*)
14880 if test -d /usr/nec; then
14881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_shlibpath_var_F77=no
14883 runpath_var=LD_RUN_PATH
14884 hardcode_runpath_var=yes
14885 ld_shlibs_F77=yes
14886 fi
14887 ;;
14888
14889 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14890 no_undefined_flag_F77='${wl}-z,text'
14891 archive_cmds_need_lc_F77=no
14892 hardcode_shlibpath_var_F77=no
14893 runpath_var='LD_RUN_PATH'
14894
14895 if test "$GCC" = yes; then
14896 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14897 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14898 else
14899 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14900 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14901 fi
14902 ;;
14903
14904 sysv5* | sco3.2v5* | sco5v6*)
14905 # Note: We can NOT use -z defs as we might desire, because we do not
14906 # link with -lc, and that would cause any symbols used from libc to
14907 # always be unresolved, which means just about no library would
14908 # ever link correctly. If we're not using GNU ld we use -z text
14909 # though, which does catch some bad symbols but isn't as heavy-handed
14910 # as -z defs.
14911 no_undefined_flag_F77='${wl}-z,text'
14912 allow_undefined_flag_F77='${wl}-z,nodefs'
14913 archive_cmds_need_lc_F77=no
14914 hardcode_shlibpath_var_F77=no
14915 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14916 hardcode_libdir_separator_F77=':'
14917 link_all_deplibs_F77=yes
14918 export_dynamic_flag_spec_F77='${wl}-Bexport'
14919 runpath_var='LD_RUN_PATH'
14920
14921 if test "$GCC" = yes; then
14922 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 else
14925 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14926 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 fi
14928 ;;
14929
14930 uts4*)
14931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14932 hardcode_libdir_flag_spec_F77='-L$libdir'
14933 hardcode_shlibpath_var_F77=no
14934 ;;
14935
14936 *)
14937 ld_shlibs_F77=no
14938 ;;
14939 esac
14940 fi
14941
14942 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14943 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14944 test "$ld_shlibs_F77" = no && can_build_shared=no
14945
14946 #
14947 # Do we need to explicitly link libc?
14948 #
14949 case "x$archive_cmds_need_lc_F77" in
14950 x|xyes)
14951 # Assume -lc should be added
14952 archive_cmds_need_lc_F77=yes
14953
14954 if test "$enable_shared" = yes && test "$GCC" = yes; then
14955 case $archive_cmds_F77 in
14956 *'~'*)
14957 # FIXME: we may have to deal with multi-command sequences.
14958 ;;
14959 '$CC '*)
14960 # Test whether the compiler implicitly links with -lc since on some
14961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14962 # to ld, don't add -lc before -lgcc.
14963 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14964 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14965 $rm conftest*
14966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14967
14968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969 (eval $ac_compile) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } 2>conftest.err; then
14973 soname=conftest
14974 lib=conftest
14975 libobjs=conftest.$ac_objext
14976 deplibs=
14977 wl=$lt_prog_compiler_wl_F77
14978 pic_flag=$lt_prog_compiler_pic_F77
14979 compiler_flags=-v
14980 linker_flags=-v
14981 verstring=
14982 output_objdir=.
14983 libname=conftest
14984 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14985 allow_undefined_flag_F77=
14986 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14987 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }
14991 then
14992 archive_cmds_need_lc_F77=no
14993 else
14994 archive_cmds_need_lc_F77=yes
14995 fi
14996 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14997 else
14998 cat conftest.err 1>&5
14999 fi
15000 $rm conftest*
15001 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15002 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15003 ;;
15004 esac
15005 fi
15006 ;;
15007 esac
15008
15009 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15010 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15011 library_names_spec=
15012 libname_spec='lib$name'
15013 soname_spec=
15014 shrext_cmds=".so"
15015 postinstall_cmds=
15016 postuninstall_cmds=
15017 finish_cmds=
15018 finish_eval=
15019 shlibpath_var=
15020 shlibpath_overrides_runpath=unknown
15021 version_type=none
15022 dynamic_linker="$host_os ld.so"
15023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15024 if test "$GCC" = yes; then
15025 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15026 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15027 # if the path contains ";" then we assume it to be the separator
15028 # otherwise default to the standard path separator (i.e. ":") - it is
15029 # assumed that no part of a normal pathname contains ";" but that should
15030 # okay in the real world where ";" in dirpaths is itself problematic.
15031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15032 else
15033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15034 fi
15035 else
15036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15037 fi
15038 need_lib_prefix=unknown
15039 hardcode_into_libs=no
15040
15041 # when you set need_version to no, make sure it does not cause -set_version
15042 # flags to be left without arguments
15043 need_version=unknown
15044
15045 case $host_os in
15046 aix3*)
15047 version_type=linux
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15049 shlibpath_var=LIBPATH
15050
15051 # AIX 3 has no versioning support, so we append a major version to the name.
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 ;;
15054
15055 aix4* | aix5*)
15056 version_type=linux
15057 need_lib_prefix=no
15058 need_version=no
15059 hardcode_into_libs=yes
15060 if test "$host_cpu" = ia64; then
15061 # AIX 5 supports IA64
15062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 else
15065 # With GCC up to 2.95.x, collect2 would create an import file
15066 # for dependence libraries. The import file would start with
15067 # the line `#! .'. This would cause the generated library to
15068 # depend on `.', always an invalid library. This was fixed in
15069 # development snapshots of GCC prior to 3.0.
15070 case $host_os in
15071 aix4 | aix4.[01] | aix4.[01].*)
15072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15073 echo ' yes '
15074 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15075 :
15076 else
15077 can_build_shared=no
15078 fi
15079 ;;
15080 esac
15081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15082 # soname into executable. Probably we can add versioning support to
15083 # collect2, so additional links can be useful in future.
15084 if test "$aix_use_runtimelinking" = yes; then
15085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15086 # instead of lib<name>.a to let people know that these are not
15087 # typical AIX shared libraries.
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089 else
15090 # We preserve .a as extension for shared libraries through AIX4.2
15091 # and later when we are not doing run time linking.
15092 library_names_spec='${libname}${release}.a $libname.a'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 fi
15095 shlibpath_var=LIBPATH
15096 fi
15097 ;;
15098
15099 amigaos*)
15100 library_names_spec='$libname.ixlibrary $libname.a'
15101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15102 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'
15103 ;;
15104
15105 beos*)
15106 library_names_spec='${libname}${shared_ext}'
15107 dynamic_linker="$host_os ld.so"
15108 shlibpath_var=LIBRARY_PATH
15109 ;;
15110
15111 bsdi[45]*)
15112 version_type=linux
15113 need_version=no
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15119 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15120 # the default ld.so.conf also contains /usr/contrib/lib and
15121 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15122 # libtool to hard-code these into programs
15123 ;;
15124
15125 cygwin* | mingw* | pw32*)
15126 version_type=windows
15127 shrext_cmds=".dll"
15128 need_version=no
15129 need_lib_prefix=no
15130
15131 case $GCC,$host_os in
15132 yes,cygwin* | yes,mingw* | yes,pw32*)
15133 library_names_spec='$libname.dll.a'
15134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15135 postinstall_cmds='base_file=`basename \${file}`~
15136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15137 dldir=$destdir/`dirname \$dlpath`~
15138 test -d \$dldir || mkdir -p \$dldir~
15139 $install_prog $dir/$dlname \$dldir/$dlname~
15140 chmod a+x \$dldir/$dlname'
15141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15142 dlpath=$dir/\$dldll~
15143 $rm \$dlpath'
15144 shlibpath_overrides_runpath=yes
15145
15146 case $host_os in
15147 cygwin*)
15148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15150 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15151 ;;
15152 mingw*)
15153 # MinGW DLLs use traditional 'lib' prefix
15154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15155 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15156 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15157 # It is most probably a Windows format PATH printed by
15158 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15159 # path with ; separators, and with drive letters. We can handle the
15160 # drive letters (cygwin fileutils understands them), so leave them,
15161 # especially as we might pass files found there to a mingw objdump,
15162 # which wouldn't understand a cygwinified path. Ahh.
15163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15164 else
15165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15166 fi
15167 ;;
15168 pw32*)
15169 # pw32 DLLs use 'pw' prefix rather than 'lib'
15170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15171 ;;
15172 esac
15173 ;;
15174
15175 *)
15176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15177 ;;
15178 esac
15179 dynamic_linker='Win32 ld.exe'
15180 # FIXME: first we should search . and the directory the executable is in
15181 shlibpath_var=PATH
15182 ;;
15183
15184 darwin* | rhapsody*)
15185 dynamic_linker="$host_os dyld"
15186 version_type=darwin
15187 need_lib_prefix=no
15188 need_version=no
15189 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15190 soname_spec='${libname}${release}${major}$shared_ext'
15191 shlibpath_overrides_runpath=yes
15192 shlibpath_var=DYLD_LIBRARY_PATH
15193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15194 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15195 if test "$GCC" = yes; then
15196 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15197 else
15198 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15199 fi
15200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15201 ;;
15202
15203 dgux*)
15204 version_type=linux
15205 need_lib_prefix=no
15206 need_version=no
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 ;;
15211
15212 freebsd1*)
15213 dynamic_linker=no
15214 ;;
15215
15216 freebsd* | dragonfly*)
15217 # DragonFly does not have aout. When/if they implement a new
15218 # versioning mechanism, adjust this.
15219 if test -x /usr/bin/objformat; then
15220 objformat=`/usr/bin/objformat`
15221 else
15222 case $host_os in
15223 freebsd[123]*) objformat=aout ;;
15224 *) objformat=elf ;;
15225 esac
15226 fi
15227 version_type=freebsd-$objformat
15228 case $version_type in
15229 freebsd-elf*)
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15231 need_version=no
15232 need_lib_prefix=no
15233 ;;
15234 freebsd-*)
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15236 need_version=yes
15237 ;;
15238 esac
15239 shlibpath_var=LD_LIBRARY_PATH
15240 case $host_os in
15241 freebsd2*)
15242 shlibpath_overrides_runpath=yes
15243 ;;
15244 freebsd3.[01]* | freebsdelf3.[01]*)
15245 shlibpath_overrides_runpath=yes
15246 hardcode_into_libs=yes
15247 ;;
15248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15250 shlibpath_overrides_runpath=no
15251 hardcode_into_libs=yes
15252 ;;
15253 freebsd*) # from 4.6 on
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15256 ;;
15257 esac
15258 ;;
15259
15260 gnu*)
15261 version_type=linux
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 hardcode_into_libs=yes
15268 ;;
15269
15270 hpux9* | hpux10* | hpux11*)
15271 # Give a soname corresponding to the major version so that dld.sl refuses to
15272 # link against other versions.
15273 version_type=sunos
15274 need_lib_prefix=no
15275 need_version=no
15276 case $host_cpu in
15277 ia64*)
15278 shrext_cmds='.so'
15279 hardcode_into_libs=yes
15280 dynamic_linker="$host_os dld.so"
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 if test "X$HPUX_IA64_MODE" = X32; then
15286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15287 else
15288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15289 fi
15290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15291 ;;
15292 hppa*64*)
15293 shrext_cmds='.sl'
15294 hardcode_into_libs=yes
15295 dynamic_linker="$host_os dld.sl"
15296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299 soname_spec='${libname}${release}${shared_ext}$major'
15300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15302 ;;
15303 *)
15304 shrext_cmds='.sl'
15305 dynamic_linker="$host_os dld.sl"
15306 shlibpath_var=SHLIB_PATH
15307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 ;;
15311 esac
15312 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15313 postinstall_cmds='chmod 555 $lib'
15314 ;;
15315
15316 interix3*)
15317 version_type=linux
15318 need_lib_prefix=no
15319 need_version=no
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=no
15325 hardcode_into_libs=yes
15326 ;;
15327
15328 irix5* | irix6* | nonstopux*)
15329 case $host_os in
15330 nonstopux*) version_type=nonstopux ;;
15331 *)
15332 if test "$lt_cv_prog_gnu_ld" = yes; then
15333 version_type=linux
15334 else
15335 version_type=irix
15336 fi ;;
15337 esac
15338 need_lib_prefix=no
15339 need_version=no
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15342 case $host_os in
15343 irix5* | nonstopux*)
15344 libsuff= shlibsuff=
15345 ;;
15346 *)
15347 case $LD in # libtool.m4 will add one of these switches to LD
15348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15349 libsuff= shlibsuff= libmagic=32-bit;;
15350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15351 libsuff=32 shlibsuff=N32 libmagic=N32;;
15352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15354 *) libsuff= shlibsuff= libmagic=never-match;;
15355 esac
15356 ;;
15357 esac
15358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15359 shlibpath_overrides_runpath=no
15360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15362 hardcode_into_libs=yes
15363 ;;
15364
15365 # No shared lib support for Linux oldld, aout, or coff.
15366 linux*oldld* | linux*aout* | linux*coff*)
15367 dynamic_linker=no
15368 ;;
15369
15370 # This must be Linux ELF.
15371 linux* | k*bsd*-gnu)
15372 version_type=linux
15373 need_lib_prefix=no
15374 need_version=no
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 shlibpath_overrides_runpath=no
15380 # This implies no fast_install, which is unacceptable.
15381 # Some rework will be needed to allow for fast_install
15382 # before this can be enabled.
15383 hardcode_into_libs=yes
15384
15385 # Append ld.so.conf contents to the search path
15386 if test -f /etc/ld.so.conf; then
15387 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15389 fi
15390
15391 # We used to test for /lib/ld.so.1 and disable shared libraries on
15392 # powerpc, because MkLinux only supported shared libraries with the
15393 # GNU dynamic linker. Since this was broken with cross compilers,
15394 # most powerpc-linux boxes support dynamic linking these days and
15395 # people can always --disable-shared, the test was removed, and we
15396 # assume the GNU/Linux dynamic linker is in use.
15397 dynamic_linker='GNU/Linux ld.so'
15398 ;;
15399
15400 netbsdelf*-gnu)
15401 version_type=linux
15402 need_lib_prefix=no
15403 need_version=no
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 shlibpath_var=LD_LIBRARY_PATH
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15409 dynamic_linker='NetBSD ld.elf_so'
15410 ;;
15411
15412 netbsd*)
15413 version_type=sunos
15414 need_lib_prefix=no
15415 need_version=no
15416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15419 dynamic_linker='NetBSD (a.out) ld.so'
15420 else
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 dynamic_linker='NetBSD ld.elf_so'
15424 fi
15425 shlibpath_var=LD_LIBRARY_PATH
15426 shlibpath_overrides_runpath=yes
15427 hardcode_into_libs=yes
15428 ;;
15429
15430 newsos6)
15431 version_type=linux
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=yes
15435 ;;
15436
15437 nto-qnx*)
15438 version_type=linux
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes
15445 ;;
15446
15447 openbsd*)
15448 version_type=sunos
15449 sys_lib_dlsearch_path_spec="/usr/lib"
15450 need_lib_prefix=no
15451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15452 case $host_os in
15453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15454 *) need_version=no ;;
15455 esac
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15460 case $host_os in
15461 openbsd2.[89] | openbsd2.[89].*)
15462 shlibpath_overrides_runpath=no
15463 ;;
15464 *)
15465 shlibpath_overrides_runpath=yes
15466 ;;
15467 esac
15468 else
15469 shlibpath_overrides_runpath=yes
15470 fi
15471 ;;
15472
15473 os2*)
15474 libname_spec='$name'
15475 shrext_cmds=".dll"
15476 need_lib_prefix=no
15477 library_names_spec='$libname${shared_ext} $libname.a'
15478 dynamic_linker='OS/2 ld.exe'
15479 shlibpath_var=LIBPATH
15480 ;;
15481
15482 osf3* | osf4* | osf5*)
15483 version_type=osf
15484 need_lib_prefix=no
15485 need_version=no
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15491 ;;
15492
15493 solaris*)
15494 version_type=linux
15495 need_lib_prefix=no
15496 need_version=no
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 shlibpath_overrides_runpath=yes
15501 hardcode_into_libs=yes
15502 # ldd complains unless libraries are executable
15503 postinstall_cmds='chmod +x $lib'
15504 ;;
15505
15506 sunos4*)
15507 version_type=sunos
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=yes
15512 if test "$with_gnu_ld" = yes; then
15513 need_lib_prefix=no
15514 fi
15515 need_version=yes
15516 ;;
15517
15518 sysv4 | sysv4.3*)
15519 version_type=linux
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 case $host_vendor in
15524 sni)
15525 shlibpath_overrides_runpath=no
15526 need_lib_prefix=no
15527 export_dynamic_flag_spec='${wl}-Blargedynsym'
15528 runpath_var=LD_RUN_PATH
15529 ;;
15530 siemens)
15531 need_lib_prefix=no
15532 ;;
15533 motorola)
15534 need_lib_prefix=no
15535 need_version=no
15536 shlibpath_overrides_runpath=no
15537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15538 ;;
15539 esac
15540 ;;
15541
15542 sysv4*MP*)
15543 if test -d /usr/nec ;then
15544 version_type=linux
15545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15546 soname_spec='$libname${shared_ext}.$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 fi
15549 ;;
15550
15551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15552 version_type=freebsd-elf
15553 need_lib_prefix=no
15554 need_version=no
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 hardcode_into_libs=yes
15559 if test "$with_gnu_ld" = yes; then
15560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15561 shlibpath_overrides_runpath=no
15562 else
15563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15564 shlibpath_overrides_runpath=yes
15565 case $host_os in
15566 sco3.2v5*)
15567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15568 ;;
15569 esac
15570 fi
15571 sys_lib_dlsearch_path_spec='/usr/lib'
15572 ;;
15573
15574 uts4*)
15575 version_type=linux
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 ;;
15580
15581 *)
15582 dynamic_linker=no
15583 ;;
15584 esac
15585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15586 echo "${ECHO_T}$dynamic_linker" >&6; }
15587 test "$dynamic_linker" = no && can_build_shared=no
15588
15589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15590 if test "$GCC" = yes; then
15591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15592 fi
15593
15594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15596 hardcode_action_F77=
15597 if test -n "$hardcode_libdir_flag_spec_F77" || \
15598 test -n "$runpath_var_F77" || \
15599 test "X$hardcode_automatic_F77" = "Xyes" ; then
15600
15601 # We can hardcode non-existant directories.
15602 if test "$hardcode_direct_F77" != no &&
15603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15604 # have to relink, otherwise we might link with an installed library
15605 # when we should be linking with a yet-to-be-installed one
15606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15607 test "$hardcode_minus_L_F77" != no; then
15608 # Linking always hardcodes the temporary library directory.
15609 hardcode_action_F77=relink
15610 else
15611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15612 hardcode_action_F77=immediate
15613 fi
15614 else
15615 # We cannot hardcode anything, or else we can only hardcode existing
15616 # directories.
15617 hardcode_action_F77=unsupported
15618 fi
15619 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15620 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15621
15622 if test "$hardcode_action_F77" = relink; then
15623 # Fast installation is not supported
15624 enable_fast_install=no
15625 elif test "$shlibpath_overrides_runpath" = yes ||
15626 test "$enable_shared" = no; then
15627 # Fast installation is not necessary
15628 enable_fast_install=needless
15629 fi
15630
15631
15632 # The else clause should only fire when bootstrapping the
15633 # libtool distribution, otherwise you forgot to ship ltmain.sh
15634 # with your package, and you will get complaints that there are
15635 # no rules to generate ltmain.sh.
15636 if test -f "$ltmain"; then
15637 # See if we are running on zsh, and set the options which allow our commands through
15638 # without removal of \ escapes.
15639 if test -n "${ZSH_VERSION+set}" ; then
15640 setopt NO_GLOB_SUBST
15641 fi
15642 # Now quote all the things that may contain metacharacters while being
15643 # careful not to overquote the AC_SUBSTed values. We take copies of the
15644 # variables and quote the copies for generation of the libtool script.
15645 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15646 SED SHELL STRIP \
15647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15649 deplibs_check_method reload_flag reload_cmds need_locks \
15650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15651 lt_cv_sys_global_symbol_to_c_name_address \
15652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15653 old_postinstall_cmds old_postuninstall_cmds \
15654 compiler_F77 \
15655 CC_F77 \
15656 LD_F77 \
15657 lt_prog_compiler_wl_F77 \
15658 lt_prog_compiler_pic_F77 \
15659 lt_prog_compiler_static_F77 \
15660 lt_prog_compiler_no_builtin_flag_F77 \
15661 export_dynamic_flag_spec_F77 \
15662 thread_safe_flag_spec_F77 \
15663 whole_archive_flag_spec_F77 \
15664 enable_shared_with_static_runtimes_F77 \
15665 old_archive_cmds_F77 \
15666 old_archive_from_new_cmds_F77 \
15667 predep_objects_F77 \
15668 postdep_objects_F77 \
15669 predeps_F77 \
15670 postdeps_F77 \
15671 compiler_lib_search_path_F77 \
15672 archive_cmds_F77 \
15673 archive_expsym_cmds_F77 \
15674 postinstall_cmds_F77 \
15675 postuninstall_cmds_F77 \
15676 old_archive_from_expsyms_cmds_F77 \
15677 allow_undefined_flag_F77 \
15678 no_undefined_flag_F77 \
15679 export_symbols_cmds_F77 \
15680 hardcode_libdir_flag_spec_F77 \
15681 hardcode_libdir_flag_spec_ld_F77 \
15682 hardcode_libdir_separator_F77 \
15683 hardcode_automatic_F77 \
15684 module_cmds_F77 \
15685 module_expsym_cmds_F77 \
15686 lt_cv_prog_compiler_c_o_F77 \
15687 exclude_expsyms_F77 \
15688 include_expsyms_F77; do
15689
15690 case $var in
15691 old_archive_cmds_F77 | \
15692 old_archive_from_new_cmds_F77 | \
15693 archive_cmds_F77 | \
15694 archive_expsym_cmds_F77 | \
15695 module_cmds_F77 | \
15696 module_expsym_cmds_F77 | \
15697 old_archive_from_expsyms_cmds_F77 | \
15698 export_symbols_cmds_F77 | \
15699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15700 postinstall_cmds | postuninstall_cmds | \
15701 old_postinstall_cmds | old_postuninstall_cmds | \
15702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15703 # Double-quote double-evaled strings.
15704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15705 ;;
15706 *)
15707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15708 ;;
15709 esac
15710 done
15711
15712 case $lt_echo in
15713 *'\$0 --fallback-echo"')
15714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15715 ;;
15716 esac
15717
15718 cfgfile="$ofile"
15719
15720 cat <<__EOF__ >> "$cfgfile"
15721 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15722
15723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15724
15725 # Shell to use when invoking shell scripts.
15726 SHELL=$lt_SHELL
15727
15728 # Whether or not to build shared libraries.
15729 build_libtool_libs=$enable_shared
15730
15731 # Whether or not to build static libraries.
15732 build_old_libs=$enable_static
15733
15734 # Whether or not to add -lc for building shared libraries.
15735 build_libtool_need_lc=$archive_cmds_need_lc_F77
15736
15737 # Whether or not to disallow shared libs when runtime libs are static
15738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15739
15740 # Whether or not to optimize for fast installation.
15741 fast_install=$enable_fast_install
15742
15743 # The host system.
15744 host_alias=$host_alias
15745 host=$host
15746 host_os=$host_os
15747
15748 # The build system.
15749 build_alias=$build_alias
15750 build=$build
15751 build_os=$build_os
15752
15753 # An echo program that does not interpret backslashes.
15754 echo=$lt_echo
15755
15756 # The archiver.
15757 AR=$lt_AR
15758 AR_FLAGS=$lt_AR_FLAGS
15759
15760 # A C compiler.
15761 LTCC=$lt_LTCC
15762
15763 # LTCC compiler flags.
15764 LTCFLAGS=$lt_LTCFLAGS
15765
15766 # A language-specific compiler.
15767 CC=$lt_compiler_F77
15768
15769 # Is the compiler the GNU C compiler?
15770 with_gcc=$GCC_F77
15771
15772 # An ERE matcher.
15773 EGREP=$lt_EGREP
15774
15775 # The linker used to build libraries.
15776 LD=$lt_LD_F77
15777
15778 # Whether we need hard or soft links.
15779 LN_S=$lt_LN_S
15780
15781 # A BSD-compatible nm program.
15782 NM=$lt_NM
15783
15784 # A symbol stripping program
15785 STRIP=$lt_STRIP
15786
15787 # Used to examine libraries when file_magic_cmd begins "file"
15788 MAGIC_CMD=$MAGIC_CMD
15789
15790 # Used on cygwin: DLL creation program.
15791 DLLTOOL="$DLLTOOL"
15792
15793 # Used on cygwin: object dumper.
15794 OBJDUMP="$OBJDUMP"
15795
15796 # Used on cygwin: assembler.
15797 AS="$AS"
15798
15799 # The name of the directory that contains temporary libtool files.
15800 objdir=$objdir
15801
15802 # How to create reloadable object files.
15803 reload_flag=$lt_reload_flag
15804 reload_cmds=$lt_reload_cmds
15805
15806 # How to pass a linker flag through the compiler.
15807 wl=$lt_lt_prog_compiler_wl_F77
15808
15809 # Object file suffix (normally "o").
15810 objext="$ac_objext"
15811
15812 # Old archive suffix (normally "a").
15813 libext="$libext"
15814
15815 # Shared library suffix (normally ".so").
15816 shrext_cmds='$shrext_cmds'
15817
15818 # Executable file suffix (normally "").
15819 exeext="$exeext"
15820
15821 # Additional compiler flags for building library objects.
15822 pic_flag=$lt_lt_prog_compiler_pic_F77
15823 pic_mode=$pic_mode
15824
15825 # What is the maximum length of a command?
15826 max_cmd_len=$lt_cv_sys_max_cmd_len
15827
15828 # Does compiler simultaneously support -c and -o options?
15829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15830
15831 # Must we lock files when doing compilation?
15832 need_locks=$lt_need_locks
15833
15834 # Do we need the lib prefix for modules?
15835 need_lib_prefix=$need_lib_prefix
15836
15837 # Do we need a version for libraries?
15838 need_version=$need_version
15839
15840 # Whether dlopen is supported.
15841 dlopen_support=$enable_dlopen
15842
15843 # Whether dlopen of programs is supported.
15844 dlopen_self=$enable_dlopen_self
15845
15846 # Whether dlopen of statically linked programs is supported.
15847 dlopen_self_static=$enable_dlopen_self_static
15848
15849 # Compiler flag to prevent dynamic linking.
15850 link_static_flag=$lt_lt_prog_compiler_static_F77
15851
15852 # Compiler flag to turn off builtin functions.
15853 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15854
15855 # Compiler flag to allow reflexive dlopens.
15856 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15857
15858 # Compiler flag to generate shared objects directly from archives.
15859 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15860
15861 # Compiler flag to generate thread-safe objects.
15862 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15863
15864 # Library versioning type.
15865 version_type=$version_type
15866
15867 # Format of library name prefix.
15868 libname_spec=$lt_libname_spec
15869
15870 # List of archive names. First name is the real one, the rest are links.
15871 # The last name is the one that the linker finds with -lNAME.
15872 library_names_spec=$lt_library_names_spec
15873
15874 # The coded name of the library, if different from the real name.
15875 soname_spec=$lt_soname_spec
15876
15877 # Commands used to build and install an old-style archive.
15878 RANLIB=$lt_RANLIB
15879 old_archive_cmds=$lt_old_archive_cmds_F77
15880 old_postinstall_cmds=$lt_old_postinstall_cmds
15881 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15882
15883 # Create an old-style archive from a shared archive.
15884 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15885
15886 # Create a temporary old-style archive to link instead of a shared archive.
15887 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15888
15889 # Commands used to build and install a shared archive.
15890 archive_cmds=$lt_archive_cmds_F77
15891 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15892 postinstall_cmds=$lt_postinstall_cmds
15893 postuninstall_cmds=$lt_postuninstall_cmds
15894
15895 # Commands used to build a loadable module (assumed same as above if empty)
15896 module_cmds=$lt_module_cmds_F77
15897 module_expsym_cmds=$lt_module_expsym_cmds_F77
15898
15899 # Commands to strip libraries.
15900 old_striplib=$lt_old_striplib
15901 striplib=$lt_striplib
15902
15903 # Dependencies to place before the objects being linked to create a
15904 # shared library.
15905 predep_objects=$lt_predep_objects_F77
15906
15907 # Dependencies to place after the objects being linked to create a
15908 # shared library.
15909 postdep_objects=$lt_postdep_objects_F77
15910
15911 # Dependencies to place before the objects being linked to create a
15912 # shared library.
15913 predeps=$lt_predeps_F77
15914
15915 # Dependencies to place after the objects being linked to create a
15916 # shared library.
15917 postdeps=$lt_postdeps_F77
15918
15919 # The library search path used internally by the compiler when linking
15920 # a shared library.
15921 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15922
15923 # Method to check whether dependent libraries are shared objects.
15924 deplibs_check_method=$lt_deplibs_check_method
15925
15926 # Command to use when deplibs_check_method == file_magic.
15927 file_magic_cmd=$lt_file_magic_cmd
15928
15929 # Flag that allows shared libraries with undefined symbols to be built.
15930 allow_undefined_flag=$lt_allow_undefined_flag_F77
15931
15932 # Flag that forces no undefined symbols.
15933 no_undefined_flag=$lt_no_undefined_flag_F77
15934
15935 # Commands used to finish a libtool library installation in a directory.
15936 finish_cmds=$lt_finish_cmds
15937
15938 # Same as above, but a single script fragment to be evaled but not shown.
15939 finish_eval=$lt_finish_eval
15940
15941 # Take the output of nm and produce a listing of raw symbols and C names.
15942 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15943
15944 # Transform the output of nm in a proper C declaration
15945 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15946
15947 # Transform the output of nm in a C name address pair
15948 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15949
15950 # This is the shared library runtime path variable.
15951 runpath_var=$runpath_var
15952
15953 # This is the shared library path variable.
15954 shlibpath_var=$shlibpath_var
15955
15956 # Is shlibpath searched before the hard-coded library search path?
15957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15958
15959 # How to hardcode a shared library path into an executable.
15960 hardcode_action=$hardcode_action_F77
15961
15962 # Whether we should hardcode library paths into libraries.
15963 hardcode_into_libs=$hardcode_into_libs
15964
15965 # Flag to hardcode \$libdir into a binary during linking.
15966 # This must work even if \$libdir does not exist.
15967 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15968
15969 # If ld is used when linking, flag to hardcode \$libdir into
15970 # a binary during linking. This must work even if \$libdir does
15971 # not exist.
15972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15973
15974 # Whether we need a single -rpath flag with a separated argument.
15975 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15976
15977 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15978 # resulting binary.
15979 hardcode_direct=$hardcode_direct_F77
15980
15981 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15982 # resulting binary.
15983 hardcode_minus_L=$hardcode_minus_L_F77
15984
15985 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15986 # the resulting binary.
15987 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15988
15989 # Set to yes if building a shared library automatically hardcodes DIR into the library
15990 # and all subsequent libraries and executables linked against it.
15991 hardcode_automatic=$hardcode_automatic_F77
15992
15993 # Variables whose values should be saved in libtool wrapper scripts and
15994 # restored at relink time.
15995 variables_saved_for_relink="$variables_saved_for_relink"
15996
15997 # Whether libtool must link a program against all its dependency libraries.
15998 link_all_deplibs=$link_all_deplibs_F77
15999
16000 # Compile-time system search path for libraries
16001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16002
16003 # Run-time system search path for libraries
16004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16005
16006 # Fix the shell variable \$srcfile for the compiler.
16007 fix_srcfile_path="$fix_srcfile_path_F77"
16008
16009 # Set to yes if exported symbols are required.
16010 always_export_symbols=$always_export_symbols_F77
16011
16012 # The commands to list exported symbols.
16013 export_symbols_cmds=$lt_export_symbols_cmds_F77
16014
16015 # The commands to extract the exported symbol list from a shared archive.
16016 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16017
16018 # Symbols that should not be listed in the preloaded symbols.
16019 exclude_expsyms=$lt_exclude_expsyms_F77
16020
16021 # Symbols that must always be exported.
16022 include_expsyms=$lt_include_expsyms_F77
16023
16024 # ### END LIBTOOL TAG CONFIG: $tagname
16025
16026 __EOF__
16027
16028
16029 else
16030 # If there is no Makefile yet, we rely on a make rule to execute
16031 # `config.status --recheck' to rerun these tests and create the
16032 # libtool script then.
16033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16034 if test -f "$ltmain_in"; then
16035 test -f Makefile && make "$ltmain"
16036 fi
16037 fi
16038
16039
16040 ac_ext=c
16041 ac_cpp='$CPP $CPPFLAGS'
16042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16045
16046 CC="$lt_save_CC"
16047
16048 else
16049 tagname=""
16050 fi
16051 ;;
16052
16053 GCJ)
16054 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16055
16056
16057 # Source file extension for Java test sources.
16058 ac_ext=java
16059
16060 # Object file extension for compiled Java test sources.
16061 objext=o
16062 objext_GCJ=$objext
16063
16064 # Code to be used in simple compile tests
16065 lt_simple_compile_test_code="class foo {}\n"
16066
16067 # Code to be used in simple link tests
16068 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16069
16070 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16071
16072 # If no C compiler was specified, use CC.
16073 LTCC=${LTCC-"$CC"}
16074
16075 # If no C compiler flags were specified, use CFLAGS.
16076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16077
16078 # Allow CC to be a program name with arguments.
16079 compiler=$CC
16080
16081
16082 # save warnings/boilerplate of simple test code
16083 ac_outfile=conftest.$ac_objext
16084 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16086 _lt_compiler_boilerplate=`cat conftest.err`
16087 $rm conftest*
16088
16089 ac_outfile=conftest.$ac_objext
16090 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16092 _lt_linker_boilerplate=`cat conftest.err`
16093 $rm conftest*
16094
16095
16096 # Allow CC to be a program name with arguments.
16097 lt_save_CC="$CC"
16098 CC=${GCJ-"gcj"}
16099 compiler=$CC
16100 compiler_GCJ=$CC
16101 for cc_temp in $compiler""; do
16102 case $cc_temp in
16103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16105 \-*) ;;
16106 *) break;;
16107 esac
16108 done
16109 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16110
16111
16112 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16113 archive_cmds_need_lc_GCJ=no
16114
16115 old_archive_cmds_GCJ=$old_archive_cmds
16116
16117
16118 lt_prog_compiler_no_builtin_flag_GCJ=
16119
16120 if test "$GCC" = yes; then
16121 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16122
16123
16124 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129 lt_cv_prog_compiler_rtti_exceptions=no
16130 ac_outfile=conftest.$ac_objext
16131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16132 lt_compiler_flag="-fno-rtti -fno-exceptions"
16133 # Insert the option either (1) after the last *FLAGS variable, or
16134 # (2) before a word containing "conftest.", or (3) at the end.
16135 # Note that $ac_compile itself does not contain backslashes and begins
16136 # with a dollar sign (not a hyphen), so the echo should work correctly.
16137 # The option is referenced via a variable to avoid confusing sed.
16138 lt_compile=`echo "$ac_compile" | $SED \
16139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16141 -e 's:$: $lt_compiler_flag:'`
16142 (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
16143 (eval "$lt_compile" 2>conftest.err)
16144 ac_status=$?
16145 cat conftest.err >&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 if (exit $ac_status) && test -s "$ac_outfile"; then
16148 # The compiler can only warn and ignore the option if not recognized
16149 # So say no if there are warnings other than the usual output.
16150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16153 lt_cv_prog_compiler_rtti_exceptions=yes
16154 fi
16155 fi
16156 $rm conftest*
16157
16158 fi
16159 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16161
16162 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16163 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16164 else
16165 :
16166 fi
16167
16168 fi
16169
16170 lt_prog_compiler_wl_GCJ=
16171 lt_prog_compiler_pic_GCJ=
16172 lt_prog_compiler_static_GCJ=
16173
16174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16176
16177 if test "$GCC" = yes; then
16178 lt_prog_compiler_wl_GCJ='-Wl,'
16179 lt_prog_compiler_static_GCJ='-static'
16180
16181 case $host_os in
16182 aix*)
16183 # All AIX code is PIC.
16184 if test "$host_cpu" = ia64; then
16185 # AIX 5 now supports IA64 processor
16186 lt_prog_compiler_static_GCJ='-Bstatic'
16187 fi
16188 ;;
16189
16190 amigaos*)
16191 # FIXME: we need at least 68020 code to build shared libraries, but
16192 # adding the `-m68020' flag to GCC prevents building anything better,
16193 # like `-m68040'.
16194 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16195 ;;
16196
16197 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16198 # PIC is the default for these OSes.
16199 ;;
16200
16201 mingw* | pw32* | os2*)
16202 # This hack is so that the source file can tell whether it is being
16203 # built for inclusion in a dll (and should export symbols for example).
16204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16205 ;;
16206
16207 darwin* | rhapsody*)
16208 # PIC is the default on this platform
16209 # Common symbols not allowed in MH_DYLIB files
16210 lt_prog_compiler_pic_GCJ='-fno-common'
16211 ;;
16212
16213 interix3*)
16214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16215 # Instead, we relocate shared libraries at runtime.
16216 ;;
16217
16218 msdosdjgpp*)
16219 # Just because we use GCC doesn't mean we suddenly get shared libraries
16220 # on systems that don't support them.
16221 lt_prog_compiler_can_build_shared_GCJ=no
16222 enable_shared=no
16223 ;;
16224
16225 sysv4*MP*)
16226 if test -d /usr/nec; then
16227 lt_prog_compiler_pic_GCJ=-Kconform_pic
16228 fi
16229 ;;
16230
16231 hpux*)
16232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16233 # not for PA HP-UX.
16234 case $host_cpu in
16235 hppa*64*|ia64*)
16236 # +Z the default
16237 ;;
16238 *)
16239 lt_prog_compiler_pic_GCJ='-fPIC'
16240 ;;
16241 esac
16242 ;;
16243
16244 *)
16245 lt_prog_compiler_pic_GCJ='-fPIC'
16246 ;;
16247 esac
16248 else
16249 # PORTME Check for flag to pass linker flags through the system compiler.
16250 case $host_os in
16251 aix*)
16252 lt_prog_compiler_wl_GCJ='-Wl,'
16253 if test "$host_cpu" = ia64; then
16254 # AIX 5 now supports IA64 processor
16255 lt_prog_compiler_static_GCJ='-Bstatic'
16256 else
16257 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16258 fi
16259 ;;
16260 darwin*)
16261 # PIC is the default on this platform
16262 # Common symbols not allowed in MH_DYLIB files
16263 case $cc_basename in
16264 xlc*)
16265 lt_prog_compiler_pic_GCJ='-qnocommon'
16266 lt_prog_compiler_wl_GCJ='-Wl,'
16267 ;;
16268 esac
16269 ;;
16270
16271 mingw* | pw32* | os2*)
16272 # This hack is so that the source file can tell whether it is being
16273 # built for inclusion in a dll (and should export symbols for example).
16274 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16275 ;;
16276
16277 hpux9* | hpux10* | hpux11*)
16278 lt_prog_compiler_wl_GCJ='-Wl,'
16279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16280 # not for PA HP-UX.
16281 case $host_cpu in
16282 hppa*64*|ia64*)
16283 # +Z the default
16284 ;;
16285 *)
16286 lt_prog_compiler_pic_GCJ='+Z'
16287 ;;
16288 esac
16289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16290 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16291 ;;
16292
16293 irix5* | irix6* | nonstopux*)
16294 lt_prog_compiler_wl_GCJ='-Wl,'
16295 # PIC (with -KPIC) is the default.
16296 lt_prog_compiler_static_GCJ='-non_shared'
16297 ;;
16298
16299 newsos6)
16300 lt_prog_compiler_pic_GCJ='-KPIC'
16301 lt_prog_compiler_static_GCJ='-Bstatic'
16302 ;;
16303
16304 linux* | k*bsd*-gnu)
16305 case $cc_basename in
16306 icc* | ecc*)
16307 lt_prog_compiler_wl_GCJ='-Wl,'
16308 lt_prog_compiler_pic_GCJ='-KPIC'
16309 lt_prog_compiler_static_GCJ='-static'
16310 ;;
16311 pgcc* | pgf77* | pgf90* | pgf95*)
16312 # Portland Group compilers (*not* the Pentium gcc compiler,
16313 # which looks to be a dead project)
16314 lt_prog_compiler_wl_GCJ='-Wl,'
16315 lt_prog_compiler_pic_GCJ='-fpic'
16316 lt_prog_compiler_static_GCJ='-Bstatic'
16317 ;;
16318 ccc*)
16319 lt_prog_compiler_wl_GCJ='-Wl,'
16320 # All Alpha code is PIC.
16321 lt_prog_compiler_static_GCJ='-non_shared'
16322 ;;
16323 esac
16324 ;;
16325
16326 osf3* | osf4* | osf5*)
16327 lt_prog_compiler_wl_GCJ='-Wl,'
16328 # All OSF/1 code is PIC.
16329 lt_prog_compiler_static_GCJ='-non_shared'
16330 ;;
16331
16332 solaris*)
16333 lt_prog_compiler_pic_GCJ='-KPIC'
16334 lt_prog_compiler_static_GCJ='-Bstatic'
16335 case $cc_basename in
16336 f77* | f90* | f95*)
16337 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16338 *)
16339 lt_prog_compiler_wl_GCJ='-Wl,';;
16340 esac
16341 ;;
16342
16343 sunos4*)
16344 lt_prog_compiler_wl_GCJ='-Qoption ld '
16345 lt_prog_compiler_pic_GCJ='-PIC'
16346 lt_prog_compiler_static_GCJ='-Bstatic'
16347 ;;
16348
16349 sysv4 | sysv4.2uw2* | sysv4.3*)
16350 lt_prog_compiler_wl_GCJ='-Wl,'
16351 lt_prog_compiler_pic_GCJ='-KPIC'
16352 lt_prog_compiler_static_GCJ='-Bstatic'
16353 ;;
16354
16355 sysv4*MP*)
16356 if test -d /usr/nec ;then
16357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16358 lt_prog_compiler_static_GCJ='-Bstatic'
16359 fi
16360 ;;
16361
16362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16363 lt_prog_compiler_wl_GCJ='-Wl,'
16364 lt_prog_compiler_pic_GCJ='-KPIC'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16366 ;;
16367
16368 unicos*)
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 lt_prog_compiler_can_build_shared_GCJ=no
16371 ;;
16372
16373 uts4*)
16374 lt_prog_compiler_pic_GCJ='-pic'
16375 lt_prog_compiler_static_GCJ='-Bstatic'
16376 ;;
16377
16378 *)
16379 lt_prog_compiler_can_build_shared_GCJ=no
16380 ;;
16381 esac
16382 fi
16383
16384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16385 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16386
16387 #
16388 # Check to make sure the PIC flag actually works.
16389 #
16390 if test -n "$lt_prog_compiler_pic_GCJ"; then
16391
16392 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16394 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397 lt_prog_compiler_pic_works_GCJ=no
16398 ac_outfile=conftest.$ac_objext
16399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16400 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16401 # Insert the option either (1) after the last *FLAGS variable, or
16402 # (2) before a word containing "conftest.", or (3) at the end.
16403 # Note that $ac_compile itself does not contain backslashes and begins
16404 # with a dollar sign (not a hyphen), so the echo should work correctly.
16405 # The option is referenced via a variable to avoid confusing sed.
16406 lt_compile=`echo "$ac_compile" | $SED \
16407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16409 -e 's:$: $lt_compiler_flag:'`
16410 (eval echo "\"\$as_me:16410: $lt_compile\"" >&5)
16411 (eval "$lt_compile" 2>conftest.err)
16412 ac_status=$?
16413 cat conftest.err >&5
16414 echo "$as_me:16414: \$? = $ac_status" >&5
16415 if (exit $ac_status) && test -s "$ac_outfile"; then
16416 # The compiler can only warn and ignore the option if not recognized
16417 # So say no if there are warnings other than the usual output.
16418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16421 lt_prog_compiler_pic_works_GCJ=yes
16422 fi
16423 fi
16424 $rm conftest*
16425
16426 fi
16427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16428 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16429
16430 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16431 case $lt_prog_compiler_pic_GCJ in
16432 "" | " "*) ;;
16433 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16434 esac
16435 else
16436 lt_prog_compiler_pic_GCJ=
16437 lt_prog_compiler_can_build_shared_GCJ=no
16438 fi
16439
16440 fi
16441 case $host_os in
16442 # For platforms which do not support PIC, -DPIC is meaningless:
16443 *djgpp*)
16444 lt_prog_compiler_pic_GCJ=
16445 ;;
16446 *)
16447 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16448 ;;
16449 esac
16450
16451 #
16452 # Check to make sure the static flag actually works.
16453 #
16454 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16456 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16457 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460 lt_prog_compiler_static_works_GCJ=no
16461 save_LDFLAGS="$LDFLAGS"
16462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16463 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16465 # The linker can only warn and ignore the option if not recognized
16466 # So say no if there are warnings
16467 if test -s conftest.err; then
16468 # Append any errors to the config.log.
16469 cat conftest.err 1>&5
16470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16472 if diff conftest.exp conftest.er2 >/dev/null; then
16473 lt_prog_compiler_static_works_GCJ=yes
16474 fi
16475 else
16476 lt_prog_compiler_static_works_GCJ=yes
16477 fi
16478 fi
16479 $rm conftest*
16480 LDFLAGS="$save_LDFLAGS"
16481
16482 fi
16483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16484 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16485
16486 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16487 :
16488 else
16489 lt_prog_compiler_static_GCJ=
16490 fi
16491
16492
16493 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16494 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498 lt_cv_prog_compiler_c_o_GCJ=no
16499 $rm -r conftest 2>/dev/null
16500 mkdir conftest
16501 cd conftest
16502 mkdir out
16503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16504
16505 lt_compiler_flag="-o out/conftest2.$ac_objext"
16506 # Insert the option either (1) after the last *FLAGS variable, or
16507 # (2) before a word containing "conftest.", or (3) at the end.
16508 # Note that $ac_compile itself does not contain backslashes and begins
16509 # with a dollar sign (not a hyphen), so the echo should work correctly.
16510 lt_compile=`echo "$ac_compile" | $SED \
16511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16513 -e 's:$: $lt_compiler_flag:'`
16514 (eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
16515 (eval "$lt_compile" 2>out/conftest.err)
16516 ac_status=$?
16517 cat out/conftest.err >&5
16518 echo "$as_me:16518: \$? = $ac_status" >&5
16519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16520 then
16521 # The compiler can only warn and ignore the option if not recognized
16522 # So say no if there are warnings
16523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16526 lt_cv_prog_compiler_c_o_GCJ=yes
16527 fi
16528 fi
16529 chmod u+w . 2>&5
16530 $rm conftest*
16531 # SGI C++ compiler will create directory out/ii_files/ for
16532 # template instantiation
16533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16534 $rm out/* && rmdir out
16535 cd ..
16536 rmdir conftest
16537 $rm conftest*
16538
16539 fi
16540 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16541 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16542
16543
16544 hard_links="nottested"
16545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16546 # do not overwrite the value of need_locks provided by the user
16547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16548 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16549 hard_links=yes
16550 $rm conftest*
16551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16552 touch conftest.a
16553 ln conftest.a conftest.b 2>&5 || hard_links=no
16554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16555 { echo "$as_me:$LINENO: result: $hard_links" >&5
16556 echo "${ECHO_T}$hard_links" >&6; }
16557 if test "$hard_links" = no; then
16558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16559 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16560 need_locks=warn
16561 fi
16562 else
16563 need_locks=no
16564 fi
16565
16566 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16567 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16568
16569 runpath_var=
16570 allow_undefined_flag_GCJ=
16571 enable_shared_with_static_runtimes_GCJ=no
16572 archive_cmds_GCJ=
16573 archive_expsym_cmds_GCJ=
16574 old_archive_From_new_cmds_GCJ=
16575 old_archive_from_expsyms_cmds_GCJ=
16576 export_dynamic_flag_spec_GCJ=
16577 whole_archive_flag_spec_GCJ=
16578 thread_safe_flag_spec_GCJ=
16579 hardcode_libdir_flag_spec_GCJ=
16580 hardcode_libdir_flag_spec_ld_GCJ=
16581 hardcode_libdir_separator_GCJ=
16582 hardcode_direct_GCJ=no
16583 hardcode_minus_L_GCJ=no
16584 hardcode_shlibpath_var_GCJ=unsupported
16585 link_all_deplibs_GCJ=unknown
16586 hardcode_automatic_GCJ=no
16587 module_cmds_GCJ=
16588 module_expsym_cmds_GCJ=
16589 always_export_symbols_GCJ=no
16590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16591 # include_expsyms should be a list of space-separated symbols to be *always*
16592 # included in the symbol list
16593 include_expsyms_GCJ=
16594 # exclude_expsyms can be an extended regexp of symbols to exclude
16595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16597 # as well as any symbol that contains `d'.
16598 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16600 # platforms (ab)use it in PIC code, but their linkers get confused if
16601 # the symbol is explicitly referenced. Since portable code cannot
16602 # rely on this symbol name, it's probably fine to never include it in
16603 # preloaded symbol tables.
16604 extract_expsyms_cmds=
16605 # Just being paranoid about ensuring that cc_basename is set.
16606 for cc_temp in $compiler""; do
16607 case $cc_temp in
16608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16610 \-*) ;;
16611 *) break;;
16612 esac
16613 done
16614 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16615
16616 case $host_os in
16617 cygwin* | mingw* | pw32*)
16618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16619 # When not using gcc, we currently assume that we are using
16620 # Microsoft Visual C++.
16621 if test "$GCC" != yes; then
16622 with_gnu_ld=no
16623 fi
16624 ;;
16625 interix*)
16626 # we just hope/assume this is gcc and not c89 (= MSVC++)
16627 with_gnu_ld=yes
16628 ;;
16629 openbsd*)
16630 with_gnu_ld=no
16631 ;;
16632 esac
16633
16634 ld_shlibs_GCJ=yes
16635 if test "$with_gnu_ld" = yes; then
16636 # If archive_cmds runs LD, not CC, wlarc should be empty
16637 wlarc='${wl}'
16638
16639 # Set some defaults for GNU ld with shared library support. These
16640 # are reset later if shared libraries are not supported. Putting them
16641 # here allows them to be overridden if necessary.
16642 runpath_var=LD_RUN_PATH
16643 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16644 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16645 # ancient GNU ld didn't support --whole-archive et. al.
16646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16647 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16648 else
16649 whole_archive_flag_spec_GCJ=
16650 fi
16651 supports_anon_versioning=no
16652 case `$LD -v 2>/dev/null` in
16653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16656 *\ 2.11.*) ;; # other 2.11 versions
16657 *) supports_anon_versioning=yes ;;
16658 esac
16659
16660 # See if GNU ld supports shared libraries.
16661 case $host_os in
16662 aix3* | aix4* | aix5*)
16663 # On AIX/PPC, the GNU linker is very broken
16664 if test "$host_cpu" != ia64; then
16665 ld_shlibs_GCJ=no
16666 cat <<EOF 1>&2
16667
16668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16669 *** to be unable to reliably create shared libraries on AIX.
16670 *** Therefore, libtool is disabling shared libraries support. If you
16671 *** really care for shared libraries, you may want to modify your PATH
16672 *** so that a non-GNU linker is found, and then restart.
16673
16674 EOF
16675 fi
16676 ;;
16677
16678 amigaos*)
16679 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)'
16680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16681 hardcode_minus_L_GCJ=yes
16682
16683 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16684 # that the semantics of dynamic libraries on AmigaOS, at least up
16685 # to version 4, is to share data among multiple programs linked
16686 # with the same dynamic library. Since this doesn't match the
16687 # behavior of shared libraries on other platforms, we can't use
16688 # them.
16689 ld_shlibs_GCJ=no
16690 ;;
16691
16692 beos*)
16693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16694 allow_undefined_flag_GCJ=unsupported
16695 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16696 # support --undefined. This deserves some investigation. FIXME
16697 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16698 else
16699 ld_shlibs_GCJ=no
16700 fi
16701 ;;
16702
16703 cygwin* | mingw* | pw32*)
16704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16705 # as there is no search path for DLLs.
16706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16707 allow_undefined_flag_GCJ=unsupported
16708 always_export_symbols_GCJ=no
16709 enable_shared_with_static_runtimes_GCJ=yes
16710 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16711
16712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16714 # If the export-symbols file already is a .def file (1st line
16715 # is EXPORTS), use it as is; otherwise, prepend...
16716 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16717 cp $export_symbols $output_objdir/$soname.def;
16718 else
16719 echo EXPORTS > $output_objdir/$soname.def;
16720 cat $export_symbols >> $output_objdir/$soname.def;
16721 fi~
16722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16723 else
16724 ld_shlibs_GCJ=no
16725 fi
16726 ;;
16727
16728 interix3*)
16729 hardcode_direct_GCJ=no
16730 hardcode_shlibpath_var_GCJ=no
16731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16732 export_dynamic_flag_spec_GCJ='${wl}-E'
16733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16734 # Instead, shared libraries are loaded at an image base (0x10000000 by
16735 # default) and relocated if they conflict, which is a slow very memory
16736 # consuming and fragmenting process. To avoid this, we pick a random,
16737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16739 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'
16740 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'
16741 ;;
16742
16743 linux* | k*bsd*-gnu)
16744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16745 tmp_addflag=
16746 case $cc_basename,$host_cpu in
16747 pgcc*) # Portland Group C compiler
16748 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'
16749 tmp_addflag=' $pic_flag'
16750 ;;
16751 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16752 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'
16753 tmp_addflag=' $pic_flag -Mnomain' ;;
16754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16755 tmp_addflag=' -i_dynamic' ;;
16756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16757 tmp_addflag=' -i_dynamic -nofor_main' ;;
16758 ifc* | ifort*) # Intel Fortran compiler
16759 tmp_addflag=' -nofor_main' ;;
16760 esac
16761 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16762
16763 if test $supports_anon_versioning = yes; then
16764 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16766 $echo "local: *; };" >> $output_objdir/$libname.ver~
16767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16768 fi
16769 link_all_deplibs_GCJ=no
16770 else
16771 ld_shlibs_GCJ=no
16772 fi
16773 ;;
16774
16775 netbsd* | netbsdelf*-gnu)
16776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16777 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16778 wlarc=
16779 else
16780 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16781 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16782 fi
16783 ;;
16784
16785 solaris*)
16786 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16787 ld_shlibs_GCJ=no
16788 cat <<EOF 1>&2
16789
16790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16791 *** create shared libraries on Solaris systems. Therefore, libtool
16792 *** is disabling shared libraries support. We urge you to upgrade GNU
16793 *** binutils to release 2.9.1 or newer. Another option is to modify
16794 *** your PATH or compiler configuration so that the native linker is
16795 *** used, and then restart.
16796
16797 EOF
16798 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16799 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16800 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16801 else
16802 ld_shlibs_GCJ=no
16803 fi
16804 ;;
16805
16806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16807 case `$LD -v 2>&1` in
16808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16809 ld_shlibs_GCJ=no
16810 cat <<_LT_EOF 1>&2
16811
16812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16813 *** reliably create shared libraries on SCO systems. Therefore, libtool
16814 *** is disabling shared libraries support. We urge you to upgrade GNU
16815 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16816 *** your PATH or compiler configuration so that the native linker is
16817 *** used, and then restart.
16818
16819 _LT_EOF
16820 ;;
16821 *)
16822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16823 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16825 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16826 else
16827 ld_shlibs_GCJ=no
16828 fi
16829 ;;
16830 esac
16831 ;;
16832
16833 sunos4*)
16834 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16835 wlarc=
16836 hardcode_direct_GCJ=yes
16837 hardcode_shlibpath_var_GCJ=no
16838 ;;
16839
16840 *)
16841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16842 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16843 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16844 else
16845 ld_shlibs_GCJ=no
16846 fi
16847 ;;
16848 esac
16849
16850 if test "$ld_shlibs_GCJ" = no; then
16851 runpath_var=
16852 hardcode_libdir_flag_spec_GCJ=
16853 export_dynamic_flag_spec_GCJ=
16854 whole_archive_flag_spec_GCJ=
16855 fi
16856 else
16857 # PORTME fill in a description of your system's linker (not GNU ld)
16858 case $host_os in
16859 aix3*)
16860 allow_undefined_flag_GCJ=unsupported
16861 always_export_symbols_GCJ=yes
16862 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'
16863 # Note: this linker hardcodes the directories in LIBPATH if there
16864 # are no directories specified by -L.
16865 hardcode_minus_L_GCJ=yes
16866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16867 # Neither direct hardcoding nor static linking is supported with a
16868 # broken collect2.
16869 hardcode_direct_GCJ=unsupported
16870 fi
16871 ;;
16872
16873 aix4* | aix5*)
16874 if test "$host_cpu" = ia64; then
16875 # On IA64, the linker does run time linking by default, so we don't
16876 # have to do anything special.
16877 aix_use_runtimelinking=no
16878 exp_sym_flag='-Bexport'
16879 no_entry_flag=""
16880 else
16881 # If we're using GNU nm, then we don't want the "-C" option.
16882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16884 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'
16885 else
16886 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'
16887 fi
16888 aix_use_runtimelinking=no
16889
16890 # Test if we are trying to use run time linking or normal
16891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16892 # need to do runtime linking.
16893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16894 for ld_flag in $LDFLAGS; do
16895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16896 aix_use_runtimelinking=yes
16897 break
16898 fi
16899 done
16900 ;;
16901 esac
16902
16903 exp_sym_flag='-bexport'
16904 no_entry_flag='-bnoentry'
16905 fi
16906
16907 # When large executables or shared objects are built, AIX ld can
16908 # have problems creating the table of contents. If linking a library
16909 # or program results in "error TOC overflow" add -mminimal-toc to
16910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16912
16913 archive_cmds_GCJ=''
16914 hardcode_direct_GCJ=yes
16915 hardcode_libdir_separator_GCJ=':'
16916 link_all_deplibs_GCJ=yes
16917
16918 if test "$GCC" = yes; then
16919 case $host_os in aix4.[012]|aix4.[012].*)
16920 # We only want to do this on AIX 4.2 and lower, the check
16921 # below for broken collect2 doesn't work under 4.3+
16922 collect2name=`${CC} -print-prog-name=collect2`
16923 if test -f "$collect2name" && \
16924 strings "$collect2name" | grep resolve_lib_name >/dev/null
16925 then
16926 # We have reworked collect2
16927 hardcode_direct_GCJ=yes
16928 else
16929 # We have old collect2
16930 hardcode_direct_GCJ=unsupported
16931 # It fails to find uninstalled libraries when the uninstalled
16932 # path is not listed in the libpath. Setting hardcode_minus_L
16933 # to unsupported forces relinking
16934 hardcode_minus_L_GCJ=yes
16935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16936 hardcode_libdir_separator_GCJ=
16937 fi
16938 ;;
16939 esac
16940 shared_flag='-shared'
16941 if test "$aix_use_runtimelinking" = yes; then
16942 shared_flag="$shared_flag "'${wl}-G'
16943 fi
16944 else
16945 # not using gcc
16946 if test "$host_cpu" = ia64; then
16947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16948 # chokes on -Wl,-G. The following line is correct:
16949 shared_flag='-G'
16950 else
16951 if test "$aix_use_runtimelinking" = yes; then
16952 shared_flag='${wl}-G'
16953 else
16954 shared_flag='${wl}-bM:SRE'
16955 fi
16956 fi
16957 fi
16958
16959 # It seems that -bexpall does not export symbols beginning with
16960 # underscore (_), so it is better to generate a list of symbols to export.
16961 always_export_symbols_GCJ=yes
16962 if test "$aix_use_runtimelinking" = yes; then
16963 # Warning - without using the other runtime loading flags (-brtl),
16964 # -berok will link without error, but may produce a broken library.
16965 allow_undefined_flag_GCJ='-berok'
16966 # Determine the default libpath from the value encoded in an empty executable.
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h. */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973
16974 int
16975 main ()
16976 {
16977
16978 ;
16979 return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest$ac_exeext &&
16999 $as_test_x conftest$ac_exeext; then
17000
17001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17002 }'`
17003 # Check for a 64-bit object if we didn't find anything.
17004 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17005 }'`; fi
17006 else
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010
17011 fi
17012
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014 conftest$ac_exeext conftest.$ac_ext
17015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17016
17017 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17018 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"
17019 else
17020 if test "$host_cpu" = ia64; then
17021 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17022 allow_undefined_flag_GCJ="-z nodefs"
17023 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"
17024 else
17025 # Determine the default libpath from the value encoded in an empty executable.
17026 cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h. */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032
17033 int
17034 main ()
17035 {
17036
17037 ;
17038 return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && {
17055 test -z "$ac_c_werror_flag" ||
17056 test ! -s conftest.err
17057 } && test -s conftest$ac_exeext &&
17058 $as_test_x conftest$ac_exeext; then
17059
17060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17061 }'`
17062 # Check for a 64-bit object if we didn't find anything.
17063 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17064 }'`; fi
17065 else
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069
17070 fi
17071
17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17073 conftest$ac_exeext conftest.$ac_ext
17074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17075
17076 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17077 # Warning - without using the other run time loading flags,
17078 # -berok will link without error, but may produce a broken library.
17079 no_undefined_flag_GCJ=' ${wl}-bernotok'
17080 allow_undefined_flag_GCJ=' ${wl}-berok'
17081 # Exported symbols can be pulled into shared objects from archives
17082 whole_archive_flag_spec_GCJ='$convenience'
17083 archive_cmds_need_lc_GCJ=yes
17084 # This is similar to how AIX traditionally builds its shared libraries.
17085 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'
17086 fi
17087 fi
17088 ;;
17089
17090 amigaos*)
17091 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)'
17092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17093 hardcode_minus_L_GCJ=yes
17094 # see comment about different semantics on the GNU ld section
17095 ld_shlibs_GCJ=no
17096 ;;
17097
17098 bsdi[45]*)
17099 export_dynamic_flag_spec_GCJ=-rdynamic
17100 ;;
17101
17102 cygwin* | mingw* | pw32*)
17103 # When not using gcc, we currently assume that we are using
17104 # Microsoft Visual C++.
17105 # hardcode_libdir_flag_spec is actually meaningless, as there is
17106 # no search path for DLLs.
17107 hardcode_libdir_flag_spec_GCJ=' '
17108 allow_undefined_flag_GCJ=unsupported
17109 # Tell ltmain to make .lib files, not .a files.
17110 libext=lib
17111 # Tell ltmain to make .dll files, not .so files.
17112 shrext_cmds=".dll"
17113 # FIXME: Setting linknames here is a bad hack.
17114 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17115 # The linker will automatically build a .lib file if we build a DLL.
17116 old_archive_From_new_cmds_GCJ='true'
17117 # FIXME: Should let the user specify the lib program.
17118 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17119 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17120 enable_shared_with_static_runtimes_GCJ=yes
17121 ;;
17122
17123 darwin* | rhapsody*)
17124 case $host_os in
17125 rhapsody* | darwin1.[012])
17126 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17127 ;;
17128 *) # Darwin 1.3 on
17129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17130 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17131 else
17132 case ${MACOSX_DEPLOYMENT_TARGET} in
17133 10.[012])
17134 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17135 ;;
17136 10.*)
17137 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17138 ;;
17139 esac
17140 fi
17141 ;;
17142 esac
17143 archive_cmds_need_lc_GCJ=no
17144 hardcode_direct_GCJ=no
17145 hardcode_automatic_GCJ=yes
17146 hardcode_shlibpath_var_GCJ=unsupported
17147 whole_archive_flag_spec_GCJ=''
17148 link_all_deplibs_GCJ=yes
17149 if test "$GCC" = yes ; then
17150 output_verbose_link_cmd='echo'
17151 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17152 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17154 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}'
17155 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}'
17156 else
17157 case $cc_basename in
17158 xlc*)
17159 output_verbose_link_cmd='echo'
17160 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17161 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17163 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17164 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}'
17165 ;;
17166 *)
17167 ld_shlibs_GCJ=no
17168 ;;
17169 esac
17170 fi
17171 ;;
17172
17173 dgux*)
17174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17176 hardcode_shlibpath_var_GCJ=no
17177 ;;
17178
17179 freebsd1*)
17180 ld_shlibs_GCJ=no
17181 ;;
17182
17183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17184 # support. Future versions do this automatically, but an explicit c++rt0.o
17185 # does not break anything, and helps significantly (at the cost of a little
17186 # extra space).
17187 freebsd2.2*)
17188 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17189 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17190 hardcode_direct_GCJ=yes
17191 hardcode_shlibpath_var_GCJ=no
17192 ;;
17193
17194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17195 freebsd2*)
17196 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17197 hardcode_direct_GCJ=yes
17198 hardcode_minus_L_GCJ=yes
17199 hardcode_shlibpath_var_GCJ=no
17200 ;;
17201
17202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17203 freebsd* | dragonfly*)
17204 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17206 hardcode_direct_GCJ=yes
17207 hardcode_shlibpath_var_GCJ=no
17208 ;;
17209
17210 hpux9*)
17211 if test "$GCC" = yes; then
17212 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'
17213 else
17214 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'
17215 fi
17216 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17217 hardcode_libdir_separator_GCJ=:
17218 hardcode_direct_GCJ=yes
17219
17220 # hardcode_minus_L: Not really in the search PATH,
17221 # but as the default location of the library.
17222 hardcode_minus_L_GCJ=yes
17223 export_dynamic_flag_spec_GCJ='${wl}-E'
17224 ;;
17225
17226 hpux10*)
17227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17228 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17229 else
17230 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17231 fi
17232 if test "$with_gnu_ld" = no; then
17233 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17234 hardcode_libdir_separator_GCJ=:
17235
17236 hardcode_direct_GCJ=yes
17237 export_dynamic_flag_spec_GCJ='${wl}-E'
17238
17239 # hardcode_minus_L: Not really in the search PATH,
17240 # but as the default location of the library.
17241 hardcode_minus_L_GCJ=yes
17242 fi
17243 ;;
17244
17245 hpux11*)
17246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17247 case $host_cpu in
17248 hppa*64*)
17249 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17250 ;;
17251 ia64*)
17252 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17253 ;;
17254 *)
17255 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17256 ;;
17257 esac
17258 else
17259 case $host_cpu in
17260 hppa*64*)
17261 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262 ;;
17263 ia64*)
17264 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17265 ;;
17266 *)
17267 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17268 ;;
17269 esac
17270 fi
17271 if test "$with_gnu_ld" = no; then
17272 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17273 hardcode_libdir_separator_GCJ=:
17274
17275 case $host_cpu in
17276 hppa*64*|ia64*)
17277 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17278 hardcode_direct_GCJ=no
17279 hardcode_shlibpath_var_GCJ=no
17280 ;;
17281 *)
17282 hardcode_direct_GCJ=yes
17283 export_dynamic_flag_spec_GCJ='${wl}-E'
17284
17285 # hardcode_minus_L: Not really in the search PATH,
17286 # but as the default location of the library.
17287 hardcode_minus_L_GCJ=yes
17288 ;;
17289 esac
17290 fi
17291 ;;
17292
17293 irix5* | irix6* | nonstopux*)
17294 if test "$GCC" = yes; then
17295 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'
17296 else
17297 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'
17298 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17299 fi
17300 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17301 hardcode_libdir_separator_GCJ=:
17302 link_all_deplibs_GCJ=yes
17303 ;;
17304
17305 netbsd* | netbsdelf*-gnu)
17306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17307 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17308 else
17309 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17310 fi
17311 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17312 hardcode_direct_GCJ=yes
17313 hardcode_shlibpath_var_GCJ=no
17314 ;;
17315
17316 newsos6)
17317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17318 hardcode_direct_GCJ=yes
17319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17320 hardcode_libdir_separator_GCJ=:
17321 hardcode_shlibpath_var_GCJ=no
17322 ;;
17323
17324 openbsd*)
17325 hardcode_direct_GCJ=yes
17326 hardcode_shlibpath_var_GCJ=no
17327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17328 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17329 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17330 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17331 export_dynamic_flag_spec_GCJ='${wl}-E'
17332 else
17333 case $host_os in
17334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17336 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17337 ;;
17338 *)
17339 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17341 ;;
17342 esac
17343 fi
17344 ;;
17345
17346 os2*)
17347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17348 hardcode_minus_L_GCJ=yes
17349 allow_undefined_flag_GCJ=unsupported
17350 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'
17351 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17352 ;;
17353
17354 osf3*)
17355 if test "$GCC" = yes; then
17356 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17357 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'
17358 else
17359 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17360 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'
17361 fi
17362 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17363 hardcode_libdir_separator_GCJ=:
17364 ;;
17365
17366 osf4* | osf5*) # as osf3* with the addition of -msym flag
17367 if test "$GCC" = yes; then
17368 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17369 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'
17370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17371 else
17372 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17373 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'
17374 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~
17375 $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'
17376
17377 # Both c and cxx compiler support -rpath directly
17378 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17379 fi
17380 hardcode_libdir_separator_GCJ=:
17381 ;;
17382
17383 solaris*)
17384 no_undefined_flag_GCJ=' -z text'
17385 if test "$GCC" = yes; then
17386 wlarc='${wl}'
17387 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17388 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17389 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17390 else
17391 wlarc=''
17392 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17395 fi
17396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17397 hardcode_shlibpath_var_GCJ=no
17398 case $host_os in
17399 solaris2.[0-5] | solaris2.[0-5].*) ;;
17400 *)
17401 # The compiler driver will combine linker options so we
17402 # cannot just pass the convience library names through
17403 # without $wl, iff we do not link with $LD.
17404 # Luckily, gcc supports the same syntax we need for Sun Studio.
17405 # Supported since Solaris 2.6 (maybe 2.5.1?)
17406 case $wlarc in
17407 '')
17408 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17409 *)
17410 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17411 esac ;;
17412 esac
17413 link_all_deplibs_GCJ=yes
17414 ;;
17415
17416 sunos4*)
17417 if test "x$host_vendor" = xsequent; then
17418 # Use $CC to link under sequent, because it throws in some extra .o
17419 # files that make .init and .fini sections work.
17420 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17421 else
17422 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17423 fi
17424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425 hardcode_direct_GCJ=yes
17426 hardcode_minus_L_GCJ=yes
17427 hardcode_shlibpath_var_GCJ=no
17428 ;;
17429
17430 sysv4)
17431 case $host_vendor in
17432 sni)
17433 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17434 hardcode_direct_GCJ=yes # is this really true???
17435 ;;
17436 siemens)
17437 ## LD is ld it makes a PLAMLIB
17438 ## CC just makes a GrossModule.
17439 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17440 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17441 hardcode_direct_GCJ=no
17442 ;;
17443 motorola)
17444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17446 ;;
17447 esac
17448 runpath_var='LD_RUN_PATH'
17449 hardcode_shlibpath_var_GCJ=no
17450 ;;
17451
17452 sysv4.3*)
17453 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_shlibpath_var_GCJ=no
17455 export_dynamic_flag_spec_GCJ='-Bexport'
17456 ;;
17457
17458 sysv4*MP*)
17459 if test -d /usr/nec; then
17460 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17461 hardcode_shlibpath_var_GCJ=no
17462 runpath_var=LD_RUN_PATH
17463 hardcode_runpath_var=yes
17464 ld_shlibs_GCJ=yes
17465 fi
17466 ;;
17467
17468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17469 no_undefined_flag_GCJ='${wl}-z,text'
17470 archive_cmds_need_lc_GCJ=no
17471 hardcode_shlibpath_var_GCJ=no
17472 runpath_var='LD_RUN_PATH'
17473
17474 if test "$GCC" = yes; then
17475 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17476 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17477 else
17478 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17479 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17480 fi
17481 ;;
17482
17483 sysv5* | sco3.2v5* | sco5v6*)
17484 # Note: We can NOT use -z defs as we might desire, because we do not
17485 # link with -lc, and that would cause any symbols used from libc to
17486 # always be unresolved, which means just about no library would
17487 # ever link correctly. If we're not using GNU ld we use -z text
17488 # though, which does catch some bad symbols but isn't as heavy-handed
17489 # as -z defs.
17490 no_undefined_flag_GCJ='${wl}-z,text'
17491 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17492 archive_cmds_need_lc_GCJ=no
17493 hardcode_shlibpath_var_GCJ=no
17494 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17495 hardcode_libdir_separator_GCJ=':'
17496 link_all_deplibs_GCJ=yes
17497 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17498 runpath_var='LD_RUN_PATH'
17499
17500 if test "$GCC" = yes; then
17501 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17502 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503 else
17504 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17505 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17506 fi
17507 ;;
17508
17509 uts4*)
17510 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17512 hardcode_shlibpath_var_GCJ=no
17513 ;;
17514
17515 *)
17516 ld_shlibs_GCJ=no
17517 ;;
17518 esac
17519 fi
17520
17521 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17522 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17523 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17524
17525 #
17526 # Do we need to explicitly link libc?
17527 #
17528 case "x$archive_cmds_need_lc_GCJ" in
17529 x|xyes)
17530 # Assume -lc should be added
17531 archive_cmds_need_lc_GCJ=yes
17532
17533 if test "$enable_shared" = yes && test "$GCC" = yes; then
17534 case $archive_cmds_GCJ in
17535 *'~'*)
17536 # FIXME: we may have to deal with multi-command sequences.
17537 ;;
17538 '$CC '*)
17539 # Test whether the compiler implicitly links with -lc since on some
17540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17541 # to ld, don't add -lc before -lgcc.
17542 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17544 $rm conftest*
17545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17546
17547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548 (eval $ac_compile) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } 2>conftest.err; then
17552 soname=conftest
17553 lib=conftest
17554 libobjs=conftest.$ac_objext
17555 deplibs=
17556 wl=$lt_prog_compiler_wl_GCJ
17557 pic_flag=$lt_prog_compiler_pic_GCJ
17558 compiler_flags=-v
17559 linker_flags=-v
17560 verstring=
17561 output_objdir=.
17562 libname=conftest
17563 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17564 allow_undefined_flag_GCJ=
17565 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17566 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }
17570 then
17571 archive_cmds_need_lc_GCJ=no
17572 else
17573 archive_cmds_need_lc_GCJ=yes
17574 fi
17575 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17576 else
17577 cat conftest.err 1>&5
17578 fi
17579 $rm conftest*
17580 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17581 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17582 ;;
17583 esac
17584 fi
17585 ;;
17586 esac
17587
17588 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17590 library_names_spec=
17591 libname_spec='lib$name'
17592 soname_spec=
17593 shrext_cmds=".so"
17594 postinstall_cmds=
17595 postuninstall_cmds=
17596 finish_cmds=
17597 finish_eval=
17598 shlibpath_var=
17599 shlibpath_overrides_runpath=unknown
17600 version_type=none
17601 dynamic_linker="$host_os ld.so"
17602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17603 if test "$GCC" = yes; then
17604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17606 # if the path contains ";" then we assume it to be the separator
17607 # otherwise default to the standard path separator (i.e. ":") - it is
17608 # assumed that no part of a normal pathname contains ";" but that should
17609 # okay in the real world where ";" in dirpaths is itself problematic.
17610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17611 else
17612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17613 fi
17614 else
17615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17616 fi
17617 need_lib_prefix=unknown
17618 hardcode_into_libs=no
17619
17620 # when you set need_version to no, make sure it does not cause -set_version
17621 # flags to be left without arguments
17622 need_version=unknown
17623
17624 case $host_os in
17625 aix3*)
17626 version_type=linux
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17628 shlibpath_var=LIBPATH
17629
17630 # AIX 3 has no versioning support, so we append a major version to the name.
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 ;;
17633
17634 aix4* | aix5*)
17635 version_type=linux
17636 need_lib_prefix=no
17637 need_version=no
17638 hardcode_into_libs=yes
17639 if test "$host_cpu" = ia64; then
17640 # AIX 5 supports IA64
17641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 else
17644 # With GCC up to 2.95.x, collect2 would create an import file
17645 # for dependence libraries. The import file would start with
17646 # the line `#! .'. This would cause the generated library to
17647 # depend on `.', always an invalid library. This was fixed in
17648 # development snapshots of GCC prior to 3.0.
17649 case $host_os in
17650 aix4 | aix4.[01] | aix4.[01].*)
17651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17652 echo ' yes '
17653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17654 :
17655 else
17656 can_build_shared=no
17657 fi
17658 ;;
17659 esac
17660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17661 # soname into executable. Probably we can add versioning support to
17662 # collect2, so additional links can be useful in future.
17663 if test "$aix_use_runtimelinking" = yes; then
17664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17665 # instead of lib<name>.a to let people know that these are not
17666 # typical AIX shared libraries.
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668 else
17669 # We preserve .a as extension for shared libraries through AIX4.2
17670 # and later when we are not doing run time linking.
17671 library_names_spec='${libname}${release}.a $libname.a'
17672 soname_spec='${libname}${release}${shared_ext}$major'
17673 fi
17674 shlibpath_var=LIBPATH
17675 fi
17676 ;;
17677
17678 amigaos*)
17679 library_names_spec='$libname.ixlibrary $libname.a'
17680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17681 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'
17682 ;;
17683
17684 beos*)
17685 library_names_spec='${libname}${shared_ext}'
17686 dynamic_linker="$host_os ld.so"
17687 shlibpath_var=LIBRARY_PATH
17688 ;;
17689
17690 bsdi[45]*)
17691 version_type=linux
17692 need_version=no
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17699 # the default ld.so.conf also contains /usr/contrib/lib and
17700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17701 # libtool to hard-code these into programs
17702 ;;
17703
17704 cygwin* | mingw* | pw32*)
17705 version_type=windows
17706 shrext_cmds=".dll"
17707 need_version=no
17708 need_lib_prefix=no
17709
17710 case $GCC,$host_os in
17711 yes,cygwin* | yes,mingw* | yes,pw32*)
17712 library_names_spec='$libname.dll.a'
17713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17714 postinstall_cmds='base_file=`basename \${file}`~
17715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17716 dldir=$destdir/`dirname \$dlpath`~
17717 test -d \$dldir || mkdir -p \$dldir~
17718 $install_prog $dir/$dlname \$dldir/$dlname~
17719 chmod a+x \$dldir/$dlname'
17720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17721 dlpath=$dir/\$dldll~
17722 $rm \$dlpath'
17723 shlibpath_overrides_runpath=yes
17724
17725 case $host_os in
17726 cygwin*)
17727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17730 ;;
17731 mingw*)
17732 # MinGW DLLs use traditional 'lib' prefix
17733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17736 # It is most probably a Windows format PATH printed by
17737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17738 # path with ; separators, and with drive letters. We can handle the
17739 # drive letters (cygwin fileutils understands them), so leave them,
17740 # especially as we might pass files found there to a mingw objdump,
17741 # which wouldn't understand a cygwinified path. Ahh.
17742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17743 else
17744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17745 fi
17746 ;;
17747 pw32*)
17748 # pw32 DLLs use 'pw' prefix rather than 'lib'
17749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17750 ;;
17751 esac
17752 ;;
17753
17754 *)
17755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17756 ;;
17757 esac
17758 dynamic_linker='Win32 ld.exe'
17759 # FIXME: first we should search . and the directory the executable is in
17760 shlibpath_var=PATH
17761 ;;
17762
17763 darwin* | rhapsody*)
17764 dynamic_linker="$host_os dyld"
17765 version_type=darwin
17766 need_lib_prefix=no
17767 need_version=no
17768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17769 soname_spec='${libname}${release}${major}$shared_ext'
17770 shlibpath_overrides_runpath=yes
17771 shlibpath_var=DYLD_LIBRARY_PATH
17772 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17774 if test "$GCC" = yes; then
17775 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17776 else
17777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17778 fi
17779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17780 ;;
17781
17782 dgux*)
17783 version_type=linux
17784 need_lib_prefix=no
17785 need_version=no
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 ;;
17790
17791 freebsd1*)
17792 dynamic_linker=no
17793 ;;
17794
17795 freebsd* | dragonfly*)
17796 # DragonFly does not have aout. When/if they implement a new
17797 # versioning mechanism, adjust this.
17798 if test -x /usr/bin/objformat; then
17799 objformat=`/usr/bin/objformat`
17800 else
17801 case $host_os in
17802 freebsd[123]*) objformat=aout ;;
17803 *) objformat=elf ;;
17804 esac
17805 fi
17806 version_type=freebsd-$objformat
17807 case $version_type in
17808 freebsd-elf*)
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17810 need_version=no
17811 need_lib_prefix=no
17812 ;;
17813 freebsd-*)
17814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17815 need_version=yes
17816 ;;
17817 esac
17818 shlibpath_var=LD_LIBRARY_PATH
17819 case $host_os in
17820 freebsd2*)
17821 shlibpath_overrides_runpath=yes
17822 ;;
17823 freebsd3.[01]* | freebsdelf3.[01]*)
17824 shlibpath_overrides_runpath=yes
17825 hardcode_into_libs=yes
17826 ;;
17827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17829 shlibpath_overrides_runpath=no
17830 hardcode_into_libs=yes
17831 ;;
17832 freebsd*) # from 4.6 on
17833 shlibpath_overrides_runpath=yes
17834 hardcode_into_libs=yes
17835 ;;
17836 esac
17837 ;;
17838
17839 gnu*)
17840 version_type=linux
17841 need_lib_prefix=no
17842 need_version=no
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 hardcode_into_libs=yes
17847 ;;
17848
17849 hpux9* | hpux10* | hpux11*)
17850 # Give a soname corresponding to the major version so that dld.sl refuses to
17851 # link against other versions.
17852 version_type=sunos
17853 need_lib_prefix=no
17854 need_version=no
17855 case $host_cpu in
17856 ia64*)
17857 shrext_cmds='.so'
17858 hardcode_into_libs=yes
17859 dynamic_linker="$host_os dld.so"
17860 shlibpath_var=LD_LIBRARY_PATH
17861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 if test "X$HPUX_IA64_MODE" = X32; then
17865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17866 else
17867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17868 fi
17869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17870 ;;
17871 hppa*64*)
17872 shrext_cmds='.sl'
17873 hardcode_into_libs=yes
17874 dynamic_linker="$host_os dld.sl"
17875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 soname_spec='${libname}${release}${shared_ext}$major'
17879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17881 ;;
17882 *)
17883 shrext_cmds='.sl'
17884 dynamic_linker="$host_os dld.sl"
17885 shlibpath_var=SHLIB_PATH
17886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17888 soname_spec='${libname}${release}${shared_ext}$major'
17889 ;;
17890 esac
17891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17892 postinstall_cmds='chmod 555 $lib'
17893 ;;
17894
17895 interix3*)
17896 version_type=linux
17897 need_lib_prefix=no
17898 need_version=no
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 shlibpath_overrides_runpath=no
17904 hardcode_into_libs=yes
17905 ;;
17906
17907 irix5* | irix6* | nonstopux*)
17908 case $host_os in
17909 nonstopux*) version_type=nonstopux ;;
17910 *)
17911 if test "$lt_cv_prog_gnu_ld" = yes; then
17912 version_type=linux
17913 else
17914 version_type=irix
17915 fi ;;
17916 esac
17917 need_lib_prefix=no
17918 need_version=no
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17921 case $host_os in
17922 irix5* | nonstopux*)
17923 libsuff= shlibsuff=
17924 ;;
17925 *)
17926 case $LD in # libtool.m4 will add one of these switches to LD
17927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17928 libsuff= shlibsuff= libmagic=32-bit;;
17929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17930 libsuff=32 shlibsuff=N32 libmagic=N32;;
17931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17932 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17933 *) libsuff= shlibsuff= libmagic=never-match;;
17934 esac
17935 ;;
17936 esac
17937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17938 shlibpath_overrides_runpath=no
17939 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17940 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17941 hardcode_into_libs=yes
17942 ;;
17943
17944 # No shared lib support for Linux oldld, aout, or coff.
17945 linux*oldld* | linux*aout* | linux*coff*)
17946 dynamic_linker=no
17947 ;;
17948
17949 # This must be Linux ELF.
17950 linux* | k*bsd*-gnu)
17951 version_type=linux
17952 need_lib_prefix=no
17953 need_version=no
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17955 soname_spec='${libname}${release}${shared_ext}$major'
17956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=no
17959 # This implies no fast_install, which is unacceptable.
17960 # Some rework will be needed to allow for fast_install
17961 # before this can be enabled.
17962 hardcode_into_libs=yes
17963
17964 # Append ld.so.conf contents to the search path
17965 if test -f /etc/ld.so.conf; then
17966 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17968 fi
17969
17970 # We used to test for /lib/ld.so.1 and disable shared libraries on
17971 # powerpc, because MkLinux only supported shared libraries with the
17972 # GNU dynamic linker. Since this was broken with cross compilers,
17973 # most powerpc-linux boxes support dynamic linking these days and
17974 # people can always --disable-shared, the test was removed, and we
17975 # assume the GNU/Linux dynamic linker is in use.
17976 dynamic_linker='GNU/Linux ld.so'
17977 ;;
17978
17979 netbsdelf*-gnu)
17980 version_type=linux
17981 need_lib_prefix=no
17982 need_version=no
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 shlibpath_overrides_runpath=no
17987 hardcode_into_libs=yes
17988 dynamic_linker='NetBSD ld.elf_so'
17989 ;;
17990
17991 netbsd*)
17992 version_type=sunos
17993 need_lib_prefix=no
17994 need_version=no
17995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17998 dynamic_linker='NetBSD (a.out) ld.so'
17999 else
18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18001 soname_spec='${libname}${release}${shared_ext}$major'
18002 dynamic_linker='NetBSD ld.elf_so'
18003 fi
18004 shlibpath_var=LD_LIBRARY_PATH
18005 shlibpath_overrides_runpath=yes
18006 hardcode_into_libs=yes
18007 ;;
18008
18009 newsos6)
18010 version_type=linux
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012 shlibpath_var=LD_LIBRARY_PATH
18013 shlibpath_overrides_runpath=yes
18014 ;;
18015
18016 nto-qnx*)
18017 version_type=linux
18018 need_lib_prefix=no
18019 need_version=no
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 shlibpath_overrides_runpath=yes
18024 ;;
18025
18026 openbsd*)
18027 version_type=sunos
18028 sys_lib_dlsearch_path_spec="/usr/lib"
18029 need_lib_prefix=no
18030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18031 case $host_os in
18032 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18033 *) need_version=no ;;
18034 esac
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18037 shlibpath_var=LD_LIBRARY_PATH
18038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18039 case $host_os in
18040 openbsd2.[89] | openbsd2.[89].*)
18041 shlibpath_overrides_runpath=no
18042 ;;
18043 *)
18044 shlibpath_overrides_runpath=yes
18045 ;;
18046 esac
18047 else
18048 shlibpath_overrides_runpath=yes
18049 fi
18050 ;;
18051
18052 os2*)
18053 libname_spec='$name'
18054 shrext_cmds=".dll"
18055 need_lib_prefix=no
18056 library_names_spec='$libname${shared_ext} $libname.a'
18057 dynamic_linker='OS/2 ld.exe'
18058 shlibpath_var=LIBPATH
18059 ;;
18060
18061 osf3* | osf4* | osf5*)
18062 version_type=osf
18063 need_lib_prefix=no
18064 need_version=no
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18070 ;;
18071
18072 solaris*)
18073 version_type=linux
18074 need_lib_prefix=no
18075 need_version=no
18076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077 soname_spec='${libname}${release}${shared_ext}$major'
18078 shlibpath_var=LD_LIBRARY_PATH
18079 shlibpath_overrides_runpath=yes
18080 hardcode_into_libs=yes
18081 # ldd complains unless libraries are executable
18082 postinstall_cmds='chmod +x $lib'
18083 ;;
18084
18085 sunos4*)
18086 version_type=sunos
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18089 shlibpath_var=LD_LIBRARY_PATH
18090 shlibpath_overrides_runpath=yes
18091 if test "$with_gnu_ld" = yes; then
18092 need_lib_prefix=no
18093 fi
18094 need_version=yes
18095 ;;
18096
18097 sysv4 | sysv4.3*)
18098 version_type=linux
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 case $host_vendor in
18103 sni)
18104 shlibpath_overrides_runpath=no
18105 need_lib_prefix=no
18106 export_dynamic_flag_spec='${wl}-Blargedynsym'
18107 runpath_var=LD_RUN_PATH
18108 ;;
18109 siemens)
18110 need_lib_prefix=no
18111 ;;
18112 motorola)
18113 need_lib_prefix=no
18114 need_version=no
18115 shlibpath_overrides_runpath=no
18116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18117 ;;
18118 esac
18119 ;;
18120
18121 sysv4*MP*)
18122 if test -d /usr/nec ;then
18123 version_type=linux
18124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18125 soname_spec='$libname${shared_ext}.$major'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 fi
18128 ;;
18129
18130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18131 version_type=freebsd-elf
18132 need_lib_prefix=no
18133 need_version=no
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 shlibpath_var=LD_LIBRARY_PATH
18137 hardcode_into_libs=yes
18138 if test "$with_gnu_ld" = yes; then
18139 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18140 shlibpath_overrides_runpath=no
18141 else
18142 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18143 shlibpath_overrides_runpath=yes
18144 case $host_os in
18145 sco3.2v5*)
18146 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18147 ;;
18148 esac
18149 fi
18150 sys_lib_dlsearch_path_spec='/usr/lib'
18151 ;;
18152
18153 uts4*)
18154 version_type=linux
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 ;;
18159
18160 *)
18161 dynamic_linker=no
18162 ;;
18163 esac
18164 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18165 echo "${ECHO_T}$dynamic_linker" >&6; }
18166 test "$dynamic_linker" = no && can_build_shared=no
18167
18168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18169 if test "$GCC" = yes; then
18170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18171 fi
18172
18173 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18175 hardcode_action_GCJ=
18176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18177 test -n "$runpath_var_GCJ" || \
18178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18179
18180 # We can hardcode non-existant directories.
18181 if test "$hardcode_direct_GCJ" != no &&
18182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18183 # have to relink, otherwise we might link with an installed library
18184 # when we should be linking with a yet-to-be-installed one
18185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18186 test "$hardcode_minus_L_GCJ" != no; then
18187 # Linking always hardcodes the temporary library directory.
18188 hardcode_action_GCJ=relink
18189 else
18190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18191 hardcode_action_GCJ=immediate
18192 fi
18193 else
18194 # We cannot hardcode anything, or else we can only hardcode existing
18195 # directories.
18196 hardcode_action_GCJ=unsupported
18197 fi
18198 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18199 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18200
18201 if test "$hardcode_action_GCJ" = relink; then
18202 # Fast installation is not supported
18203 enable_fast_install=no
18204 elif test "$shlibpath_overrides_runpath" = yes ||
18205 test "$enable_shared" = no; then
18206 # Fast installation is not necessary
18207 enable_fast_install=needless
18208 fi
18209
18210
18211 # The else clause should only fire when bootstrapping the
18212 # libtool distribution, otherwise you forgot to ship ltmain.sh
18213 # with your package, and you will get complaints that there are
18214 # no rules to generate ltmain.sh.
18215 if test -f "$ltmain"; then
18216 # See if we are running on zsh, and set the options which allow our commands through
18217 # without removal of \ escapes.
18218 if test -n "${ZSH_VERSION+set}" ; then
18219 setopt NO_GLOB_SUBST
18220 fi
18221 # Now quote all the things that may contain metacharacters while being
18222 # careful not to overquote the AC_SUBSTed values. We take copies of the
18223 # variables and quote the copies for generation of the libtool script.
18224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18225 SED SHELL STRIP \
18226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18228 deplibs_check_method reload_flag reload_cmds need_locks \
18229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18230 lt_cv_sys_global_symbol_to_c_name_address \
18231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18232 old_postinstall_cmds old_postuninstall_cmds \
18233 compiler_GCJ \
18234 CC_GCJ \
18235 LD_GCJ \
18236 lt_prog_compiler_wl_GCJ \
18237 lt_prog_compiler_pic_GCJ \
18238 lt_prog_compiler_static_GCJ \
18239 lt_prog_compiler_no_builtin_flag_GCJ \
18240 export_dynamic_flag_spec_GCJ \
18241 thread_safe_flag_spec_GCJ \
18242 whole_archive_flag_spec_GCJ \
18243 enable_shared_with_static_runtimes_GCJ \
18244 old_archive_cmds_GCJ \
18245 old_archive_from_new_cmds_GCJ \
18246 predep_objects_GCJ \
18247 postdep_objects_GCJ \
18248 predeps_GCJ \
18249 postdeps_GCJ \
18250 compiler_lib_search_path_GCJ \
18251 archive_cmds_GCJ \
18252 archive_expsym_cmds_GCJ \
18253 postinstall_cmds_GCJ \
18254 postuninstall_cmds_GCJ \
18255 old_archive_from_expsyms_cmds_GCJ \
18256 allow_undefined_flag_GCJ \
18257 no_undefined_flag_GCJ \
18258 export_symbols_cmds_GCJ \
18259 hardcode_libdir_flag_spec_GCJ \
18260 hardcode_libdir_flag_spec_ld_GCJ \
18261 hardcode_libdir_separator_GCJ \
18262 hardcode_automatic_GCJ \
18263 module_cmds_GCJ \
18264 module_expsym_cmds_GCJ \
18265 lt_cv_prog_compiler_c_o_GCJ \
18266 exclude_expsyms_GCJ \
18267 include_expsyms_GCJ; do
18268
18269 case $var in
18270 old_archive_cmds_GCJ | \
18271 old_archive_from_new_cmds_GCJ | \
18272 archive_cmds_GCJ | \
18273 archive_expsym_cmds_GCJ | \
18274 module_cmds_GCJ | \
18275 module_expsym_cmds_GCJ | \
18276 old_archive_from_expsyms_cmds_GCJ | \
18277 export_symbols_cmds_GCJ | \
18278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18279 postinstall_cmds | postuninstall_cmds | \
18280 old_postinstall_cmds | old_postuninstall_cmds | \
18281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18282 # Double-quote double-evaled strings.
18283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18284 ;;
18285 *)
18286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18287 ;;
18288 esac
18289 done
18290
18291 case $lt_echo in
18292 *'\$0 --fallback-echo"')
18293 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18294 ;;
18295 esac
18296
18297 cfgfile="$ofile"
18298
18299 cat <<__EOF__ >> "$cfgfile"
18300 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18301
18302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18303
18304 # Shell to use when invoking shell scripts.
18305 SHELL=$lt_SHELL
18306
18307 # Whether or not to build shared libraries.
18308 build_libtool_libs=$enable_shared
18309
18310 # Whether or not to build static libraries.
18311 build_old_libs=$enable_static
18312
18313 # Whether or not to add -lc for building shared libraries.
18314 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18315
18316 # Whether or not to disallow shared libs when runtime libs are static
18317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18318
18319 # Whether or not to optimize for fast installation.
18320 fast_install=$enable_fast_install
18321
18322 # The host system.
18323 host_alias=$host_alias
18324 host=$host
18325 host_os=$host_os
18326
18327 # The build system.
18328 build_alias=$build_alias
18329 build=$build
18330 build_os=$build_os
18331
18332 # An echo program that does not interpret backslashes.
18333 echo=$lt_echo
18334
18335 # The archiver.
18336 AR=$lt_AR
18337 AR_FLAGS=$lt_AR_FLAGS
18338
18339 # A C compiler.
18340 LTCC=$lt_LTCC
18341
18342 # LTCC compiler flags.
18343 LTCFLAGS=$lt_LTCFLAGS
18344
18345 # A language-specific compiler.
18346 CC=$lt_compiler_GCJ
18347
18348 # Is the compiler the GNU C compiler?
18349 with_gcc=$GCC_GCJ
18350
18351 # An ERE matcher.
18352 EGREP=$lt_EGREP
18353
18354 # The linker used to build libraries.
18355 LD=$lt_LD_GCJ
18356
18357 # Whether we need hard or soft links.
18358 LN_S=$lt_LN_S
18359
18360 # A BSD-compatible nm program.
18361 NM=$lt_NM
18362
18363 # A symbol stripping program
18364 STRIP=$lt_STRIP
18365
18366 # Used to examine libraries when file_magic_cmd begins "file"
18367 MAGIC_CMD=$MAGIC_CMD
18368
18369 # Used on cygwin: DLL creation program.
18370 DLLTOOL="$DLLTOOL"
18371
18372 # Used on cygwin: object dumper.
18373 OBJDUMP="$OBJDUMP"
18374
18375 # Used on cygwin: assembler.
18376 AS="$AS"
18377
18378 # The name of the directory that contains temporary libtool files.
18379 objdir=$objdir
18380
18381 # How to create reloadable object files.
18382 reload_flag=$lt_reload_flag
18383 reload_cmds=$lt_reload_cmds
18384
18385 # How to pass a linker flag through the compiler.
18386 wl=$lt_lt_prog_compiler_wl_GCJ
18387
18388 # Object file suffix (normally "o").
18389 objext="$ac_objext"
18390
18391 # Old archive suffix (normally "a").
18392 libext="$libext"
18393
18394 # Shared library suffix (normally ".so").
18395 shrext_cmds='$shrext_cmds'
18396
18397 # Executable file suffix (normally "").
18398 exeext="$exeext"
18399
18400 # Additional compiler flags for building library objects.
18401 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18402 pic_mode=$pic_mode
18403
18404 # What is the maximum length of a command?
18405 max_cmd_len=$lt_cv_sys_max_cmd_len
18406
18407 # Does compiler simultaneously support -c and -o options?
18408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18409
18410 # Must we lock files when doing compilation?
18411 need_locks=$lt_need_locks
18412
18413 # Do we need the lib prefix for modules?
18414 need_lib_prefix=$need_lib_prefix
18415
18416 # Do we need a version for libraries?
18417 need_version=$need_version
18418
18419 # Whether dlopen is supported.
18420 dlopen_support=$enable_dlopen
18421
18422 # Whether dlopen of programs is supported.
18423 dlopen_self=$enable_dlopen_self
18424
18425 # Whether dlopen of statically linked programs is supported.
18426 dlopen_self_static=$enable_dlopen_self_static
18427
18428 # Compiler flag to prevent dynamic linking.
18429 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18430
18431 # Compiler flag to turn off builtin functions.
18432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18433
18434 # Compiler flag to allow reflexive dlopens.
18435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18436
18437 # Compiler flag to generate shared objects directly from archives.
18438 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18439
18440 # Compiler flag to generate thread-safe objects.
18441 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18442
18443 # Library versioning type.
18444 version_type=$version_type
18445
18446 # Format of library name prefix.
18447 libname_spec=$lt_libname_spec
18448
18449 # List of archive names. First name is the real one, the rest are links.
18450 # The last name is the one that the linker finds with -lNAME.
18451 library_names_spec=$lt_library_names_spec
18452
18453 # The coded name of the library, if different from the real name.
18454 soname_spec=$lt_soname_spec
18455
18456 # Commands used to build and install an old-style archive.
18457 RANLIB=$lt_RANLIB
18458 old_archive_cmds=$lt_old_archive_cmds_GCJ
18459 old_postinstall_cmds=$lt_old_postinstall_cmds
18460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18461
18462 # Create an old-style archive from a shared archive.
18463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18464
18465 # Create a temporary old-style archive to link instead of a shared archive.
18466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18467
18468 # Commands used to build and install a shared archive.
18469 archive_cmds=$lt_archive_cmds_GCJ
18470 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18471 postinstall_cmds=$lt_postinstall_cmds
18472 postuninstall_cmds=$lt_postuninstall_cmds
18473
18474 # Commands used to build a loadable module (assumed same as above if empty)
18475 module_cmds=$lt_module_cmds_GCJ
18476 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18477
18478 # Commands to strip libraries.
18479 old_striplib=$lt_old_striplib
18480 striplib=$lt_striplib
18481
18482 # Dependencies to place before the objects being linked to create a
18483 # shared library.
18484 predep_objects=$lt_predep_objects_GCJ
18485
18486 # Dependencies to place after the objects being linked to create a
18487 # shared library.
18488 postdep_objects=$lt_postdep_objects_GCJ
18489
18490 # Dependencies to place before the objects being linked to create a
18491 # shared library.
18492 predeps=$lt_predeps_GCJ
18493
18494 # Dependencies to place after the objects being linked to create a
18495 # shared library.
18496 postdeps=$lt_postdeps_GCJ
18497
18498 # The library search path used internally by the compiler when linking
18499 # a shared library.
18500 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18501
18502 # Method to check whether dependent libraries are shared objects.
18503 deplibs_check_method=$lt_deplibs_check_method
18504
18505 # Command to use when deplibs_check_method == file_magic.
18506 file_magic_cmd=$lt_file_magic_cmd
18507
18508 # Flag that allows shared libraries with undefined symbols to be built.
18509 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18510
18511 # Flag that forces no undefined symbols.
18512 no_undefined_flag=$lt_no_undefined_flag_GCJ
18513
18514 # Commands used to finish a libtool library installation in a directory.
18515 finish_cmds=$lt_finish_cmds
18516
18517 # Same as above, but a single script fragment to be evaled but not shown.
18518 finish_eval=$lt_finish_eval
18519
18520 # Take the output of nm and produce a listing of raw symbols and C names.
18521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18522
18523 # Transform the output of nm in a proper C declaration
18524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18525
18526 # Transform the output of nm in a C name address pair
18527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18528
18529 # This is the shared library runtime path variable.
18530 runpath_var=$runpath_var
18531
18532 # This is the shared library path variable.
18533 shlibpath_var=$shlibpath_var
18534
18535 # Is shlibpath searched before the hard-coded library search path?
18536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18537
18538 # How to hardcode a shared library path into an executable.
18539 hardcode_action=$hardcode_action_GCJ
18540
18541 # Whether we should hardcode library paths into libraries.
18542 hardcode_into_libs=$hardcode_into_libs
18543
18544 # Flag to hardcode \$libdir into a binary during linking.
18545 # This must work even if \$libdir does not exist.
18546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18547
18548 # If ld is used when linking, flag to hardcode \$libdir into
18549 # a binary during linking. This must work even if \$libdir does
18550 # not exist.
18551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18552
18553 # Whether we need a single -rpath flag with a separated argument.
18554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18555
18556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18557 # resulting binary.
18558 hardcode_direct=$hardcode_direct_GCJ
18559
18560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18561 # resulting binary.
18562 hardcode_minus_L=$hardcode_minus_L_GCJ
18563
18564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18565 # the resulting binary.
18566 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18567
18568 # Set to yes if building a shared library automatically hardcodes DIR into the library
18569 # and all subsequent libraries and executables linked against it.
18570 hardcode_automatic=$hardcode_automatic_GCJ
18571
18572 # Variables whose values should be saved in libtool wrapper scripts and
18573 # restored at relink time.
18574 variables_saved_for_relink="$variables_saved_for_relink"
18575
18576 # Whether libtool must link a program against all its dependency libraries.
18577 link_all_deplibs=$link_all_deplibs_GCJ
18578
18579 # Compile-time system search path for libraries
18580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18581
18582 # Run-time system search path for libraries
18583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18584
18585 # Fix the shell variable \$srcfile for the compiler.
18586 fix_srcfile_path="$fix_srcfile_path_GCJ"
18587
18588 # Set to yes if exported symbols are required.
18589 always_export_symbols=$always_export_symbols_GCJ
18590
18591 # The commands to list exported symbols.
18592 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18593
18594 # The commands to extract the exported symbol list from a shared archive.
18595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18596
18597 # Symbols that should not be listed in the preloaded symbols.
18598 exclude_expsyms=$lt_exclude_expsyms_GCJ
18599
18600 # Symbols that must always be exported.
18601 include_expsyms=$lt_include_expsyms_GCJ
18602
18603 # ### END LIBTOOL TAG CONFIG: $tagname
18604
18605 __EOF__
18606
18607
18608 else
18609 # If there is no Makefile yet, we rely on a make rule to execute
18610 # `config.status --recheck' to rerun these tests and create the
18611 # libtool script then.
18612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18613 if test -f "$ltmain_in"; then
18614 test -f Makefile && make "$ltmain"
18615 fi
18616 fi
18617
18618
18619 ac_ext=c
18620 ac_cpp='$CPP $CPPFLAGS'
18621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18624
18625 CC="$lt_save_CC"
18626
18627 else
18628 tagname=""
18629 fi
18630 ;;
18631
18632 RC)
18633
18634
18635 # Source file extension for RC test sources.
18636 ac_ext=rc
18637
18638 # Object file extension for compiled RC test sources.
18639 objext=o
18640 objext_RC=$objext
18641
18642 # Code to be used in simple compile tests
18643 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18644
18645 # Code to be used in simple link tests
18646 lt_simple_link_test_code="$lt_simple_compile_test_code"
18647
18648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18649
18650 # If no C compiler was specified, use CC.
18651 LTCC=${LTCC-"$CC"}
18652
18653 # If no C compiler flags were specified, use CFLAGS.
18654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18655
18656 # Allow CC to be a program name with arguments.
18657 compiler=$CC
18658
18659
18660 # save warnings/boilerplate of simple test code
18661 ac_outfile=conftest.$ac_objext
18662 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18664 _lt_compiler_boilerplate=`cat conftest.err`
18665 $rm conftest*
18666
18667 ac_outfile=conftest.$ac_objext
18668 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18670 _lt_linker_boilerplate=`cat conftest.err`
18671 $rm conftest*
18672
18673
18674 # Allow CC to be a program name with arguments.
18675 lt_save_CC="$CC"
18676 CC=${RC-"windres"}
18677 compiler=$CC
18678 compiler_RC=$CC
18679 for cc_temp in $compiler""; do
18680 case $cc_temp in
18681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18683 \-*) ;;
18684 *) break;;
18685 esac
18686 done
18687 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18688
18689 lt_cv_prog_compiler_c_o_RC=yes
18690
18691 # The else clause should only fire when bootstrapping the
18692 # libtool distribution, otherwise you forgot to ship ltmain.sh
18693 # with your package, and you will get complaints that there are
18694 # no rules to generate ltmain.sh.
18695 if test -f "$ltmain"; then
18696 # See if we are running on zsh, and set the options which allow our commands through
18697 # without removal of \ escapes.
18698 if test -n "${ZSH_VERSION+set}" ; then
18699 setopt NO_GLOB_SUBST
18700 fi
18701 # Now quote all the things that may contain metacharacters while being
18702 # careful not to overquote the AC_SUBSTed values. We take copies of the
18703 # variables and quote the copies for generation of the libtool script.
18704 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18705 SED SHELL STRIP \
18706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18708 deplibs_check_method reload_flag reload_cmds need_locks \
18709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18710 lt_cv_sys_global_symbol_to_c_name_address \
18711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18712 old_postinstall_cmds old_postuninstall_cmds \
18713 compiler_RC \
18714 CC_RC \
18715 LD_RC \
18716 lt_prog_compiler_wl_RC \
18717 lt_prog_compiler_pic_RC \
18718 lt_prog_compiler_static_RC \
18719 lt_prog_compiler_no_builtin_flag_RC \
18720 export_dynamic_flag_spec_RC \
18721 thread_safe_flag_spec_RC \
18722 whole_archive_flag_spec_RC \
18723 enable_shared_with_static_runtimes_RC \
18724 old_archive_cmds_RC \
18725 old_archive_from_new_cmds_RC \
18726 predep_objects_RC \
18727 postdep_objects_RC \
18728 predeps_RC \
18729 postdeps_RC \
18730 compiler_lib_search_path_RC \
18731 archive_cmds_RC \
18732 archive_expsym_cmds_RC \
18733 postinstall_cmds_RC \
18734 postuninstall_cmds_RC \
18735 old_archive_from_expsyms_cmds_RC \
18736 allow_undefined_flag_RC \
18737 no_undefined_flag_RC \
18738 export_symbols_cmds_RC \
18739 hardcode_libdir_flag_spec_RC \
18740 hardcode_libdir_flag_spec_ld_RC \
18741 hardcode_libdir_separator_RC \
18742 hardcode_automatic_RC \
18743 module_cmds_RC \
18744 module_expsym_cmds_RC \
18745 lt_cv_prog_compiler_c_o_RC \
18746 exclude_expsyms_RC \
18747 include_expsyms_RC; do
18748
18749 case $var in
18750 old_archive_cmds_RC | \
18751 old_archive_from_new_cmds_RC | \
18752 archive_cmds_RC | \
18753 archive_expsym_cmds_RC | \
18754 module_cmds_RC | \
18755 module_expsym_cmds_RC | \
18756 old_archive_from_expsyms_cmds_RC | \
18757 export_symbols_cmds_RC | \
18758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18759 postinstall_cmds | postuninstall_cmds | \
18760 old_postinstall_cmds | old_postuninstall_cmds | \
18761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18762 # Double-quote double-evaled strings.
18763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18764 ;;
18765 *)
18766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18767 ;;
18768 esac
18769 done
18770
18771 case $lt_echo in
18772 *'\$0 --fallback-echo"')
18773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18774 ;;
18775 esac
18776
18777 cfgfile="$ofile"
18778
18779 cat <<__EOF__ >> "$cfgfile"
18780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18781
18782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18783
18784 # Shell to use when invoking shell scripts.
18785 SHELL=$lt_SHELL
18786
18787 # Whether or not to build shared libraries.
18788 build_libtool_libs=$enable_shared
18789
18790 # Whether or not to build static libraries.
18791 build_old_libs=$enable_static
18792
18793 # Whether or not to add -lc for building shared libraries.
18794 build_libtool_need_lc=$archive_cmds_need_lc_RC
18795
18796 # Whether or not to disallow shared libs when runtime libs are static
18797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18798
18799 # Whether or not to optimize for fast installation.
18800 fast_install=$enable_fast_install
18801
18802 # The host system.
18803 host_alias=$host_alias
18804 host=$host
18805 host_os=$host_os
18806
18807 # The build system.
18808 build_alias=$build_alias
18809 build=$build
18810 build_os=$build_os
18811
18812 # An echo program that does not interpret backslashes.
18813 echo=$lt_echo
18814
18815 # The archiver.
18816 AR=$lt_AR
18817 AR_FLAGS=$lt_AR_FLAGS
18818
18819 # A C compiler.
18820 LTCC=$lt_LTCC
18821
18822 # LTCC compiler flags.
18823 LTCFLAGS=$lt_LTCFLAGS
18824
18825 # A language-specific compiler.
18826 CC=$lt_compiler_RC
18827
18828 # Is the compiler the GNU C compiler?
18829 with_gcc=$GCC_RC
18830
18831 # An ERE matcher.
18832 EGREP=$lt_EGREP
18833
18834 # The linker used to build libraries.
18835 LD=$lt_LD_RC
18836
18837 # Whether we need hard or soft links.
18838 LN_S=$lt_LN_S
18839
18840 # A BSD-compatible nm program.
18841 NM=$lt_NM
18842
18843 # A symbol stripping program
18844 STRIP=$lt_STRIP
18845
18846 # Used to examine libraries when file_magic_cmd begins "file"
18847 MAGIC_CMD=$MAGIC_CMD
18848
18849 # Used on cygwin: DLL creation program.
18850 DLLTOOL="$DLLTOOL"
18851
18852 # Used on cygwin: object dumper.
18853 OBJDUMP="$OBJDUMP"
18854
18855 # Used on cygwin: assembler.
18856 AS="$AS"
18857
18858 # The name of the directory that contains temporary libtool files.
18859 objdir=$objdir
18860
18861 # How to create reloadable object files.
18862 reload_flag=$lt_reload_flag
18863 reload_cmds=$lt_reload_cmds
18864
18865 # How to pass a linker flag through the compiler.
18866 wl=$lt_lt_prog_compiler_wl_RC
18867
18868 # Object file suffix (normally "o").
18869 objext="$ac_objext"
18870
18871 # Old archive suffix (normally "a").
18872 libext="$libext"
18873
18874 # Shared library suffix (normally ".so").
18875 shrext_cmds='$shrext_cmds'
18876
18877 # Executable file suffix (normally "").
18878 exeext="$exeext"
18879
18880 # Additional compiler flags for building library objects.
18881 pic_flag=$lt_lt_prog_compiler_pic_RC
18882 pic_mode=$pic_mode
18883
18884 # What is the maximum length of a command?
18885 max_cmd_len=$lt_cv_sys_max_cmd_len
18886
18887 # Does compiler simultaneously support -c and -o options?
18888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18889
18890 # Must we lock files when doing compilation?
18891 need_locks=$lt_need_locks
18892
18893 # Do we need the lib prefix for modules?
18894 need_lib_prefix=$need_lib_prefix
18895
18896 # Do we need a version for libraries?
18897 need_version=$need_version
18898
18899 # Whether dlopen is supported.
18900 dlopen_support=$enable_dlopen
18901
18902 # Whether dlopen of programs is supported.
18903 dlopen_self=$enable_dlopen_self
18904
18905 # Whether dlopen of statically linked programs is supported.
18906 dlopen_self_static=$enable_dlopen_self_static
18907
18908 # Compiler flag to prevent dynamic linking.
18909 link_static_flag=$lt_lt_prog_compiler_static_RC
18910
18911 # Compiler flag to turn off builtin functions.
18912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18913
18914 # Compiler flag to allow reflexive dlopens.
18915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18916
18917 # Compiler flag to generate shared objects directly from archives.
18918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18919
18920 # Compiler flag to generate thread-safe objects.
18921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18922
18923 # Library versioning type.
18924 version_type=$version_type
18925
18926 # Format of library name prefix.
18927 libname_spec=$lt_libname_spec
18928
18929 # List of archive names. First name is the real one, the rest are links.
18930 # The last name is the one that the linker finds with -lNAME.
18931 library_names_spec=$lt_library_names_spec
18932
18933 # The coded name of the library, if different from the real name.
18934 soname_spec=$lt_soname_spec
18935
18936 # Commands used to build and install an old-style archive.
18937 RANLIB=$lt_RANLIB
18938 old_archive_cmds=$lt_old_archive_cmds_RC
18939 old_postinstall_cmds=$lt_old_postinstall_cmds
18940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18941
18942 # Create an old-style archive from a shared archive.
18943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18944
18945 # Create a temporary old-style archive to link instead of a shared archive.
18946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18947
18948 # Commands used to build and install a shared archive.
18949 archive_cmds=$lt_archive_cmds_RC
18950 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18951 postinstall_cmds=$lt_postinstall_cmds
18952 postuninstall_cmds=$lt_postuninstall_cmds
18953
18954 # Commands used to build a loadable module (assumed same as above if empty)
18955 module_cmds=$lt_module_cmds_RC
18956 module_expsym_cmds=$lt_module_expsym_cmds_RC
18957
18958 # Commands to strip libraries.
18959 old_striplib=$lt_old_striplib
18960 striplib=$lt_striplib
18961
18962 # Dependencies to place before the objects being linked to create a
18963 # shared library.
18964 predep_objects=$lt_predep_objects_RC
18965
18966 # Dependencies to place after the objects being linked to create a
18967 # shared library.
18968 postdep_objects=$lt_postdep_objects_RC
18969
18970 # Dependencies to place before the objects being linked to create a
18971 # shared library.
18972 predeps=$lt_predeps_RC
18973
18974 # Dependencies to place after the objects being linked to create a
18975 # shared library.
18976 postdeps=$lt_postdeps_RC
18977
18978 # The library search path used internally by the compiler when linking
18979 # a shared library.
18980 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18981
18982 # Method to check whether dependent libraries are shared objects.
18983 deplibs_check_method=$lt_deplibs_check_method
18984
18985 # Command to use when deplibs_check_method == file_magic.
18986 file_magic_cmd=$lt_file_magic_cmd
18987
18988 # Flag that allows shared libraries with undefined symbols to be built.
18989 allow_undefined_flag=$lt_allow_undefined_flag_RC
18990
18991 # Flag that forces no undefined symbols.
18992 no_undefined_flag=$lt_no_undefined_flag_RC
18993
18994 # Commands used to finish a libtool library installation in a directory.
18995 finish_cmds=$lt_finish_cmds
18996
18997 # Same as above, but a single script fragment to be evaled but not shown.
18998 finish_eval=$lt_finish_eval
18999
19000 # Take the output of nm and produce a listing of raw symbols and C names.
19001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19002
19003 # Transform the output of nm in a proper C declaration
19004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19005
19006 # Transform the output of nm in a C name address pair
19007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19008
19009 # This is the shared library runtime path variable.
19010 runpath_var=$runpath_var
19011
19012 # This is the shared library path variable.
19013 shlibpath_var=$shlibpath_var
19014
19015 # Is shlibpath searched before the hard-coded library search path?
19016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19017
19018 # How to hardcode a shared library path into an executable.
19019 hardcode_action=$hardcode_action_RC
19020
19021 # Whether we should hardcode library paths into libraries.
19022 hardcode_into_libs=$hardcode_into_libs
19023
19024 # Flag to hardcode \$libdir into a binary during linking.
19025 # This must work even if \$libdir does not exist.
19026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19027
19028 # If ld is used when linking, flag to hardcode \$libdir into
19029 # a binary during linking. This must work even if \$libdir does
19030 # not exist.
19031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19032
19033 # Whether we need a single -rpath flag with a separated argument.
19034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19035
19036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19037 # resulting binary.
19038 hardcode_direct=$hardcode_direct_RC
19039
19040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19041 # resulting binary.
19042 hardcode_minus_L=$hardcode_minus_L_RC
19043
19044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19045 # the resulting binary.
19046 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19047
19048 # Set to yes if building a shared library automatically hardcodes DIR into the library
19049 # and all subsequent libraries and executables linked against it.
19050 hardcode_automatic=$hardcode_automatic_RC
19051
19052 # Variables whose values should be saved in libtool wrapper scripts and
19053 # restored at relink time.
19054 variables_saved_for_relink="$variables_saved_for_relink"
19055
19056 # Whether libtool must link a program against all its dependency libraries.
19057 link_all_deplibs=$link_all_deplibs_RC
19058
19059 # Compile-time system search path for libraries
19060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19061
19062 # Run-time system search path for libraries
19063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19064
19065 # Fix the shell variable \$srcfile for the compiler.
19066 fix_srcfile_path="$fix_srcfile_path_RC"
19067
19068 # Set to yes if exported symbols are required.
19069 always_export_symbols=$always_export_symbols_RC
19070
19071 # The commands to list exported symbols.
19072 export_symbols_cmds=$lt_export_symbols_cmds_RC
19073
19074 # The commands to extract the exported symbol list from a shared archive.
19075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19076
19077 # Symbols that should not be listed in the preloaded symbols.
19078 exclude_expsyms=$lt_exclude_expsyms_RC
19079
19080 # Symbols that must always be exported.
19081 include_expsyms=$lt_include_expsyms_RC
19082
19083 # ### END LIBTOOL TAG CONFIG: $tagname
19084
19085 __EOF__
19086
19087
19088 else
19089 # If there is no Makefile yet, we rely on a make rule to execute
19090 # `config.status --recheck' to rerun these tests and create the
19091 # libtool script then.
19092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19093 if test -f "$ltmain_in"; then
19094 test -f Makefile && make "$ltmain"
19095 fi
19096 fi
19097
19098
19099 ac_ext=c
19100 ac_cpp='$CPP $CPPFLAGS'
19101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19104
19105 CC="$lt_save_CC"
19106
19107 ;;
19108
19109 *)
19110 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19111 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19112 { (exit 1); exit 1; }; }
19113 ;;
19114 esac
19115
19116 # Append the new tag name to the list of available tags.
19117 if test -n "$tagname" ; then
19118 available_tags="$available_tags $tagname"
19119 fi
19120 fi
19121 done
19122 IFS="$lt_save_ifs"
19123
19124 # Now substitute the updated list of available tags.
19125 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19126 mv "${ofile}T" "$ofile"
19127 chmod +x "$ofile"
19128 else
19129 rm -f "${ofile}T"
19130 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19131 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19132 { (exit 1); exit 1; }; }
19133 fi
19134 fi
19135
19136
19137
19138 # This can be used to rebuild libtool when needed
19139 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19140
19141 # Always use our own libtool.
19142 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19143
19144 # Prevent multiple expansion
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165 ac_ext=c
19166 ac_cpp='$CPP $CPPFLAGS'
19167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19170 if test -n "$ac_tool_prefix"; then
19171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19175 if test "${ac_cv_prog_CC+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178 if test -n "$CC"; then
19179 ac_cv_prog_CC="$CC" # Let the user override the test.
19180 else
19181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19183 do
19184 IFS=$as_save_IFS
19185 test -z "$as_dir" && as_dir=.
19186 for ac_exec_ext in '' $ac_executable_extensions; do
19187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19190 break 2
19191 fi
19192 done
19193 done
19194 IFS=$as_save_IFS
19195
19196 fi
19197 fi
19198 CC=$ac_cv_prog_CC
19199 if test -n "$CC"; then
19200 { echo "$as_me:$LINENO: result: $CC" >&5
19201 echo "${ECHO_T}$CC" >&6; }
19202 else
19203 { echo "$as_me:$LINENO: result: no" >&5
19204 echo "${ECHO_T}no" >&6; }
19205 fi
19206
19207
19208 fi
19209 if test -z "$ac_cv_prog_CC"; then
19210 ac_ct_CC=$CC
19211 # Extract the first word of "gcc", so it can be a program name with args.
19212 set dummy gcc; ac_word=$2
19213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218 if test -n "$ac_ct_CC"; then
19219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19220 else
19221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222 for as_dir in $PATH
19223 do
19224 IFS=$as_save_IFS
19225 test -z "$as_dir" && as_dir=.
19226 for ac_exec_ext in '' $ac_executable_extensions; do
19227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19228 ac_cv_prog_ac_ct_CC="gcc"
19229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19230 break 2
19231 fi
19232 done
19233 done
19234 IFS=$as_save_IFS
19235
19236 fi
19237 fi
19238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19239 if test -n "$ac_ct_CC"; then
19240 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19241 echo "${ECHO_T}$ac_ct_CC" >&6; }
19242 else
19243 { echo "$as_me:$LINENO: result: no" >&5
19244 echo "${ECHO_T}no" >&6; }
19245 fi
19246
19247 if test "x$ac_ct_CC" = x; then
19248 CC=""
19249 else
19250 case $cross_compiling:$ac_tool_warned in
19251 yes:)
19252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19253 whose name does not start with the host triplet. If you think this
19254 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19256 whose name does not start with the host triplet. If you think this
19257 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19258 ac_tool_warned=yes ;;
19259 esac
19260 CC=$ac_ct_CC
19261 fi
19262 else
19263 CC="$ac_cv_prog_CC"
19264 fi
19265
19266 if test -z "$CC"; then
19267 if test -n "$ac_tool_prefix"; then
19268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19269 set dummy ${ac_tool_prefix}cc; ac_word=$2
19270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19272 if test "${ac_cv_prog_CC+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275 if test -n "$CC"; then
19276 ac_cv_prog_CC="$CC" # Let the user override the test.
19277 else
19278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19279 for as_dir in $PATH
19280 do
19281 IFS=$as_save_IFS
19282 test -z "$as_dir" && as_dir=.
19283 for ac_exec_ext in '' $ac_executable_extensions; do
19284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19285 ac_cv_prog_CC="${ac_tool_prefix}cc"
19286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19287 break 2
19288 fi
19289 done
19290 done
19291 IFS=$as_save_IFS
19292
19293 fi
19294 fi
19295 CC=$ac_cv_prog_CC
19296 if test -n "$CC"; then
19297 { echo "$as_me:$LINENO: result: $CC" >&5
19298 echo "${ECHO_T}$CC" >&6; }
19299 else
19300 { echo "$as_me:$LINENO: result: no" >&5
19301 echo "${ECHO_T}no" >&6; }
19302 fi
19303
19304
19305 fi
19306 fi
19307 if test -z "$CC"; then
19308 # Extract the first word of "cc", so it can be a program name with args.
19309 set dummy cc; ac_word=$2
19310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19312 if test "${ac_cv_prog_CC+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 if test -n "$CC"; then
19316 ac_cv_prog_CC="$CC" # Let the user override the test.
19317 else
19318 ac_prog_rejected=no
19319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19320 for as_dir in $PATH
19321 do
19322 IFS=$as_save_IFS
19323 test -z "$as_dir" && as_dir=.
19324 for ac_exec_ext in '' $ac_executable_extensions; do
19325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19327 ac_prog_rejected=yes
19328 continue
19329 fi
19330 ac_cv_prog_CC="cc"
19331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19332 break 2
19333 fi
19334 done
19335 done
19336 IFS=$as_save_IFS
19337
19338 if test $ac_prog_rejected = yes; then
19339 # We found a bogon in the path, so make sure we never use it.
19340 set dummy $ac_cv_prog_CC
19341 shift
19342 if test $# != 0; then
19343 # We chose a different compiler from the bogus one.
19344 # However, it has the same basename, so the bogon will be chosen
19345 # first if we set CC to just the basename; use the full file name.
19346 shift
19347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19348 fi
19349 fi
19350 fi
19351 fi
19352 CC=$ac_cv_prog_CC
19353 if test -n "$CC"; then
19354 { echo "$as_me:$LINENO: result: $CC" >&5
19355 echo "${ECHO_T}$CC" >&6; }
19356 else
19357 { echo "$as_me:$LINENO: result: no" >&5
19358 echo "${ECHO_T}no" >&6; }
19359 fi
19360
19361
19362 fi
19363 if test -z "$CC"; then
19364 if test -n "$ac_tool_prefix"; then
19365 for ac_prog in cl.exe
19366 do
19367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19371 if test "${ac_cv_prog_CC+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 if test -n "$CC"; then
19375 ac_cv_prog_CC="$CC" # Let the user override the test.
19376 else
19377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19378 for as_dir in $PATH
19379 do
19380 IFS=$as_save_IFS
19381 test -z "$as_dir" && as_dir=.
19382 for ac_exec_ext in '' $ac_executable_extensions; do
19383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19386 break 2
19387 fi
19388 done
19389 done
19390 IFS=$as_save_IFS
19391
19392 fi
19393 fi
19394 CC=$ac_cv_prog_CC
19395 if test -n "$CC"; then
19396 { echo "$as_me:$LINENO: result: $CC" >&5
19397 echo "${ECHO_T}$CC" >&6; }
19398 else
19399 { echo "$as_me:$LINENO: result: no" >&5
19400 echo "${ECHO_T}no" >&6; }
19401 fi
19402
19403
19404 test -n "$CC" && break
19405 done
19406 fi
19407 if test -z "$CC"; then
19408 ac_ct_CC=$CC
19409 for ac_prog in cl.exe
19410 do
19411 # Extract the first word of "$ac_prog", so it can be a program name with args.
19412 set dummy $ac_prog; ac_word=$2
19413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418 if test -n "$ac_ct_CC"; then
19419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19420 else
19421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19422 for as_dir in $PATH
19423 do
19424 IFS=$as_save_IFS
19425 test -z "$as_dir" && as_dir=.
19426 for ac_exec_ext in '' $ac_executable_extensions; do
19427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19428 ac_cv_prog_ac_ct_CC="$ac_prog"
19429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19430 break 2
19431 fi
19432 done
19433 done
19434 IFS=$as_save_IFS
19435
19436 fi
19437 fi
19438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19439 if test -n "$ac_ct_CC"; then
19440 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19441 echo "${ECHO_T}$ac_ct_CC" >&6; }
19442 else
19443 { echo "$as_me:$LINENO: result: no" >&5
19444 echo "${ECHO_T}no" >&6; }
19445 fi
19446
19447
19448 test -n "$ac_ct_CC" && break
19449 done
19450
19451 if test "x$ac_ct_CC" = x; then
19452 CC=""
19453 else
19454 case $cross_compiling:$ac_tool_warned in
19455 yes:)
19456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19457 whose name does not start with the host triplet. If you think this
19458 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19460 whose name does not start with the host triplet. If you think this
19461 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19462 ac_tool_warned=yes ;;
19463 esac
19464 CC=$ac_ct_CC
19465 fi
19466 fi
19467
19468 fi
19469
19470
19471 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19472 See \`config.log' for more details." >&5
19473 echo "$as_me: error: no acceptable C compiler found in \$PATH
19474 See \`config.log' for more details." >&2;}
19475 { (exit 1); exit 1; }; }
19476
19477 # Provide some information about the compiler.
19478 echo "$as_me:$LINENO: checking for C compiler version" >&5
19479 ac_compiler=`set X $ac_compile; echo $2`
19480 { (ac_try="$ac_compiler --version >&5"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_compiler --version >&5") 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }
19490 { (ac_try="$ac_compiler -v >&5"
19491 case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_compiler -v >&5") 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }
19500 { (ac_try="$ac_compiler -V >&5"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compiler -V >&5") 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }
19510
19511 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19512 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19513 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522
19523 int
19524 main ()
19525 {
19526 #ifndef __GNUC__
19527 choke me
19528 #endif
19529
19530 ;
19531 return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } && {
19548 test -z "$ac_c_werror_flag" ||
19549 test ! -s conftest.err
19550 } && test -s conftest.$ac_objext; then
19551 ac_compiler_gnu=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 ac_compiler_gnu=no
19557 fi
19558
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19561
19562 fi
19563 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19564 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19565 GCC=`test $ac_compiler_gnu = yes && echo yes`
19566 ac_test_CFLAGS=${CFLAGS+set}
19567 ac_save_CFLAGS=$CFLAGS
19568 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19569 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19570 if test "${ac_cv_prog_cc_g+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 ac_save_c_werror_flag=$ac_c_werror_flag
19574 ac_c_werror_flag=yes
19575 ac_cv_prog_cc_g=no
19576 CFLAGS="-g"
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h. */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19583
19584 int
19585 main ()
19586 {
19587
19588 ;
19589 return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (ac_try="$ac_compile"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_compile") 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest.$ac_objext; then
19609 ac_cv_prog_cc_g=yes
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 CFLAGS=""
19615 cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h. */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621
19622 int
19623 main ()
19624 {
19625
19626 ;
19627 return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (ac_try="$ac_compile"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_compile") 2>conftest.er1
19638 ac_status=$?
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } && {
19644 test -z "$ac_c_werror_flag" ||
19645 test ! -s conftest.err
19646 } && test -s conftest.$ac_objext; then
19647 :
19648 else
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652 ac_c_werror_flag=$ac_save_c_werror_flag
19653 CFLAGS="-g"
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660
19661 int
19662 main ()
19663 {
19664
19665 ;
19666 return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_compile") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest.$ac_objext; then
19686 ac_cv_prog_cc_g=yes
19687 else
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691
19692 fi
19693
19694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695 fi
19696
19697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19698 fi
19699
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701 ac_c_werror_flag=$ac_save_c_werror_flag
19702 fi
19703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19705 if test "$ac_test_CFLAGS" = set; then
19706 CFLAGS=$ac_save_CFLAGS
19707 elif test $ac_cv_prog_cc_g = yes; then
19708 if test "$GCC" = yes; then
19709 CFLAGS="-g -O2"
19710 else
19711 CFLAGS="-g"
19712 fi
19713 else
19714 if test "$GCC" = yes; then
19715 CFLAGS="-O2"
19716 else
19717 CFLAGS=
19718 fi
19719 fi
19720 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19721 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19722 if test "${ac_cv_prog_cc_c89+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725 ac_cv_prog_cc_c89=no
19726 ac_save_CC=$CC
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 #include <stdarg.h>
19734 #include <stdio.h>
19735 #include <sys/types.h>
19736 #include <sys/stat.h>
19737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19738 struct buf { int x; };
19739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19740 static char *e (p, i)
19741 char **p;
19742 int i;
19743 {
19744 return p[i];
19745 }
19746 static char *f (char * (*g) (char **, int), char **p, ...)
19747 {
19748 char *s;
19749 va_list v;
19750 va_start (v,p);
19751 s = g (p, va_arg (v,int));
19752 va_end (v);
19753 return s;
19754 }
19755
19756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19757 function prototypes and stuff, but not '\xHH' hex character constants.
19758 These don't provoke an error unfortunately, instead are silently treated
19759 as 'x'. The following induces an error, until -std is added to get
19760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19761 array size at least. It's necessary to write '\x00'==0 to get something
19762 that's true only with -std. */
19763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19764
19765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19766 inside strings and character constants. */
19767 #define FOO(x) 'x'
19768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19769
19770 int test (int i, double x);
19771 struct s1 {int (*f) (int a);};
19772 struct s2 {int (*f) (double a);};
19773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19774 int argc;
19775 char **argv;
19776 int
19777 main ()
19778 {
19779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19780 ;
19781 return 0;
19782 }
19783 _ACEOF
19784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19786 do
19787 CC="$ac_save_CC $ac_arg"
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } && {
19802 test -z "$ac_c_werror_flag" ||
19803 test ! -s conftest.err
19804 } && test -s conftest.$ac_objext; then
19805 ac_cv_prog_cc_c89=$ac_arg
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810
19811 fi
19812
19813 rm -f core conftest.err conftest.$ac_objext
19814 test "x$ac_cv_prog_cc_c89" != "xno" && break
19815 done
19816 rm -f conftest.$ac_ext
19817 CC=$ac_save_CC
19818
19819 fi
19820 # AC_CACHE_VAL
19821 case "x$ac_cv_prog_cc_c89" in
19822 x)
19823 { echo "$as_me:$LINENO: result: none needed" >&5
19824 echo "${ECHO_T}none needed" >&6; } ;;
19825 xno)
19826 { echo "$as_me:$LINENO: result: unsupported" >&5
19827 echo "${ECHO_T}unsupported" >&6; } ;;
19828 *)
19829 CC="$CC $ac_cv_prog_cc_c89"
19830 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19831 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19832 esac
19833
19834
19835 ac_ext=c
19836 ac_cpp='$CPP $CPPFLAGS'
19837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19840
19841 depcc="$CC" am_compiler_list=
19842
19843 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19844 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19845 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19849 # We make a subdir and do the tests there. Otherwise we can end up
19850 # making bogus files that we don't know about and never remove. For
19851 # instance it was reported that on HP-UX the gcc test will end up
19852 # making a dummy file named `D' -- because `-MD' means `put the output
19853 # in D'.
19854 mkdir conftest.dir
19855 # Copy depcomp to subdir because otherwise we won't find it if we're
19856 # using a relative directory.
19857 cp "$am_depcomp" conftest.dir
19858 cd conftest.dir
19859 # We will build objects and dependencies in a subdirectory because
19860 # it helps to detect inapplicable dependency modes. For instance
19861 # both Tru64's cc and ICC support -MD to output dependencies as a
19862 # side effect of compilation, but ICC will put the dependencies in
19863 # the current directory while Tru64 will put them in the object
19864 # directory.
19865 mkdir sub
19866
19867 am_cv_CC_dependencies_compiler_type=none
19868 if test "$am_compiler_list" = ""; then
19869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19870 fi
19871 for depmode in $am_compiler_list; do
19872 # Setup a source with many dependencies, because some compilers
19873 # like to wrap large dependency lists on column 80 (with \), and
19874 # we should not choose a depcomp mode which is confused by this.
19875 #
19876 # We need to recreate these files for each test, as the compiler may
19877 # overwrite some of them when testing with obscure command lines.
19878 # This happens at least with the AIX C compiler.
19879 : > sub/conftest.c
19880 for i in 1 2 3 4 5 6; do
19881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19882 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19883 # Solaris 8's {/usr,}/bin/sh.
19884 touch sub/conftst$i.h
19885 done
19886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19887
19888 case $depmode in
19889 nosideeffect)
19890 # after this tag, mechanisms are not by side-effect, so they'll
19891 # only be used when explicitly requested
19892 if test "x$enable_dependency_tracking" = xyes; then
19893 continue
19894 else
19895 break
19896 fi
19897 ;;
19898 none) break ;;
19899 esac
19900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19901 # mode. It turns out that the SunPro C++ compiler does not properly
19902 # handle `-M -o', and we need to detect this.
19903 if depmode=$depmode \
19904 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19906 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19907 >/dev/null 2>conftest.err &&
19908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19909 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19911 # icc doesn't choke on unknown options, it will just issue warnings
19912 # or remarks (even with -Werror). So we grep stderr for any message
19913 # that says an option was ignored or not supported.
19914 # When given -MP, icc 7.0 and 7.1 complain thusly:
19915 # icc: Command line warning: ignoring option '-M'; no argument required
19916 # The diagnosis changed in icc 8.0:
19917 # icc: Command line remark: option '-MP' not supported
19918 if (grep 'ignoring option' conftest.err ||
19919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19920 am_cv_CC_dependencies_compiler_type=$depmode
19921 break
19922 fi
19923 fi
19924 done
19925
19926 cd ..
19927 rm -rf conftest.dir
19928 else
19929 am_cv_CC_dependencies_compiler_type=none
19930 fi
19931
19932 fi
19933 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19934 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19935 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19936
19937
19938
19939 if
19940 test "x$enable_dependency_tracking" != xno \
19941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19942 am__fastdepCC_TRUE=
19943 am__fastdepCC_FALSE='#'
19944 else
19945 am__fastdepCC_TRUE='#'
19946 am__fastdepCC_FALSE=
19947 fi
19948
19949
19950
19951
19952
19953
19954
19955 # Check whether --with-xorg-module-dir was given.
19956 if test "${with_xorg_module_dir+set}" = set; then
19957 withval=$with_xorg_module_dir; moduledir="$withval"
19958 else
19959 moduledir="$libdir/xorg/modules"
19960 fi
19961
19962
19963 # Checks for extensions
19964
19965 SAVE_CFLAGS="$CFLAGS"
19966 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973
19974 #include "xorg-server.h"
19975 #if !defined RANDR
19976 #error RANDR not defined
19977 #endif
19978
19979 int
19980 main ()
19981 {
19982
19983 ;
19984 return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (ac_try="$ac_compile"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19992 esac
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_compile") 2>conftest.er1
19995 ac_status=$?
19996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } && {
20001 test -z "$ac_c_werror_flag" ||
20002 test ! -s conftest.err
20003 } && test -s conftest.$ac_objext; then
20004 _EXT_CHECK=yes
20005 else
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 _EXT_CHECK=no
20010 fi
20011
20012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013 CFLAGS="$SAVE_CFLAGS"
20014 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20015 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20016 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20017 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20018 if test "$_EXT_CHECK" != no; then
20019 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20020 fi
20021
20022
20023 SAVE_CFLAGS="$CFLAGS"
20024 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031
20032 #include "xorg-server.h"
20033 #if !defined RENDER
20034 #error RENDER not defined
20035 #endif
20036
20037 int
20038 main ()
20039 {
20040
20041 ;
20042 return 0;
20043 }
20044 _ACEOF
20045 rm -f conftest.$ac_objext
20046 if { (ac_try="$ac_compile"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_compile") 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest.$ac_objext; then
20062 _EXT_CHECK=yes
20063 else
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20066
20067 _EXT_CHECK=no
20068 fi
20069
20070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20071 CFLAGS="$SAVE_CFLAGS"
20072 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20073 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20074 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20075 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20076 if test "$_EXT_CHECK" != no; then
20077 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20078 fi
20079
20080
20081 SAVE_CFLAGS="$CFLAGS"
20082 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h. */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089
20090 #include "xorg-server.h"
20091 #if !defined XV
20092 #error XV not defined
20093 #endif
20094
20095 int
20096 main ()
20097 {
20098
20099 ;
20100 return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest.$ac_objext; then
20120 _EXT_CHECK=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 _EXT_CHECK=no
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 CFLAGS="$SAVE_CFLAGS"
20130 { echo "$as_me:$LINENO: checking if XV is defined" >&5
20131 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20132 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20133 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20134 if test "$_EXT_CHECK" != no; then
20135 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20136 fi
20137
20138
20139 SAVE_CFLAGS="$CFLAGS"
20140 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147
20148 #include "xorg-server.h"
20149 #if !defined DPMSExtension
20150 #error DPMSExtension not defined
20151 #endif
20152
20153 int
20154 main ()
20155 {
20156
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_compile") 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && {
20175 test -z "$ac_c_werror_flag" ||
20176 test ! -s conftest.err
20177 } && test -s conftest.$ac_objext; then
20178 _EXT_CHECK=yes
20179 else
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 _EXT_CHECK=no
20184 fi
20185
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187 CFLAGS="$SAVE_CFLAGS"
20188 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20189 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20190 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20191 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20192 if test "$_EXT_CHECK" != no; then
20193 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20194 fi
20195
20196
20197 # Checks for pkg-config packages
20198
20199
20200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20201 if test -n "$ac_tool_prefix"; then
20202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20206 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209 case $PKG_CONFIG in
20210 [\\/]* | ?:[\\/]*)
20211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20212 ;;
20213 *)
20214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20215 for as_dir in $PATH
20216 do
20217 IFS=$as_save_IFS
20218 test -z "$as_dir" && as_dir=.
20219 for ac_exec_ext in '' $ac_executable_extensions; do
20220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20223 break 2
20224 fi
20225 done
20226 done
20227 IFS=$as_save_IFS
20228
20229 ;;
20230 esac
20231 fi
20232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20233 if test -n "$PKG_CONFIG"; then
20234 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20235 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20236 else
20237 { echo "$as_me:$LINENO: result: no" >&5
20238 echo "${ECHO_T}no" >&6; }
20239 fi
20240
20241
20242 fi
20243 if test -z "$ac_cv_path_PKG_CONFIG"; then
20244 ac_pt_PKG_CONFIG=$PKG_CONFIG
20245 # Extract the first word of "pkg-config", so it can be a program name with args.
20246 set dummy pkg-config; ac_word=$2
20247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20249 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252 case $ac_pt_PKG_CONFIG in
20253 [\\/]* | ?:[\\/]*)
20254 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20255 ;;
20256 *)
20257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20258 for as_dir in $PATH
20259 do
20260 IFS=$as_save_IFS
20261 test -z "$as_dir" && as_dir=.
20262 for ac_exec_ext in '' $ac_executable_extensions; do
20263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20266 break 2
20267 fi
20268 done
20269 done
20270 IFS=$as_save_IFS
20271
20272 ;;
20273 esac
20274 fi
20275 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20276 if test -n "$ac_pt_PKG_CONFIG"; then
20277 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20278 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20279 else
20280 { echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6; }
20282 fi
20283
20284 if test "x$ac_pt_PKG_CONFIG" = x; then
20285 PKG_CONFIG=""
20286 else
20287 case $cross_compiling:$ac_tool_warned in
20288 yes:)
20289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20290 whose name does not start with the host triplet. If you think this
20291 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20293 whose name does not start with the host triplet. If you think this
20294 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20295 ac_tool_warned=yes ;;
20296 esac
20297 PKG_CONFIG=$ac_pt_PKG_CONFIG
20298 fi
20299 else
20300 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20301 fi
20302
20303 fi
20304 if test -n "$PKG_CONFIG"; then
20305 _pkg_min_version=0.9.0
20306 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20307 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20308 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20309 { echo "$as_me:$LINENO: result: yes" >&5
20310 echo "${ECHO_T}yes" >&6; }
20311 else
20312 { echo "$as_me:$LINENO: result: no" >&5
20313 echo "${ECHO_T}no" >&6; }
20314 PKG_CONFIG=""
20315 fi
20316
20317 fi
20318
20319 pkg_failed=no
20320 { echo "$as_me:$LINENO: checking for XORG" >&5
20321 echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20322
20323 if test -n "$PKG_CONFIG"; then
20324 if test -n "$XORG_CFLAGS"; then
20325 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20326 else
20327 if test -n "$PKG_CONFIG" && \
20328 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20329 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; then
20333 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20334 else
20335 pkg_failed=yes
20336 fi
20337 fi
20338 else
20339 pkg_failed=untried
20340 fi
20341 if test -n "$PKG_CONFIG"; then
20342 if test -n "$XORG_LIBS"; then
20343 pkg_cv_XORG_LIBS="$XORG_LIBS"
20344 else
20345 if test -n "$PKG_CONFIG" && \
20346 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20347 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; then
20351 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20352 else
20353 pkg_failed=yes
20354 fi
20355 fi
20356 else
20357 pkg_failed=untried
20358 fi
20359
20360
20361
20362 if test $pkg_failed = yes; then
20363
20364 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20365 _pkg_short_errors_supported=yes
20366 else
20367 _pkg_short_errors_supported=no
20368 fi
20369 if test $_pkg_short_errors_supported = yes; then
20370 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20371 else
20372 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20373 fi
20374 # Put the nasty error message in config.log where it belongs
20375 echo "$XORG_PKG_ERRORS" >&5
20376
20377 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20378
20379 $XORG_PKG_ERRORS
20380
20381 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20382 installed software in a non-standard prefix.
20383
20384 Alternatively, you may set the environment variables XORG_CFLAGS
20385 and XORG_LIBS to avoid the need to call pkg-config.
20386 See the pkg-config man page for more details.
20387 " >&5
20388 echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20389
20390 $XORG_PKG_ERRORS
20391
20392 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20393 installed software in a non-standard prefix.
20394
20395 Alternatively, you may set the environment variables XORG_CFLAGS
20396 and XORG_LIBS to avoid the need to call pkg-config.
20397 See the pkg-config man page for more details.
20398 " >&2;}
20399 { (exit 1); exit 1; }; }
20400 elif test $pkg_failed = untried; then
20401 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20402 is in your PATH or set the PKG_CONFIG environment variable to the full
20403 path to pkg-config.
20404
20405 Alternatively, you may set the environment variables XORG_CFLAGS
20406 and XORG_LIBS to avoid the need to call pkg-config.
20407 See the pkg-config man page for more details.
20408
20409 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20410 See \`config.log' for more details." >&5
20411 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20412 is in your PATH or set the PKG_CONFIG environment variable to the full
20413 path to pkg-config.
20414
20415 Alternatively, you may set the environment variables XORG_CFLAGS
20416 and XORG_LIBS to avoid the need to call pkg-config.
20417 See the pkg-config man page for more details.
20418
20419 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20420 See \`config.log' for more details." >&2;}
20421 { (exit 1); exit 1; }; }
20422 else
20423 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20424 XORG_LIBS=$pkg_cv_XORG_LIBS
20425 { echo "$as_me:$LINENO: result: yes" >&5
20426 echo "${ECHO_T}yes" >&6; }
20427 :
20428 fi
20429 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20430
20431 # Checks for libraries.
20432
20433 # Checks for header files.
20434 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20435 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20436 if test "${ac_cv_header_stdc+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h. */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20445 #include <stdlib.h>
20446 #include <stdarg.h>
20447 #include <string.h>
20448 #include <float.h>
20449
20450 int
20451 main ()
20452 {
20453
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext
20459 if { (ac_try="$ac_compile"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_compile") 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest.$ac_objext; then
20475 ac_cv_header_stdc=yes
20476 else
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ac_cv_header_stdc=no
20481 fi
20482
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484
20485 if test $ac_cv_header_stdc = yes; then
20486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20487 cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h. */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include <string.h>
20494
20495 _ACEOF
20496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20497 $EGREP "memchr" >/dev/null 2>&1; then
20498 :
20499 else
20500 ac_cv_header_stdc=no
20501 fi
20502 rm -f conftest*
20503
20504 fi
20505
20506 if test $ac_cv_header_stdc = yes; then
20507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 #include <stdlib.h>
20515
20516 _ACEOF
20517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20518 $EGREP "free" >/dev/null 2>&1; then
20519 :
20520 else
20521 ac_cv_header_stdc=no
20522 fi
20523 rm -f conftest*
20524
20525 fi
20526
20527 if test $ac_cv_header_stdc = yes; then
20528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20529 if test "$cross_compiling" = yes; then
20530 :
20531 else
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 #include <ctype.h>
20539 #include <stdlib.h>
20540 #if ((' ' & 0x0FF) == 0x020)
20541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20543 #else
20544 # define ISLOWER(c) \
20545 (('a' <= (c) && (c) <= 'i') \
20546 || ('j' <= (c) && (c) <= 'r') \
20547 || ('s' <= (c) && (c) <= 'z'))
20548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20549 #endif
20550
20551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20552 int
20553 main ()
20554 {
20555 int i;
20556 for (i = 0; i < 256; i++)
20557 if (XOR (islower (i), ISLOWER (i))
20558 || toupper (i) != TOUPPER (i))
20559 return 2;
20560 return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest$ac_exeext
20564 if { (ac_try="$ac_link"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_link") 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20574 { (case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_try") 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 :
20584 else
20585 echo "$as_me: program exited with status $ac_status" >&5
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589 ( exit $ac_status )
20590 ac_cv_header_stdc=no
20591 fi
20592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20593 fi
20594
20595
20596 fi
20597 fi
20598 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20599 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20600 if test $ac_cv_header_stdc = yes; then
20601
20602 cat >>confdefs.h <<\_ACEOF
20603 #define STDC_HEADERS 1
20604 _ACEOF
20605
20606 fi
20607
20608
20609
20610
20611
20612 DRIVER_NAME=siliconmotion
20613
20614
20615
20616
20617
20618 if test x$APP_MAN_SUFFIX = x ; then
20619 APP_MAN_SUFFIX=1
20620 fi
20621 if test x$APP_MAN_DIR = x ; then
20622 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20623 fi
20624
20625 if test x$LIB_MAN_SUFFIX = x ; then
20626 LIB_MAN_SUFFIX=3
20627 fi
20628 if test x$LIB_MAN_DIR = x ; then
20629 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20630 fi
20631
20632 if test x$FILE_MAN_SUFFIX = x ; then
20633 case $host_os in
20634 solaris*) FILE_MAN_SUFFIX=4 ;;
20635 *) FILE_MAN_SUFFIX=5 ;;
20636 esac
20637 fi
20638 if test x$FILE_MAN_DIR = x ; then
20639 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20640 fi
20641
20642 if test x$MISC_MAN_SUFFIX = x ; then
20643 case $host_os in
20644 solaris*) MISC_MAN_SUFFIX=5 ;;
20645 *) MISC_MAN_SUFFIX=7 ;;
20646 esac
20647 fi
20648 if test x$MISC_MAN_DIR = x ; then
20649 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20650 fi
20651
20652 if test x$DRIVER_MAN_SUFFIX = x ; then
20653 case $host_os in
20654 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20655 *) DRIVER_MAN_SUFFIX=4 ;;
20656 esac
20657 fi
20658 if test x$DRIVER_MAN_DIR = x ; then
20659 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20660 fi
20661
20662 if test x$ADMIN_MAN_SUFFIX = x ; then
20663 case $host_os in
20664 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20665 *) ADMIN_MAN_SUFFIX=8 ;;
20666 esac
20667 fi
20668 if test x$ADMIN_MAN_DIR = x ; then
20669 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20670 fi
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688 # Check whether --with-release-version was given.
20689 if test "${with_release_version+set}" = set; then
20690 withval=$with_release_version; RELEASE_VERSION="$withval"
20691 else
20692 RELEASE_VERSION=""
20693 fi
20694
20695 if test "x$RELEASE_VERSION" != "x"; then
20696 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20697 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20698 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20699 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20700 fi
20701
20702 cat >>confdefs.h <<_ACEOF
20703 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20704 _ACEOF
20705
20706 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
20707 if test "x$PVM" = "x"; then
20708 PVM="0"
20709 fi
20710
20711 cat >>confdefs.h <<_ACEOF
20712 #define PACKAGE_VERSION_MINOR $PVM
20713 _ACEOF
20714
20715 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
20716 if test "x$PVP" = "x"; then
20717 PVP="0"
20718 fi
20719
20720 cat >>confdefs.h <<_ACEOF
20721 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20722 _ACEOF
20723
20724
20725
20726 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20727
20728 cat >confcache <<\_ACEOF
20729 # This file is a shell script that caches the results of configure
20730 # tests run on this system so they can be shared between configure
20731 # scripts and configure runs, see configure's option --config-cache.
20732 # It is not useful on other systems. If it contains results you don't
20733 # want to keep, you may remove or edit it.
20734 #
20735 # config.status only pays attention to the cache file if you give it
20736 # the --recheck option to rerun configure.
20737 #
20738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20740 # following values.
20741
20742 _ACEOF
20743
20744 # The following way of writing the cache mishandles newlines in values,
20745 # but we know of no workaround that is simple, portable, and efficient.
20746 # So, we kill variables containing newlines.
20747 # Ultrix sh set writes to stderr and can't be redirected directly,
20748 # and sets the high bit in the cache file unless we assign to the vars.
20749 (
20750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20751 eval ac_val=\$$ac_var
20752 case $ac_val in #(
20753 *${as_nl}*)
20754 case $ac_var in #(
20755 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20756 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20757 esac
20758 case $ac_var in #(
20759 _ | IFS | as_nl) ;; #(
20760 *) $as_unset $ac_var ;;
20761 esac ;;
20762 esac
20763 done
20764
20765 (set) 2>&1 |
20766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20767 *${as_nl}ac_space=\ *)
20768 # `set' does not quote correctly, so add quotes (double-quote
20769 # substitution turns \\\\ into \\, and sed turns \\ into \).
20770 sed -n \
20771 "s/'/'\\\\''/g;
20772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20773 ;; #(
20774 *)
20775 # `set' quotes correctly as required by POSIX, so do not add quotes.
20776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20777 ;;
20778 esac |
20779 sort
20780 ) |
20781 sed '
20782 /^ac_cv_env_/b end
20783 t clear
20784 :clear
20785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20786 t end
20787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20788 :end' >>confcache
20789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20790 if test -w "$cache_file"; then
20791 test "x$cache_file" != "x/dev/null" &&
20792 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20793 echo "$as_me: updating cache $cache_file" >&6;}
20794 cat confcache >$cache_file
20795 else
20796 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20797 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20798 fi
20799 fi
20800 rm -f confcache
20801
20802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20803 # Let make expand exec_prefix.
20804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20805
20806 DEFS=-DHAVE_CONFIG_H
20807
20808 ac_libobjs=
20809 ac_ltlibobjs=
20810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20811 # 1. Remove the extension, and $U if already installed.
20812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20813 ac_i=`echo "$ac_i" | sed "$ac_script"`
20814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20815 # will be set to the directory where LIBOBJS objects are built.
20816 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20817 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20818 done
20819 LIBOBJS=$ac_libobjs
20820
20821 LTLIBOBJS=$ac_ltlibobjs
20822
20823
20824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20825 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20826 Usually this means the macro was only invoked conditionally." >&5
20827 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20828 Usually this means the macro was only invoked conditionally." >&2;}
20829 { (exit 1); exit 1; }; }
20830 fi
20831 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20832 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20833 Usually this means the macro was only invoked conditionally." >&5
20834 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20835 Usually this means the macro was only invoked conditionally." >&2;}
20836 { (exit 1); exit 1; }; }
20837 fi
20838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20839 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20840 Usually this means the macro was only invoked conditionally." >&5
20841 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20842 Usually this means the macro was only invoked conditionally." >&2;}
20843 { (exit 1); exit 1; }; }
20844 fi
20845 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20846 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20847 Usually this means the macro was only invoked conditionally." >&5
20848 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20849 Usually this means the macro was only invoked conditionally." >&2;}
20850 { (exit 1); exit 1; }; }
20851 fi
20852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20853 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20854 Usually this means the macro was only invoked conditionally." >&5
20855 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20856 Usually this means the macro was only invoked conditionally." >&2;}
20857 { (exit 1); exit 1; }; }
20858 fi
20859
20860 : ${CONFIG_STATUS=./config.status}
20861 ac_clean_files_save=$ac_clean_files
20862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20863 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20864 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20865 cat >$CONFIG_STATUS <<_ACEOF
20866 #! $SHELL
20867 # Generated by $as_me.
20868 # Run this file to recreate the current configuration.
20869 # Compiler output produced by configure, useful for debugging
20870 # configure, is in config.log if it exists.
20871
20872 debug=false
20873 ac_cs_recheck=false
20874 ac_cs_silent=false
20875 SHELL=\${CONFIG_SHELL-$SHELL}
20876 _ACEOF
20877
20878 cat >>$CONFIG_STATUS <<\_ACEOF
20879 ## --------------------- ##
20880 ## M4sh Initialization. ##
20881 ## --------------------- ##
20882
20883 # Be more Bourne compatible
20884 DUALCASE=1; export DUALCASE # for MKS sh
20885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20886 emulate sh
20887 NULLCMD=:
20888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20889 # is contrary to our usage. Disable this feature.
20890 alias -g '${1+"$@"}'='"$@"'
20891 setopt NO_GLOB_SUBST
20892 else
20893 case `(set -o) 2>/dev/null` in
20894 *posix*) set -o posix ;;
20895 esac
20896
20897 fi
20898
20899
20900
20901
20902 # PATH needs CR
20903 # Avoid depending upon Character Ranges.
20904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20907 as_cr_digits='0123456789'
20908 as_cr_alnum=$as_cr_Letters$as_cr_digits
20909
20910 # The user is always right.
20911 if test "${PATH_SEPARATOR+set}" != set; then
20912 echo "#! /bin/sh" >conf$$.sh
20913 echo "exit 0" >>conf$$.sh
20914 chmod +x conf$$.sh
20915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20916 PATH_SEPARATOR=';'
20917 else
20918 PATH_SEPARATOR=:
20919 fi
20920 rm -f conf$$.sh
20921 fi
20922
20923 # Support unset when possible.
20924 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20925 as_unset=unset
20926 else
20927 as_unset=false
20928 fi
20929
20930
20931 # IFS
20932 # We need space, tab and new line, in precisely that order. Quoting is
20933 # there to prevent editors from complaining about space-tab.
20934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20935 # splitting by setting IFS to empty value.)
20936 as_nl='
20937 '
20938 IFS=" "" $as_nl"
20939
20940 # Find who we are. Look in the path if we contain no directory separator.
20941 case $0 in
20942 *[\\/]* ) as_myself=$0 ;;
20943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20944 for as_dir in $PATH
20945 do
20946 IFS=$as_save_IFS
20947 test -z "$as_dir" && as_dir=.
20948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20949 done
20950 IFS=$as_save_IFS
20951
20952 ;;
20953 esac
20954 # We did not find ourselves, most probably we were run as `sh COMMAND'
20955 # in which case we are not to be found in the path.
20956 if test "x$as_myself" = x; then
20957 as_myself=$0
20958 fi
20959 if test ! -f "$as_myself"; then
20960 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20961 { (exit 1); exit 1; }
20962 fi
20963
20964 # Work around bugs in pre-3.0 UWIN ksh.
20965 for as_var in ENV MAIL MAILPATH
20966 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20967 done
20968 PS1='$ '
20969 PS2='> '
20970 PS4='+ '
20971
20972 # NLS nuisances.
20973 for as_var in \
20974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20976 LC_TELEPHONE LC_TIME
20977 do
20978 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20979 eval $as_var=C; export $as_var
20980 else
20981 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20982 fi
20983 done
20984
20985 # Required to use basename.
20986 if expr a : '\(a\)' >/dev/null 2>&1 &&
20987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20988 as_expr=expr
20989 else
20990 as_expr=false
20991 fi
20992
20993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20994 as_basename=basename
20995 else
20996 as_basename=false
20997 fi
20998
20999
21000 # Name of the executable.
21001 as_me=`$as_basename -- "$0" ||
21002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21003 X"$0" : 'X\(//\)$' \| \
21004 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21005 echo X/"$0" |
21006 sed '/^.*\/\([^/][^/]*\)\/*$/{
21007 s//\1/
21008 q
21009 }
21010 /^X\/\(\/\/\)$/{
21011 s//\1/
21012 q
21013 }
21014 /^X\/\(\/\).*/{
21015 s//\1/
21016 q
21017 }
21018 s/.*/./; q'`
21019
21020 # CDPATH.
21021 $as_unset CDPATH
21022
21023
21024
21025 as_lineno_1=$LINENO
21026 as_lineno_2=$LINENO
21027 test "x$as_lineno_1" != "x$as_lineno_2" &&
21028 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21029
21030 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21031 # uniformly replaced by the line number. The first 'sed' inserts a
21032 # line-number line after each line using $LINENO; the second 'sed'
21033 # does the real work. The second script uses 'N' to pair each
21034 # line-number line with the line containing $LINENO, and appends
21035 # trailing '-' during substitution so that $LINENO is not a special
21036 # case at line end.
21037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21038 # scripts with optimization help from Paolo Bonzini. Blame Lee
21039 # E. McMahon (1931-1989) for sed's syntax. :-)
21040 sed -n '
21041 p
21042 /[$]LINENO/=
21043 ' <$as_myself |
21044 sed '
21045 s/[$]LINENO.*/&-/
21046 t lineno
21047 b
21048 :lineno
21049 N
21050 :loop
21051 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21052 t loop
21053 s/-\n.*//
21054 ' >$as_me.lineno &&
21055 chmod +x "$as_me.lineno" ||
21056 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21057 { (exit 1); exit 1; }; }
21058
21059 # Don't try to exec as it changes $[0], causing all sort of problems
21060 # (the dirname of $[0] is not the place where we might find the
21061 # original and so on. Autoconf is especially sensitive to this).
21062 . "./$as_me.lineno"
21063 # Exit status is that of the last command.
21064 exit
21065 }
21066
21067
21068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21069 as_dirname=dirname
21070 else
21071 as_dirname=false
21072 fi
21073
21074 ECHO_C= ECHO_N= ECHO_T=
21075 case `echo -n x` in
21076 -n*)
21077 case `echo 'x\c'` in
21078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21079 *) ECHO_C='\c';;
21080 esac;;
21081 *)
21082 ECHO_N='-n';;
21083 esac
21084
21085 if expr a : '\(a\)' >/dev/null 2>&1 &&
21086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21087 as_expr=expr
21088 else
21089 as_expr=false
21090 fi
21091
21092 rm -f conf$$ conf$$.exe conf$$.file
21093 if test -d conf$$.dir; then
21094 rm -f conf$$.dir/conf$$.file
21095 else
21096 rm -f conf$$.dir
21097 mkdir conf$$.dir
21098 fi
21099 echo >conf$$.file
21100 if ln -s conf$$.file conf$$ 2>/dev/null; then
21101 as_ln_s='ln -s'
21102 # ... but there are two gotchas:
21103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21105 # In both cases, we have to default to `cp -p'.
21106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21107 as_ln_s='cp -p'
21108 elif ln conf$$.file conf$$ 2>/dev/null; then
21109 as_ln_s=ln
21110 else
21111 as_ln_s='cp -p'
21112 fi
21113 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21114 rmdir conf$$.dir 2>/dev/null
21115
21116 if mkdir -p . 2>/dev/null; then
21117 as_mkdir_p=:
21118 else
21119 test -d ./-p && rmdir ./-p
21120 as_mkdir_p=false
21121 fi
21122
21123 if test -x / >/dev/null 2>&1; then
21124 as_test_x='test -x'
21125 else
21126 if ls -dL / >/dev/null 2>&1; then
21127 as_ls_L_option=L
21128 else
21129 as_ls_L_option=
21130 fi
21131 as_test_x='
21132 eval sh -c '\''
21133 if test -d "$1"; then
21134 test -d "$1/.";
21135 else
21136 case $1 in
21137 -*)set "./$1";;
21138 esac;
21139 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21140 ???[sx]*):;;*)false;;esac;fi
21141 '\'' sh
21142 '
21143 fi
21144 as_executable_p=$as_test_x
21145
21146 # Sed expression to map a string onto a valid CPP name.
21147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21148
21149 # Sed expression to map a string onto a valid variable name.
21150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21151
21152
21153 exec 6>&1
21154
21155 # Save the log message, to keep $[0] and so on meaningful, and to
21156 # report actual input values of CONFIG_FILES etc. instead of their
21157 # values after options handling.
21158 ac_log="
21159 This file was extended by xf86-video-siliconmotion $as_me 1.5.1, which was
21160 generated by GNU Autoconf 2.61. Invocation command line was
21161
21162 CONFIG_FILES = $CONFIG_FILES
21163 CONFIG_HEADERS = $CONFIG_HEADERS
21164 CONFIG_LINKS = $CONFIG_LINKS
21165 CONFIG_COMMANDS = $CONFIG_COMMANDS
21166 $ $0 $@
21167
21168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21169 "
21170
21171 _ACEOF
21172
21173 cat >>$CONFIG_STATUS <<_ACEOF
21174 # Files that config.status was made for.
21175 config_files="$ac_config_files"
21176 config_headers="$ac_config_headers"
21177 config_commands="$ac_config_commands"
21178
21179 _ACEOF
21180
21181 cat >>$CONFIG_STATUS <<\_ACEOF
21182 ac_cs_usage="\
21183 \`$as_me' instantiates files from templates according to the
21184 current configuration.
21185
21186 Usage: $0 [OPTIONS] [FILE]...
21187
21188 -h, --help print this help, then exit
21189 -V, --version print version number and configuration settings, then exit
21190 -q, --quiet do not print progress messages
21191 -d, --debug don't remove temporary files
21192 --recheck update $as_me by reconfiguring in the same conditions
21193 --file=FILE[:TEMPLATE]
21194 instantiate the configuration file FILE
21195 --header=FILE[:TEMPLATE]
21196 instantiate the configuration header FILE
21197
21198 Configuration files:
21199 $config_files
21200
21201 Configuration headers:
21202 $config_headers
21203
21204 Configuration commands:
21205 $config_commands
21206
21207 Report bugs to <bug-autoconf (at] gnu.org>."
21208
21209 _ACEOF
21210 cat >>$CONFIG_STATUS <<_ACEOF
21211 ac_cs_version="\\
21212 xf86-video-siliconmotion config.status 1.5.1
21213 configured by $0, generated by GNU Autoconf 2.61,
21214 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21215
21216 Copyright (C) 2006 Free Software Foundation, Inc.
21217 This config.status script is free software; the Free Software Foundation
21218 gives unlimited permission to copy, distribute and modify it."
21219
21220 ac_pwd='$ac_pwd'
21221 srcdir='$srcdir'
21222 INSTALL='$INSTALL'
21223 _ACEOF
21224
21225 cat >>$CONFIG_STATUS <<\_ACEOF
21226 # If no file are specified by the user, then we need to provide default
21227 # value. By we need to know if files were specified by the user.
21228 ac_need_defaults=:
21229 while test $# != 0
21230 do
21231 case $1 in
21232 --*=*)
21233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21234 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21235 ac_shift=:
21236 ;;
21237 *)
21238 ac_option=$1
21239 ac_optarg=$2
21240 ac_shift=shift
21241 ;;
21242 esac
21243
21244 case $ac_option in
21245 # Handling of the options.
21246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21247 ac_cs_recheck=: ;;
21248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21249 echo "$ac_cs_version"; exit ;;
21250 --debug | --debu | --deb | --de | --d | -d )
21251 debug=: ;;
21252 --file | --fil | --fi | --f )
21253 $ac_shift
21254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21255 ac_need_defaults=false;;
21256 --header | --heade | --head | --hea )
21257 $ac_shift
21258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21259 ac_need_defaults=false;;
21260 --he | --h)
21261 # Conflict between --help and --header
21262 { echo "$as_me: error: ambiguous option: $1
21263 Try \`$0 --help' for more information." >&2
21264 { (exit 1); exit 1; }; };;
21265 --help | --hel | -h )
21266 echo "$ac_cs_usage"; exit ;;
21267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21269 ac_cs_silent=: ;;
21270
21271 # This is an error.
21272 -*) { echo "$as_me: error: unrecognized option: $1
21273 Try \`$0 --help' for more information." >&2
21274 { (exit 1); exit 1; }; } ;;
21275
21276 *) ac_config_targets="$ac_config_targets $1"
21277 ac_need_defaults=false ;;
21278
21279 esac
21280 shift
21281 done
21282
21283 ac_configure_extra_args=
21284
21285 if $ac_cs_silent; then
21286 exec 6>/dev/null
21287 ac_configure_extra_args="$ac_configure_extra_args --silent"
21288 fi
21289
21290 _ACEOF
21291 cat >>$CONFIG_STATUS <<_ACEOF
21292 if \$ac_cs_recheck; then
21293 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21294 CONFIG_SHELL=$SHELL
21295 export CONFIG_SHELL
21296 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21297 fi
21298
21299 _ACEOF
21300 cat >>$CONFIG_STATUS <<\_ACEOF
21301 exec 5>>config.log
21302 {
21303 echo
21304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21305 ## Running $as_me. ##
21306 _ASBOX
21307 echo "$ac_log"
21308 } >&5
21309
21310 _ACEOF
21311 cat >>$CONFIG_STATUS <<_ACEOF
21312 #
21313 # INIT-COMMANDS
21314 #
21315 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21316
21317 _ACEOF
21318
21319 cat >>$CONFIG_STATUS <<\_ACEOF
21320
21321 # Handling of arguments.
21322 for ac_config_target in $ac_config_targets
21323 do
21324 case $ac_config_target in
21325 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21327 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21328 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21329 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21330
21331 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21332 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21333 { (exit 1); exit 1; }; };;
21334 esac
21335 done
21336
21337
21338 # If the user did not use the arguments to specify the items to instantiate,
21339 # then the envvar interface is used. Set only those that are not.
21340 # We use the long form for the default assignment because of an extremely
21341 # bizarre bug on SunOS 4.1.3.
21342 if $ac_need_defaults; then
21343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21344 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21345 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21346 fi
21347
21348 # Have a temporary directory for convenience. Make it in the build tree
21349 # simply because there is no reason against having it here, and in addition,
21350 # creating and moving files from /tmp can sometimes cause problems.
21351 # Hook for its removal unless debugging.
21352 # Note that there is a small window in which the directory will not be cleaned:
21353 # after its creation but before its name has been assigned to `$tmp'.
21354 $debug ||
21355 {
21356 tmp=
21357 trap 'exit_status=$?
21358 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21359 ' 0
21360 trap '{ (exit 1); exit 1; }' 1 2 13 15
21361 }
21362 # Create a (secure) tmp directory for tmp files.
21363
21364 {
21365 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21366 test -n "$tmp" && test -d "$tmp"
21367 } ||
21368 {
21369 tmp=./conf$$-$RANDOM
21370 (umask 077 && mkdir "$tmp")
21371 } ||
21372 {
21373 echo "$me: cannot create a temporary directory in ." >&2
21374 { (exit 1); exit 1; }
21375 }
21376
21377 #
21378 # Set up the sed scripts for CONFIG_FILES section.
21379 #
21380
21381 # No need to generate the scripts if there are no CONFIG_FILES.
21382 # This happens for instance when ./config.status config.h
21383 if test -n "$CONFIG_FILES"; then
21384
21385 _ACEOF
21386
21387
21388
21389 ac_delim='%!_!# '
21390 for ac_last_try in false false false false false :; do
21391 cat >conf$$subs.sed <<_ACEOF
21392 SHELL!$SHELL$ac_delim
21393 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21394 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21395 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21396 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21397 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21398 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21399 exec_prefix!$exec_prefix$ac_delim
21400 prefix!$prefix$ac_delim
21401 program_transform_name!$program_transform_name$ac_delim
21402 bindir!$bindir$ac_delim
21403 sbindir!$sbindir$ac_delim
21404 libexecdir!$libexecdir$ac_delim
21405 datarootdir!$datarootdir$ac_delim
21406 datadir!$datadir$ac_delim
21407 sysconfdir!$sysconfdir$ac_delim
21408 sharedstatedir!$sharedstatedir$ac_delim
21409 localstatedir!$localstatedir$ac_delim
21410 includedir!$includedir$ac_delim
21411 oldincludedir!$oldincludedir$ac_delim
21412 docdir!$docdir$ac_delim
21413 infodir!$infodir$ac_delim
21414 htmldir!$htmldir$ac_delim
21415 dvidir!$dvidir$ac_delim
21416 pdfdir!$pdfdir$ac_delim
21417 psdir!$psdir$ac_delim
21418 libdir!$libdir$ac_delim
21419 localedir!$localedir$ac_delim
21420 mandir!$mandir$ac_delim
21421 DEFS!$DEFS$ac_delim
21422 ECHO_C!$ECHO_C$ac_delim
21423 ECHO_N!$ECHO_N$ac_delim
21424 ECHO_T!$ECHO_T$ac_delim
21425 LIBS!$LIBS$ac_delim
21426 build_alias!$build_alias$ac_delim
21427 host_alias!$host_alias$ac_delim
21428 target_alias!$target_alias$ac_delim
21429 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21430 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21431 INSTALL_DATA!$INSTALL_DATA$ac_delim
21432 CYGPATH_W!$CYGPATH_W$ac_delim
21433 PACKAGE!$PACKAGE$ac_delim
21434 VERSION!$VERSION$ac_delim
21435 ACLOCAL!$ACLOCAL$ac_delim
21436 AUTOCONF!$AUTOCONF$ac_delim
21437 AUTOMAKE!$AUTOMAKE$ac_delim
21438 AUTOHEADER!$AUTOHEADER$ac_delim
21439 MAKEINFO!$MAKEINFO$ac_delim
21440 install_sh!$install_sh$ac_delim
21441 STRIP!$STRIP$ac_delim
21442 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21443 mkdir_p!$mkdir_p$ac_delim
21444 AWK!$AWK$ac_delim
21445 SET_MAKE!$SET_MAKE$ac_delim
21446 am__leading_dot!$am__leading_dot$ac_delim
21447 AMTAR!$AMTAR$ac_delim
21448 am__tar!$am__tar$ac_delim
21449 am__untar!$am__untar$ac_delim
21450 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21451 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21452 MAINT!$MAINT$ac_delim
21453 build!$build$ac_delim
21454 build_cpu!$build_cpu$ac_delim
21455 build_vendor!$build_vendor$ac_delim
21456 build_os!$build_os$ac_delim
21457 host!$host$ac_delim
21458 host_cpu!$host_cpu$ac_delim
21459 host_vendor!$host_vendor$ac_delim
21460 host_os!$host_os$ac_delim
21461 CC!$CC$ac_delim
21462 CFLAGS!$CFLAGS$ac_delim
21463 LDFLAGS!$LDFLAGS$ac_delim
21464 CPPFLAGS!$CPPFLAGS$ac_delim
21465 ac_ct_CC!$ac_ct_CC$ac_delim
21466 EXEEXT!$EXEEXT$ac_delim
21467 OBJEXT!$OBJEXT$ac_delim
21468 DEPDIR!$DEPDIR$ac_delim
21469 am__include!$am__include$ac_delim
21470 am__quote!$am__quote$ac_delim
21471 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21472 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21473 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21474 CCDEPMODE!$CCDEPMODE$ac_delim
21475 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21476 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21477 GREP!$GREP$ac_delim
21478 EGREP!$EGREP$ac_delim
21479 LN_S!$LN_S$ac_delim
21480 ECHO!$ECHO$ac_delim
21481 AR!$AR$ac_delim
21482 RANLIB!$RANLIB$ac_delim
21483 CPP!$CPP$ac_delim
21484 CXX!$CXX$ac_delim
21485 CXXFLAGS!$CXXFLAGS$ac_delim
21486 ac_ct_CXX!$ac_ct_CXX$ac_delim
21487 CXXDEPMODE!$CXXDEPMODE$ac_delim
21488 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21489 _ACEOF
21490
21491 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21492 break
21493 elif $ac_last_try; then
21494 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21495 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21496 { (exit 1); exit 1; }; }
21497 else
21498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21499 fi
21500 done
21501
21502 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21503 if test -n "$ac_eof"; then
21504 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21505 ac_eof=`expr $ac_eof + 1`
21506 fi
21507
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21511 _ACEOF
21512 sed '
21513 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21514 s/^/s,@/; s/!/@,|#_!!_#|/
21515 :n
21516 t n
21517 s/'"$ac_delim"'$/,g/; t
21518 s/$/\\/; p
21519 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21520 ' >>$CONFIG_STATUS <conf$$subs.sed
21521 rm -f conf$$subs.sed
21522 cat >>$CONFIG_STATUS <<_ACEOF
21523 CEOF$ac_eof
21524 _ACEOF
21525
21526
21527 ac_delim='%!_!# '
21528 for ac_last_try in false false false false false :; do
21529 cat >conf$$subs.sed <<_ACEOF
21530 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21531 CXXCPP!$CXXCPP$ac_delim
21532 F77!$F77$ac_delim
21533 FFLAGS!$FFLAGS$ac_delim
21534 ac_ct_F77!$ac_ct_F77$ac_delim
21535 LIBTOOL!$LIBTOOL$ac_delim
21536 PKG_CONFIG!$PKG_CONFIG$ac_delim
21537 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
21538 XORG_LIBS!$XORG_LIBS$ac_delim
21539 moduledir!$moduledir$ac_delim
21540 DRIVER_NAME!$DRIVER_NAME$ac_delim
21541 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21542 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21543 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21544 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21545 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21546 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21547 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21548 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21549 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21550 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21551 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21552 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21553 LIBOBJS!$LIBOBJS$ac_delim
21554 LTLIBOBJS!$LTLIBOBJS$ac_delim
21555 _ACEOF
21556
21557 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
21558 break
21559 elif $ac_last_try; then
21560 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21562 { (exit 1); exit 1; }; }
21563 else
21564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21565 fi
21566 done
21567
21568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21569 if test -n "$ac_eof"; then
21570 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21571 ac_eof=`expr $ac_eof + 1`
21572 fi
21573
21574 cat >>$CONFIG_STATUS <<_ACEOF
21575 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21577 _ACEOF
21578 sed '
21579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21580 s/^/s,@/; s/!/@,|#_!!_#|/
21581 :n
21582 t n
21583 s/'"$ac_delim"'$/,g/; t
21584 s/$/\\/; p
21585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21586 ' >>$CONFIG_STATUS <conf$$subs.sed
21587 rm -f conf$$subs.sed
21588 cat >>$CONFIG_STATUS <<_ACEOF
21589 :end
21590 s/|#_!!_#|//g
21591 CEOF$ac_eof
21592 _ACEOF
21593
21594
21595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21597 # trailing colons and then remove the whole line if VPATH becomes empty
21598 # (actually we leave an empty line to preserve line numbers).
21599 if test "x$srcdir" = x.; then
21600 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21601 s/:*\$(srcdir):*/:/
21602 s/:*\${srcdir}:*/:/
21603 s/:*@srcdir@:*/:/
21604 s/^\([^=]*=[ ]*\):*/\1/
21605 s/:*$//
21606 s/^[^=]*=[ ]*$//
21607 }'
21608 fi
21609
21610 cat >>$CONFIG_STATUS <<\_ACEOF
21611 fi # test -n "$CONFIG_FILES"
21612
21613
21614 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21615 do
21616 case $ac_tag in
21617 :[FHLC]) ac_mode=$ac_tag; continue;;
21618 esac
21619 case $ac_mode$ac_tag in
21620 :[FHL]*:*);;
21621 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21622 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21623 { (exit 1); exit 1; }; };;
21624 :[FH]-) ac_tag=-:-;;
21625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21626 esac
21627 ac_save_IFS=$IFS
21628 IFS=:
21629 set x $ac_tag
21630 IFS=$ac_save_IFS
21631 shift
21632 ac_file=$1
21633 shift
21634
21635 case $ac_mode in
21636 :L) ac_source=$1;;
21637 :[FH])
21638 ac_file_inputs=
21639 for ac_f
21640 do
21641 case $ac_f in
21642 -) ac_f="$tmp/stdin";;
21643 *) # Look for the file first in the build tree, then in the source tree
21644 # (if the path is not absolute). The absolute path cannot be DOS-style,
21645 # because $ac_f cannot contain `:'.
21646 test -f "$ac_f" ||
21647 case $ac_f in
21648 [\\/$]*) false;;
21649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21650 esac ||
21651 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21652 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21653 { (exit 1); exit 1; }; };;
21654 esac
21655 ac_file_inputs="$ac_file_inputs $ac_f"
21656 done
21657
21658 # Let's still pretend it is `configure' which instantiates (i.e., don't
21659 # use $as_me), people would be surprised to read:
21660 # /* config.h. Generated by config.status. */
21661 configure_input="Generated from "`IFS=:
21662 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21663 if test x"$ac_file" != x-; then
21664 configure_input="$ac_file. $configure_input"
21665 { echo "$as_me:$LINENO: creating $ac_file" >&5
21666 echo "$as_me: creating $ac_file" >&6;}
21667 fi
21668
21669 case $ac_tag in
21670 *:-:* | *:-) cat >"$tmp/stdin";;
21671 esac
21672 ;;
21673 esac
21674
21675 ac_dir=`$as_dirname -- "$ac_file" ||
21676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21677 X"$ac_file" : 'X\(//\)[^/]' \| \
21678 X"$ac_file" : 'X\(//\)$' \| \
21679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21680 echo X"$ac_file" |
21681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21682 s//\1/
21683 q
21684 }
21685 /^X\(\/\/\)[^/].*/{
21686 s//\1/
21687 q
21688 }
21689 /^X\(\/\/\)$/{
21690 s//\1/
21691 q
21692 }
21693 /^X\(\/\).*/{
21694 s//\1/
21695 q
21696 }
21697 s/.*/./; q'`
21698 { as_dir="$ac_dir"
21699 case $as_dir in #(
21700 -*) as_dir=./$as_dir;;
21701 esac
21702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21703 as_dirs=
21704 while :; do
21705 case $as_dir in #(
21706 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21707 *) as_qdir=$as_dir;;
21708 esac
21709 as_dirs="'$as_qdir' $as_dirs"
21710 as_dir=`$as_dirname -- "$as_dir" ||
21711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21712 X"$as_dir" : 'X\(//\)[^/]' \| \
21713 X"$as_dir" : 'X\(//\)$' \| \
21714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21715 echo X"$as_dir" |
21716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21717 s//\1/
21718 q
21719 }
21720 /^X\(\/\/\)[^/].*/{
21721 s//\1/
21722 q
21723 }
21724 /^X\(\/\/\)$/{
21725 s//\1/
21726 q
21727 }
21728 /^X\(\/\).*/{
21729 s//\1/
21730 q
21731 }
21732 s/.*/./; q'`
21733 test -d "$as_dir" && break
21734 done
21735 test -z "$as_dirs" || eval "mkdir $as_dirs"
21736 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21737 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21738 { (exit 1); exit 1; }; }; }
21739 ac_builddir=.
21740
21741 case "$ac_dir" in
21742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21743 *)
21744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21745 # A ".." for each directory in $ac_dir_suffix.
21746 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21747 case $ac_top_builddir_sub in
21748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21750 esac ;;
21751 esac
21752 ac_abs_top_builddir=$ac_pwd
21753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21754 # for backward compatibility:
21755 ac_top_builddir=$ac_top_build_prefix
21756
21757 case $srcdir in
21758 .) # We are building in place.
21759 ac_srcdir=.
21760 ac_top_srcdir=$ac_top_builddir_sub
21761 ac_abs_top_srcdir=$ac_pwd ;;
21762 [\\/]* | ?:[\\/]* ) # Absolute name.
21763 ac_srcdir=$srcdir$ac_dir_suffix;
21764 ac_top_srcdir=$srcdir
21765 ac_abs_top_srcdir=$srcdir ;;
21766 *) # Relative name.
21767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21768 ac_top_srcdir=$ac_top_build_prefix$srcdir
21769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21770 esac
21771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21772
21773
21774 case $ac_mode in
21775 :F)
21776 #
21777 # CONFIG_FILE
21778 #
21779
21780 case $INSTALL in
21781 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21782 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21783 esac
21784 _ACEOF
21785
21786 cat >>$CONFIG_STATUS <<\_ACEOF
21787 # If the template does not know about datarootdir, expand it.
21788 # FIXME: This hack should be removed a few years after 2.60.
21789 ac_datarootdir_hack=; ac_datarootdir_seen=
21790
21791 case `sed -n '/datarootdir/ {
21792 p
21793 q
21794 }
21795 /@datadir@/p
21796 /@docdir@/p
21797 /@infodir@/p
21798 /@localedir@/p
21799 /@mandir@/p
21800 ' $ac_file_inputs` in
21801 *datarootdir*) ac_datarootdir_seen=yes;;
21802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21803 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21804 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21805 _ACEOF
21806 cat >>$CONFIG_STATUS <<_ACEOF
21807 ac_datarootdir_hack='
21808 s&@datadir@&$datadir&g
21809 s&@docdir@&$docdir&g
21810 s&@infodir@&$infodir&g
21811 s&@localedir@&$localedir&g
21812 s&@mandir@&$mandir&g
21813 s&\\\${datarootdir}&$datarootdir&g' ;;
21814 esac
21815 _ACEOF
21816
21817 # Neutralize VPATH when `$srcdir' = `.'.
21818 # Shell code in configure.ac might set extrasub.
21819 # FIXME: do we really want to maintain this feature?
21820 cat >>$CONFIG_STATUS <<_ACEOF
21821 sed "$ac_vpsub
21822 $extrasub
21823 _ACEOF
21824 cat >>$CONFIG_STATUS <<\_ACEOF
21825 :t
21826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21827 s&@configure_input@&$configure_input&;t t
21828 s&@top_builddir@&$ac_top_builddir_sub&;t t
21829 s&@srcdir@&$ac_srcdir&;t t
21830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21831 s&@top_srcdir@&$ac_top_srcdir&;t t
21832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21833 s&@builddir@&$ac_builddir&;t t
21834 s&@abs_builddir@&$ac_abs_builddir&;t t
21835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21836 s&@INSTALL@&$ac_INSTALL&;t t
21837 $ac_datarootdir_hack
21838 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21839
21840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21841 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21842 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21843 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21844 which seems to be undefined. Please make sure it is defined." >&5
21845 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21846 which seems to be undefined. Please make sure it is defined." >&2;}
21847
21848 rm -f "$tmp/stdin"
21849 case $ac_file in
21850 -) cat "$tmp/out"; rm -f "$tmp/out";;
21851 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21852 esac
21853 ;;
21854 :H)
21855 #
21856 # CONFIG_HEADER
21857 #
21858 _ACEOF
21859
21860 # Transform confdefs.h into a sed script `conftest.defines', that
21861 # substitutes the proper values into config.h.in to produce config.h.
21862 rm -f conftest.defines conftest.tail
21863 # First, append a space to every undef/define line, to ease matching.
21864 echo 's/$/ /' >conftest.defines
21865 # Then, protect against being on the right side of a sed subst, or in
21866 # an unquoted here document, in config.status. If some macros were
21867 # called several times there might be several #defines for the same
21868 # symbol, which is useless. But do not sort them, since the last
21869 # AC_DEFINE must be honored.
21870 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21871 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21872 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21873 # PARAMS is the parameter list in the macro definition--in most cases, it's
21874 # just an empty string.
21875 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21876 ac_dB='\\)[ (].*,\\1define\\2'
21877 ac_dC=' '
21878 ac_dD=' ,'
21879
21880 uniq confdefs.h |
21881 sed -n '
21882 t rset
21883 :rset
21884 s/^[ ]*#[ ]*define[ ][ ]*//
21885 t ok
21886 d
21887 :ok
21888 s/[\\&,]/\\&/g
21889 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21890 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21891 ' >>conftest.defines
21892
21893 # Remove the space that was appended to ease matching.
21894 # Then replace #undef with comments. This is necessary, for
21895 # example, in the case of _POSIX_SOURCE, which is predefined and required
21896 # on some systems where configure will not decide to define it.
21897 # (The regexp can be short, since the line contains either #define or #undef.)
21898 echo 's/ $//
21899 s,^[ #]*u.*,/* & */,' >>conftest.defines
21900
21901 # Break up conftest.defines:
21902 ac_max_sed_lines=50
21903
21904 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21905 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21906 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21907 # et cetera.
21908 ac_in='$ac_file_inputs'
21909 ac_out='"$tmp/out1"'
21910 ac_nxt='"$tmp/out2"'
21911
21912 while :
21913 do
21914 # Write a here document:
21915 cat >>$CONFIG_STATUS <<_ACEOF
21916 # First, check the format of the line:
21917 cat >"\$tmp/defines.sed" <<\\CEOF
21918 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21919 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21920 b
21921 :def
21922 _ACEOF
21923 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21924 echo 'CEOF
21925 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21926 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21927 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21928 grep . conftest.tail >/dev/null || break
21929 rm -f conftest.defines
21930 mv conftest.tail conftest.defines
21931 done
21932 rm -f conftest.defines conftest.tail
21933
21934 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21936 if test x"$ac_file" != x-; then
21937 echo "/* $configure_input */" >"$tmp/config.h"
21938 cat "$ac_result" >>"$tmp/config.h"
21939 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21940 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21941 echo "$as_me: $ac_file is unchanged" >&6;}
21942 else
21943 rm -f $ac_file
21944 mv "$tmp/config.h" $ac_file
21945 fi
21946 else
21947 echo "/* $configure_input */"
21948 cat "$ac_result"
21949 fi
21950 rm -f "$tmp/out12"
21951 # Compute $ac_file's index in $config_headers.
21952 _am_stamp_count=1
21953 for _am_header in $config_headers :; do
21954 case $_am_header in
21955 $ac_file | $ac_file:* )
21956 break ;;
21957 * )
21958 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21959 esac
21960 done
21961 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21962 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21963 X$ac_file : 'X\(//\)[^/]' \| \
21964 X$ac_file : 'X\(//\)$' \| \
21965 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21966 echo X$ac_file |
21967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21968 s//\1/
21969 q
21970 }
21971 /^X\(\/\/\)[^/].*/{
21972 s//\1/
21973 q
21974 }
21975 /^X\(\/\/\)$/{
21976 s//\1/
21977 q
21978 }
21979 /^X\(\/\).*/{
21980 s//\1/
21981 q
21982 }
21983 s/.*/./; q'`/stamp-h$_am_stamp_count
21984 ;;
21985
21986 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21987 echo "$as_me: executing $ac_file commands" >&6;}
21988 ;;
21989 esac
21990
21991
21992 case $ac_file$ac_mode in
21993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21994 # Strip MF so we end up with the name of the file.
21995 mf=`echo "$mf" | sed -e 's/:.*$//'`
21996 # Check whether this is an Automake generated Makefile or not.
21997 # We used to match only the files named `Makefile.in', but
21998 # some people rename them; so instead we look at the file content.
21999 # Grep'ing the first line is not enough: some people post-process
22000 # each Makefile.in and add a new line on top of each file to say so.
22001 # So let's grep whole file.
22002 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22003 dirpart=`$as_dirname -- "$mf" ||
22004 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22005 X"$mf" : 'X\(//\)[^/]' \| \
22006 X"$mf" : 'X\(//\)$' \| \
22007 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22008 echo X"$mf" |
22009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22010 s//\1/
22011 q
22012 }
22013 /^X\(\/\/\)[^/].*/{
22014 s//\1/
22015 q
22016 }
22017 /^X\(\/\/\)$/{
22018 s//\1/
22019 q
22020 }
22021 /^X\(\/\).*/{
22022 s//\1/
22023 q
22024 }
22025 s/.*/./; q'`
22026 else
22027 continue
22028 fi
22029 # Extract the definition of DEPDIR, am__include, and am__quote
22030 # from the Makefile without running `make'.
22031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22032 test -z "$DEPDIR" && continue
22033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22034 test -z "am__include" && continue
22035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22036 # When using ansi2knr, U may be empty or an underscore; expand it
22037 U=`sed -n 's/^U = //p' < "$mf"`
22038 # Find all dependency output files, they are included files with
22039 # $(DEPDIR) in their names. We invoke sed twice because it is the
22040 # simplest approach to changing $(DEPDIR) to its actual value in the
22041 # expansion.
22042 for file in `sed -n "
22043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22045 # Make sure the directory exists.
22046 test -f "$dirpart/$file" && continue
22047 fdir=`$as_dirname -- "$file" ||
22048 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22049 X"$file" : 'X\(//\)[^/]' \| \
22050 X"$file" : 'X\(//\)$' \| \
22051 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22052 echo X"$file" |
22053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22054 s//\1/
22055 q
22056 }
22057 /^X\(\/\/\)[^/].*/{
22058 s//\1/
22059 q
22060 }
22061 /^X\(\/\/\)$/{
22062 s//\1/
22063 q
22064 }
22065 /^X\(\/\).*/{
22066 s//\1/
22067 q
22068 }
22069 s/.*/./; q'`
22070 { as_dir=$dirpart/$fdir
22071 case $as_dir in #(
22072 -*) as_dir=./$as_dir;;
22073 esac
22074 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22075 as_dirs=
22076 while :; do
22077 case $as_dir in #(
22078 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22079 *) as_qdir=$as_dir;;
22080 esac
22081 as_dirs="'$as_qdir' $as_dirs"
22082 as_dir=`$as_dirname -- "$as_dir" ||
22083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22084 X"$as_dir" : 'X\(//\)[^/]' \| \
22085 X"$as_dir" : 'X\(//\)$' \| \
22086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22087 echo X"$as_dir" |
22088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22089 s//\1/
22090 q
22091 }
22092 /^X\(\/\/\)[^/].*/{
22093 s//\1/
22094 q
22095 }
22096 /^X\(\/\/\)$/{
22097 s//\1/
22098 q
22099 }
22100 /^X\(\/\).*/{
22101 s//\1/
22102 q
22103 }
22104 s/.*/./; q'`
22105 test -d "$as_dir" && break
22106 done
22107 test -z "$as_dirs" || eval "mkdir $as_dirs"
22108 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22109 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22110 { (exit 1); exit 1; }; }; }
22111 # echo "creating $dirpart/$file"
22112 echo '# dummy' > "$dirpart/$file"
22113 done
22114 done
22115 ;;
22116
22117 esac
22118 done # for ac_tag
22119
22120
22121 { (exit 0); exit 0; }
22122 _ACEOF
22123 chmod +x $CONFIG_STATUS
22124 ac_clean_files=$ac_clean_files_save
22125
22126
22127 # configure is writing to config.log, and then calls config.status.
22128 # config.status does its own redirection, appending to config.log.
22129 # Unfortunately, on DOS this fails, as config.log is still kept open
22130 # by configure, so config.status won't be able to write to it; its
22131 # output is simply discarded. So we exec the FD to /dev/null,
22132 # effectively closing config.log, so it can be properly (re)opened and
22133 # appended to by config.status. When coming back to configure, we
22134 # need to make the FD available again.
22135 if test "$no_create" != yes; then
22136 ac_cs_success=:
22137 ac_config_status_args=
22138 test "$silent" = yes &&
22139 ac_config_status_args="$ac_config_status_args --quiet"
22140 exec 5>/dev/null
22141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22142 exec 5>>config.log
22143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22144 # would make configure fail if this is the last instruction.
22145 $ac_cs_success || { (exit 1); exit 1; }
22146 fi
22147
22148