Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for garmintools 0.10.
4 #
5 # Report bugs to <[email protected]>.
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 [email protected] 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='garmintools'
730 PACKAGE_TARNAME='garmintools'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='garmintools 0.10'
733 PACKAGE_BUGREPORT='[email protected]'
734
735 ac_unique_file="src/garmin.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 build
848 build_cpu
849 build_vendor
850 build_os
851 host
852 host_cpu
853 host_vendor
854 host_os
855 SED
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 DSYMUTIL
863 NMEDIT
864 CPP
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 LIBUSB_CONFIG
877 HAVE_PYTHON
878 USB_CFLAGS
879 USB_LIBS
880 PROG_LIBS
881 PYTHON_SUBDIRS
882 LIBOBJS
883 LTLIBOBJS'
884 ac_subst_files=''
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
893 CPP
894 CXX
895 CXXFLAGS
896 CCC
897 CXXCPP
898 F77
899 FFLAGS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 ;;
1275
1276 esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures garmintools 0.10 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/garmintools]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1456
1457 cat <<\_ACEOF
1458
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of garmintools 0.10:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-dependency-tracking speeds up one-time build
1480 --enable-dependency-tracking do not reject slow dependency extractors
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-tags[=TAGS] include additional configurations [automatic]
1494 --with-python compile python bindings.
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <[email protected]>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" || continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 garmintools configure 0.10
1576 generated by GNU Autoconf 2.61
1577
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1588
1589 It was created by garmintools $as_me 0.10, which was
1590 generated by GNU Autoconf 2.61. Invocation command line was
1591
1592 $ $0 $@
1593
1594 _ACEOF
1595 exec 5>>config.log
1596 {
1597 cat <<_ASUNAME
1598 ## --------- ##
1599 ## Platform. ##
1600 ## --------- ##
1601
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618
1619 _ASUNAME
1620
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1623 do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1627 done
1628 IFS=$as_save_IFS
1629
1630 } >&5
1631
1632 cat >&5 <<_ACEOF
1633
1634
1635 ## ----------- ##
1636 ## Core tests. ##
1637 ## ----------- ##
1638
1639 _ACEOF
1640
1641
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_configure_args=
1648 ac_configure_args0=
1649 ac_configure_args1=
1650 ac_must_keep_next=false
1651 for ac_pass in 1 2
1652 do
1653 for ac_arg
1654 do
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
1660 *\'*)
1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 2)
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1678 ;;
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1681 fi
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1683 ;;
1684 esac
1685 done
1686 done
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1697 {
1698 echo
1699
1700 cat <<\_ASBOX
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1704 _ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
1707 (
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1719 esac ;;
1720 esac
1721 done
1722 (set) 2>&1 |
1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1725 sed -n \
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 ;; #(
1729 *)
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ;;
1732 esac |
1733 sort
1734 )
1735 echo
1736
1737 cat <<\_ASBOX
1738 ## ----------------- ##
1739 ## Output variables. ##
1740 ## ----------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_vars
1744 do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1752
1753 if test -n "$ac_subst_files"; then
1754 cat <<\_ASBOX
1755 ## ------------------- ##
1756 ## File substitutions. ##
1757 ## ------------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_files
1761 do
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1769 fi
1770
1771 if test -s confdefs.h; then
1772 cat <<\_ASBOX
1773 ## ----------- ##
1774 ## confdefs.h. ##
1775 ## ----------- ##
1776 _ASBOX
1777 echo
1778 cat confdefs.h
1779 echo
1780 fi
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1784 } >&5
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 exit $exit_status
1788 ' 0
1789 for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 done
1792 ac_signal=0
1793
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1796
1797 # Predefined preprocessor variables.
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 _ACEOF
1822
1823
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828 elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 else
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
1833 fi
1834 shift
1835 for ac_site_file
1836 do
1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839 echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1841 . "$ac_site_file"
1842 fi
1843 done
1844
1845 if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850 echo "$as_me: loading cache $cache_file" >&6;}
1851 case $cache_file in
1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
1854 esac
1855 fi
1856 else
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858 echo "$as_me: creating cache $cache_file" >&6;}
1859 >$cache_file
1860 fi
1861
1862 # Check that the precious variables saved in the cache have kept the same
1863 # value.
1864 ac_cache_corrupted=false
1865 for ac_var in $ac_precious_vars; do
1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
1870 case $ac_old_set,$ac_new_set in
1871 set,)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,set)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,);;
1880 *)
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885 echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887 echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1889 fi;;
1890 esac
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1893 case $ac_new_val in
1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 *) ac_arg=$ac_var=$ac_new_val ;;
1896 esac
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 esac
1901 fi
1902 done
1903 if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1909 fi
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942
1943 ac_config_headers="$ac_config_headers src/config.h:src/config.h.in"
1944
1945 am__api_version='1.10'
1946
1947 ac_aux_dir=
1948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1949 if test -f "$ac_dir/install-sh"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install-sh -c"
1952 break
1953 elif test -f "$ac_dir/install.sh"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/install.sh -c"
1956 break
1957 elif test -f "$ac_dir/shtool"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 break
1961 fi
1962 done
1963 if test -z "$ac_aux_dir"; then
1964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1966 { (exit 1); exit 1; }; }
1967 fi
1968
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976
1977
1978 # Find a good install program. We prefer a C program (faster),
1979 # so one script is as good as another. But avoid the broken or
1980 # incompatible versions:
1981 # SysV /etc/install, /usr/sbin/install
1982 # SunOS /usr/etc/install
1983 # IRIX /sbin/install
1984 # AIX /bin/install
1985 # AmigaOS /C/install, which installs bootblocks on floppy discs
1986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1989 # OS/2's system install, which has a completely different semantic
1990 # ./install, which can be erroneously created by make from ./install.sh.
1991 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1993 if test -z "$INSTALL"; then
1994 if test "${ac_cv_path_install+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 # Account for people who put trailing slashes in PATH elements.
2003 case $as_dir/ in
2004 ./ | .// | /cC/* | \
2005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2007 /usr/ucb/* ) ;;
2008 *)
2009 # OSF1 and SCO ODT 3.0 have their own names for install.
2010 # Don't use installbsd from OSF since it installs stuff as root
2011 # by default.
2012 for ac_prog in ginstall scoinst install; do
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2015 if test $ac_prog = install &&
2016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # AIX install. It has an incompatible calling convention.
2018 :
2019 elif test $ac_prog = install &&
2020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2021 # program-specific install script used by HP pwplus--don't use.
2022 :
2023 else
2024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2025 break 3
2026 fi
2027 fi
2028 done
2029 done
2030 ;;
2031 esac
2032 done
2033 IFS=$as_save_IFS
2034
2035
2036 fi
2037 if test "${ac_cv_path_install+set}" = set; then
2038 INSTALL=$ac_cv_path_install
2039 else
2040 # As a last resort, use the slow shell script. Don't cache a
2041 # value for INSTALL within a source directory, because that will
2042 # break other packages using the cache if that directory is
2043 # removed, or if the value is a relative name.
2044 INSTALL=$ac_install_sh
2045 fi
2046 fi
2047 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2048 echo "${ECHO_T}$INSTALL" >&6; }
2049
2050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2051 # It thinks the first close brace ends the variable substitution.
2052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2053
2054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2055
2056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2057
2058 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2059 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2060 # Just in case
2061 sleep 1
2062 echo timestamp > conftest.file
2063 # Do `set' in a subshell so we don't clobber the current shell's
2064 # arguments. Must try -L first in case configure is actually a
2065 # symlink; some systems play weird games with the mod time of symlinks
2066 # (eg FreeBSD returns the mod time of the symlink's containing
2067 # directory).
2068 if (
2069 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2070 if test "$*" = "X"; then
2071 # -L didn't work.
2072 set X `ls -t $srcdir/configure conftest.file`
2073 fi
2074 rm -f conftest.file
2075 if test "$*" != "X $srcdir/configure conftest.file" \
2076 && test "$*" != "X conftest.file $srcdir/configure"; then
2077
2078 # If neither matched, then we have a broken ls. This can happen
2079 # if, for instance, CONFIG_SHELL is bash and it inherits a
2080 # broken ls alias from the environment. This has actually
2081 # happened. Such a system could not be considered "sane".
2082 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&5
2084 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2085 alias in your environment" >&2;}
2086 { (exit 1); exit 1; }; }
2087 fi
2088
2089 test "$2" = conftest.file
2090 )
2091 then
2092 # Ok.
2093 :
2094 else
2095 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2096 Check your system clock" >&5
2097 echo "$as_me: error: newly created file is older than distributed files!
2098 Check your system clock" >&2;}
2099 { (exit 1); exit 1; }; }
2100 fi
2101 { echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6; }
2103 test "$program_prefix" != NONE &&
2104 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2105 # Use a double $ so make ignores it.
2106 test "$program_suffix" != NONE &&
2107 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2108 # Double any \ or $. echo might interpret backslashes.
2109 # By default was `s,x,x', remove it if useless.
2110 cat <<\_ACEOF >conftest.sed
2111 s/[\\$]/&&/g;s/;s,x,x,$//
2112 _ACEOF
2113 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2114 rm -f conftest.sed
2115
2116 # expand $ac_aux_dir to an absolute path
2117 am_aux_dir=`cd $ac_aux_dir && pwd`
2118
2119 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2120 # Use eval to expand $SHELL
2121 if eval "$MISSING --run true"; then
2122 am_missing_run="$MISSING --run "
2123 else
2124 am_missing_run=
2125 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2126 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2127 fi
2128
2129 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2130 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2131 if test -z "$MKDIR_P"; then
2132 if test "${ac_cv_path_mkdir+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2137 do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 for ac_prog in mkdir gmkdir; do
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2144 'mkdir (GNU coreutils) '* | \
2145 'mkdir (coreutils) '* | \
2146 'mkdir (fileutils) '4.1*)
2147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2148 break 3;;
2149 esac
2150 done
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156
2157 if test "${ac_cv_path_mkdir+set}" = set; then
2158 MKDIR_P="$ac_cv_path_mkdir -p"
2159 else
2160 # As a last resort, use the slow shell script. Don't cache a
2161 # value for MKDIR_P within a source directory, because that will
2162 # break other packages using the cache if that directory is
2163 # removed, or if the value is a relative name.
2164 test -d ./--version && rmdir ./--version
2165 MKDIR_P="$ac_install_sh -d"
2166 fi
2167 fi
2168 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2169 echo "${ECHO_T}$MKDIR_P" >&6; }
2170
2171 mkdir_p="$MKDIR_P"
2172 case $mkdir_p in
2173 [\\/$]* | ?:[\\/]*) ;;
2174 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2175 esac
2176
2177 for ac_prog in gawk mawk nawk awk
2178 do
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_AWK+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$AWK"; then
2187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_AWK="$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2199 fi
2200 done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205 fi
2206 AWK=$ac_cv_prog_AWK
2207 if test -n "$AWK"; then
2208 { echo "$as_me:$LINENO: result: $AWK" >&5
2209 echo "${ECHO_T}$AWK" >&6; }
2210 else
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2213 fi
2214
2215
2216 test -n "$AWK" && break
2217 done
2218
2219 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2220 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2221 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2222 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 cat >conftest.make <<\_ACEOF
2226 SHELL = /bin/sh
2227 all:
2228 @echo '@@@%%%=$(MAKE)=@@@%%%'
2229 _ACEOF
2230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2232 *@@@%%%=?*=@@@%%%*)
2233 eval ac_cv_prog_make_${ac_make}_set=yes;;
2234 *)
2235 eval ac_cv_prog_make_${ac_make}_set=no;;
2236 esac
2237 rm -f conftest.make
2238 fi
2239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242 SET_MAKE=
2243 else
2244 { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2246 SET_MAKE="MAKE=${MAKE-make}"
2247 fi
2248
2249 rm -rf .tst 2>/dev/null
2250 mkdir .tst 2>/dev/null
2251 if test -d .tst; then
2252 am__leading_dot=.
2253 else
2254 am__leading_dot=_
2255 fi
2256 rmdir .tst 2>/dev/null
2257
2258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2260 # is not polluted with repeated "-I."
2261 am__isrc=' -I$(srcdir)'
2262 # test to see if srcdir already configured
2263 if test -f $srcdir/config.status; then
2264 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2265 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2266 { (exit 1); exit 1; }; }
2267 fi
2268 fi
2269
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272 if (cygpath --version) >/dev/null 2>/dev/null; then
2273 CYGPATH_W='cygpath -w'
2274 else
2275 CYGPATH_W=echo
2276 fi
2277 fi
2278
2279
2280 # Define the identity of the package.
2281 PACKAGE='garmintools'
2282 VERSION='0.10'
2283
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2287 _ACEOF
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define VERSION "$VERSION"
2292 _ACEOF
2293
2294 # Some tools Automake needs.
2295
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2297
2298
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2300
2301
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2303
2304
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2306
2307
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309
2310 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2338 fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357 ac_ct_STRIP=$STRIP
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394 if test "x$ac_ct_STRIP" = x; then
2395 STRIP=":"
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to [email protected]." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to [email protected]." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 STRIP=$ac_ct_STRIP
2408 fi
2409 else
2410 STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416 # We need awk for the "check" target. The system "awk" is bad on
2417 # some platforms.
2418 # Always define AMTAR for backward compatibility.
2419
2420 AMTAR=${AMTAR-"${am_missing_run}tar"}
2421
2422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423
2424
2425
2426
2427
2428
2429 # Checks for programs.
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to [email protected]." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to [email protected]." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 CC=$ac_ct_CC
2526 fi
2527 else
2528 CC="$ac_cv_prog_CC"
2529 fi
2530
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570 fi
2571 fi
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2594 fi
2595 ac_cv_prog_CC="cc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 fi
2614 fi
2615 fi
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626
2627 fi
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2631 do
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669 test -n "$CC" && break
2670 done
2671 fi
2672 if test -z "$CC"; then
2673 ac_ct_CC=$CC
2674 for ac_prog in cl.exe
2675 do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713 test -n "$ac_ct_CC" && break
2714 done
2715
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to [email protected]." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to [email protected]." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2730 fi
2731 fi
2732
2733 fi
2734
2735
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2741
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2775
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2782
2783 int
2784 main ()
2785 {
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 #
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 #
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2810 do
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815 done
2816 rm -f $ac_rmfiles
2817
2818 if { (ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files ''
2834 do
2835 test -f "$ac_file" || continue
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2838 ;;
2839 [ab].out )
2840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
2843 *.* )
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 fi
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
2853 break;;
2854 * )
2855 break;;
2856 esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
2860 else
2861 ac_file=''
2862 fi
2863
2864 { echo "$as_me:$LINENO: result: $ac_file" >&5
2865 echo "${ECHO_T}$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
2875 fi
2876
2877 ac_exeext=$ac_cv_exeext
2878
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 cross_compiling=no
2897 else
2898 if test "$cross_compiling" = maybe; then
2899 cross_compiling=yes
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2908 fi
2909 fi
2910 fi
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2913
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 # `rm'.
2939 for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 break;;
2945 * ) break;;
2946 esac
2947 done
2948 else
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2954 fi
2955
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2962 ac_exeext=$EXEEXT
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974
2975 int
2976 main ()
2977 {
2978
2979 ;
2980 return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 break;;
3000 esac
3001 done
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3011 fi
3012
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3018 ac_objext=$OBJEXT
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030
3031 int
3032 main ()
3033 {
3034 #ifndef __GNUC__
3035 choke me
3036 #endif
3037
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } && {
3056 test -z "$ac_c_werror_flag" ||
3057 test ! -s conftest.err
3058 } && test -s conftest.$ac_objext; then
3059 ac_compiler_gnu=yes
3060 else
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 ac_compiler_gnu=no
3065 fi
3066
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3069
3070 fi
3071 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3073 GCC=`test $ac_compiler_gnu = yes && echo yes`
3074 ac_test_CFLAGS=${CFLAGS+set}
3075 ac_save_CFLAGS=$CFLAGS
3076 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_cc_g+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 ac_save_c_werror_flag=$ac_c_werror_flag
3082 ac_c_werror_flag=yes
3083 ac_cv_prog_cc_g=no
3084 CFLAGS="-g"
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091
3092 int
3093 main ()
3094 {
3095
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3117 ac_cv_prog_cc_g=yes
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 CFLAGS=""
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129
3130 int
3131 main ()
3132 {
3133
3134 ;
3135 return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3155 :
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3161 CFLAGS="-g"
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3194 ac_cv_prog_cc_g=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 fi
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214 CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216 if test "$GCC" = yes; then
3217 CFLAGS="-g -O2"
3218 else
3219 CFLAGS="-g"
3220 fi
3221 else
3222 if test "$GCC" = yes; then
3223 CFLAGS="-O2"
3224 else
3225 CFLAGS=
3226 fi
3227 fi
3228 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3229 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_cc_c89+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 ac_cv_prog_cc_c89=no
3234 ac_save_CC=$CC
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241 #include <stdarg.h>
3242 #include <stdio.h>
3243 #include <sys/types.h>
3244 #include <sys/stat.h>
3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246 struct buf { int x; };
3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248 static char *e (p, i)
3249 char **p;
3250 int i;
3251 {
3252 return p[i];
3253 }
3254 static char *f (char * (*g) (char **, int), char **p, ...)
3255 {
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3262 }
3263
3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272
3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3275 #define FOO(x) 'x'
3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282 int argc;
3283 char **argv;
3284 int
3285 main ()
3286 {
3287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 do
3295 CC="$ac_save_CC $ac_arg"
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_cv_prog_cc_c89=$ac_arg
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318
3319 fi
3320
3321 rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 done
3324 rm -f conftest.$ac_ext
3325 CC=$ac_save_CC
3326
3327 fi
3328 # AC_CACHE_VAL
3329 case "x$ac_cv_prog_cc_c89" in
3330 x)
3331 { echo "$as_me:$LINENO: result: none needed" >&5
3332 echo "${ECHO_T}none needed" >&6; } ;;
3333 xno)
3334 { echo "$as_me:$LINENO: result: unsupported" >&5
3335 echo "${ECHO_T}unsupported" >&6; } ;;
3336 *)
3337 CC="$CC $ac_cv_prog_cc_c89"
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3340 esac
3341
3342
3343 ac_ext=c
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 DEPDIR="${am__leading_dot}deps"
3349
3350 ac_config_commands="$ac_config_commands depfiles"
3351
3352
3353 am_make=${MAKE-make}
3354 cat > confinc << 'END'
3355 am__doit:
3356 @echo done
3357 .PHONY: am__doit
3358 END
3359 # If we don't find an include directive, just comment out the code.
3360 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3361 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3362 am__include="#"
3363 am__quote=
3364 _am_result=none
3365 # First try GNU make style include.
3366 echo "include confinc" > confmf
3367 # We grep out `Entering directory' and `Leaving directory'
3368 # messages which can occur if `w' ends up in MAKEFLAGS.
3369 # In particular we don't look at `^make:' because GNU make might
3370 # be invoked under some other name (usually "gmake"), in which
3371 # case it prints its new name instead of `make'.
3372 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3373 am__include=include
3374 am__quote=
3375 _am_result=GNU
3376 fi
3377 # Now try BSD make style include.
3378 if test "$am__include" = "#"; then
3379 echo '.include "confinc"' > confmf
3380 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3381 am__include=.include
3382 am__quote="\""
3383 _am_result=BSD
3384 fi
3385 fi
3386
3387
3388 { echo "$as_me:$LINENO: result: $_am_result" >&5
3389 echo "${ECHO_T}$_am_result" >&6; }
3390 rm -f confinc confmf
3391
3392 # Check whether --enable-dependency-tracking was given.
3393 if test "${enable_dependency_tracking+set}" = set; then
3394 enableval=$enable_dependency_tracking;
3395 fi
3396
3397 if test "x$enable_dependency_tracking" != xno; then
3398 am_depcomp="$ac_aux_dir/depcomp"
3399 AMDEPBACKSLASH='\'
3400 fi
3401 if test "x$enable_dependency_tracking" != xno; then
3402 AMDEP_TRUE=
3403 AMDEP_FALSE='#'
3404 else
3405 AMDEP_TRUE='#'
3406 AMDEP_FALSE=
3407 fi
3408
3409
3410
3411 depcc="$CC" am_compiler_list=
3412
3413 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3414 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3415 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3419 # We make a subdir and do the tests there. Otherwise we can end up
3420 # making bogus files that we don't know about and never remove. For
3421 # instance it was reported that on HP-UX the gcc test will end up
3422 # making a dummy file named `D' -- because `-MD' means `put the output
3423 # in D'.
3424 mkdir conftest.dir
3425 # Copy depcomp to subdir because otherwise we won't find it if we're
3426 # using a relative directory.
3427 cp "$am_depcomp" conftest.dir
3428 cd conftest.dir
3429 # We will build objects and dependencies in a subdirectory because
3430 # it helps to detect inapplicable dependency modes. For instance
3431 # both Tru64's cc and ICC support -MD to output dependencies as a
3432 # side effect of compilation, but ICC will put the dependencies in
3433 # the current directory while Tru64 will put them in the object
3434 # directory.
3435 mkdir sub
3436
3437 am_cv_CC_dependencies_compiler_type=none
3438 if test "$am_compiler_list" = ""; then
3439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3440 fi
3441 for depmode in $am_compiler_list; do
3442 # Setup a source with many dependencies, because some compilers
3443 # like to wrap large dependency lists on column 80 (with \), and
3444 # we should not choose a depcomp mode which is confused by this.
3445 #
3446 # We need to recreate these files for each test, as the compiler may
3447 # overwrite some of them when testing with obscure command lines.
3448 # This happens at least with the AIX C compiler.
3449 : > sub/conftest.c
3450 for i in 1 2 3 4 5 6; do
3451 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3452 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3453 # Solaris 8's {/usr,}/bin/sh.
3454 touch sub/conftst$i.h
3455 done
3456 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3457
3458 case $depmode in
3459 nosideeffect)
3460 # after this tag, mechanisms are not by side-effect, so they'll
3461 # only be used when explicitly requested
3462 if test "x$enable_dependency_tracking" = xyes; then
3463 continue
3464 else
3465 break
3466 fi
3467 ;;
3468 none) break ;;
3469 esac
3470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3471 # mode. It turns out that the SunPro C++ compiler does not properly
3472 # handle `-M -o', and we need to detect this.
3473 if depmode=$depmode \
3474 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3476 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3477 >/dev/null 2>conftest.err &&
3478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3480 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3482 # icc doesn't choke on unknown options, it will just issue warnings
3483 # or remarks (even with -Werror). So we grep stderr for any message
3484 # that says an option was ignored or not supported.
3485 # When given -MP, icc 7.0 and 7.1 complain thusly:
3486 # icc: Command line warning: ignoring option '-M'; no argument required
3487 # The diagnosis changed in icc 8.0:
3488 # icc: Command line remark: option '-MP' not supported
3489 if (grep 'ignoring option' conftest.err ||
3490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3491 am_cv_CC_dependencies_compiler_type=$depmode
3492 break
3493 fi
3494 fi
3495 done
3496
3497 cd ..
3498 rm -rf conftest.dir
3499 else
3500 am_cv_CC_dependencies_compiler_type=none
3501 fi
3502
3503 fi
3504 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3505 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3506 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3507
3508 if
3509 test "x$enable_dependency_tracking" != xno \
3510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3511 am__fastdepCC_TRUE=
3512 am__fastdepCC_FALSE='#'
3513 else
3514 am__fastdepCC_TRUE='#'
3515 am__fastdepCC_FALSE=
3516 fi
3517
3518
3519 # Find a good install program. We prefer a C program (faster),
3520 # so one script is as good as another. But avoid the broken or
3521 # incompatible versions:
3522 # SysV /etc/install, /usr/sbin/install
3523 # SunOS /usr/etc/install
3524 # IRIX /sbin/install
3525 # AIX /bin/install
3526 # AmigaOS /C/install, which installs bootblocks on floppy discs
3527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3530 # OS/2's system install, which has a completely different semantic
3531 # ./install, which can be erroneously created by make from ./install.sh.
3532 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3533 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3534 if test -z "$INSTALL"; then
3535 if test "${ac_cv_path_install+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 # Account for people who put trailing slashes in PATH elements.
3544 case $as_dir/ in
3545 ./ | .// | /cC/* | \
3546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3547 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3548 /usr/ucb/* ) ;;
3549 *)
3550 # OSF1 and SCO ODT 3.0 have their own names for install.
3551 # Don't use installbsd from OSF since it installs stuff as root
3552 # by default.
3553 for ac_prog in ginstall scoinst install; do
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3556 if test $ac_prog = install &&
3557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3558 # AIX install. It has an incompatible calling convention.
3559 :
3560 elif test $ac_prog = install &&
3561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3562 # program-specific install script used by HP pwplus--don't use.
3563 :
3564 else
3565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3566 break 3
3567 fi
3568 fi
3569 done
3570 done
3571 ;;
3572 esac
3573 done
3574 IFS=$as_save_IFS
3575
3576
3577 fi
3578 if test "${ac_cv_path_install+set}" = set; then
3579 INSTALL=$ac_cv_path_install
3580 else
3581 # As a last resort, use the slow shell script. Don't cache a
3582 # value for INSTALL within a source directory, because that will
3583 # break other packages using the cache if that directory is
3584 # removed, or if the value is a relative name.
3585 INSTALL=$ac_install_sh
3586 fi
3587 fi
3588 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3589 echo "${ECHO_T}$INSTALL" >&6; }
3590
3591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3592 # It thinks the first close brace ends the variable substitution.
3593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3594
3595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3596
3597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3598
3599 # Check whether --enable-shared was given.
3600 if test "${enable_shared+set}" = set; then
3601 enableval=$enable_shared; p=${PACKAGE-default}
3602 case $enableval in
3603 yes) enable_shared=yes ;;
3604 no) enable_shared=no ;;
3605 *)
3606 enable_shared=no
3607 # Look at the argument we got. We use all the common list separators.
3608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3609 for pkg in $enableval; do
3610 IFS="$lt_save_ifs"
3611 if test "X$pkg" = "X$p"; then
3612 enable_shared=yes
3613 fi
3614 done
3615 IFS="$lt_save_ifs"
3616 ;;
3617 esac
3618 else
3619 enable_shared=yes
3620 fi
3621
3622
3623 # Check whether --enable-static was given.
3624 if test "${enable_static+set}" = set; then
3625 enableval=$enable_static; p=${PACKAGE-default}
3626 case $enableval in
3627 yes) enable_static=yes ;;
3628 no) enable_static=no ;;
3629 *)
3630 enable_static=no
3631 # Look at the argument we got. We use all the common list separators.
3632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3633 for pkg in $enableval; do
3634 IFS="$lt_save_ifs"
3635 if test "X$pkg" = "X$p"; then
3636 enable_static=yes
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640 ;;
3641 esac
3642 else
3643 enable_static=yes
3644 fi
3645
3646
3647 # Check whether --enable-fast-install was given.
3648 if test "${enable_fast_install+set}" = set; then
3649 enableval=$enable_fast_install; p=${PACKAGE-default}
3650 case $enableval in
3651 yes) enable_fast_install=yes ;;
3652 no) enable_fast_install=no ;;
3653 *)
3654 enable_fast_install=no
3655 # Look at the argument we got. We use all the common list separators.
3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657 for pkg in $enableval; do
3658 IFS="$lt_save_ifs"
3659 if test "X$pkg" = "X$p"; then
3660 enable_fast_install=yes
3661 fi
3662 done
3663 IFS="$lt_save_ifs"
3664 ;;
3665 esac
3666 else
3667 enable_fast_install=yes
3668 fi
3669
3670
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675 { (exit 1); exit 1; }; }
3676
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688 { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692 { (exit 1); exit 1; }; }
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701 { (exit 1); exit 1; }; };;
3702 esac
3703 build=$ac_cv_build
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_build
3706 shift
3707 build_cpu=$1
3708 build_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 build_os=$*
3713 IFS=$ac_save_IFS
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715
3716
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test "x$host_alias" = x; then
3723 ac_cv_host=$ac_cv_build
3724 else
3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728 { (exit 1); exit 1; }; }
3729 fi
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 case $ac_cv_host in
3735 *-*-*) ;;
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738 { (exit 1); exit 1; }; };;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752
3753
3754 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3755 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3756 if test "${lt_cv_path_SED+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 # Loop through the user's path and test for sed and gsed.
3760 # Then use that list of sed's as ones to test for truncation.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for lt_ac_prog in sed gsed; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3769 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3770 fi
3771 done
3772 done
3773 done
3774 IFS=$as_save_IFS
3775 lt_ac_max=0
3776 lt_ac_count=0
3777 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3778 # along with /bin/sed that truncates output.
3779 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3780 test ! -f $lt_ac_sed && continue
3781 cat /dev/null > conftest.in
3782 lt_ac_count=0
3783 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3784 # Check for GNU sed and select it if it is found.
3785 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3786 lt_cv_path_SED=$lt_ac_sed
3787 break
3788 fi
3789 while true; do
3790 cat conftest.in conftest.in >conftest.tmp
3791 mv conftest.tmp conftest.in
3792 cp conftest.in conftest.nl
3793 echo >>conftest.nl
3794 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3795 cmp -s conftest.out conftest.nl || break
3796 # 10000 chars as input seems more than enough
3797 test $lt_ac_count -gt 10 && break
3798 lt_ac_count=`expr $lt_ac_count + 1`
3799 if test $lt_ac_count -gt $lt_ac_max; then
3800 lt_ac_max=$lt_ac_count
3801 lt_cv_path_SED=$lt_ac_sed
3802 fi
3803 done
3804 done
3805
3806 fi
3807
3808 SED=$lt_cv_path_SED
3809
3810 { echo "$as_me:$LINENO: result: $SED" >&5
3811 echo "${ECHO_T}$SED" >&6; }
3812
3813 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3814 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3815 if test "${ac_cv_path_GREP+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 # Extract the first word of "grep ggrep" to use in msg output
3819 if test -z "$GREP"; then
3820 set dummy grep ggrep; ac_prog_name=$2
3821 if test "${ac_cv_path_GREP+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 ac_path_GREP_found=false
3825 # Loop through the user's path and test for each of PROGNAME-LIST
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3828 do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_prog in grep ggrep; do
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3834 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3835 # Check for GNU ac_path_GREP and select it if it is found.
3836 # Check for GNU $ac_path_GREP
3837 case `"$ac_path_GREP" --version 2>&1` in
3838 *GNU*)
3839 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3840 *)
3841 ac_count=0
3842 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3843 while :
3844 do
3845 cat "conftest.in" "conftest.in" >"conftest.tmp"
3846 mv "conftest.tmp" "conftest.in"
3847 cp "conftest.in" "conftest.nl"
3848 echo 'GREP' >> "conftest.nl"
3849 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3851 ac_count=`expr $ac_count + 1`
3852 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3853 # Best one so far, save it but keep looking for a better one
3854 ac_cv_path_GREP="$ac_path_GREP"
3855 ac_path_GREP_max=$ac_count
3856 fi
3857 # 10*(2^10) chars as input seems more than enough
3858 test $ac_count -gt 10 && break
3859 done
3860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3861 esac
3862
3863
3864 $ac_path_GREP_found && break 3
3865 done
3866 done
3867
3868 done
3869 IFS=$as_save_IFS
3870
3871
3872 fi
3873
3874 GREP="$ac_cv_path_GREP"
3875 if test -z "$GREP"; then
3876 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3877 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3878 { (exit 1); exit 1; }; }
3879 fi
3880
3881 else
3882 ac_cv_path_GREP=$GREP
3883 fi
3884
3885
3886 fi
3887 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3888 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3889 GREP="$ac_cv_path_GREP"
3890
3891
3892 { echo "$as_me:$LINENO: checking for egrep" >&5
3893 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3894 if test "${ac_cv_path_EGREP+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3898 then ac_cv_path_EGREP="$GREP -E"
3899 else
3900 # Extract the first word of "egrep" to use in msg output
3901 if test -z "$EGREP"; then
3902 set dummy egrep; ac_prog_name=$2
3903 if test "${ac_cv_path_EGREP+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 ac_path_EGREP_found=false
3907 # Loop through the user's path and test for each of PROGNAME-LIST
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910 do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_prog in egrep; do
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3916 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3917 # Check for GNU ac_path_EGREP and select it if it is found.
3918 # Check for GNU $ac_path_EGREP
3919 case `"$ac_path_EGREP" --version 2>&1` in
3920 *GNU*)
3921 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3922 *)
3923 ac_count=0
3924 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3925 while :
3926 do
3927 cat "conftest.in" "conftest.in" >"conftest.tmp"
3928 mv "conftest.tmp" "conftest.in"
3929 cp "conftest.in" "conftest.nl"
3930 echo 'EGREP' >> "conftest.nl"
3931 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3933 ac_count=`expr $ac_count + 1`
3934 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3935 # Best one so far, save it but keep looking for a better one
3936 ac_cv_path_EGREP="$ac_path_EGREP"
3937 ac_path_EGREP_max=$ac_count
3938 fi
3939 # 10*(2^10) chars as input seems more than enough
3940 test $ac_count -gt 10 && break
3941 done
3942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 esac
3944
3945
3946 $ac_path_EGREP_found && break 3
3947 done
3948 done
3949
3950 done
3951 IFS=$as_save_IFS
3952
3953
3954 fi
3955
3956 EGREP="$ac_cv_path_EGREP"
3957 if test -z "$EGREP"; then
3958 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3959 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3960 { (exit 1); exit 1; }; }
3961 fi
3962
3963 else
3964 ac_cv_path_EGREP=$EGREP
3965 fi
3966
3967
3968 fi
3969 fi
3970 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3971 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3972 EGREP="$ac_cv_path_EGREP"
3973
3974
3975
3976 # Check whether --with-gnu-ld was given.
3977 if test "${with_gnu_ld+set}" = set; then
3978 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3979 else
3980 with_gnu_ld=no
3981 fi
3982
3983 ac_prog=ld
3984 if test "$GCC" = yes; then
3985 # Check if gcc -print-prog-name=ld gives a path.
3986 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3987 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3988 case $host in
3989 *-*-mingw*)
3990 # gcc leaves a trailing carriage return which upsets mingw
3991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3992 *)
3993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3994 esac
3995 case $ac_prog in
3996 # Accept absolute paths.
3997 [\\/]* | ?:[\\/]*)
3998 re_direlt='/[^/][^/]*/\.\./'
3999 # Canonicalize the pathname of ld
4000 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4001 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4002 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4003 done
4004 test -z "$LD" && LD="$ac_prog"
4005 ;;
4006 "")
4007 # If it fails, then pretend we aren't using GCC.
4008 ac_prog=ld
4009 ;;
4010 *)
4011 # If it is relative, then search for the first ld in PATH.
4012 with_gnu_ld=unknown
4013 ;;
4014 esac
4015 elif test "$with_gnu_ld" = yes; then
4016 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4017 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4018 else
4019 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4020 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4021 fi
4022 if test "${lt_cv_path_LD+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test -z "$LD"; then
4026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4027 for ac_dir in $PATH; do
4028 IFS="$lt_save_ifs"
4029 test -z "$ac_dir" && ac_dir=.
4030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4031 lt_cv_path_LD="$ac_dir/$ac_prog"
4032 # Check to see if the program is GNU ld. I'd rather use --version,
4033 # but apparently some variants of GNU ld only accept -v.
4034 # Break only if it was the GNU/non-GNU ld that we prefer.
4035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4036 *GNU* | *'with BFD'*)
4037 test "$with_gnu_ld" != no && break
4038 ;;
4039 *)
4040 test "$with_gnu_ld" != yes && break
4041 ;;
4042 esac
4043 fi
4044 done
4045 IFS="$lt_save_ifs"
4046 else
4047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4048 fi
4049 fi
4050
4051 LD="$lt_cv_path_LD"
4052 if test -n "$LD"; then
4053 { echo "$as_me:$LINENO: result: $LD" >&5
4054 echo "${ECHO_T}$LD" >&6; }
4055 else
4056 { echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6; }
4058 fi
4059 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4060 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4061 { (exit 1); exit 1; }; }
4062 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4063 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4064 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4068 case `$LD -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
4070 lt_cv_prog_gnu_ld=yes
4071 ;;
4072 *)
4073 lt_cv_prog_gnu_ld=no
4074 ;;
4075 esac
4076 fi
4077 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4078 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4079 with_gnu_ld=$lt_cv_prog_gnu_ld
4080
4081
4082 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4083 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4084 if test "${lt_cv_ld_reload_flag+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 lt_cv_ld_reload_flag='-r'
4088 fi
4089 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4090 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4091 reload_flag=$lt_cv_ld_reload_flag
4092 case $reload_flag in
4093 "" | " "*) ;;
4094 *) reload_flag=" $reload_flag" ;;
4095 esac
4096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4097 case $host_os in
4098 darwin*)
4099 if test "$GCC" = yes; then
4100 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4101 else
4102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4103 fi
4104 ;;
4105 esac
4106
4107 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4108 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4109 if test "${lt_cv_path_NM+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$NM"; then
4113 # Let the user override the test.
4114 lt_cv_path_NM="$NM"
4115 else
4116 lt_nm_to_check="${ac_tool_prefix}nm"
4117 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4118 lt_nm_to_check="$lt_nm_to_check nm"
4119 fi
4120 for lt_tmp_nm in $lt_nm_to_check; do
4121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4122 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4123 IFS="$lt_save_ifs"
4124 test -z "$ac_dir" && ac_dir=.
4125 tmp_nm="$ac_dir/$lt_tmp_nm"
4126 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4127 # Check to see if the nm accepts a BSD-compat flag.
4128 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4129 # nm: unknown option "B" ignored
4130 # Tru64's nm complains that /dev/null is an invalid object file
4131 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4132 */dev/null* | *'Invalid file or object type'*)
4133 lt_cv_path_NM="$tmp_nm -B"
4134 break
4135 ;;
4136 *)
4137 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4138 */dev/null*)
4139 lt_cv_path_NM="$tmp_nm -p"
4140 break
4141 ;;
4142 *)
4143 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4144 continue # so that we can try to find one that supports BSD flags
4145 ;;
4146 esac
4147 ;;
4148 esac
4149 fi
4150 done
4151 IFS="$lt_save_ifs"
4152 done
4153 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4154 fi
4155 fi
4156 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4157 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4158 NM="$lt_cv_path_NM"
4159
4160 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4161 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4162 LN_S=$as_ln_s
4163 if test "$LN_S" = "ln -s"; then
4164 { echo "$as_me:$LINENO: result: yes" >&5
4165 echo "${ECHO_T}yes" >&6; }
4166 else
4167 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4168 echo "${ECHO_T}no, using $LN_S" >&6; }
4169 fi
4170
4171 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4172 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4173 if test "${lt_cv_deplibs_check_method+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 lt_cv_file_magic_cmd='$MAGIC_CMD'
4177 lt_cv_file_magic_test_file=
4178 lt_cv_deplibs_check_method='unknown'
4179 # Need to set the preceding variable on all platforms that support
4180 # interlibrary dependencies.
4181 # 'none' -- dependencies not supported.
4182 # `unknown' -- same as none, but documents that we really don't know.
4183 # 'pass_all' -- all dependencies passed with no checks.
4184 # 'test_compile' -- check by making test program.
4185 # 'file_magic [[regex]]' -- check by looking for files in library path
4186 # which responds to the $file_magic_cmd with a given extended regex.
4187 # If you have `file' or equivalent on your system and you're not sure
4188 # whether `pass_all' will *always* work, you probably want this one.
4189
4190 case $host_os in
4191 aix[4-9]*)
4192 lt_cv_deplibs_check_method=pass_all
4193 ;;
4194
4195 beos*)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198
4199 bsdi[45]*)
4200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4201 lt_cv_file_magic_cmd='/usr/bin/file -L'
4202 lt_cv_file_magic_test_file=/shlib/libc.so
4203 ;;
4204
4205 cygwin*)
4206 # func_win32_libid is a shell function defined in ltmain.sh
4207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4208 lt_cv_file_magic_cmd='func_win32_libid'
4209 ;;
4210
4211 mingw* | pw32*)
4212 # Base MSYS/MinGW do not provide the 'file' command needed by
4213 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4214 # unless we find 'file', for example because we are cross-compiling.
4215 if ( file / ) >/dev/null 2>&1; then
4216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4217 lt_cv_file_magic_cmd='func_win32_libid'
4218 else
4219 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4220 lt_cv_file_magic_cmd='$OBJDUMP -f'
4221 fi
4222 ;;
4223
4224 darwin* | rhapsody*)
4225 lt_cv_deplibs_check_method=pass_all
4226 ;;
4227
4228 freebsd* | dragonfly*)
4229 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4230 case $host_cpu in
4231 i*86 )
4232 # Not sure whether the presence of OpenBSD here was a mistake.
4233 # Let's accept both of them until this is cleared up.
4234 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4235 lt_cv_file_magic_cmd=/usr/bin/file
4236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4237 ;;
4238 esac
4239 else
4240 lt_cv_deplibs_check_method=pass_all
4241 fi
4242 ;;
4243
4244 gnu*)
4245 lt_cv_deplibs_check_method=pass_all
4246 ;;
4247
4248 hpux10.20* | hpux11*)
4249 lt_cv_file_magic_cmd=/usr/bin/file
4250 case $host_cpu in
4251 ia64*)
4252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4254 ;;
4255 hppa*64*)
4256 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]'
4257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4258 ;;
4259 *)
4260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4261 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4262 ;;
4263 esac
4264 ;;
4265
4266 interix[3-9]*)
4267 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4269 ;;
4270
4271 irix5* | irix6* | nonstopux*)
4272 case $LD in
4273 *-32|*"-32 ") libmagic=32-bit;;
4274 *-n32|*"-n32 ") libmagic=N32;;
4275 *-64|*"-64 ") libmagic=64-bit;;
4276 *) libmagic=never-match;;
4277 esac
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281 # This must be Linux ELF.
4282 linux* | k*bsd*-gnu)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285
4286 netbsd*)
4287 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4289 else
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4291 fi
4292 ;;
4293
4294 newos6*)
4295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4296 lt_cv_file_magic_cmd=/usr/bin/file
4297 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4298 ;;
4299
4300 nto-qnx*)
4301 lt_cv_deplibs_check_method=unknown
4302 ;;
4303
4304 openbsd*)
4305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4307 else
4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4309 fi
4310 ;;
4311
4312 osf3* | osf4* | osf5*)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316 rdos*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320 solaris*)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
4324 sysv4 | sysv4.3*)
4325 case $host_vendor in
4326 motorola)
4327 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]'
4328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4329 ;;
4330 ncr)
4331 lt_cv_deplibs_check_method=pass_all
4332 ;;
4333 sequent)
4334 lt_cv_file_magic_cmd='/bin/file'
4335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4336 ;;
4337 sni)
4338 lt_cv_file_magic_cmd='/bin/file'
4339 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4340 lt_cv_file_magic_test_file=/lib/libc.so
4341 ;;
4342 siemens)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345 pc)
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348 esac
4349 ;;
4350
4351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354 esac
4355
4356 fi
4357 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4358 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4359 file_magic_cmd=$lt_cv_file_magic_cmd
4360 deplibs_check_method=$lt_cv_deplibs_check_method
4361 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4362
4363
4364
4365
4366 # If no C compiler was specified, use CC.
4367 LTCC=${LTCC-"$CC"}
4368
4369 # If no C compiler flags were specified, use CFLAGS.
4370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4371
4372 # Allow CC to be a program name with arguments.
4373 compiler=$CC
4374
4375
4376 # Check whether --enable-libtool-lock was given.
4377 if test "${enable_libtool_lock+set}" = set; then
4378 enableval=$enable_libtool_lock;
4379 fi
4380
4381 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4382
4383 # Some flags need to be propagated to the compiler or linker for good
4384 # libtool support.
4385 case $host in
4386 ia64-*-hpux*)
4387 # Find out which ABI we are using.
4388 echo 'int i;' > conftest.$ac_ext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; then
4394 case `/usr/bin/file conftest.$ac_objext` in
4395 *ELF-32*)
4396 HPUX_IA64_MODE="32"
4397 ;;
4398 *ELF-64*)
4399 HPUX_IA64_MODE="64"
4400 ;;
4401 esac
4402 fi
4403 rm -rf conftest*
4404 ;;
4405 *-*-irix6*)
4406 # Find out which ABI we are using.
4407 echo '#line 4407 "configure"' > conftest.$ac_ext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
4413 if test "$lt_cv_prog_gnu_ld" = yes; then
4414 case `/usr/bin/file conftest.$ac_objext` in
4415 *32-bit*)
4416 LD="${LD-ld} -melf32bsmip"
4417 ;;
4418 *N32*)
4419 LD="${LD-ld} -melf32bmipn32"
4420 ;;
4421 *64-bit*)
4422 LD="${LD-ld} -melf64bmip"
4423 ;;
4424 esac
4425 else
4426 case `/usr/bin/file conftest.$ac_objext` in
4427 *32-bit*)
4428 LD="${LD-ld} -32"
4429 ;;
4430 *N32*)
4431 LD="${LD-ld} -n32"
4432 ;;
4433 *64-bit*)
4434 LD="${LD-ld} -64"
4435 ;;
4436 esac
4437 fi
4438 fi
4439 rm -rf conftest*
4440 ;;
4441
4442 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4443 s390*-*linux*|sparc*-*linux*)
4444 # Find out which ABI we are using.
4445 echo 'int i;' > conftest.$ac_ext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; then
4451 case `/usr/bin/file conftest.o` in
4452 *32-bit*)
4453 case $host in
4454 x86_64-*kfreebsd*-gnu)
4455 LD="${LD-ld} -m elf_i386_fbsd"
4456 ;;
4457 x86_64-*linux*)
4458 LD="${LD-ld} -m elf_i386"
4459 ;;
4460 ppc64-*linux*|powerpc64-*linux*)
4461 LD="${LD-ld} -m elf32ppclinux"
4462 ;;
4463 s390x-*linux*)
4464 LD="${LD-ld} -m elf_s390"
4465 ;;
4466 sparc64-*linux*)
4467 LD="${LD-ld} -m elf32_sparc"
4468 ;;
4469 esac
4470 ;;
4471 *64-bit*)
4472 case $host in
4473 x86_64-*kfreebsd*-gnu)
4474 LD="${LD-ld} -m elf_x86_64_fbsd"
4475 ;;
4476 x86_64-*linux*)
4477 LD="${LD-ld} -m elf_x86_64"
4478 ;;
4479 ppc*-*linux*|powerpc*-*linux*)
4480 LD="${LD-ld} -m elf64ppc"
4481 ;;
4482 s390*-*linux*)
4483 LD="${LD-ld} -m elf64_s390"
4484 ;;
4485 sparc*-*linux*)
4486 LD="${LD-ld} -m elf64_sparc"
4487 ;;
4488 esac
4489 ;;
4490 esac
4491 fi
4492 rm -rf conftest*
4493 ;;
4494
4495 *-*-sco3.2v5*)
4496 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4497 SAVE_CFLAGS="$CFLAGS"
4498 CFLAGS="$CFLAGS -belf"
4499 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4500 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4501 if test "${lt_cv_cc_needs_belf+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516
4517 int
4518 main ()
4519 {
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (ac_try="$ac_link"
4527 case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530 esac
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_link") 2>conftest.er1
4533 ac_status=$?
4534 grep -v '^ *+' conftest.er1 >conftest.err
4535 rm -f conftest.er1
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_c_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest$ac_exeext &&
4542 $as_test_x conftest$ac_exeext; then
4543 lt_cv_cc_needs_belf=yes
4544 else
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 lt_cv_cc_needs_belf=no
4549 fi
4550
4551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4552 conftest$ac_exeext conftest.$ac_ext
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559 fi
4560 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4561 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4564 CFLAGS="$SAVE_CFLAGS"
4565 fi
4566 ;;
4567 sparc*-*solaris*)
4568 # Find out which ABI we are using.
4569 echo 'int i;' > conftest.$ac_ext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; then
4575 case `/usr/bin/file conftest.o` in
4576 *64-bit*)
4577 case $lt_cv_prog_gnu_ld in
4578 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4579 *)
4580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4581 LD="${LD-ld} -64"
4582 fi
4583 ;;
4584 esac
4585 ;;
4586 esac
4587 fi
4588 rm -rf conftest*
4589 ;;
4590
4591
4592 esac
4593
4594 need_locks="$enable_libtool_lock"
4595
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4603 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4604 # On Suns, sometimes $CPP names a directory.
4605 if test -n "$CPP" && test -d "$CPP"; then
4606 CPP=
4607 fi
4608 if test -z "$CPP"; then
4609 if test "${ac_cv_prog_CPP+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 # Double quotes because CPP needs to be expanded
4613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4614 do
4615 ac_preproc_ok=false
4616 for ac_c_preproc_warn_flag in '' yes
4617 do
4618 # Use a header file that comes with gcc, so configuring glibc
4619 # with a fresh cross-compiler works.
4620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4621 # <limits.h> exists even on freestanding compilers.
4622 # On the NeXT, cc -E runs the code through the compiler's parser,
4623 # not just through cpp. "Syntax error" is here to catch this case.
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #ifdef __STDC__
4631 # include <limits.h>
4632 #else
4633 # include <assert.h>
4634 #endif
4635 Syntax error
4636 _ACEOF
4637 if { (ac_try="$ac_cpp conftest.$ac_ext"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } >/dev/null && {
4650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 }; then
4653 :
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 # Broken: fails on valid input.
4659 continue
4660 fi
4661
4662 rm -f conftest.err conftest.$ac_ext
4663
4664 # OK, works on sane cases. Now check whether nonexistent headers
4665 # can be detected and how.
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 #include <ac_nonexistent.h>
4673 _ACEOF
4674 if { (ac_try="$ac_cpp conftest.$ac_ext"
4675 case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678 esac
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } >/dev/null && {
4687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4688 test ! -s conftest.err
4689 }; then
4690 # Broken: success on invalid input.
4691 continue
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 # Passes both tests.
4697 ac_preproc_ok=:
4698 break
4699 fi
4700
4701 rm -f conftest.err conftest.$ac_ext
4702
4703 done
4704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4705 rm -f conftest.err conftest.$ac_ext
4706 if $ac_preproc_ok; then
4707 break
4708 fi
4709
4710 done
4711 ac_cv_prog_CPP=$CPP
4712
4713 fi
4714 CPP=$ac_cv_prog_CPP
4715 else
4716 ac_cv_prog_CPP=$CPP
4717 fi
4718 { echo "$as_me:$LINENO: result: $CPP" >&5
4719 echo "${ECHO_T}$CPP" >&6; }
4720 ac_preproc_ok=false
4721 for ac_c_preproc_warn_flag in '' yes
4722 do
4723 # Use a header file that comes with gcc, so configuring glibc
4724 # with a fresh cross-compiler works.
4725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4726 # <limits.h> exists even on freestanding compilers.
4727 # On the NeXT, cc -E runs the code through the compiler's parser,
4728 # not just through cpp. "Syntax error" is here to catch this case.
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 #ifdef __STDC__
4736 # include <limits.h>
4737 #else
4738 # include <assert.h>
4739 #endif
4740 Syntax error
4741 _ACEOF
4742 if { (ac_try="$ac_cpp conftest.$ac_ext"
4743 case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } >/dev/null && {
4755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 }; then
4758 :
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 # Broken: fails on valid input.
4764 continue
4765 fi
4766
4767 rm -f conftest.err conftest.$ac_ext
4768
4769 # OK, works on sane cases. Now check whether nonexistent headers
4770 # can be detected and how.
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <ac_nonexistent.h>
4778 _ACEOF
4779 if { (ac_try="$ac_cpp conftest.$ac_ext"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } >/dev/null && {
4792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4794 }; then
4795 # Broken: success on invalid input.
4796 continue
4797 else
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 # Passes both tests.
4802 ac_preproc_ok=:
4803 break
4804 fi
4805
4806 rm -f conftest.err conftest.$ac_ext
4807
4808 done
4809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4810 rm -f conftest.err conftest.$ac_ext
4811 if $ac_preproc_ok; then
4812 :
4813 else
4814 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4815 See \`config.log' for more details." >&5
4816 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4817 See \`config.log' for more details." >&2;}
4818 { (exit 1); exit 1; }; }
4819 fi
4820
4821 ac_ext=c
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826
4827
4828 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4830 if test "${ac_cv_header_stdc+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
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 #include <stdarg.h>
4841 #include <string.h>
4842 #include <float.h>
4843
4844 int
4845 main ()
4846 {
4847
4848 ;
4849 return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4869 ac_cv_header_stdc=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_cv_header_stdc=no
4875 fi
4876
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878
4879 if test $ac_cv_header_stdc = yes; then
4880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <string.h>
4888
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "memchr" >/dev/null 2>&1; then
4892 :
4893 else
4894 ac_cv_header_stdc=no
4895 fi
4896 rm -f conftest*
4897
4898 fi
4899
4900 if test $ac_cv_header_stdc = yes; then
4901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <stdlib.h>
4909
4910 _ACEOF
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912 $EGREP "free" >/dev/null 2>&1; then
4913 :
4914 else
4915 ac_cv_header_stdc=no
4916 fi
4917 rm -f conftest*
4918
4919 fi
4920
4921 if test $ac_cv_header_stdc = yes; then
4922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4923 if test "$cross_compiling" = yes; then
4924 :
4925 else
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <ctype.h>
4933 #include <stdlib.h>
4934 #if ((' ' & 0x0FF) == 0x020)
4935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4937 #else
4938 # define ISLOWER(c) \
4939 (('a' <= (c) && (c) <= 'i') \
4940 || ('j' <= (c) && (c) <= 'r') \
4941 || ('s' <= (c) && (c) <= 'z'))
4942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4943 #endif
4944
4945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4946 int
4947 main ()
4948 {
4949 int i;
4950 for (i = 0; i < 256; i++)
4951 if (XOR (islower (i), ISLOWER (i))
4952 || toupper (i) != TOUPPER (i))
4953 return 2;
4954 return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest$ac_exeext
4958 if { (ac_try="$ac_link"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_link") 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4968 { (case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_try") 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 :
4978 else
4979 echo "$as_me: program exited with status $ac_status" >&5
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 ( exit $ac_status )
4984 ac_cv_header_stdc=no
4985 fi
4986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4987 fi
4988
4989
4990 fi
4991 fi
4992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4994 if test $ac_cv_header_stdc = yes; then
4995
4996 cat >>confdefs.h <<\_ACEOF
4997 #define STDC_HEADERS 1
4998 _ACEOF
4999
5000 fi
5001
5002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5013 inttypes.h stdint.h unistd.h
5014 do
5015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5028
5029 #include <$ac_header>
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (ac_try="$ac_compile"
5033 case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_compile") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest.$ac_objext; then
5048 eval "$as_ac_Header=yes"
5049 else
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 eval "$as_ac_Header=no"
5054 fi
5055
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 fi
5058 ac_res=`eval echo '${'$as_ac_Header'}'`
5059 { echo "$as_me:$LINENO: result: $ac_res" >&5
5060 echo "${ECHO_T}$ac_res" >&6; }
5061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062 cat >>confdefs.h <<_ACEOF
5063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064 _ACEOF
5065
5066 fi
5067
5068 done
5069
5070
5071
5072 for ac_header in dlfcn.h
5073 do
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 fi
5081 ac_res=`eval echo '${'$as_ac_Header'}'`
5082 { echo "$as_me:$LINENO: result: $ac_res" >&5
5083 echo "${ECHO_T}$ac_res" >&6; }
5084 else
5085 # Is the header compilable?
5086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 $ac_includes_default
5095 #include <$ac_header>
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_header_compiler=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_compiler=no
5120 fi
5121
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5124 echo "${ECHO_T}$ac_header_compiler" >&6; }
5125
5126 # Is the header present?
5127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <$ac_header>
5136 _ACEOF
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5138 case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null && {
5150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5152 }; then
5153 ac_header_preproc=yes
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 ac_header_preproc=no
5159 fi
5160
5161 rm -f conftest.err conftest.$ac_ext
5162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5163 echo "${ECHO_T}$ac_header_preproc" >&6; }
5164
5165 # So? What about this header?
5166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5167 yes:no: )
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5172 ac_header_preproc=yes
5173 ;;
5174 no:yes:* )
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5187 ( cat <<\_ASBOX
5188 ## ----------------------------- ##
5189 ## Report this to [email protected] ##
5190 ## ----------------------------- ##
5191 _ASBOX
5192 ) | sed "s/^/$as_me: WARNING: /" >&2
5193 ;;
5194 esac
5195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 eval "$as_ac_Header=\$ac_header_preproc"
5201 fi
5202 ac_res=`eval echo '${'$as_ac_Header'}'`
5203 { echo "$as_me:$LINENO: result: $ac_res" >&5
5204 echo "${ECHO_T}$ac_res" >&6; }
5205
5206 fi
5207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5208 cat >>confdefs.h <<_ACEOF
5209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5210 _ACEOF
5211
5212 fi
5213
5214 done
5215
5216 ac_ext=cpp
5217 ac_cpp='$CXXCPP $CPPFLAGS'
5218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5221 if test -z "$CXX"; then
5222 if test -n "$CCC"; then
5223 CXX=$CCC
5224 else
5225 if test -n "$ac_tool_prefix"; then
5226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5227 do
5228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_prog_CXX+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 if test -n "$CXX"; then
5236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249 done
5250 done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 CXX=$ac_cv_prog_CXX
5256 if test -n "$CXX"; then
5257 { echo "$as_me:$LINENO: result: $CXX" >&5
5258 echo "${ECHO_T}$CXX" >&6; }
5259 else
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5262 fi
5263
5264
5265 test -n "$CXX" && break
5266 done
5267 fi
5268 if test -z "$CXX"; then
5269 ac_ct_CXX=$CXX
5270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5271 do
5272 # Extract the first word of "$ac_prog", so it can be a program name with args.
5273 set dummy $ac_prog; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test -n "$ac_ct_CXX"; then
5280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_ac_ct_CXX="$ac_prog"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 fi
5298 fi
5299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5300 if test -n "$ac_ct_CXX"; then
5301 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5302 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5303 else
5304 { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
5306 fi
5307
5308
5309 test -n "$ac_ct_CXX" && break
5310 done
5311
5312 if test "x$ac_ct_CXX" = x; then
5313 CXX="g++"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316 yes:)
5317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5318 whose name does not start with the host triplet. If you think this
5319 configuration is useful to you, please write to [email protected]." >&5
5320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5321 whose name does not start with the host triplet. If you think this
5322 configuration is useful to you, please write to [email protected]." >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325 CXX=$ac_ct_CXX
5326 fi
5327 fi
5328
5329 fi
5330 fi
5331 # Provide some information about the compiler.
5332 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5333 ac_compiler=`set X $ac_compile; echo $2`
5334 { (ac_try="$ac_compiler --version >&5"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compiler --version >&5") 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }
5344 { (ac_try="$ac_compiler -v >&5"
5345 case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compiler -v >&5") 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }
5354 { (ac_try="$ac_compiler -V >&5"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compiler -V >&5") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }
5364
5365 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5366 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5367 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376
5377 int
5378 main ()
5379 {
5380 #ifndef __GNUC__
5381 choke me
5382 #endif
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_cxx_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_compiler_gnu=yes
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 ac_compiler_gnu=no
5411 fi
5412
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5415
5416 fi
5417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5419 GXX=`test $ac_compiler_gnu = yes && echo yes`
5420 ac_test_CXXFLAGS=${CXXFLAGS+set}
5421 ac_save_CXXFLAGS=$CXXFLAGS
5422 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5424 if test "${ac_cv_prog_cxx_g+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5428 ac_cxx_werror_flag=yes
5429 ac_cv_prog_cxx_g=no
5430 CXXFLAGS="-g"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437
5438 int
5439 main ()
5440 {
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_cxx_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_cv_prog_cxx_g=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 CXXFLAGS=""
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475
5476 int
5477 main ()
5478 {
5479
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 :
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 CXXFLAGS="-g"
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514
5515 int
5516 main ()
5517 {
5518
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_cxx_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 ac_cv_prog_cxx_g=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545
5546 fi
5547
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5556 fi
5557 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5558 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5559 if test "$ac_test_CXXFLAGS" = set; then
5560 CXXFLAGS=$ac_save_CXXFLAGS
5561 elif test $ac_cv_prog_cxx_g = yes; then
5562 if test "$GXX" = yes; then
5563 CXXFLAGS="-g -O2"
5564 else
5565 CXXFLAGS="-g"
5566 fi
5567 else
5568 if test "$GXX" = yes; then
5569 CXXFLAGS="-O2"
5570 else
5571 CXXFLAGS=
5572 fi
5573 fi
5574 ac_ext=cpp
5575 ac_cpp='$CXXCPP $CPPFLAGS'
5576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5579
5580 depcc="$CXX" am_compiler_list=
5581
5582 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5583 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5584 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5588 # We make a subdir and do the tests there. Otherwise we can end up
5589 # making bogus files that we don't know about and never remove. For
5590 # instance it was reported that on HP-UX the gcc test will end up
5591 # making a dummy file named `D' -- because `-MD' means `put the output
5592 # in D'.
5593 mkdir conftest.dir
5594 # Copy depcomp to subdir because otherwise we won't find it if we're
5595 # using a relative directory.
5596 cp "$am_depcomp" conftest.dir
5597 cd conftest.dir
5598 # We will build objects and dependencies in a subdirectory because
5599 # it helps to detect inapplicable dependency modes. For instance
5600 # both Tru64's cc and ICC support -MD to output dependencies as a
5601 # side effect of compilation, but ICC will put the dependencies in
5602 # the current directory while Tru64 will put them in the object
5603 # directory.
5604 mkdir sub
5605
5606 am_cv_CXX_dependencies_compiler_type=none
5607 if test "$am_compiler_list" = ""; then
5608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5609 fi
5610 for depmode in $am_compiler_list; do
5611 # Setup a source with many dependencies, because some compilers
5612 # like to wrap large dependency lists on column 80 (with \), and
5613 # we should not choose a depcomp mode which is confused by this.
5614 #
5615 # We need to recreate these files for each test, as the compiler may
5616 # overwrite some of them when testing with obscure command lines.
5617 # This happens at least with the AIX C compiler.
5618 : > sub/conftest.c
5619 for i in 1 2 3 4 5 6; do
5620 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5621 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5622 # Solaris 8's {/usr,}/bin/sh.
5623 touch sub/conftst$i.h
5624 done
5625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5626
5627 case $depmode in
5628 nosideeffect)
5629 # after this tag, mechanisms are not by side-effect, so they'll
5630 # only be used when explicitly requested
5631 if test "x$enable_dependency_tracking" = xyes; then
5632 continue
5633 else
5634 break
5635 fi
5636 ;;
5637 none) break ;;
5638 esac
5639 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5640 # mode. It turns out that the SunPro C++ compiler does not properly
5641 # handle `-M -o', and we need to detect this.
5642 if depmode=$depmode \
5643 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5645 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5646 >/dev/null 2>conftest.err &&
5647 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5648 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5649 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5650 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5651 # icc doesn't choke on unknown options, it will just issue warnings
5652 # or remarks (even with -Werror). So we grep stderr for any message
5653 # that says an option was ignored or not supported.
5654 # When given -MP, icc 7.0 and 7.1 complain thusly:
5655 # icc: Command line warning: ignoring option '-M'; no argument required
5656 # The diagnosis changed in icc 8.0:
5657 # icc: Command line remark: option '-MP' not supported
5658 if (grep 'ignoring option' conftest.err ||
5659 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5660 am_cv_CXX_dependencies_compiler_type=$depmode
5661 break
5662 fi
5663 fi
5664 done
5665
5666 cd ..
5667 rm -rf conftest.dir
5668 else
5669 am_cv_CXX_dependencies_compiler_type=none
5670 fi
5671
5672 fi
5673 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5674 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5675 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5676
5677 if
5678 test "x$enable_dependency_tracking" != xno \
5679 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5680 am__fastdepCXX_TRUE=
5681 am__fastdepCXX_FALSE='#'
5682 else
5683 am__fastdepCXX_TRUE='#'
5684 am__fastdepCXX_FALSE=
5685 fi
5686
5687
5688
5689
5690 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5691 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5692 (test "X$CXX" != "Xg++"))) ; then
5693 ac_ext=cpp
5694 ac_cpp='$CXXCPP $CPPFLAGS'
5695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5698 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5699 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5700 if test -z "$CXXCPP"; then
5701 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 # Double quotes because CXXCPP needs to be expanded
5705 for CXXCPP in "$CXX -E" "/lib/cpp"
5706 do
5707 ac_preproc_ok=false
5708 for ac_cxx_preproc_warn_flag in '' yes
5709 do
5710 # Use a header file that comes with gcc, so configuring glibc
5711 # with a fresh cross-compiler works.
5712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5713 # <limits.h> exists even on freestanding compilers.
5714 # On the NeXT, cc -E runs the code through the compiler's parser,
5715 # not just through cpp. "Syntax error" is here to catch this case.
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #ifdef __STDC__
5723 # include <limits.h>
5724 #else
5725 # include <assert.h>
5726 #endif
5727 Syntax error
5728 _ACEOF
5729 if { (ac_try="$ac_cpp conftest.$ac_ext"
5730 case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } >/dev/null && {
5742 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5743 test ! -s conftest.err
5744 }; then
5745 :
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 # Broken: fails on valid input.
5751 continue
5752 fi
5753
5754 rm -f conftest.err conftest.$ac_ext
5755
5756 # OK, works on sane cases. Now check whether nonexistent headers
5757 # can be detected and how.
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <ac_nonexistent.h>
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 # Broken: success on invalid input.
5783 continue
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 # Passes both tests.
5789 ac_preproc_ok=:
5790 break
5791 fi
5792
5793 rm -f conftest.err conftest.$ac_ext
5794
5795 done
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5799 break
5800 fi
5801
5802 done
5803 ac_cv_prog_CXXCPP=$CXXCPP
5804
5805 fi
5806 CXXCPP=$ac_cv_prog_CXXCPP
5807 else
5808 ac_cv_prog_CXXCPP=$CXXCPP
5809 fi
5810 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5811 echo "${ECHO_T}$CXXCPP" >&6; }
5812 ac_preproc_ok=false
5813 for ac_cxx_preproc_warn_flag in '' yes
5814 do
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #ifdef __STDC__
5828 # include <limits.h>
5829 #else
5830 # include <assert.h>
5831 #endif
5832 Syntax error
5833 _ACEOF
5834 if { (ac_try="$ac_cpp conftest.$ac_ext"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } >/dev/null && {
5847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5848 test ! -s conftest.err
5849 }; then
5850 :
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 # Broken: fails on valid input.
5856 continue
5857 fi
5858
5859 rm -f conftest.err conftest.$ac_ext
5860
5861 # OK, works on sane cases. Now check whether nonexistent headers
5862 # can be detected and how.
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 #include <ac_nonexistent.h>
5870 _ACEOF
5871 if { (ac_try="$ac_cpp conftest.$ac_ext"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } >/dev/null && {
5884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5885 test ! -s conftest.err
5886 }; then
5887 # Broken: success on invalid input.
5888 continue
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 # Passes both tests.
5894 ac_preproc_ok=:
5895 break
5896 fi
5897
5898 rm -f conftest.err conftest.$ac_ext
5899
5900 done
5901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5902 rm -f conftest.err conftest.$ac_ext
5903 if $ac_preproc_ok; then
5904 :
5905 else
5906 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5907 See \`config.log' for more details." >&5
5908 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5909 See \`config.log' for more details." >&2;}
5910 { (exit 1); exit 1; }; }
5911 fi
5912
5913 ac_ext=cpp
5914 ac_cpp='$CXXCPP $CPPFLAGS'
5915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5918
5919 fi
5920
5921
5922 ac_ext=f
5923 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5924 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5926 if test -n "$ac_tool_prefix"; then
5927 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
5928 do
5929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_prog_F77+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 if test -n "$F77"; then
5937 ac_cv_prog_F77="$F77" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 F77=$ac_cv_prog_F77
5957 if test -n "$F77"; then
5958 { echo "$as_me:$LINENO: result: $F77" >&5
5959 echo "${ECHO_T}$F77" >&6; }
5960 else
5961 { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5963 fi
5964
5965
5966 test -n "$F77" && break
5967 done
5968 fi
5969 if test -z "$F77"; then
5970 ac_ct_F77=$F77
5971 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
5972 do
5973 # Extract the first word of "$ac_prog", so it can be a program name with args.
5974 set dummy $ac_prog; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 if test -n "$ac_ct_F77"; then
5981 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_F77="$ac_prog"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6001 if test -n "$ac_ct_F77"; then
6002 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6003 echo "${ECHO_T}$ac_ct_F77" >&6; }
6004 else
6005 { echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6; }
6007 fi
6008
6009
6010 test -n "$ac_ct_F77" && break
6011 done
6012
6013 if test "x$ac_ct_F77" = x; then
6014 F77=""
6015 else
6016 case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6019 whose name does not start with the host triplet. If you think this
6020 configuration is useful to you, please write to [email protected]." >&5
6021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6022 whose name does not start with the host triplet. If you think this
6023 configuration is useful to you, please write to [email protected]." >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 F77=$ac_ct_F77
6027 fi
6028 fi
6029
6030
6031 # Provide some information about the compiler.
6032 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6033 ac_compiler=`set X $ac_compile; echo $2`
6034 { (ac_try="$ac_compiler --version >&5"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compiler --version >&5") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }
6044 { (ac_try="$ac_compiler -v >&5"
6045 case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compiler -v >&5") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }
6054 { (ac_try="$ac_compiler -V >&5"
6055 case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compiler -V >&5") 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }
6064 rm -f a.out
6065
6066 # If we don't use `.F' as extension, the preprocessor is not run on the
6067 # input file. (Note that this only needs to work for GNU compilers.)
6068 ac_save_ext=$ac_ext
6069 ac_ext=F
6070 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6071 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6072 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 cat >conftest.$ac_ext <<_ACEOF
6076 program main
6077 #ifndef __GNUC__
6078 choke me
6079 #endif
6080
6081 end
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6085 case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_f77_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6100 ac_compiler_gnu=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 ac_compiler_gnu=no
6106 fi
6107
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6110
6111 fi
6112 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6113 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6114 ac_ext=$ac_save_ext
6115 ac_test_FFLAGS=${FFLAGS+set}
6116 ac_save_FFLAGS=$FFLAGS
6117 FFLAGS=
6118 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6119 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_f77_g+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 FFLAGS=-g
6124 cat >conftest.$ac_ext <<_ACEOF
6125 program main
6126
6127 end
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } && {
6143 test -z "$ac_f77_werror_flag" ||
6144 test ! -s conftest.err
6145 } && test -s conftest.$ac_objext; then
6146 ac_cv_prog_f77_g=yes
6147 else
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_cv_prog_f77_g=no
6152 fi
6153
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155
6156 fi
6157 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6158 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6159 if test "$ac_test_FFLAGS" = set; then
6160 FFLAGS=$ac_save_FFLAGS
6161 elif test $ac_cv_prog_f77_g = yes; then
6162 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6163 FFLAGS="-g -O2"
6164 else
6165 FFLAGS="-g"
6166 fi
6167 else
6168 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6169 FFLAGS="-O2"
6170 else
6171 FFLAGS=
6172 fi
6173 fi
6174
6175 G77=`test $ac_compiler_gnu = yes && echo yes`
6176 ac_ext=c
6177 ac_cpp='$CPP $CPPFLAGS'
6178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
6182
6183
6184 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6185 # find the maximum length of command line arguments
6186 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6187 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6188 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 i=0
6192 teststring="ABCD"
6193
6194 case $build_os in
6195 msdosdjgpp*)
6196 # On DJGPP, this test can blow up pretty badly due to problems in libc
6197 # (any single argument exceeding 2000 bytes causes a buffer overrun
6198 # during glob expansion). Even if it were fixed, the result of this
6199 # check would be larger than it should be.
6200 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6201 ;;
6202
6203 gnu*)
6204 # Under GNU Hurd, this test is not required because there is
6205 # no limit to the length of command line arguments.
6206 # Libtool will interpret -1 as no limit whatsoever
6207 lt_cv_sys_max_cmd_len=-1;
6208 ;;
6209
6210 cygwin* | mingw*)
6211 # On Win9x/ME, this test blows up -- it succeeds, but takes
6212 # about 5 minutes as the teststring grows exponentially.
6213 # Worse, since 9x/ME are not pre-emptively multitasking,
6214 # you end up with a "frozen" computer, even though with patience
6215 # the test eventually succeeds (with a max line length of 256k).
6216 # Instead, let's just punt: use the minimum linelength reported by
6217 # all of the supported platforms: 8192 (on NT/2K/XP).
6218 lt_cv_sys_max_cmd_len=8192;
6219 ;;
6220
6221 amigaos*)
6222 # On AmigaOS with pdksh, this test takes hours, literally.
6223 # So we just punt and use a minimum line length of 8192.
6224 lt_cv_sys_max_cmd_len=8192;
6225 ;;
6226
6227 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6228 # This has been around since 386BSD, at least. Likely further.
6229 if test -x /sbin/sysctl; then
6230 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6231 elif test -x /usr/sbin/sysctl; then
6232 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6233 else
6234 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6235 fi
6236 # And add a safety zone
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 ;;
6240
6241 interix*)
6242 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6243 lt_cv_sys_max_cmd_len=196608
6244 ;;
6245
6246 osf*)
6247 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6248 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6249 # nice to cause kernel panics so lets avoid the loop below.
6250 # First set a reasonable default.
6251 lt_cv_sys_max_cmd_len=16384
6252 #
6253 if test -x /sbin/sysconfig; then
6254 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6255 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6256 esac
6257 fi
6258 ;;
6259 sco3.2v5*)
6260 lt_cv_sys_max_cmd_len=102400
6261 ;;
6262 sysv5* | sco5v6* | sysv4.2uw2*)
6263 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6264 if test -n "$kargmax"; then
6265 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6266 else
6267 lt_cv_sys_max_cmd_len=32768
6268 fi
6269 ;;
6270 *)
6271 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6272 if test -n "$lt_cv_sys_max_cmd_len"; then
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6275 else
6276 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6277 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6278 = "XX$teststring") >/dev/null 2>&1 &&
6279 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6280 lt_cv_sys_max_cmd_len=$new_result &&
6281 test $i != 17 # 1/2 MB should be enough
6282 do
6283 i=`expr $i + 1`
6284 teststring=$teststring$teststring
6285 done
6286 teststring=
6287 # Add a significant safety factor because C++ compilers can tack on massive
6288 # amounts of additional arguments before passing them to the linker.
6289 # It appears as though 1/2 is a usable value.
6290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6291 fi
6292 ;;
6293 esac
6294
6295 fi
6296
6297 if test -n $lt_cv_sys_max_cmd_len ; then
6298 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6299 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6300 else
6301 { echo "$as_me:$LINENO: result: none" >&5
6302 echo "${ECHO_T}none" >&6; }
6303 fi
6304
6305
6306
6307
6308
6309 # Check for command to grab the raw symbol name followed by C symbol from nm.
6310 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6311 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6312 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315
6316 # These are sane defaults that work on at least a few old systems.
6317 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6318
6319 # Character class describing NM global symbol codes.
6320 symcode='[BCDEGRST]'
6321
6322 # Regexp to match symbols that can be accessed directly from C.
6323 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6324
6325 # Transform an extracted symbol line into a proper C declaration
6326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6327
6328 # Transform an extracted symbol line into symbol name and symbol address
6329 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'"
6330
6331 # Define system-specific variables.
6332 case $host_os in
6333 aix*)
6334 symcode='[BCDT]'
6335 ;;
6336 cygwin* | mingw* | pw32*)
6337 symcode='[ABCDGISTW]'
6338 ;;
6339 hpux*) # Its linker distinguishes data from code symbols
6340 if test "$host_cpu" = ia64; then
6341 symcode='[ABCDEGRST]'
6342 fi
6343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6344 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'"
6345 ;;
6346 linux* | k*bsd*-gnu)
6347 if test "$host_cpu" = ia64; then
6348 symcode='[ABCDGIRSTW]'
6349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6350 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'"
6351 fi
6352 ;;
6353 irix* | nonstopux*)
6354 symcode='[BCDEGRST]'
6355 ;;
6356 osf*)
6357 symcode='[BCDEGQRST]'
6358 ;;
6359 solaris*)
6360 symcode='[BDRT]'
6361 ;;
6362 sco3.2v5*)
6363 symcode='[DT]'
6364 ;;
6365 sysv4.2uw2*)
6366 symcode='[DT]'
6367 ;;
6368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6369 symcode='[ABDT]'
6370 ;;
6371 sysv4)
6372 symcode='[DFNSTU]'
6373 ;;
6374 esac
6375
6376 # Handle CRLF in mingw tool chain
6377 opt_cr=
6378 case $build_os in
6379 mingw*)
6380 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6381 ;;
6382 esac
6383
6384 # If we're using GNU nm, then use its standard symbol codes.
6385 case `$NM -V 2>&1` in
6386 *GNU* | *'with BFD'*)
6387 symcode='[ABCDGIRSTW]' ;;
6388 esac
6389
6390 # Try without a prefix undercore, then with it.
6391 for ac_symprfx in "" "_"; do
6392
6393 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6394 symxfrm="\\1 $ac_symprfx\\2 \\2"
6395
6396 # Write the raw and C identifiers.
6397 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6398
6399 # Check to see that the pipe works correctly.
6400 pipe_works=no
6401
6402 rm -f conftest*
6403 cat > conftest.$ac_ext <<EOF
6404 #ifdef __cplusplus
6405 extern "C" {
6406 #endif
6407 char nm_test_var;
6408 void nm_test_func(){}
6409 #ifdef __cplusplus
6410 }
6411 #endif
6412 int main(){nm_test_var='a';nm_test_func();return(0);}
6413 EOF
6414
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; then
6420 # Now try to grab the symbols.
6421 nlist=conftest.nm
6422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && test -s "$nlist"; then
6427 # Try sorting and uniquifying the output.
6428 if sort "$nlist" | uniq > "$nlist"T; then
6429 mv -f "$nlist"T "$nlist"
6430 else
6431 rm -f "$nlist"T
6432 fi
6433
6434 # Make sure that we snagged all the symbols we need.
6435 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6436 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6437 cat <<EOF > conftest.$ac_ext
6438 #ifdef __cplusplus
6439 extern "C" {
6440 #endif
6441
6442 EOF
6443 # Now generate the symbol file.
6444 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6445
6446 cat <<EOF >> conftest.$ac_ext
6447 #if defined (__STDC__) && __STDC__
6448 # define lt_ptr_t void *
6449 #else
6450 # define lt_ptr_t char *
6451 # define const
6452 #endif
6453
6454 /* The mapping between symbol names and symbols. */
6455 const struct {
6456 const char *name;
6457 lt_ptr_t address;
6458 }
6459 lt_preloaded_symbols[] =
6460 {
6461 EOF
6462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6463 cat <<\EOF >> conftest.$ac_ext
6464 {0, (lt_ptr_t) 0}
6465 };
6466
6467 #ifdef __cplusplus
6468 }
6469 #endif
6470 EOF
6471 # Now try linking the two files.
6472 mv conftest.$ac_objext conftstm.$ac_objext
6473 lt_save_LIBS="$LIBS"
6474 lt_save_CFLAGS="$CFLAGS"
6475 LIBS="conftstm.$ac_objext"
6476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6482 pipe_works=yes
6483 fi
6484 LIBS="$lt_save_LIBS"
6485 CFLAGS="$lt_save_CFLAGS"
6486 else
6487 echo "cannot find nm_test_func in $nlist" >&5
6488 fi
6489 else
6490 echo "cannot find nm_test_var in $nlist" >&5
6491 fi
6492 else
6493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6494 fi
6495 else
6496 echo "$progname: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6498 fi
6499 rm -rf conftest* conftst*
6500
6501 # Do not use the global_symbol_pipe unless it works.
6502 if test "$pipe_works" = yes; then
6503 break
6504 else
6505 lt_cv_sys_global_symbol_pipe=
6506 fi
6507 done
6508
6509 fi
6510
6511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6512 lt_cv_sys_global_symbol_to_cdecl=
6513 fi
6514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6515 { echo "$as_me:$LINENO: result: failed" >&5
6516 echo "${ECHO_T}failed" >&6; }
6517 else
6518 { echo "$as_me:$LINENO: result: ok" >&5
6519 echo "${ECHO_T}ok" >&6; }
6520 fi
6521
6522 { echo "$as_me:$LINENO: checking for objdir" >&5
6523 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6524 if test "${lt_cv_objdir+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 rm -f .libs 2>/dev/null
6528 mkdir .libs 2>/dev/null
6529 if test -d .libs; then
6530 lt_cv_objdir=.libs
6531 else
6532 # MS-DOS does not allow filenames that begin with a dot.
6533 lt_cv_objdir=_libs
6534 fi
6535 rmdir .libs 2>/dev/null
6536 fi
6537 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6538 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6539 objdir=$lt_cv_objdir
6540
6541
6542
6543
6544
6545 case $host_os in
6546 aix3*)
6547 # AIX sometimes has problems with the GCC collect2 program. For some
6548 # reason, if we set the COLLECT_NAMES environment variable, the problems
6549 # vanish in a puff of smoke.
6550 if test "X${COLLECT_NAMES+set}" != Xset; then
6551 COLLECT_NAMES=
6552 export COLLECT_NAMES
6553 fi
6554 ;;
6555 esac
6556
6557 # Sed substitution that helps us do robust quoting. It backslashifies
6558 # metacharacters that are still active within double-quoted strings.
6559 Xsed='sed -e 1s/^X//'
6560 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6561
6562 # Same as above, but do not quote variable references.
6563 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6564
6565 # Sed substitution to delay expansion of an escaped shell variable in a
6566 # double_quote_subst'ed string.
6567 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6568
6569 # Sed substitution to avoid accidental globbing in evaled expressions
6570 no_glob_subst='s/\*/\\\*/g'
6571
6572 # Constants:
6573 rm="rm -f"
6574
6575 # Global variables:
6576 default_ofile=libtool
6577 can_build_shared=yes
6578
6579 # All known linkers require a `.a' archive for static linking (except MSVC,
6580 # which needs '.lib').
6581 libext=a
6582 ltmain="$ac_aux_dir/ltmain.sh"
6583 ofile="$default_ofile"
6584 with_gnu_ld="$lt_cv_prog_gnu_ld"
6585
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}ar; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_prog_AR+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_AR="${ac_tool_prefix}ar"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 AR=$ac_cv_prog_AR
6615 if test -n "$AR"; then
6616 { echo "$as_me:$LINENO: result: $AR" >&5
6617 echo "${ECHO_T}$AR" >&6; }
6618 else
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6621 fi
6622
6623
6624 fi
6625 if test -z "$ac_cv_prog_AR"; then
6626 ac_ct_AR=$AR
6627 # Extract the first word of "ar", so it can be a program name with args.
6628 set dummy ar; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 if test -n "$ac_ct_AR"; then
6635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_ac_ct_AR="ar"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655 if test -n "$ac_ct_AR"; then
6656 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6657 echo "${ECHO_T}$ac_ct_AR" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663 if test "x$ac_ct_AR" = x; then
6664 AR="false"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to [email protected]." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to [email protected]." >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 AR=$ac_ct_AR
6677 fi
6678 else
6679 AR="$ac_cv_prog_AR"
6680 fi
6681
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_RANLIB+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 if test -n "$RANLIB"; then
6691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 RANLIB=$ac_cv_prog_RANLIB
6711 if test -n "$RANLIB"; then
6712 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6713 echo "${ECHO_T}$RANLIB" >&6; }
6714 else
6715 { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_RANLIB"; then
6722 ac_ct_RANLIB=$RANLIB
6723 # Extract the first word of "ranlib", so it can be a program name with args.
6724 set dummy ranlib; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 if test -n "$ac_ct_RANLIB"; then
6731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_RANLIB="ranlib"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6751 if test -n "$ac_ct_RANLIB"; then
6752 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6753 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6754 else
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759 if test "x$ac_ct_RANLIB" = x; then
6760 RANLIB=":"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet. If you think this
6766 configuration is useful to you, please write to [email protected]." >&5
6767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6768 whose name does not start with the host triplet. If you think this
6769 configuration is useful to you, please write to [email protected]." >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 RANLIB=$ac_ct_RANLIB
6773 fi
6774 else
6775 RANLIB="$ac_cv_prog_RANLIB"
6776 fi
6777
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}strip; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_STRIP+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786 if test -n "$STRIP"; then
6787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 STRIP=$ac_cv_prog_STRIP
6807 if test -n "$STRIP"; then
6808 { echo "$as_me:$LINENO: result: $STRIP" >&5
6809 echo "${ECHO_T}$STRIP" >&6; }
6810 else
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_STRIP"; then
6818 ac_ct_STRIP=$STRIP
6819 # Extract the first word of "strip", so it can be a program name with args.
6820 set dummy strip; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 if test -n "$ac_ct_STRIP"; then
6827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_STRIP="strip"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6847 if test -n "$ac_ct_STRIP"; then
6848 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6849 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6850 else
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6853 fi
6854
6855 if test "x$ac_ct_STRIP" = x; then
6856 STRIP=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet. If you think this
6862 configuration is useful to you, please write to [email protected]." >&5
6863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet. If you think this
6865 configuration is useful to you, please write to [email protected]." >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868 STRIP=$ac_ct_STRIP
6869 fi
6870 else
6871 STRIP="$ac_cv_prog_STRIP"
6872 fi
6873
6874
6875 old_CC="$CC"
6876 old_CFLAGS="$CFLAGS"
6877
6878 # Set sane defaults for various variables
6879 test -z "$AR" && AR=ar
6880 test -z "$AR_FLAGS" && AR_FLAGS=cru
6881 test -z "$AS" && AS=as
6882 test -z "$CC" && CC=cc
6883 test -z "$LTCC" && LTCC=$CC
6884 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6885 test -z "$DLLTOOL" && DLLTOOL=dlltool
6886 test -z "$LD" && LD=ld
6887 test -z "$LN_S" && LN_S="ln -s"
6888 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6889 test -z "$NM" && NM=nm
6890 test -z "$SED" && SED=sed
6891 test -z "$OBJDUMP" && OBJDUMP=objdump
6892 test -z "$RANLIB" && RANLIB=:
6893 test -z "$STRIP" && STRIP=:
6894 test -z "$ac_objext" && ac_objext=o
6895
6896 # Determine commands to create old-style static archives.
6897 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6898 old_postinstall_cmds='chmod 644 $oldlib'
6899 old_postuninstall_cmds=
6900
6901 if test -n "$RANLIB"; then
6902 case $host_os in
6903 openbsd*)
6904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6905 ;;
6906 *)
6907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6908 ;;
6909 esac
6910 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6911 fi
6912
6913 for cc_temp in $compiler""; do
6914 case $cc_temp in
6915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6917 \-*) ;;
6918 *) break;;
6919 esac
6920 done
6921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6922
6923
6924 # Only perform the check for file, if the check method requires it
6925 case $deplibs_check_method in
6926 file_magic*)
6927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6928 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6929 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $MAGIC_CMD in
6934 [\\/*] | ?:[\\/]*)
6935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936 ;;
6937 *)
6938 lt_save_MAGIC_CMD="$MAGIC_CMD"
6939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6941 for ac_dir in $ac_dummy; do
6942 IFS="$lt_save_ifs"
6943 test -z "$ac_dir" && ac_dir=.
6944 if test -f $ac_dir/${ac_tool_prefix}file; then
6945 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6946 if test -n "$file_magic_test_file"; then
6947 case $deplibs_check_method in
6948 "file_magic "*)
6949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6952 $EGREP "$file_magic_regex" > /dev/null; then
6953 :
6954 else
6955 cat <<EOF 1>&2
6956
6957 *** Warning: the command libtool uses to detect shared libraries,
6958 *** $file_magic_cmd, produces output that libtool cannot recognize.
6959 *** The result is that libtool may fail to recognize shared libraries
6960 *** as such. This will affect the creation of libtool libraries that
6961 *** depend on shared libraries, but programs linked with such libtool
6962 *** libraries will work regardless of this problem. Nevertheless, you
6963 *** may want to report the problem to your system manager and/or to
6964 *** [email protected]
6965
6966 EOF
6967 fi ;;
6968 esac
6969 fi
6970 break
6971 fi
6972 done
6973 IFS="$lt_save_ifs"
6974 MAGIC_CMD="$lt_save_MAGIC_CMD"
6975 ;;
6976 esac
6977 fi
6978
6979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980 if test -n "$MAGIC_CMD"; then
6981 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6982 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 fi
6987
6988 if test -z "$lt_cv_path_MAGIC_CMD"; then
6989 if test -n "$ac_tool_prefix"; then
6990 { echo "$as_me:$LINENO: checking for file" >&5
6991 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6992 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 case $MAGIC_CMD in
6996 [\\/*] | ?:[\\/]*)
6997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6998 ;;
6999 *)
7000 lt_save_MAGIC_CMD="$MAGIC_CMD"
7001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7003 for ac_dir in $ac_dummy; do
7004 IFS="$lt_save_ifs"
7005 test -z "$ac_dir" && ac_dir=.
7006 if test -f $ac_dir/file; then
7007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7008 if test -n "$file_magic_test_file"; then
7009 case $deplibs_check_method in
7010 "file_magic "*)
7011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7014 $EGREP "$file_magic_regex" > /dev/null; then
7015 :
7016 else
7017 cat <<EOF 1>&2
7018
7019 *** Warning: the command libtool uses to detect shared libraries,
7020 *** $file_magic_cmd, produces output that libtool cannot recognize.
7021 *** The result is that libtool may fail to recognize shared libraries
7022 *** as such. This will affect the creation of libtool libraries that
7023 *** depend on shared libraries, but programs linked with such libtool
7024 *** libraries will work regardless of this problem. Nevertheless, you
7025 *** may want to report the problem to your system manager and/or to
7026 *** [email protected]
7027
7028 EOF
7029 fi ;;
7030 esac
7031 fi
7032 break
7033 fi
7034 done
7035 IFS="$lt_save_ifs"
7036 MAGIC_CMD="$lt_save_MAGIC_CMD"
7037 ;;
7038 esac
7039 fi
7040
7041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7042 if test -n "$MAGIC_CMD"; then
7043 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7044 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7045 else
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7048 fi
7049
7050 else
7051 MAGIC_CMD=:
7052 fi
7053 fi
7054
7055 fi
7056 ;;
7057 esac
7058
7059
7060 case $host_os in
7061 rhapsody* | darwin*)
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 if test -n "$DSYMUTIL"; then
7071 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7091 if test -n "$DSYMUTIL"; then
7092 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7093 echo "${ECHO_T}$DSYMUTIL" >&6; }
7094 else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_DSYMUTIL"; then
7102 ac_ct_DSYMUTIL=$DSYMUTIL
7103 # Extract the first word of "dsymutil", so it can be a program name with args.
7104 set dummy dsymutil; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7131 if test -n "$ac_ct_DSYMUTIL"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7133 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139 if test "x$ac_ct_DSYMUTIL" = x; then
7140 DSYMUTIL=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet. If you think this
7146 configuration is useful to you, please write to [email protected]." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to [email protected]." >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 DSYMUTIL=$ac_ct_DSYMUTIL
7153 fi
7154 else
7155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7156 fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 if test -n "$NMEDIT"; then
7167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 NMEDIT=$ac_cv_prog_NMEDIT
7187 if test -n "$NMEDIT"; then
7188 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7189 echo "${ECHO_T}$NMEDIT" >&6; }
7190 else
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_NMEDIT"; then
7198 ac_ct_NMEDIT=$NMEDIT
7199 # Extract the first word of "nmedit", so it can be a program name with args.
7200 set dummy nmedit; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 if test -n "$ac_ct_NMEDIT"; then
7207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7227 if test -n "$ac_ct_NMEDIT"; then
7228 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7229 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7230 else
7231 { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7233 fi
7234
7235 if test "x$ac_ct_NMEDIT" = x; then
7236 NMEDIT=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7241 whose name does not start with the host triplet. If you think this
7242 configuration is useful to you, please write to [email protected]." >&5
7243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7244 whose name does not start with the host triplet. If you think this
7245 configuration is useful to you, please write to [email protected]." >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248 NMEDIT=$ac_ct_NMEDIT
7249 fi
7250 else
7251 NMEDIT="$ac_cv_prog_NMEDIT"
7252 fi
7253
7254
7255 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7256 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7257 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 lt_cv_apple_cc_single_mod=no
7261 if test -z "${LT_MULTI_MODULE}"; then
7262 # By default we will add the -single_module flag. You can override
7263 # by either setting the environment variable LT_MULTI_MODULE
7264 # non-empty at configure time, or by adding -multi_module to the
7265 # link flags.
7266 echo "int foo(void){return 1;}" > conftest.c
7267 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7268 -dynamiclib ${wl}-single_module conftest.c
7269 if test -f libconftest.dylib; then
7270 lt_cv_apple_cc_single_mod=yes
7271 rm -rf libconftest.dylib*
7272 fi
7273 rm conftest.c
7274 fi
7275 fi
7276 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7277 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7278 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7279 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7280 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 lt_cv_ld_exported_symbols_list=no
7284 save_LDFLAGS=$LDFLAGS
7285 echo "_main" > conftest.sym
7286 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293
7294 int
7295 main ()
7296 {
7297
7298 ;
7299 return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (ac_try="$ac_link"
7304 case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307 esac
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_link") 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest$ac_exeext &&
7319 $as_test_x conftest$ac_exeext; then
7320 lt_cv_ld_exported_symbols_list=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 lt_cv_ld_exported_symbols_list=no
7326 fi
7327
7328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LDFLAGS="$save_LDFLAGS"
7331
7332 fi
7333 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7334 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7335 case $host_os in
7336 rhapsody* | darwin1.[0123])
7337 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7338 darwin1.*)
7339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7340 darwin*)
7341 # if running on 10.5 or later, the deployment target defaults
7342 # to the OS version, if on x86, and 10.4, the deployment
7343 # target defaults to 10.4. Don't you love it?
7344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7345 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7346 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7347 10.[012]*)
7348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7349 10.*)
7350 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7351 esac
7352 ;;
7353 esac
7354 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7355 _lt_dar_single_mod='$single_module'
7356 fi
7357 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7358 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7359 else
7360 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7361 fi
7362 if test "$DSYMUTIL" != ":"; then
7363 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7364 else
7365 _lt_dsymutil=
7366 fi
7367 ;;
7368 esac
7369
7370
7371 enable_dlopen=no
7372 enable_win32_dll=no
7373
7374 # Check whether --enable-libtool-lock was given.
7375 if test "${enable_libtool_lock+set}" = set; then
7376 enableval=$enable_libtool_lock;
7377 fi
7378
7379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7380
7381
7382 # Check whether --with-pic was given.
7383 if test "${with_pic+set}" = set; then
7384 withval=$with_pic; pic_mode="$withval"
7385 else
7386 pic_mode=default
7387 fi
7388
7389 test -z "$pic_mode" && pic_mode=default
7390
7391 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7392 #
7393 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7394 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7395 # calls AC_LIBTOOL_CONFIG and creates libtool.
7396 #
7397 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7398 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7399 if test "x$ltmain" = "x" ; then
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7402 { { echo "$as_me:$LINENO: error:
7403
7404 *** [Gentoo] sanity check failed! ***
7405 *** \$ltmain is not defined, please check the patch for consistency! ***
7406 " >&5
7407 echo "$as_me: error:
7408
7409 *** [Gentoo] sanity check failed! ***
7410 *** \$ltmain is not defined, please check the patch for consistency! ***
7411 " >&2;}
7412 { (exit 1); exit 1; }; }
7413 fi
7414 gentoo_lt_version="1.5.26"
7415 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7416 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 { { echo "$as_me:$LINENO: error:
7420
7421 *** [Gentoo] sanity check failed! ***
7422 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7423 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7424
7425 Please run:
7426
7427 libtoolize --copy --force
7428
7429 if appropriate, please contact the maintainer of this
7430 package (or your distribution) for help.
7431 " >&5
7432 echo "$as_me: error:
7433
7434 *** [Gentoo] sanity check failed! ***
7435 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7436 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7437
7438 Please run:
7439
7440 libtoolize --copy --force
7441
7442 if appropriate, please contact the maintainer of this
7443 package (or your distribution) for help.
7444 " >&2;}
7445 { (exit 1); exit 1; }; }
7446 else
7447 { echo "$as_me:$LINENO: result: yes" >&5
7448 echo "${ECHO_T}yes" >&6; }
7449 fi
7450
7451
7452 # Use C for the default configuration in the libtool script
7453 tagname=
7454 lt_save_CC="$CC"
7455 ac_ext=c
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461
7462 # Source file extension for C test sources.
7463 ac_ext=c
7464
7465 # Object file extension for compiled C test sources.
7466 objext=o
7467 objext=$objext
7468
7469 # Code to be used in simple compile tests
7470 lt_simple_compile_test_code="int some_variable = 0;"
7471
7472 # Code to be used in simple link tests
7473 lt_simple_link_test_code='int main(){return(0);}'
7474
7475
7476 # If no C compiler was specified, use CC.
7477 LTCC=${LTCC-"$CC"}
7478
7479 # If no C compiler flags were specified, use CFLAGS.
7480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7481
7482 # Allow CC to be a program name with arguments.
7483 compiler=$CC
7484
7485
7486 # save warnings/boilerplate of simple test code
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490 _lt_compiler_boilerplate=`cat conftest.err`
7491 $rm conftest*
7492
7493 ac_outfile=conftest.$ac_objext
7494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7496 _lt_linker_boilerplate=`cat conftest.err`
7497 $rm -r conftest*
7498
7499
7500
7501 lt_prog_compiler_no_builtin_flag=
7502
7503 if test "$GCC" = yes; then
7504 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7505
7506
7507 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7508 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7509 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 lt_cv_prog_compiler_rtti_exceptions=no
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7515 lt_compiler_flag="-fno-rtti -fno-exceptions"
7516 # Insert the option either (1) after the last *FLAGS variable, or
7517 # (2) before a word containing "conftest.", or (3) at the end.
7518 # Note that $ac_compile itself does not contain backslashes and begins
7519 # with a dollar sign (not a hyphen), so the echo should work correctly.
7520 # The option is referenced via a variable to avoid confusing sed.
7521 lt_compile=`echo "$ac_compile" | $SED \
7522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7524 -e 's:$: $lt_compiler_flag:'`
7525 (eval echo "\"\$as_me:7525: $lt_compile\"" >&5)
7526 (eval "$lt_compile" 2>conftest.err)
7527 ac_status=$?
7528 cat conftest.err >&5
7529 echo "$as_me:7529: \$? = $ac_status" >&5
7530 if (exit $ac_status) && test -s "$ac_outfile"; then
7531 # The compiler can only warn and ignore the option if not recognized
7532 # So say no if there are warnings other than the usual output.
7533 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7536 lt_cv_prog_compiler_rtti_exceptions=yes
7537 fi
7538 fi
7539 $rm conftest*
7540
7541 fi
7542 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7543 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7544
7545 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7546 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7547 else
7548 :
7549 fi
7550
7551 fi
7552
7553 lt_prog_compiler_wl=
7554 lt_prog_compiler_pic=
7555 lt_prog_compiler_static=
7556
7557 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7558 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7559
7560 if test "$GCC" = yes; then
7561 lt_prog_compiler_wl='-Wl,'
7562 lt_prog_compiler_static='-static'
7563
7564 case $host_os in
7565 aix*)
7566 # All AIX code is PIC.
7567 if test "$host_cpu" = ia64; then
7568 # AIX 5 now supports IA64 processor
7569 lt_prog_compiler_static='-Bstatic'
7570 fi
7571 ;;
7572
7573 amigaos*)
7574 # FIXME: we need at least 68020 code to build shared libraries, but
7575 # adding the `-m68020' flag to GCC prevents building anything better,
7576 # like `-m68040'.
7577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7578 ;;
7579
7580 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7581 # PIC is the default for these OSes.
7582 ;;
7583
7584 mingw* | cygwin* | pw32* | os2*)
7585 # This hack is so that the source file can tell whether it is being
7586 # built for inclusion in a dll (and should export symbols for example).
7587 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7588 # (--disable-auto-import) libraries
7589 lt_prog_compiler_pic='-DDLL_EXPORT'
7590 ;;
7591
7592 darwin* | rhapsody*)
7593 # PIC is the default on this platform
7594 # Common symbols not allowed in MH_DYLIB files
7595 lt_prog_compiler_pic='-fno-common'
7596 ;;
7597
7598 interix[3-9]*)
7599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7600 # Instead, we relocate shared libraries at runtime.
7601 ;;
7602
7603 msdosdjgpp*)
7604 # Just because we use GCC doesn't mean we suddenly get shared libraries
7605 # on systems that don't support them.
7606 lt_prog_compiler_can_build_shared=no
7607 enable_shared=no
7608 ;;
7609
7610 sysv4*MP*)
7611 if test -d /usr/nec; then
7612 lt_prog_compiler_pic=-Kconform_pic
7613 fi
7614 ;;
7615
7616 hpux*)
7617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7618 # not for PA HP-UX.
7619 case $host_cpu in
7620 hppa*64*|ia64*)
7621 # +Z the default
7622 ;;
7623 *)
7624 lt_prog_compiler_pic='-fPIC'
7625 ;;
7626 esac
7627 ;;
7628
7629 *)
7630 lt_prog_compiler_pic='-fPIC'
7631 ;;
7632 esac
7633 else
7634 # PORTME Check for flag to pass linker flags through the system compiler.
7635 case $host_os in
7636 aix*)
7637 lt_prog_compiler_wl='-Wl,'
7638 if test "$host_cpu" = ia64; then
7639 # AIX 5 now supports IA64 processor
7640 lt_prog_compiler_static='-Bstatic'
7641 else
7642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7643 fi
7644 ;;
7645 darwin*)
7646 # PIC is the default on this platform
7647 # Common symbols not allowed in MH_DYLIB files
7648 case $cc_basename in
7649 xlc*)
7650 lt_prog_compiler_pic='-qnocommon'
7651 lt_prog_compiler_wl='-Wl,'
7652 ;;
7653 esac
7654 ;;
7655
7656 mingw* | cygwin* | pw32* | os2*)
7657 # This hack is so that the source file can tell whether it is being
7658 # built for inclusion in a dll (and should export symbols for example).
7659 lt_prog_compiler_pic='-DDLL_EXPORT'
7660 ;;
7661
7662 hpux9* | hpux10* | hpux11*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7665 # not for PA HP-UX.
7666 case $host_cpu in
7667 hppa*64*|ia64*)
7668 # +Z the default
7669 ;;
7670 *)
7671 lt_prog_compiler_pic='+Z'
7672 ;;
7673 esac
7674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7675 lt_prog_compiler_static='${wl}-a ${wl}archive'
7676 ;;
7677
7678 irix5* | irix6* | nonstopux*)
7679 lt_prog_compiler_wl='-Wl,'
7680 # PIC (with -KPIC) is the default.
7681 lt_prog_compiler_static='-non_shared'
7682 ;;
7683
7684 newsos6)
7685 lt_prog_compiler_pic='-KPIC'
7686 lt_prog_compiler_static='-Bstatic'
7687 ;;
7688
7689 linux* | k*bsd*-gnu)
7690 case $cc_basename in
7691 icc* | ecc*)
7692 lt_prog_compiler_wl='-Wl,'
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-static'
7695 ;;
7696 pgcc* | pgf77* | pgf90* | pgf95*)
7697 # Portland Group compilers (*not* the Pentium gcc compiler,
7698 # which looks to be a dead project)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='-fpic'
7701 lt_prog_compiler_static='-Bstatic'
7702 ;;
7703 ccc*)
7704 lt_prog_compiler_wl='-Wl,'
7705 # All Alpha code is PIC.
7706 lt_prog_compiler_static='-non_shared'
7707 ;;
7708 *)
7709 case `$CC -V 2>&1 | sed 5q` in
7710 *Sun\ C*)
7711 # Sun C 5.9
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-Bstatic'
7714 lt_prog_compiler_wl='-Wl,'
7715 ;;
7716 *Sun\ F*)
7717 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7718 lt_prog_compiler_pic='-KPIC'
7719 lt_prog_compiler_static='-Bstatic'
7720 lt_prog_compiler_wl=''
7721 ;;
7722 esac
7723 ;;
7724 esac
7725 ;;
7726
7727 osf3* | osf4* | osf5*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # All OSF/1 code is PIC.
7730 lt_prog_compiler_static='-non_shared'
7731 ;;
7732
7733 rdos*)
7734 lt_prog_compiler_static='-non_shared'
7735 ;;
7736
7737 solaris*)
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 case $cc_basename in
7741 f77* | f90* | f95*)
7742 lt_prog_compiler_wl='-Qoption ld ';;
7743 *)
7744 lt_prog_compiler_wl='-Wl,';;
7745 esac
7746 ;;
7747
7748 sunos4*)
7749 lt_prog_compiler_wl='-Qoption ld '
7750 lt_prog_compiler_pic='-PIC'
7751 lt_prog_compiler_static='-Bstatic'
7752 ;;
7753
7754 sysv4 | sysv4.2uw2* | sysv4.3*)
7755 lt_prog_compiler_wl='-Wl,'
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7758 ;;
7759
7760 sysv4*MP*)
7761 if test -d /usr/nec ;then
7762 lt_prog_compiler_pic='-Kconform_pic'
7763 lt_prog_compiler_static='-Bstatic'
7764 fi
7765 ;;
7766
7767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-Bstatic'
7771 ;;
7772
7773 unicos*)
7774 lt_prog_compiler_wl='-Wl,'
7775 lt_prog_compiler_can_build_shared=no
7776 ;;
7777
7778 uts4*)
7779 lt_prog_compiler_pic='-pic'
7780 lt_prog_compiler_static='-Bstatic'
7781 ;;
7782
7783 *)
7784 lt_prog_compiler_can_build_shared=no
7785 ;;
7786 esac
7787 fi
7788
7789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7790 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7791
7792 #
7793 # Check to make sure the PIC flag actually works.
7794 #
7795 if test -n "$lt_prog_compiler_pic"; then
7796
7797 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7798 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7799 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 lt_cv_prog_compiler_pic_works=no
7803 ac_outfile=conftest.$ac_objext
7804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7806 # Insert the option either (1) after the last *FLAGS variable, or
7807 # (2) before a word containing "conftest.", or (3) at the end.
7808 # Note that $ac_compile itself does not contain backslashes and begins
7809 # with a dollar sign (not a hyphen), so the echo should work correctly.
7810 # The option is referenced via a variable to avoid confusing sed.
7811 lt_compile=`echo "$ac_compile" | $SED \
7812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7814 -e 's:$: $lt_compiler_flag:'`
7815 (eval echo "\"\$as_me:7815: $lt_compile\"" >&5)
7816 (eval "$lt_compile" 2>conftest.err)
7817 ac_status=$?
7818 cat conftest.err >&5
7819 echo "$as_me:7819: \$? = $ac_status" >&5
7820 if (exit $ac_status) && test -s "$ac_outfile"; then
7821 # The compiler can only warn and ignore the option if not recognized
7822 # So say no if there are warnings other than the usual output.
7823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7826 lt_cv_prog_compiler_pic_works=yes
7827 fi
7828 fi
7829 $rm conftest*
7830
7831 fi
7832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7833 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7834
7835 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7836 case $lt_prog_compiler_pic in
7837 "" | " "*) ;;
7838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7839 esac
7840 else
7841 lt_prog_compiler_pic=
7842 lt_prog_compiler_can_build_shared=no
7843 fi
7844
7845 fi
7846 case $host_os in
7847 # For platforms which do not support PIC, -DPIC is meaningless:
7848 *djgpp*)
7849 lt_prog_compiler_pic=
7850 ;;
7851 *)
7852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853 ;;
7854 esac
7855
7856 #
7857 # Check to make sure the static flag actually works.
7858 #
7859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7860 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7861 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7862 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 lt_cv_prog_compiler_static_works=no
7866 save_LDFLAGS="$LDFLAGS"
7867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7870 # The linker can only warn and ignore the option if not recognized
7871 # So say no if there are warnings
7872 if test -s conftest.err; then
7873 # Append any errors to the config.log.
7874 cat conftest.err 1>&5
7875 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877 if diff conftest.exp conftest.er2 >/dev/null; then
7878 lt_cv_prog_compiler_static_works=yes
7879 fi
7880 else
7881 lt_cv_prog_compiler_static_works=yes
7882 fi
7883 fi
7884 $rm -r conftest*
7885 LDFLAGS="$save_LDFLAGS"
7886
7887 fi
7888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7889 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7890
7891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7892 :
7893 else
7894 lt_prog_compiler_static=
7895 fi
7896
7897
7898 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7899 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7900 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903 lt_cv_prog_compiler_c_o=no
7904 $rm -r conftest 2>/dev/null
7905 mkdir conftest
7906 cd conftest
7907 mkdir out
7908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7909
7910 lt_compiler_flag="-o out/conftest2.$ac_objext"
7911 # Insert the option either (1) after the last *FLAGS variable, or
7912 # (2) before a word containing "conftest.", or (3) at the end.
7913 # Note that $ac_compile itself does not contain backslashes and begins
7914 # with a dollar sign (not a hyphen), so the echo should work correctly.
7915 lt_compile=`echo "$ac_compile" | $SED \
7916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918 -e 's:$: $lt_compiler_flag:'`
7919 (eval echo "\"\$as_me:7919: $lt_compile\"" >&5)
7920 (eval "$lt_compile" 2>out/conftest.err)
7921 ac_status=$?
7922 cat out/conftest.err >&5
7923 echo "$as_me:7923: \$? = $ac_status" >&5
7924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7925 then
7926 # The compiler can only warn and ignore the option if not recognized
7927 # So say no if there are warnings
7928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7931 lt_cv_prog_compiler_c_o=yes
7932 fi
7933 fi
7934 chmod u+w . 2>&5
7935 $rm conftest*
7936 # SGI C++ compiler will create directory out/ii_files/ for
7937 # template instantiation
7938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7939 $rm out/* && rmdir out
7940 cd ..
7941 rmdir conftest
7942 $rm conftest*
7943
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7946 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7947
7948
7949 hard_links="nottested"
7950 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7951 # do not overwrite the value of need_locks provided by the user
7952 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7954 hard_links=yes
7955 $rm conftest*
7956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7957 touch conftest.a
7958 ln conftest.a conftest.b 2>&5 || hard_links=no
7959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7960 { echo "$as_me:$LINENO: result: $hard_links" >&5
7961 echo "${ECHO_T}$hard_links" >&6; }
7962 if test "$hard_links" = no; then
7963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7965 need_locks=warn
7966 fi
7967 else
7968 need_locks=no
7969 fi
7970
7971 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7972 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7973
7974 runpath_var=
7975 allow_undefined_flag=
7976 enable_shared_with_static_runtimes=no
7977 archive_cmds=
7978 archive_expsym_cmds=
7979 old_archive_From_new_cmds=
7980 old_archive_from_expsyms_cmds=
7981 export_dynamic_flag_spec=
7982 whole_archive_flag_spec=
7983 thread_safe_flag_spec=
7984 hardcode_libdir_flag_spec=
7985 hardcode_libdir_flag_spec_ld=
7986 hardcode_libdir_separator=
7987 hardcode_direct=no
7988 hardcode_minus_L=no
7989 hardcode_shlibpath_var=unsupported
7990 link_all_deplibs=unknown
7991 hardcode_automatic=no
7992 module_cmds=
7993 module_expsym_cmds=
7994 always_export_symbols=no
7995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7996 # include_expsyms should be a list of space-separated symbols to be *always*
7997 # included in the symbol list
7998 include_expsyms=
7999 # exclude_expsyms can be an extended regexp of symbols to exclude
8000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8002 # as well as any symbol that contains `d'.
8003 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8005 # platforms (ab)use it in PIC code, but their linkers get confused if
8006 # the symbol is explicitly referenced. Since portable code cannot
8007 # rely on this symbol name, it's probably fine to never include it in
8008 # preloaded symbol tables.
8009 # Exclude shared library initialization/finalization symbols.
8010 extract_expsyms_cmds=
8011 # Just being paranoid about ensuring that cc_basename is set.
8012 for cc_temp in $compiler""; do
8013 case $cc_temp in
8014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8016 \-*) ;;
8017 *) break;;
8018 esac
8019 done
8020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8021
8022 case $host_os in
8023 cygwin* | mingw* | pw32*)
8024 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8025 # When not using gcc, we currently assume that we are using
8026 # Microsoft Visual C++.
8027 if test "$GCC" != yes; then
8028 with_gnu_ld=no
8029 fi
8030 ;;
8031 interix*)
8032 # we just hope/assume this is gcc and not c89 (= MSVC++)
8033 with_gnu_ld=yes
8034 ;;
8035 openbsd*)
8036 with_gnu_ld=no
8037 ;;
8038 esac
8039
8040 ld_shlibs=yes
8041 if test "$with_gnu_ld" = yes; then
8042 # If archive_cmds runs LD, not CC, wlarc should be empty
8043 wlarc='${wl}'
8044
8045 # Set some defaults for GNU ld with shared library support. These
8046 # are reset later if shared libraries are not supported. Putting them
8047 # here allows them to be overridden if necessary.
8048 runpath_var=LD_RUN_PATH
8049 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8050 export_dynamic_flag_spec='${wl}--export-dynamic'
8051 # ancient GNU ld didn't support --whole-archive et. al.
8052 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8053 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8054 else
8055 whole_archive_flag_spec=
8056 fi
8057 supports_anon_versioning=no
8058 case `$LD -v 2>/dev/null` in
8059 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8060 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8061 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8062 *\ 2.11.*) ;; # other 2.11 versions
8063 *) supports_anon_versioning=yes ;;
8064 esac
8065
8066 # See if GNU ld supports shared libraries.
8067 case $host_os in
8068 aix[3-9]*)
8069 # On AIX/PPC, the GNU linker is very broken
8070 if test "$host_cpu" != ia64; then
8071 ld_shlibs=no
8072 cat <<EOF 1>&2
8073
8074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8075 *** to be unable to reliably create shared libraries on AIX.
8076 *** Therefore, libtool is disabling shared libraries support. If you
8077 *** really care for shared libraries, you may want to modify your PATH
8078 *** so that a non-GNU linker is found, and then restart.
8079
8080 EOF
8081 fi
8082 ;;
8083
8084 amigaos*)
8085 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)'
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_minus_L=yes
8088
8089 # Samuel A. Falvo II <[email protected]> reports
8090 # that the semantics of dynamic libraries on AmigaOS, at least up
8091 # to version 4, is to share data among multiple programs linked
8092 # with the same dynamic library. Since this doesn't match the
8093 # behavior of shared libraries on other platforms, we can't use
8094 # them.
8095 ld_shlibs=no
8096 ;;
8097
8098 beos*)
8099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8100 allow_undefined_flag=unsupported
8101 # Joseph Beckenbach <[email protected]> says some releases of gcc
8102 # support --undefined. This deserves some investigation. FIXME
8103 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104 else
8105 ld_shlibs=no
8106 fi
8107 ;;
8108
8109 cygwin* | mingw* | pw32*)
8110 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8111 # as there is no search path for DLLs.
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 allow_undefined_flag=unsupported
8114 always_export_symbols=no
8115 enable_shared_with_static_runtimes=yes
8116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8117
8118 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8120 # If the export-symbols file already is a .def file (1st line
8121 # is EXPORTS), use it as is; otherwise, prepend...
8122 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8123 cp $export_symbols $output_objdir/$soname.def;
8124 else
8125 echo EXPORTS > $output_objdir/$soname.def;
8126 cat $export_symbols >> $output_objdir/$soname.def;
8127 fi~
8128 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8129 else
8130 ld_shlibs=no
8131 fi
8132 ;;
8133
8134 interix[3-9]*)
8135 hardcode_direct=no
8136 hardcode_shlibpath_var=no
8137 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8138 export_dynamic_flag_spec='${wl}-E'
8139 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8140 # Instead, shared libraries are loaded at an image base (0x10000000 by
8141 # default) and relocated if they conflict, which is a slow very memory
8142 # consuming and fragmenting process. To avoid this, we pick a random,
8143 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8144 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8146 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'
8147 ;;
8148
8149 gnu* | linux* | k*bsd*-gnu)
8150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8151 tmp_addflag=
8152 case $cc_basename,$host_cpu in
8153 pgcc*) # Portland Group C compiler
8154 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'
8155 tmp_addflag=' $pic_flag'
8156 ;;
8157 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8158 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'
8159 tmp_addflag=' $pic_flag -Mnomain' ;;
8160 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8161 tmp_addflag=' -i_dynamic' ;;
8162 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8163 tmp_addflag=' -i_dynamic -nofor_main' ;;
8164 ifc* | ifort*) # Intel Fortran compiler
8165 tmp_addflag=' -nofor_main' ;;
8166 esac
8167 case `$CC -V 2>&1 | sed 5q` in
8168 *Sun\ C*) # Sun C 5.9
8169 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8170 tmp_sharedflag='-G' ;;
8171 *Sun\ F*) # Sun Fortran 8.3
8172 tmp_sharedflag='-G' ;;
8173 *)
8174 tmp_sharedflag='-shared' ;;
8175 esac
8176 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177
8178 if test $supports_anon_versioning = yes; then
8179 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8181 $echo "local: *; };" >> $output_objdir/$libname.ver~
8182 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8183 fi
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 netbsd*)
8190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8191 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8192 wlarc=
8193 else
8194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8196 fi
8197 ;;
8198
8199 solaris*)
8200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8201 ld_shlibs=no
8202 cat <<EOF 1>&2
8203
8204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8205 *** create shared libraries on Solaris systems. Therefore, libtool
8206 *** is disabling shared libraries support. We urge you to upgrade GNU
8207 *** binutils to release 2.9.1 or newer. Another option is to modify
8208 *** your PATH or compiler configuration so that the native linker is
8209 *** used, and then restart.
8210
8211 EOF
8212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215 else
8216 ld_shlibs=no
8217 fi
8218 ;;
8219
8220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8221 case `$LD -v 2>&1` in
8222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8223 ld_shlibs=no
8224 cat <<_LT_EOF 1>&2
8225
8226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8227 *** reliably create shared libraries on SCO systems. Therefore, libtool
8228 *** is disabling shared libraries support. We urge you to upgrade GNU
8229 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8230 *** your PATH or compiler configuration so that the native linker is
8231 *** used, and then restart.
8232
8233 _LT_EOF
8234 ;;
8235 *)
8236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8237 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8240 else
8241 ld_shlibs=no
8242 fi
8243 ;;
8244 esac
8245 ;;
8246
8247 sunos4*)
8248 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8249 wlarc=
8250 hardcode_direct=yes
8251 hardcode_shlibpath_var=no
8252 ;;
8253
8254 *)
8255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8258 else
8259 ld_shlibs=no
8260 fi
8261 ;;
8262 esac
8263
8264 if test "$ld_shlibs" = no; then
8265 runpath_var=
8266 hardcode_libdir_flag_spec=
8267 export_dynamic_flag_spec=
8268 whole_archive_flag_spec=
8269 fi
8270 else
8271 # PORTME fill in a description of your system's linker (not GNU ld)
8272 case $host_os in
8273 aix3*)
8274 allow_undefined_flag=unsupported
8275 always_export_symbols=yes
8276 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'
8277 # Note: this linker hardcodes the directories in LIBPATH if there
8278 # are no directories specified by -L.
8279 hardcode_minus_L=yes
8280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8281 # Neither direct hardcoding nor static linking is supported with a
8282 # broken collect2.
8283 hardcode_direct=unsupported
8284 fi
8285 ;;
8286
8287 aix[4-9]*)
8288 if test "$host_cpu" = ia64; then
8289 # On IA64, the linker does run time linking by default, so we don't
8290 # have to do anything special.
8291 aix_use_runtimelinking=no
8292 exp_sym_flag='-Bexport'
8293 no_entry_flag=""
8294 else
8295 # If we're using GNU nm, then we don't want the "-C" option.
8296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8298 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'
8299 else
8300 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'
8301 fi
8302 aix_use_runtimelinking=no
8303
8304 # Test if we are trying to use run time linking or normal
8305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8306 # need to do runtime linking.
8307 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8308 for ld_flag in $LDFLAGS; do
8309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8310 aix_use_runtimelinking=yes
8311 break
8312 fi
8313 done
8314 ;;
8315 esac
8316
8317 exp_sym_flag='-bexport'
8318 no_entry_flag='-bnoentry'
8319 fi
8320
8321 # When large executables or shared objects are built, AIX ld can
8322 # have problems creating the table of contents. If linking a library
8323 # or program results in "error TOC overflow" add -mminimal-toc to
8324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8326
8327 archive_cmds=''
8328 hardcode_direct=yes
8329 hardcode_libdir_separator=':'
8330 link_all_deplibs=yes
8331
8332 if test "$GCC" = yes; then
8333 case $host_os in aix4.[012]|aix4.[012].*)
8334 # We only want to do this on AIX 4.2 and lower, the check
8335 # below for broken collect2 doesn't work under 4.3+
8336 collect2name=`${CC} -print-prog-name=collect2`
8337 if test -f "$collect2name" && \
8338 strings "$collect2name" | grep resolve_lib_name >/dev/null
8339 then
8340 # We have reworked collect2
8341 :
8342 else
8343 # We have old collect2
8344 hardcode_direct=unsupported
8345 # It fails to find uninstalled libraries when the uninstalled
8346 # path is not listed in the libpath. Setting hardcode_minus_L
8347 # to unsupported forces relinking
8348 hardcode_minus_L=yes
8349 hardcode_libdir_flag_spec='-L$libdir'
8350 hardcode_libdir_separator=
8351 fi
8352 ;;
8353 esac
8354 shared_flag='-shared'
8355 if test "$aix_use_runtimelinking" = yes; then
8356 shared_flag="$shared_flag "'${wl}-G'
8357 fi
8358 else
8359 # not using gcc
8360 if test "$host_cpu" = ia64; then
8361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8362 # chokes on -Wl,-G. The following line is correct:
8363 shared_flag='-G'
8364 else
8365 if test "$aix_use_runtimelinking" = yes; then
8366 shared_flag='${wl}-G'
8367 else
8368 shared_flag='${wl}-bM:SRE'
8369 fi
8370 fi
8371 fi
8372
8373 # It seems that -bexpall does not export symbols beginning with
8374 # underscore (_), so it is better to generate a list of symbols to export.
8375 always_export_symbols=yes
8376 if test "$aix_use_runtimelinking" = yes; then
8377 # Warning - without using the other runtime loading flags (-brtl),
8378 # -berok will link without error, but may produce a broken library.
8379 allow_undefined_flag='-berok'
8380 # Determine the default libpath from the value encoded in an empty executable.
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387
8388 int
8389 main ()
8390 {
8391
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext conftest$ac_exeext
8397 if { (ac_try="$ac_link"
8398 case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_link") 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest$ac_exeext &&
8413 $as_test_x conftest$ac_exeext; then
8414
8415 lt_aix_libpath_sed='
8416 /Import File Strings/,/^$/ {
8417 /^0/ {
8418 s/^0 *\(.*\)$/\1/
8419 p
8420 }
8421 }'
8422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8423 # Check for a 64-bit object if we didn't find anything.
8424 if test -z "$aix_libpath"; then
8425 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8426 fi
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8435 conftest$ac_exeext conftest.$ac_ext
8436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437
8438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439 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"
8440 else
8441 if test "$host_cpu" = ia64; then
8442 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8443 allow_undefined_flag="-z nodefs"
8444 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"
8445 else
8446 # Determine the default libpath from the value encoded in an empty executable.
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453
8454 int
8455 main ()
8456 {
8457
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (ac_try="$ac_link"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_link") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest$ac_exeext &&
8479 $as_test_x conftest$ac_exeext; then
8480
8481 lt_aix_libpath_sed='
8482 /Import File Strings/,/^$/ {
8483 /^0/ {
8484 s/^0 *\(.*\)$/\1/
8485 p
8486 }
8487 }'
8488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8489 # Check for a 64-bit object if we didn't find anything.
8490 if test -z "$aix_libpath"; then
8491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492 fi
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497
8498 fi
8499
8500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8501 conftest$ac_exeext conftest.$ac_ext
8502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8503
8504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8505 # Warning - without using the other run time loading flags,
8506 # -berok will link without error, but may produce a broken library.
8507 no_undefined_flag=' ${wl}-bernotok'
8508 allow_undefined_flag=' ${wl}-berok'
8509 # Exported symbols can be pulled into shared objects from archives
8510 whole_archive_flag_spec='$convenience'
8511 archive_cmds_need_lc=yes
8512 # This is similar to how AIX traditionally builds its shared libraries.
8513 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'
8514 fi
8515 fi
8516 ;;
8517
8518 amigaos*)
8519 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)'
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_minus_L=yes
8522 # see comment about different semantics on the GNU ld section
8523 ld_shlibs=no
8524 ;;
8525
8526 bsdi[45]*)
8527 export_dynamic_flag_spec=-rdynamic
8528 ;;
8529
8530 cygwin* | mingw* | pw32*)
8531 # When not using gcc, we currently assume that we are using
8532 # Microsoft Visual C++.
8533 # hardcode_libdir_flag_spec is actually meaningless, as there is
8534 # no search path for DLLs.
8535 hardcode_libdir_flag_spec=' '
8536 allow_undefined_flag=unsupported
8537 # Tell ltmain to make .lib files, not .a files.
8538 libext=lib
8539 # Tell ltmain to make .dll files, not .so files.
8540 shrext_cmds=".dll"
8541 # FIXME: Setting linknames here is a bad hack.
8542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8543 # The linker will automatically build a .lib file if we build a DLL.
8544 old_archive_From_new_cmds='true'
8545 # FIXME: Should let the user specify the lib program.
8546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8547 fix_srcfile_path='`cygpath -w "$srcfile"`'
8548 enable_shared_with_static_runtimes=yes
8549 ;;
8550
8551 darwin* | rhapsody*)
8552 case $host_os in
8553 rhapsody* | darwin1.[012])
8554 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8555 ;;
8556 *) # Darwin 1.3 on
8557 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8558 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8559 else
8560 case ${MACOSX_DEPLOYMENT_TARGET} in
8561 10.[012])
8562 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8563 ;;
8564 10.*)
8565 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8566 ;;
8567 esac
8568 fi
8569 ;;
8570 esac
8571 archive_cmds_need_lc=no
8572 hardcode_direct=no
8573 hardcode_automatic=yes
8574 hardcode_shlibpath_var=unsupported
8575 whole_archive_flag_spec=''
8576 link_all_deplibs=yes
8577 if test "$GCC" = yes ; then
8578 output_verbose_link_cmd='echo'
8579 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8580 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8581 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8582 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8583 else
8584 case $cc_basename in
8585 xlc*)
8586 output_verbose_link_cmd='echo'
8587 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8588 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8590 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8591 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}'
8592 ;;
8593 *)
8594 ld_shlibs=no
8595 ;;
8596 esac
8597 fi
8598 ;;
8599
8600 dgux*)
8601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8602 hardcode_libdir_flag_spec='-L$libdir'
8603 hardcode_shlibpath_var=no
8604 ;;
8605
8606 freebsd1*)
8607 ld_shlibs=no
8608 ;;
8609
8610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8611 # support. Future versions do this automatically, but an explicit c++rt0.o
8612 # does not break anything, and helps significantly (at the cost of a little
8613 # extra space).
8614 freebsd2.2*)
8615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8616 hardcode_libdir_flag_spec='-R$libdir'
8617 hardcode_direct=yes
8618 hardcode_shlibpath_var=no
8619 ;;
8620
8621 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8622 freebsd2*)
8623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_direct=yes
8625 hardcode_minus_L=yes
8626 hardcode_shlibpath_var=no
8627 ;;
8628
8629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8630 freebsd* | dragonfly*)
8631 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8632 hardcode_libdir_flag_spec='-R$libdir'
8633 hardcode_direct=yes
8634 hardcode_shlibpath_var=no
8635 ;;
8636
8637 hpux9*)
8638 if test "$GCC" = yes; then
8639 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'
8640 else
8641 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'
8642 fi
8643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8644 hardcode_libdir_separator=:
8645 hardcode_direct=yes
8646
8647 # hardcode_minus_L: Not really in the search PATH,
8648 # but as the default location of the library.
8649 hardcode_minus_L=yes
8650 export_dynamic_flag_spec='${wl}-E'
8651 ;;
8652
8653 hpux10*)
8654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8656 else
8657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8658 fi
8659 if test "$with_gnu_ld" = no; then
8660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8661 hardcode_libdir_separator=:
8662
8663 hardcode_direct=yes
8664 export_dynamic_flag_spec='${wl}-E'
8665
8666 # hardcode_minus_L: Not really in the search PATH,
8667 # but as the default location of the library.
8668 hardcode_minus_L=yes
8669 fi
8670 ;;
8671
8672 hpux11*)
8673 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8674 case $host_cpu in
8675 hppa*64*)
8676 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 ;;
8678 ia64*)
8679 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8680 ;;
8681 *)
8682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8683 ;;
8684 esac
8685 else
8686 case $host_cpu in
8687 hppa*64*)
8688 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 ;;
8690 ia64*)
8691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8692 ;;
8693 *)
8694 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8695 ;;
8696 esac
8697 fi
8698 if test "$with_gnu_ld" = no; then
8699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8700 hardcode_libdir_separator=:
8701
8702 case $host_cpu in
8703 hppa*64*|ia64*)
8704 hardcode_libdir_flag_spec_ld='+b $libdir'
8705 hardcode_direct=no
8706 hardcode_shlibpath_var=no
8707 ;;
8708 *)
8709 hardcode_direct=yes
8710 export_dynamic_flag_spec='${wl}-E'
8711
8712 # hardcode_minus_L: Not really in the search PATH,
8713 # but as the default location of the library.
8714 hardcode_minus_L=yes
8715 ;;
8716 esac
8717 fi
8718 ;;
8719
8720 irix5* | irix6* | nonstopux*)
8721 if test "$GCC" = yes; then
8722 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'
8723 else
8724 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'
8725 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8726 fi
8727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8728 hardcode_libdir_separator=:
8729 link_all_deplibs=yes
8730 ;;
8731
8732 netbsd*)
8733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8735 else
8736 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8737 fi
8738 hardcode_libdir_flag_spec='-R$libdir'
8739 hardcode_direct=yes
8740 hardcode_shlibpath_var=no
8741 ;;
8742
8743 newsos6)
8744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8745 hardcode_direct=yes
8746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747 hardcode_libdir_separator=:
8748 hardcode_shlibpath_var=no
8749 ;;
8750
8751 openbsd*)
8752 if test -f /usr/libexec/ld.so; then
8753 hardcode_direct=yes
8754 hardcode_shlibpath_var=no
8755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8759 export_dynamic_flag_spec='${wl}-E'
8760 else
8761 case $host_os in
8762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8764 hardcode_libdir_flag_spec='-R$libdir'
8765 ;;
8766 *)
8767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8769 ;;
8770 esac
8771 fi
8772 else
8773 ld_shlibs=no
8774 fi
8775 ;;
8776
8777 os2*)
8778 hardcode_libdir_flag_spec='-L$libdir'
8779 hardcode_minus_L=yes
8780 allow_undefined_flag=unsupported
8781 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'
8782 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8783 ;;
8784
8785 osf3*)
8786 if test "$GCC" = yes; then
8787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8788 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'
8789 else
8790 allow_undefined_flag=' -expect_unresolved \*'
8791 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'
8792 fi
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 ;;
8796
8797 osf4* | osf5*) # as osf3* with the addition of -msym flag
8798 if test "$GCC" = yes; then
8799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8800 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'
8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802 else
8803 allow_undefined_flag=' -expect_unresolved \*'
8804 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'
8805 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8806 $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'
8807
8808 # Both c and cxx compiler support -rpath directly
8809 hardcode_libdir_flag_spec='-rpath $libdir'
8810 fi
8811 hardcode_libdir_separator=:
8812 ;;
8813
8814 solaris*)
8815 no_undefined_flag=' -z text'
8816 if test "$GCC" = yes; then
8817 wlarc='${wl}'
8818 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8821 else
8822 wlarc=''
8823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8826 fi
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_shlibpath_var=no
8829 case $host_os in
8830 solaris2.[0-5] | solaris2.[0-5].*) ;;
8831 *)
8832 # The compiler driver will combine and reorder linker options,
8833 # but understands `-z linker_flag'. GCC discards it without `$wl',
8834 # but is careful enough not to reorder.
8835 # Supported since Solaris 2.6 (maybe 2.5.1?)
8836 if test "$GCC" = yes; then
8837 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8838 else
8839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8840 fi
8841 ;;
8842 esac
8843 link_all_deplibs=yes
8844 ;;
8845
8846 sunos4*)
8847 if test "x$host_vendor" = xsequent; then
8848 # Use $CC to link under sequent, because it throws in some extra .o
8849 # files that make .init and .fini sections work.
8850 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853 fi
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_direct=yes
8856 hardcode_minus_L=yes
8857 hardcode_shlibpath_var=no
8858 ;;
8859
8860 sysv4)
8861 case $host_vendor in
8862 sni)
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_direct=yes # is this really true???
8865 ;;
8866 siemens)
8867 ## LD is ld it makes a PLAMLIB
8868 ## CC just makes a GrossModule.
8869 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870 reload_cmds='$CC -r -o $output$reload_objs'
8871 hardcode_direct=no
8872 ;;
8873 motorola)
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876 ;;
8877 esac
8878 runpath_var='LD_RUN_PATH'
8879 hardcode_shlibpath_var=no
8880 ;;
8881
8882 sysv4.3*)
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 export_dynamic_flag_spec='-Bexport'
8886 ;;
8887
8888 sysv4*MP*)
8889 if test -d /usr/nec; then
8890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_shlibpath_var=no
8892 runpath_var=LD_RUN_PATH
8893 hardcode_runpath_var=yes
8894 ld_shlibs=yes
8895 fi
8896 ;;
8897
8898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8899 no_undefined_flag='${wl}-z,text'
8900 archive_cmds_need_lc=no
8901 hardcode_shlibpath_var=no
8902 runpath_var='LD_RUN_PATH'
8903
8904 if test "$GCC" = yes; then
8905 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 else
8908 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 fi
8911 ;;
8912
8913 sysv5* | sco3.2v5* | sco5v6*)
8914 # Note: We can NOT use -z defs as we might desire, because we do not
8915 # link with -lc, and that would cause any symbols used from libc to
8916 # always be unresolved, which means just about no library would
8917 # ever link correctly. If we're not using GNU ld we use -z text
8918 # though, which does catch some bad symbols but isn't as heavy-handed
8919 # as -z defs.
8920 no_undefined_flag='${wl}-z,text'
8921 allow_undefined_flag='${wl}-z,nodefs'
8922 archive_cmds_need_lc=no
8923 hardcode_shlibpath_var=no
8924 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8925 hardcode_libdir_separator=':'
8926 link_all_deplibs=yes
8927 export_dynamic_flag_spec='${wl}-Bexport'
8928 runpath_var='LD_RUN_PATH'
8929
8930 if test "$GCC" = yes; then
8931 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933 else
8934 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 fi
8937 ;;
8938
8939 uts4*)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_libdir_flag_spec='-L$libdir'
8942 hardcode_shlibpath_var=no
8943 ;;
8944
8945 *)
8946 ld_shlibs=no
8947 ;;
8948 esac
8949 fi
8950
8951 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8952 echo "${ECHO_T}$ld_shlibs" >&6; }
8953 test "$ld_shlibs" = no && can_build_shared=no
8954
8955 #
8956 # Do we need to explicitly link libc?
8957 #
8958 case "x$archive_cmds_need_lc" in
8959 x|xyes)
8960 # Assume -lc should be added
8961 archive_cmds_need_lc=yes
8962
8963 if test "$enable_shared" = yes && test "$GCC" = yes; then
8964 case $archive_cmds in
8965 *'~'*)
8966 # FIXME: we may have to deal with multi-command sequences.
8967 ;;
8968 '$CC '*)
8969 # Test whether the compiler implicitly links with -lc since on some
8970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8971 # to ld, don't add -lc before -lgcc.
8972 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8973 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8974 $rm conftest*
8975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } 2>conftest.err; then
8982 soname=conftest
8983 lib=conftest
8984 libobjs=conftest.$ac_objext
8985 deplibs=
8986 wl=$lt_prog_compiler_wl
8987 pic_flag=$lt_prog_compiler_pic
8988 compiler_flags=-v
8989 linker_flags=-v
8990 verstring=
8991 output_objdir=.
8992 libname=conftest
8993 lt_save_allow_undefined_flag=$allow_undefined_flag
8994 allow_undefined_flag=
8995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8996 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }
9000 then
9001 archive_cmds_need_lc=no
9002 else
9003 archive_cmds_need_lc=yes
9004 fi
9005 allow_undefined_flag=$lt_save_allow_undefined_flag
9006 else
9007 cat conftest.err 1>&5
9008 fi
9009 $rm conftest*
9010 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9011 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9012 ;;
9013 esac
9014 fi
9015 ;;
9016 esac
9017
9018 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9020 library_names_spec=
9021 libname_spec='lib$name'
9022 soname_spec=
9023 shrext_cmds=".so"
9024 postinstall_cmds=
9025 postuninstall_cmds=
9026 finish_cmds=
9027 finish_eval=
9028 shlibpath_var=
9029 shlibpath_overrides_runpath=unknown
9030 version_type=none
9031 dynamic_linker="$host_os ld.so"
9032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9033
9034 if test "$GCC" = yes; then
9035 case $host_os in
9036 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9037 *) lt_awk_arg="/^libraries:/" ;;
9038 esac
9039 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9040 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9041 # if the path contains ";" then we assume it to be the separator
9042 # otherwise default to the standard path separator (i.e. ":") - it is
9043 # assumed that no part of a normal pathname contains ";" but that should
9044 # okay in the real world where ";" in dirpaths is itself problematic.
9045 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9046 else
9047 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9048 fi
9049 # Ok, now we have the path, separated by spaces, we can step through it
9050 # and add multilib dir if necessary.
9051 lt_tmp_lt_search_path_spec=
9052 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9053 for lt_sys_path in $lt_search_path_spec; do
9054 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9055 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9056 else
9057 test -d "$lt_sys_path" && \
9058 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9059 fi
9060 done
9061 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9062 BEGIN {RS=" "; FS="/|\n";} {
9063 lt_foo="";
9064 lt_count=0;
9065 for (lt_i = NF; lt_i > 0; lt_i--) {
9066 if ($lt_i != "" && $lt_i != ".") {
9067 if ($lt_i == "..") {
9068 lt_count++;
9069 } else {
9070 if (lt_count == 0) {
9071 lt_foo="/" $lt_i lt_foo;
9072 } else {
9073 lt_count--;
9074 }
9075 }
9076 }
9077 }
9078 if (lt_foo != "") { lt_freq[lt_foo]++; }
9079 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9080 }'`
9081 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9082 else
9083 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9084 fi
9085 need_lib_prefix=unknown
9086 hardcode_into_libs=no
9087
9088 # when you set need_version to no, make sure it does not cause -set_version
9089 # flags to be left without arguments
9090 need_version=unknown
9091
9092 case $host_os in
9093 aix3*)
9094 version_type=linux
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9096 shlibpath_var=LIBPATH
9097
9098 # AIX 3 has no versioning support, so we append a major version to the name.
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 ;;
9101
9102 aix[4-9]*)
9103 version_type=linux
9104 need_lib_prefix=no
9105 need_version=no
9106 hardcode_into_libs=yes
9107 if test "$host_cpu" = ia64; then
9108 # AIX 5 supports IA64
9109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 else
9112 # With GCC up to 2.95.x, collect2 would create an import file
9113 # for dependence libraries. The import file would start with
9114 # the line `#! .'. This would cause the generated library to
9115 # depend on `.', always an invalid library. This was fixed in
9116 # development snapshots of GCC prior to 3.0.
9117 case $host_os in
9118 aix4 | aix4.[01] | aix4.[01].*)
9119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9120 echo ' yes '
9121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9122 :
9123 else
9124 can_build_shared=no
9125 fi
9126 ;;
9127 esac
9128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9129 # soname into executable. Probably we can add versioning support to
9130 # collect2, so additional links can be useful in future.
9131 if test "$aix_use_runtimelinking" = yes; then
9132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9133 # instead of lib<name>.a to let people know that these are not
9134 # typical AIX shared libraries.
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 else
9137 # We preserve .a as extension for shared libraries through AIX4.2
9138 # and later when we are not doing run time linking.
9139 library_names_spec='${libname}${release}.a $libname.a'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 fi
9142 shlibpath_var=LIBPATH
9143 fi
9144 ;;
9145
9146 amigaos*)
9147 library_names_spec='$libname.ixlibrary $libname.a'
9148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9149 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'
9150 ;;
9151
9152 beos*)
9153 library_names_spec='${libname}${shared_ext}'
9154 dynamic_linker="$host_os ld.so"
9155 shlibpath_var=LIBRARY_PATH
9156 ;;
9157
9158 bsdi[45]*)
9159 version_type=linux
9160 need_version=no
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9167 # the default ld.so.conf also contains /usr/contrib/lib and
9168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9169 # libtool to hard-code these into programs
9170 ;;
9171
9172 cygwin* | mingw* | pw32*)
9173 version_type=windows
9174 shrext_cmds=".dll"
9175 need_version=no
9176 need_lib_prefix=no
9177
9178 case $GCC,$host_os in
9179 yes,cygwin* | yes,mingw* | yes,pw32*)
9180 library_names_spec='$libname.dll.a'
9181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9182 postinstall_cmds='base_file=`basename \${file}`~
9183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9184 dldir=$destdir/`dirname \$dlpath`~
9185 test -d \$dldir || mkdir -p \$dldir~
9186 $install_prog $dir/$dlname \$dldir/$dlname~
9187 chmod a+x \$dldir/$dlname'
9188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9189 dlpath=$dir/\$dldll~
9190 $rm \$dlpath'
9191 shlibpath_overrides_runpath=yes
9192
9193 case $host_os in
9194 cygwin*)
9195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9198 ;;
9199 mingw*)
9200 # MinGW DLLs use traditional 'lib' prefix
9201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9204 # It is most probably a Windows format PATH printed by
9205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9206 # path with ; separators, and with drive letters. We can handle the
9207 # drive letters (cygwin fileutils understands them), so leave them,
9208 # especially as we might pass files found there to a mingw objdump,
9209 # which wouldn't understand a cygwinified path. Ahh.
9210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9211 else
9212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9213 fi
9214 ;;
9215 pw32*)
9216 # pw32 DLLs use 'pw' prefix rather than 'lib'
9217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 ;;
9219 esac
9220 ;;
9221
9222 *)
9223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9224 ;;
9225 esac
9226 dynamic_linker='Win32 ld.exe'
9227 # FIXME: first we should search . and the directory the executable is in
9228 shlibpath_var=PATH
9229 ;;
9230
9231 darwin* | rhapsody*)
9232 dynamic_linker="$host_os dyld"
9233 version_type=darwin
9234 need_lib_prefix=no
9235 need_version=no
9236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9237 soname_spec='${libname}${release}${major}$shared_ext'
9238 shlibpath_overrides_runpath=yes
9239 shlibpath_var=DYLD_LIBRARY_PATH
9240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9241
9242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9244 ;;
9245
9246 dgux*)
9247 version_type=linux
9248 need_lib_prefix=no
9249 need_version=no
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 ;;
9254
9255 freebsd1*)
9256 dynamic_linker=no
9257 ;;
9258
9259 freebsd* | dragonfly*)
9260 # DragonFly does not have aout. When/if they implement a new
9261 # versioning mechanism, adjust this.
9262 if test -x /usr/bin/objformat; then
9263 objformat=`/usr/bin/objformat`
9264 else
9265 case $host_os in
9266 freebsd[123]*) objformat=aout ;;
9267 *) objformat=elf ;;
9268 esac
9269 fi
9270 # Handle Gentoo/FreeBSD as it was Linux
9271 case $host_vendor in
9272 gentoo)
9273 version_type=linux ;;
9274 *)
9275 version_type=freebsd-$objformat ;;
9276 esac
9277
9278 case $version_type in
9279 freebsd-elf*)
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9281 need_version=no
9282 need_lib_prefix=no
9283 ;;
9284 freebsd-*)
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9286 need_version=yes
9287 ;;
9288 linux)
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 need_lib_prefix=no
9292 need_version=no
9293 ;;
9294 esac
9295 shlibpath_var=LD_LIBRARY_PATH
9296 case $host_os in
9297 freebsd2*)
9298 shlibpath_overrides_runpath=yes
9299 ;;
9300 freebsd3.[01]* | freebsdelf3.[01]*)
9301 shlibpath_overrides_runpath=yes
9302 hardcode_into_libs=yes
9303 ;;
9304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9306 shlibpath_overrides_runpath=no
9307 hardcode_into_libs=yes
9308 ;;
9309 *) # from 4.6 on, and DragonFly
9310 shlibpath_overrides_runpath=yes
9311 hardcode_into_libs=yes
9312 ;;
9313 esac
9314 ;;
9315
9316 gnu*)
9317 version_type=linux
9318 need_lib_prefix=no
9319 need_version=no
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 hardcode_into_libs=yes
9324 ;;
9325
9326 hpux9* | hpux10* | hpux11*)
9327 # Give a soname corresponding to the major version so that dld.sl refuses to
9328 # link against other versions.
9329 version_type=sunos
9330 need_lib_prefix=no
9331 need_version=no
9332 case $host_cpu in
9333 ia64*)
9334 shrext_cmds='.so'
9335 hardcode_into_libs=yes
9336 dynamic_linker="$host_os dld.so"
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 if test "X$HPUX_IA64_MODE" = X32; then
9342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9343 else
9344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9345 fi
9346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9347 ;;
9348 hppa*64*)
9349 shrext_cmds='.sl'
9350 hardcode_into_libs=yes
9351 dynamic_linker="$host_os dld.sl"
9352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9358 ;;
9359 *)
9360 shrext_cmds='.sl'
9361 dynamic_linker="$host_os dld.sl"
9362 shlibpath_var=SHLIB_PATH
9363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 ;;
9367 esac
9368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9369 postinstall_cmds='chmod 555 $lib'
9370 ;;
9371
9372 interix[3-9]*)
9373 version_type=linux
9374 need_lib_prefix=no
9375 need_version=no
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 shlibpath_overrides_runpath=no
9381 hardcode_into_libs=yes
9382 ;;
9383
9384 irix5* | irix6* | nonstopux*)
9385 case $host_os in
9386 nonstopux*) version_type=nonstopux ;;
9387 *)
9388 if test "$lt_cv_prog_gnu_ld" = yes; then
9389 version_type=linux
9390 else
9391 version_type=irix
9392 fi ;;
9393 esac
9394 need_lib_prefix=no
9395 need_version=no
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9398 case $host_os in
9399 irix5* | nonstopux*)
9400 libsuff= shlibsuff=
9401 ;;
9402 *)
9403 case $LD in # libtool.m4 will add one of these switches to LD
9404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9405 libsuff= shlibsuff= libmagic=32-bit;;
9406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9407 libsuff=32 shlibsuff=N32 libmagic=N32;;
9408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9410 *) libsuff= shlibsuff= libmagic=never-match;;
9411 esac
9412 ;;
9413 esac
9414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9415 shlibpath_overrides_runpath=no
9416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9418 hardcode_into_libs=yes
9419 ;;
9420
9421 # No shared lib support for Linux oldld, aout, or coff.
9422 linux*oldld* | linux*aout* | linux*coff*)
9423 dynamic_linker=no
9424 ;;
9425
9426 # This must be Linux ELF.
9427 linux* | k*bsd*-gnu)
9428 version_type=linux
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=no
9436 # This implies no fast_install, which is unacceptable.
9437 # Some rework will be needed to allow for fast_install
9438 # before this can be enabled.
9439 hardcode_into_libs=yes
9440
9441 # Append ld.so.conf contents to the search path
9442 if test -f /etc/ld.so.conf; then
9443 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9445 fi
9446
9447 # We used to test for /lib/ld.so.1 and disable shared libraries on
9448 # powerpc, because MkLinux only supported shared libraries with the
9449 # GNU dynamic linker. Since this was broken with cross compilers,
9450 # most powerpc-linux boxes support dynamic linking these days and
9451 # people can always --disable-shared, the test was removed, and we
9452 # assume the GNU/Linux dynamic linker is in use.
9453 dynamic_linker='GNU/Linux ld.so'
9454 ;;
9455
9456 netbsd*)
9457 version_type=sunos
9458 need_lib_prefix=no
9459 need_version=no
9460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9463 dynamic_linker='NetBSD (a.out) ld.so'
9464 else
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 dynamic_linker='NetBSD ld.elf_so'
9468 fi
9469 shlibpath_var=LD_LIBRARY_PATH
9470 shlibpath_overrides_runpath=yes
9471 hardcode_into_libs=yes
9472 ;;
9473
9474 newsos6)
9475 version_type=linux
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 ;;
9480
9481 nto-qnx*)
9482 version_type=linux
9483 need_lib_prefix=no
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=yes
9489 ;;
9490
9491 openbsd*)
9492 version_type=sunos
9493 sys_lib_dlsearch_path_spec="/usr/lib"
9494 need_lib_prefix=no
9495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9496 case $host_os in
9497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9498 *) need_version=no ;;
9499 esac
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9504 case $host_os in
9505 openbsd2.[89] | openbsd2.[89].*)
9506 shlibpath_overrides_runpath=no
9507 ;;
9508 *)
9509 shlibpath_overrides_runpath=yes
9510 ;;
9511 esac
9512 else
9513 shlibpath_overrides_runpath=yes
9514 fi
9515 ;;
9516
9517 os2*)
9518 libname_spec='$name'
9519 shrext_cmds=".dll"
9520 need_lib_prefix=no
9521 library_names_spec='$libname${shared_ext} $libname.a'
9522 dynamic_linker='OS/2 ld.exe'
9523 shlibpath_var=LIBPATH
9524 ;;
9525
9526 osf3* | osf4* | osf5*)
9527 version_type=osf
9528 need_lib_prefix=no
9529 need_version=no
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9535 ;;
9536
9537 rdos*)
9538 dynamic_linker=no
9539 ;;
9540
9541 solaris*)
9542 version_type=linux
9543 need_lib_prefix=no
9544 need_version=no
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 shlibpath_overrides_runpath=yes
9549 hardcode_into_libs=yes
9550 # ldd complains unless libraries are executable
9551 postinstall_cmds='chmod +x $lib'
9552 ;;
9553
9554 sunos4*)
9555 version_type=sunos
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9558 shlibpath_var=LD_LIBRARY_PATH
9559 shlibpath_overrides_runpath=yes
9560 if test "$with_gnu_ld" = yes; then
9561 need_lib_prefix=no
9562 fi
9563 need_version=yes
9564 ;;
9565
9566 sysv4 | sysv4.3*)
9567 version_type=linux
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 shlibpath_var=LD_LIBRARY_PATH
9571 case $host_vendor in
9572 sni)
9573 shlibpath_overrides_runpath=no
9574 need_lib_prefix=no
9575 export_dynamic_flag_spec='${wl}-Blargedynsym'
9576 runpath_var=LD_RUN_PATH
9577 ;;
9578 siemens)
9579 need_lib_prefix=no
9580 ;;
9581 motorola)
9582 need_lib_prefix=no
9583 need_version=no
9584 shlibpath_overrides_runpath=no
9585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9586 ;;
9587 esac
9588 ;;
9589
9590 sysv4*MP*)
9591 if test -d /usr/nec ;then
9592 version_type=linux
9593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9594 soname_spec='$libname${shared_ext}.$major'
9595 shlibpath_var=LD_LIBRARY_PATH
9596 fi
9597 ;;
9598
9599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9600 version_type=freebsd-elf
9601 need_lib_prefix=no
9602 need_version=no
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 hardcode_into_libs=yes
9607 if test "$with_gnu_ld" = yes; then
9608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9609 shlibpath_overrides_runpath=no
9610 else
9611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9612 shlibpath_overrides_runpath=yes
9613 case $host_os in
9614 sco3.2v5*)
9615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9616 ;;
9617 esac
9618 fi
9619 sys_lib_dlsearch_path_spec='/usr/lib'
9620 ;;
9621
9622 uts4*)
9623 version_type=linux
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 ;;
9628
9629 *)
9630 dynamic_linker=no
9631 ;;
9632 esac
9633 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9634 echo "${ECHO_T}$dynamic_linker" >&6; }
9635 test "$dynamic_linker" = no && can_build_shared=no
9636
9637 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9641 fi
9642
9643 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9644 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9648 fi
9649
9650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9651
9652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9653 if test "$GCC" = yes; then
9654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9655 fi
9656
9657 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9658 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9659 hardcode_action=
9660 if test -n "$hardcode_libdir_flag_spec" || \
9661 test -n "$runpath_var" || \
9662 test "X$hardcode_automatic" = "Xyes" ; then
9663
9664 # We can hardcode non-existant directories.
9665 if test "$hardcode_direct" != no &&
9666 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9667 # have to relink, otherwise we might link with an installed library
9668 # when we should be linking with a yet-to-be-installed one
9669 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9670 test "$hardcode_minus_L" != no; then
9671 # Linking always hardcodes the temporary library directory.
9672 hardcode_action=relink
9673 else
9674 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9675 hardcode_action=immediate
9676 fi
9677 else
9678 # We cannot hardcode anything, or else we can only hardcode existing
9679 # directories.
9680 hardcode_action=unsupported
9681 fi
9682 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9683 echo "${ECHO_T}$hardcode_action" >&6; }
9684
9685 if test "$hardcode_action" = relink; then
9686 # Fast installation is not supported
9687 enable_fast_install=no
9688 elif test "$shlibpath_overrides_runpath" = yes ||
9689 test "$enable_shared" = no; then
9690 # Fast installation is not necessary
9691 enable_fast_install=needless
9692 fi
9693
9694 striplib=
9695 old_striplib=
9696 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9697 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9698 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9700 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9701 { echo "$as_me:$LINENO: result: yes" >&5
9702 echo "${ECHO_T}yes" >&6; }
9703 else
9704 # FIXME - insert some real tests, host_os isn't really good enough
9705 case $host_os in
9706 darwin*)
9707 if test -n "$STRIP" ; then
9708 striplib="$STRIP -x"
9709 old_striplib="$STRIP -S"
9710 { echo "$as_me:$LINENO: result: yes" >&5
9711 echo "${ECHO_T}yes" >&6; }
9712 else
9713 { echo "$as_me:$LINENO: result: no" >&5
9714 echo "${ECHO_T}no" >&6; }
9715 fi
9716 ;;
9717 *)
9718 { echo "$as_me:$LINENO: result: no" >&5
9719 echo "${ECHO_T}no" >&6; }
9720 ;;
9721 esac
9722 fi
9723
9724 if test "x$enable_dlopen" != xyes; then
9725 enable_dlopen=unknown
9726 enable_dlopen_self=unknown
9727 enable_dlopen_self_static=unknown
9728 else
9729 lt_cv_dlopen=no
9730 lt_cv_dlopen_libs=
9731
9732 case $host_os in
9733 beos*)
9734 lt_cv_dlopen="load_add_on"
9735 lt_cv_dlopen_libs=
9736 lt_cv_dlopen_self=yes
9737 ;;
9738
9739 mingw* | pw32*)
9740 lt_cv_dlopen="LoadLibrary"
9741 lt_cv_dlopen_libs=
9742 ;;
9743
9744 cygwin*)
9745 lt_cv_dlopen="dlopen"
9746 lt_cv_dlopen_libs=
9747 ;;
9748
9749 darwin*)
9750 # if libdl is installed we need to link against it
9751 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9752 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9753 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 ac_check_lib_save_LIBS=$LIBS
9757 LIBS="-ldl $LIBS"
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char dlopen ();
9772 int
9773 main ()
9774 {
9775 return dlopen ();
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } && {
9794 test -z "$ac_c_werror_flag" ||
9795 test ! -s conftest.err
9796 } && test -s conftest$ac_exeext &&
9797 $as_test_x conftest$ac_exeext; then
9798 ac_cv_lib_dl_dlopen=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_lib_dl_dlopen=no
9804 fi
9805
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9808 LIBS=$ac_check_lib_save_LIBS
9809 fi
9810 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9812 if test $ac_cv_lib_dl_dlopen = yes; then
9813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9814 else
9815
9816 lt_cv_dlopen="dyld"
9817 lt_cv_dlopen_libs=
9818 lt_cv_dlopen_self=yes
9819
9820 fi
9821
9822 ;;
9823
9824 *)
9825 { echo "$as_me:$LINENO: checking for shl_load" >&5
9826 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9827 if test "${ac_cv_func_shl_load+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9838 #define shl_load innocuous_shl_load
9839
9840 /* System header to define __stub macros and hopefully few prototypes,
9841 which can conflict with char shl_load (); below.
9842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9843 <limits.h> exists even on freestanding compilers. */
9844
9845 #ifdef __STDC__
9846 # include <limits.h>
9847 #else
9848 # include <assert.h>
9849 #endif
9850
9851 #undef shl_load
9852
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char shl_load ();
9860 /* The GNU C library defines this for functions which it implements
9861 to always fail with ENOSYS. Some functions are actually named
9862 something starting with __ and the normal name is an alias. */
9863 #if defined __stub_shl_load || defined __stub___shl_load
9864 choke me
9865 #endif
9866
9867 int
9868 main ()
9869 {
9870 return shl_load ();
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_func_shl_load=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_func_shl_load=no
9899 fi
9900
9901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9905 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9906 if test $ac_cv_func_shl_load = yes; then
9907 lt_cv_dlopen="shl_load"
9908 else
9909 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9910 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-ldld $LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char shl_load ();
9930 int
9931 main ()
9932 {
9933 return shl_load ();
9934 ;
9935 return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 ac_cv_lib_dld_shl_load=yes
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_cv_lib_dld_shl_load=no
9962 fi
9963
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9967 fi
9968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9969 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9970 if test $ac_cv_lib_dld_shl_load = yes; then
9971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9972 else
9973 { echo "$as_me:$LINENO: checking for dlopen" >&5
9974 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9975 if test "${ac_cv_func_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986 #define dlopen innocuous_dlopen
9987
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char dlopen (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9992
9993 #ifdef __STDC__
9994 # include <limits.h>
9995 #else
9996 # include <assert.h>
9997 #endif
9998
9999 #undef dlopen
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char dlopen ();
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined __stub_dlopen || defined __stub___dlopen
10012 choke me
10013 #endif
10014
10015 int
10016 main ()
10017 {
10018 return dlopen ();
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_link") 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest$ac_exeext &&
10040 $as_test_x conftest$ac_exeext; then
10041 ac_cv_func_dlopen=yes
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 ac_cv_func_dlopen=no
10047 fi
10048
10049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050 conftest$ac_exeext conftest.$ac_ext
10051 fi
10052 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10053 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10054 if test $ac_cv_func_dlopen = yes; then
10055 lt_cv_dlopen="dlopen"
10056 else
10057 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10058 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10059 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-ldl $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char dlopen ();
10078 int
10079 main ()
10080 {
10081 return dlopen ();
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest$ac_exeext &&
10103 $as_test_x conftest$ac_exeext; then
10104 ac_cv_lib_dl_dlopen=yes
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_cv_lib_dl_dlopen=no
10110 fi
10111
10112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10113 conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10117 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10118 if test $ac_cv_lib_dl_dlopen = yes; then
10119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10120 else
10121 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10122 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 ac_check_lib_save_LIBS=$LIBS
10127 LIBS="-lsvld $LIBS"
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char dlopen ();
10142 int
10143 main ()
10144 {
10145 return dlopen ();
10146 ;
10147 return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest$ac_exeext &&
10167 $as_test_x conftest$ac_exeext; then
10168 ac_cv_lib_svld_dlopen=yes
10169 else
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_cv_lib_svld_dlopen=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10181 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10182 if test $ac_cv_lib_svld_dlopen = yes; then
10183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10184 else
10185 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10186 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10187 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-ldld $LIBS"
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10202 #ifdef __cplusplus
10203 extern "C"
10204 #endif
10205 char dld_link ();
10206 int
10207 main ()
10208 {
10209 return dld_link ();
10210 ;
10211 return 0;
10212 }
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext &&
10231 $as_test_x conftest$ac_exeext; then
10232 ac_cv_lib_dld_dld_link=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_cv_lib_dld_dld_link=no
10238 fi
10239
10240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10243 fi
10244 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10245 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10246 if test $ac_cv_lib_dld_dld_link = yes; then
10247 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10248 fi
10249
10250
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259
10260 fi
10261
10262
10263 fi
10264
10265 ;;
10266 esac
10267
10268 if test "x$lt_cv_dlopen" != xno; then
10269 enable_dlopen=yes
10270 else
10271 enable_dlopen=no
10272 fi
10273
10274 case $lt_cv_dlopen in
10275 dlopen)
10276 save_CPPFLAGS="$CPPFLAGS"
10277 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10278
10279 save_LDFLAGS="$LDFLAGS"
10280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10281
10282 save_LIBS="$LIBS"
10283 LIBS="$lt_cv_dlopen_libs $LIBS"
10284
10285 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10286 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10287 if test "${lt_cv_dlopen_self+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290 if test "$cross_compiling" = yes; then :
10291 lt_cv_dlopen_self=cross
10292 else
10293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10294 lt_status=$lt_dlunknown
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10296 "configure"
10297 #include "confdefs.h"
10298
10299 #if HAVE_DLFCN_H
10300 #include <dlfcn.h>
10301 #endif
10302
10303 #include <stdio.h>
10304
10305 #ifdef RTLD_GLOBAL
10306 # define LT_DLGLOBAL RTLD_GLOBAL
10307 #else
10308 # ifdef DL_GLOBAL
10309 # define LT_DLGLOBAL DL_GLOBAL
10310 # else
10311 # define LT_DLGLOBAL 0
10312 # endif
10313 #endif
10314
10315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10316 find out it does not work in some platform. */
10317 #ifndef LT_DLLAZY_OR_NOW
10318 # ifdef RTLD_LAZY
10319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10320 # else
10321 # ifdef DL_LAZY
10322 # define LT_DLLAZY_OR_NOW DL_LAZY
10323 # else
10324 # ifdef RTLD_NOW
10325 # define LT_DLLAZY_OR_NOW RTLD_NOW
10326 # else
10327 # ifdef DL_NOW
10328 # define LT_DLLAZY_OR_NOW DL_NOW
10329 # else
10330 # define LT_DLLAZY_OR_NOW 0
10331 # endif
10332 # endif
10333 # endif
10334 # endif
10335 #endif
10336
10337 #ifdef __cplusplus
10338 extern "C" void exit (int);
10339 #endif
10340
10341 void fnord() { int i=42;}
10342 int main ()
10343 {
10344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10345 int status = $lt_dlunknown;
10346
10347 if (self)
10348 {
10349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10351 /* dlclose (self); */
10352 }
10353 else
10354 puts (dlerror ());
10355
10356 exit (status);
10357 }
10358 EOF
10359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360 (eval $ac_link) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10364 (./conftest; exit; ) >&5 2>/dev/null
10365 lt_status=$?
10366 case x$lt_status in
10367 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10368 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10369 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10370 esac
10371 else :
10372 # compilation failed
10373 lt_cv_dlopen_self=no
10374 fi
10375 fi
10376 rm -fr conftest*
10377
10378
10379 fi
10380 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10381 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10382
10383 if test "x$lt_cv_dlopen_self" = xyes; then
10384 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10385 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10386 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10387 if test "${lt_cv_dlopen_self_static+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390 if test "$cross_compiling" = yes; then :
10391 lt_cv_dlopen_self_static=cross
10392 else
10393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10394 lt_status=$lt_dlunknown
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10396 "configure"
10397 #include "confdefs.h"
10398
10399 #if HAVE_DLFCN_H
10400 #include <dlfcn.h>
10401 #endif
10402
10403 #include <stdio.h>
10404
10405 #ifdef RTLD_GLOBAL
10406 # define LT_DLGLOBAL RTLD_GLOBAL
10407 #else
10408 # ifdef DL_GLOBAL
10409 # define LT_DLGLOBAL DL_GLOBAL
10410 # else
10411 # define LT_DLGLOBAL 0
10412 # endif
10413 #endif
10414
10415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10416 find out it does not work in some platform. */
10417 #ifndef LT_DLLAZY_OR_NOW
10418 # ifdef RTLD_LAZY
10419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10420 # else
10421 # ifdef DL_LAZY
10422 # define LT_DLLAZY_OR_NOW DL_LAZY
10423 # else
10424 # ifdef RTLD_NOW
10425 # define LT_DLLAZY_OR_NOW RTLD_NOW
10426 # else
10427 # ifdef DL_NOW
10428 # define LT_DLLAZY_OR_NOW DL_NOW
10429 # else
10430 # define LT_DLLAZY_OR_NOW 0
10431 # endif
10432 # endif
10433 # endif
10434 # endif
10435 #endif
10436
10437 #ifdef __cplusplus
10438 extern "C" void exit (int);
10439 #endif
10440
10441 void fnord() { int i=42;}
10442 int main ()
10443 {
10444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10445 int status = $lt_dlunknown;
10446
10447 if (self)
10448 {
10449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10450 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10451 /* dlclose (self); */
10452 }
10453 else
10454 puts (dlerror ());
10455
10456 exit (status);
10457 }
10458 EOF
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10464 (./conftest; exit; ) >&5 2>/dev/null
10465 lt_status=$?
10466 case x$lt_status in
10467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10469 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10470 esac
10471 else :
10472 # compilation failed
10473 lt_cv_dlopen_self_static=no
10474 fi
10475 fi
10476 rm -fr conftest*
10477
10478
10479 fi
10480 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10482 fi
10483
10484 CPPFLAGS="$save_CPPFLAGS"
10485 LDFLAGS="$save_LDFLAGS"
10486 LIBS="$save_LIBS"
10487 ;;
10488 esac
10489
10490 case $lt_cv_dlopen_self in
10491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10492 *) enable_dlopen_self=unknown ;;
10493 esac
10494
10495 case $lt_cv_dlopen_self_static in
10496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10497 *) enable_dlopen_self_static=unknown ;;
10498 esac
10499 fi
10500
10501
10502 # Report which library types will actually be built
10503 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10505 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506 echo "${ECHO_T}$can_build_shared" >&6; }
10507
10508 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10510 test "$can_build_shared" = "no" && enable_shared=no
10511
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10514 case $host_os in
10515 aix3*)
10516 test "$enable_shared" = yes && enable_static=no
10517 if test -n "$RANLIB"; then
10518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519 postinstall_cmds='$RANLIB $lib'
10520 fi
10521 ;;
10522
10523 aix[4-9]*)
10524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525 test "$enable_shared" = yes && enable_static=no
10526 fi
10527 ;;
10528 esac
10529 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10530 echo "${ECHO_T}$enable_shared" >&6; }
10531
10532 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 { echo "$as_me:$LINENO: result: $enable_static" >&5
10537 echo "${ECHO_T}$enable_static" >&6; }
10538
10539 # The else clause should only fire when bootstrapping the
10540 # libtool distribution, otherwise you forgot to ship ltmain.sh
10541 # with your package, and you will get complaints that there are
10542 # no rules to generate ltmain.sh.
10543 if test -f "$ltmain"; then
10544 # See if we are running on zsh, and set the options which allow our commands through
10545 # without removal of \ escapes.
10546 if test -n "${ZSH_VERSION+set}" ; then
10547 setopt NO_GLOB_SUBST
10548 fi
10549 # Now quote all the things that may contain metacharacters while being
10550 # careful not to overquote the AC_SUBSTed values. We take copies of the
10551 # variables and quote the copies for generation of the libtool script.
10552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10553 SED SHELL STRIP \
10554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10556 deplibs_check_method reload_flag reload_cmds need_locks \
10557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10558 lt_cv_sys_global_symbol_to_c_name_address \
10559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10560 old_postinstall_cmds old_postuninstall_cmds \
10561 compiler \
10562 CC \
10563 LD \
10564 lt_prog_compiler_wl \
10565 lt_prog_compiler_pic \
10566 lt_prog_compiler_static \
10567 lt_prog_compiler_no_builtin_flag \
10568 export_dynamic_flag_spec \
10569 thread_safe_flag_spec \
10570 whole_archive_flag_spec \
10571 enable_shared_with_static_runtimes \
10572 old_archive_cmds \
10573 old_archive_from_new_cmds \
10574 predep_objects \
10575 postdep_objects \
10576 predeps \
10577 postdeps \
10578 compiler_lib_search_path \
10579 compiler_lib_search_dirs \
10580 archive_cmds \
10581 archive_expsym_cmds \
10582 postinstall_cmds \
10583 postuninstall_cmds \
10584 old_archive_from_expsyms_cmds \
10585 allow_undefined_flag \
10586 no_undefined_flag \
10587 export_symbols_cmds \
10588 hardcode_libdir_flag_spec \
10589 hardcode_libdir_flag_spec_ld \
10590 hardcode_libdir_separator \
10591 hardcode_automatic \
10592 module_cmds \
10593 module_expsym_cmds \
10594 lt_cv_prog_compiler_c_o \
10595 fix_srcfile_path \
10596 exclude_expsyms \
10597 include_expsyms; do
10598
10599 case $var in
10600 old_archive_cmds | \
10601 old_archive_from_new_cmds | \
10602 archive_cmds | \
10603 archive_expsym_cmds | \
10604 module_cmds | \
10605 module_expsym_cmds | \
10606 old_archive_from_expsyms_cmds | \
10607 export_symbols_cmds | \
10608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10609 postinstall_cmds | postuninstall_cmds | \
10610 old_postinstall_cmds | old_postuninstall_cmds | \
10611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10612 # Double-quote double-evaled strings.
10613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10614 ;;
10615 *)
10616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10617 ;;
10618 esac
10619 done
10620
10621 case $lt_echo in
10622 *'\$0 --fallback-echo"')
10623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10624 ;;
10625 esac
10626
10627 cfgfile="${ofile}T"
10628 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10629 $rm -f "$cfgfile"
10630 { echo "$as_me:$LINENO: creating $ofile" >&5
10631 echo "$as_me: creating $ofile" >&6;}
10632
10633 cat <<__EOF__ >> "$cfgfile"
10634 #! $SHELL
10635
10636 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10637 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10638 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10639 #
10640 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10641 # Free Software Foundation, Inc.
10642 #
10643 # This file is part of GNU Libtool:
10644 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10645 #
10646 # This program is free software; you can redistribute it and/or modify
10647 # it under the terms of the GNU General Public License as published by
10648 # the Free Software Foundation; either version 2 of the License, or
10649 # (at your option) any later version.
10650 #
10651 # This program is distributed in the hope that it will be useful, but
10652 # WITHOUT ANY WARRANTY; without even the implied warranty of
10653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10654 # General Public License for more details.
10655 #
10656 # You should have received a copy of the GNU General Public License
10657 # along with this program; if not, write to the Free Software
10658 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10659 #
10660 # As a special exception to the GNU General Public License, if you
10661 # distribute this file as part of a program that contains a
10662 # configuration script generated by Autoconf, you may include it under
10663 # the same distribution terms that you use for the rest of that program.
10664
10665 # A sed program that does not truncate output.
10666 SED=$lt_SED
10667
10668 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10669 Xsed="$SED -e 1s/^X//"
10670
10671 # The HP-UX ksh and POSIX shell print the target directory to stdout
10672 # if CDPATH is set.
10673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10674
10675 # The names of the tagged configurations supported by this script.
10676 available_tags=
10677
10678 # ### BEGIN LIBTOOL CONFIG
10679
10680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10681
10682 # Shell to use when invoking shell scripts.
10683 SHELL=$lt_SHELL
10684
10685 # Whether or not to build shared libraries.
10686 build_libtool_libs=$enable_shared
10687
10688 # Whether or not to build static libraries.
10689 build_old_libs=$enable_static
10690
10691 # Whether or not to add -lc for building shared libraries.
10692 build_libtool_need_lc=$archive_cmds_need_lc
10693
10694 # Whether or not to disallow shared libs when runtime libs are static
10695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10696
10697 # Whether or not to optimize for fast installation.
10698 fast_install=$enable_fast_install
10699
10700 # The host system.
10701 host_alias=$host_alias
10702 host=$host
10703 host_os=$host_os
10704
10705 # The build system.
10706 build_alias=$build_alias
10707 build=$build
10708 build_os=$build_os
10709
10710 # An echo program that does not interpret backslashes.
10711 echo=$lt_echo
10712
10713 # The archiver.
10714 AR=$lt_AR
10715 AR_FLAGS=$lt_AR_FLAGS
10716
10717 # A C compiler.
10718 LTCC=$lt_LTCC
10719
10720 # LTCC compiler flags.
10721 LTCFLAGS=$lt_LTCFLAGS
10722
10723 # A language-specific compiler.
10724 CC=$lt_compiler
10725
10726 # Is the compiler the GNU C compiler?
10727 with_gcc=$GCC
10728
10729 # An ERE matcher.
10730 EGREP=$lt_EGREP
10731
10732 # The linker used to build libraries.
10733 LD=$lt_LD
10734
10735 # Whether we need hard or soft links.
10736 LN_S=$lt_LN_S
10737
10738 # A BSD-compatible nm program.
10739 NM=$lt_NM
10740
10741 # A symbol stripping program
10742 STRIP=$lt_STRIP
10743
10744 # Used to examine libraries when file_magic_cmd begins "file"
10745 MAGIC_CMD=$MAGIC_CMD
10746
10747 # Used on cygwin: DLL creation program.
10748 DLLTOOL="$DLLTOOL"
10749
10750 # Used on cygwin: object dumper.
10751 OBJDUMP="$OBJDUMP"
10752
10753 # Used on cygwin: assembler.
10754 AS="$AS"
10755
10756 # The name of the directory that contains temporary libtool files.
10757 objdir=$objdir
10758
10759 # How to create reloadable object files.
10760 reload_flag=$lt_reload_flag
10761 reload_cmds=$lt_reload_cmds
10762
10763 # How to pass a linker flag through the compiler.
10764 wl=$lt_lt_prog_compiler_wl
10765
10766 # Object file suffix (normally "o").
10767 objext="$ac_objext"
10768
10769 # Old archive suffix (normally "a").
10770 libext="$libext"
10771
10772 # Shared library suffix (normally ".so").
10773 shrext_cmds='$shrext_cmds'
10774
10775 # Executable file suffix (normally "").
10776 exeext="$exeext"
10777
10778 # Additional compiler flags for building library objects.
10779 pic_flag=$lt_lt_prog_compiler_pic
10780 pic_mode=$pic_mode
10781
10782 # What is the maximum length of a command?
10783 max_cmd_len=$lt_cv_sys_max_cmd_len
10784
10785 # Does compiler simultaneously support -c and -o options?
10786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10787
10788 # Must we lock files when doing compilation?
10789 need_locks=$lt_need_locks
10790
10791 # Do we need the lib prefix for modules?
10792 need_lib_prefix=$need_lib_prefix
10793
10794 # Do we need a version for libraries?
10795 need_version=$need_version
10796
10797 # Whether dlopen is supported.
10798 dlopen_support=$enable_dlopen
10799
10800 # Whether dlopen of programs is supported.
10801 dlopen_self=$enable_dlopen_self
10802
10803 # Whether dlopen of statically linked programs is supported.
10804 dlopen_self_static=$enable_dlopen_self_static
10805
10806 # Compiler flag to prevent dynamic linking.
10807 link_static_flag=$lt_lt_prog_compiler_static
10808
10809 # Compiler flag to turn off builtin functions.
10810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10811
10812 # Compiler flag to allow reflexive dlopens.
10813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10814
10815 # Compiler flag to generate shared objects directly from archives.
10816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10817
10818 # Compiler flag to generate thread-safe objects.
10819 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10820
10821 # Library versioning type.
10822 version_type=$version_type
10823
10824 # Format of library name prefix.
10825 libname_spec=$lt_libname_spec
10826
10827 # List of archive names. First name is the real one, the rest are links.
10828 # The last name is the one that the linker finds with -lNAME.
10829 library_names_spec=$lt_library_names_spec
10830
10831 # The coded name of the library, if different from the real name.
10832 soname_spec=$lt_soname_spec
10833
10834 # Commands used to build and install an old-style archive.
10835 RANLIB=$lt_RANLIB
10836 old_archive_cmds=$lt_old_archive_cmds
10837 old_postinstall_cmds=$lt_old_postinstall_cmds
10838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10839
10840 # Create an old-style archive from a shared archive.
10841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10842
10843 # Create a temporary old-style archive to link instead of a shared archive.
10844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10845
10846 # Commands used to build and install a shared archive.
10847 archive_cmds=$lt_archive_cmds
10848 archive_expsym_cmds=$lt_archive_expsym_cmds
10849 postinstall_cmds=$lt_postinstall_cmds
10850 postuninstall_cmds=$lt_postuninstall_cmds
10851
10852 # Commands used to build a loadable module (assumed same as above if empty)
10853 module_cmds=$lt_module_cmds
10854 module_expsym_cmds=$lt_module_expsym_cmds
10855
10856 # Commands to strip libraries.
10857 old_striplib=$lt_old_striplib
10858 striplib=$lt_striplib
10859
10860 # Dependencies to place before the objects being linked to create a
10861 # shared library.
10862 predep_objects=$lt_predep_objects
10863
10864 # Dependencies to place after the objects being linked to create a
10865 # shared library.
10866 postdep_objects=$lt_postdep_objects
10867
10868 # Dependencies to place before the objects being linked to create a
10869 # shared library.
10870 predeps=$lt_predeps
10871
10872 # Dependencies to place after the objects being linked to create a
10873 # shared library.
10874 postdeps=$lt_postdeps
10875
10876 # The directories searched by this compiler when creating a shared
10877 # library
10878 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10879
10880 # The library search path used internally by the compiler when linking
10881 # a shared library.
10882 compiler_lib_search_path=$lt_compiler_lib_search_path
10883
10884 # Method to check whether dependent libraries are shared objects.
10885 deplibs_check_method=$lt_deplibs_check_method
10886
10887 # Command to use when deplibs_check_method == file_magic.
10888 file_magic_cmd=$lt_file_magic_cmd
10889
10890 # Flag that allows shared libraries with undefined symbols to be built.
10891 allow_undefined_flag=$lt_allow_undefined_flag
10892
10893 # Flag that forces no undefined symbols.
10894 no_undefined_flag=$lt_no_undefined_flag
10895
10896 # Commands used to finish a libtool library installation in a directory.
10897 finish_cmds=$lt_finish_cmds
10898
10899 # Same as above, but a single script fragment to be evaled but not shown.
10900 finish_eval=$lt_finish_eval
10901
10902 # Take the output of nm and produce a listing of raw symbols and C names.
10903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10904
10905 # Transform the output of nm in a proper C declaration
10906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10907
10908 # Transform the output of nm in a C name address pair
10909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10910
10911 # This is the shared library runtime path variable.
10912 runpath_var=$runpath_var
10913
10914 # This is the shared library path variable.
10915 shlibpath_var=$shlibpath_var
10916
10917 # Is shlibpath searched before the hard-coded library search path?
10918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10919
10920 # How to hardcode a shared library path into an executable.
10921 hardcode_action=$hardcode_action
10922
10923 # Whether we should hardcode library paths into libraries.
10924 hardcode_into_libs=$hardcode_into_libs
10925
10926 # Flag to hardcode \$libdir into a binary during linking.
10927 # This must work even if \$libdir does not exist.
10928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10929
10930 # If ld is used when linking, flag to hardcode \$libdir into
10931 # a binary during linking. This must work even if \$libdir does
10932 # not exist.
10933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10934
10935 # Whether we need a single -rpath flag with a separated argument.
10936 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10937
10938 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10939 # resulting binary.
10940 hardcode_direct=$hardcode_direct
10941
10942 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10943 # resulting binary.
10944 hardcode_minus_L=$hardcode_minus_L
10945
10946 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10947 # the resulting binary.
10948 hardcode_shlibpath_var=$hardcode_shlibpath_var
10949
10950 # Set to yes if building a shared library automatically hardcodes DIR into the library
10951 # and all subsequent libraries and executables linked against it.
10952 hardcode_automatic=$hardcode_automatic
10953
10954 # Variables whose values should be saved in libtool wrapper scripts and
10955 # restored at relink time.
10956 variables_saved_for_relink="$variables_saved_for_relink"
10957
10958 # Whether libtool must link a program against all its dependency libraries.
10959 link_all_deplibs=$link_all_deplibs
10960
10961 # Compile-time system search path for libraries
10962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10963
10964 # Run-time system search path for libraries
10965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10966
10967 # Fix the shell variable \$srcfile for the compiler.
10968 fix_srcfile_path=$lt_fix_srcfile_path
10969
10970 # Set to yes if exported symbols are required.
10971 always_export_symbols=$always_export_symbols
10972
10973 # The commands to list exported symbols.
10974 export_symbols_cmds=$lt_export_symbols_cmds
10975
10976 # The commands to extract the exported symbol list from a shared archive.
10977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10978
10979 # Symbols that should not be listed in the preloaded symbols.
10980 exclude_expsyms=$lt_exclude_expsyms
10981
10982 # Symbols that must always be exported.
10983 include_expsyms=$lt_include_expsyms
10984
10985 # ### END LIBTOOL CONFIG
10986
10987 __EOF__
10988
10989
10990 case $host_os in
10991 aix3*)
10992 cat <<\EOF >> "$cfgfile"
10993
10994 # AIX sometimes has problems with the GCC collect2 program. For some
10995 # reason, if we set the COLLECT_NAMES environment variable, the problems
10996 # vanish in a puff of smoke.
10997 if test "X${COLLECT_NAMES+set}" != Xset; then
10998 COLLECT_NAMES=
10999 export COLLECT_NAMES
11000 fi
11001 EOF
11002 ;;
11003 esac
11004
11005 # We use sed instead of cat because bash on DJGPP gets confused if
11006 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11007 # text mode, it properly converts lines to CR/LF. This bash problem
11008 # is reportedly fixed, but why not run on old versions too?
11009 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11010
11011 mv -f "$cfgfile" "$ofile" || \
11012 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11013 chmod +x "$ofile"
11014
11015 else
11016 # If there is no Makefile yet, we rely on a make rule to execute
11017 # `config.status --recheck' to rerun these tests and create the
11018 # libtool script then.
11019 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11020 if test -f "$ltmain_in"; then
11021 test -f Makefile && make "$ltmain"
11022 fi
11023 fi
11024
11025
11026 ac_ext=c
11027 ac_cpp='$CPP $CPPFLAGS'
11028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11031
11032 CC="$lt_save_CC"
11033
11034
11035 # Check whether --with-tags was given.
11036 if test "${with_tags+set}" = set; then
11037 withval=$with_tags; tagnames="$withval"
11038 fi
11039
11040
11041 if test -f "$ltmain" && test -n "$tagnames"; then
11042 if test ! -f "${ofile}"; then
11043 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11044 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11045 fi
11046
11047 if test -z "$LTCC"; then
11048 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11049 if test -z "$LTCC"; then
11050 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11051 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11052 else
11053 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11054 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11055 fi
11056 fi
11057 if test -z "$LTCFLAGS"; then
11058 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11059 fi
11060
11061 # Extract list of available tagged configurations in $ofile.
11062 # Note that this assumes the entire list is on one line.
11063 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11064
11065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11066 for tagname in $tagnames; do
11067 IFS="$lt_save_ifs"
11068 # Check whether tagname contains only valid characters
11069 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11070 "") ;;
11071 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11072 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11073 { (exit 1); exit 1; }; }
11074 ;;
11075 esac
11076
11077 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11078 then
11079 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11080 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11081 { (exit 1); exit 1; }; }
11082 fi
11083
11084 # Update the list of available tags.
11085 if test -n "$tagname"; then
11086 echo appending configuration tag \"$tagname\" to $ofile
11087
11088 case $tagname in
11089 CXX)
11090 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11091 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11092 (test "X$CXX" != "Xg++"))) ; then
11093 ac_ext=cpp
11094 ac_cpp='$CXXCPP $CPPFLAGS'
11095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11098
11099
11100
11101
11102 archive_cmds_need_lc_CXX=no
11103 allow_undefined_flag_CXX=
11104 always_export_symbols_CXX=no
11105 archive_expsym_cmds_CXX=
11106 export_dynamic_flag_spec_CXX=
11107 hardcode_direct_CXX=no
11108 hardcode_libdir_flag_spec_CXX=
11109 hardcode_libdir_flag_spec_ld_CXX=
11110 hardcode_libdir_separator_CXX=
11111 hardcode_minus_L_CXX=no
11112 hardcode_shlibpath_var_CXX=unsupported
11113 hardcode_automatic_CXX=no
11114 module_cmds_CXX=
11115 module_expsym_cmds_CXX=
11116 link_all_deplibs_CXX=unknown
11117 old_archive_cmds_CXX=$old_archive_cmds
11118 no_undefined_flag_CXX=
11119 whole_archive_flag_spec_CXX=
11120 enable_shared_with_static_runtimes_CXX=no
11121
11122 # Dependencies to place before and after the object being linked:
11123 predep_objects_CXX=
11124 postdep_objects_CXX=
11125 predeps_CXX=
11126 postdeps_CXX=
11127 compiler_lib_search_path_CXX=
11128 compiler_lib_search_dirs_CXX=
11129
11130 # Source file extension for C++ test sources.
11131 ac_ext=cpp
11132
11133 # Object file extension for compiled C++ test sources.
11134 objext=o
11135 objext_CXX=$objext
11136
11137 # Code to be used in simple compile tests
11138 lt_simple_compile_test_code="int some_variable = 0;"
11139
11140 # Code to be used in simple link tests
11141 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11142
11143 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11144
11145 # If no C compiler was specified, use CC.
11146 LTCC=${LTCC-"$CC"}
11147
11148 # If no C compiler flags were specified, use CFLAGS.
11149 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11150
11151 # Allow CC to be a program name with arguments.
11152 compiler=$CC
11153
11154
11155 # save warnings/boilerplate of simple test code
11156 ac_outfile=conftest.$ac_objext
11157 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11158 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11159 _lt_compiler_boilerplate=`cat conftest.err`
11160 $rm conftest*
11161
11162 ac_outfile=conftest.$ac_objext
11163 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11164 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11165 _lt_linker_boilerplate=`cat conftest.err`
11166 $rm -r conftest*
11167
11168
11169 # Allow CC to be a program name with arguments.
11170 lt_save_CC=$CC
11171 lt_save_LD=$LD
11172 lt_save_GCC=$GCC
11173 GCC=$GXX
11174 lt_save_with_gnu_ld=$with_gnu_ld
11175 lt_save_path_LD=$lt_cv_path_LD
11176 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11177 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11178 else
11179 $as_unset lt_cv_prog_gnu_ld
11180 fi
11181 if test -n "${lt_cv_path_LDCXX+set}"; then
11182 lt_cv_path_LD=$lt_cv_path_LDCXX
11183 else
11184 $as_unset lt_cv_path_LD
11185 fi
11186 test -z "${LDCXX+set}" || LD=$LDCXX
11187 CC=${CXX-"c++"}
11188 compiler=$CC
11189 compiler_CXX=$CC
11190 for cc_temp in $compiler""; do
11191 case $cc_temp in
11192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11194 \-*) ;;
11195 *) break;;
11196 esac
11197 done
11198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11199
11200
11201 # We don't want -fno-exception wen compiling C++ code, so set the
11202 # no_builtin_flag separately
11203 if test "$GXX" = yes; then
11204 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11205 else
11206 lt_prog_compiler_no_builtin_flag_CXX=
11207 fi
11208
11209 if test "$GXX" = yes; then
11210 # Set up default GNU C++ configuration
11211
11212
11213 # Check whether --with-gnu-ld was given.
11214 if test "${with_gnu_ld+set}" = set; then
11215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11216 else
11217 with_gnu_ld=no
11218 fi
11219
11220 ac_prog=ld
11221 if test "$GCC" = yes; then
11222 # Check if gcc -print-prog-name=ld gives a path.
11223 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11224 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11225 case $host in
11226 *-*-mingw*)
11227 # gcc leaves a trailing carriage return which upsets mingw
11228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11229 *)
11230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11231 esac
11232 case $ac_prog in
11233 # Accept absolute paths.
11234 [\\/]* | ?:[\\/]*)
11235 re_direlt='/[^/][^/]*/\.\./'
11236 # Canonicalize the pathname of ld
11237 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11238 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11239 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11240 done
11241 test -z "$LD" && LD="$ac_prog"
11242 ;;
11243 "")
11244 # If it fails, then pretend we aren't using GCC.
11245 ac_prog=ld
11246 ;;
11247 *)
11248 # If it is relative, then search for the first ld in PATH.
11249 with_gnu_ld=unknown
11250 ;;
11251 esac
11252 elif test "$with_gnu_ld" = yes; then
11253 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11254 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11255 else
11256 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11257 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11258 fi
11259 if test "${lt_cv_path_LD+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262 if test -z "$LD"; then
11263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11264 for ac_dir in $PATH; do
11265 IFS="$lt_save_ifs"
11266 test -z "$ac_dir" && ac_dir=.
11267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11268 lt_cv_path_LD="$ac_dir/$ac_prog"
11269 # Check to see if the program is GNU ld. I'd rather use --version,
11270 # but apparently some variants of GNU ld only accept -v.
11271 # Break only if it was the GNU/non-GNU ld that we prefer.
11272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11273 *GNU* | *'with BFD'*)
11274 test "$with_gnu_ld" != no && break
11275 ;;
11276 *)
11277 test "$with_gnu_ld" != yes && break
11278 ;;
11279 esac
11280 fi
11281 done
11282 IFS="$lt_save_ifs"
11283 else
11284 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11285 fi
11286 fi
11287
11288 LD="$lt_cv_path_LD"
11289 if test -n "$LD"; then
11290 { echo "$as_me:$LINENO: result: $LD" >&5
11291 echo "${ECHO_T}$LD" >&6; }
11292 else
11293 { echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6; }
11295 fi
11296 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11297 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11298 { (exit 1); exit 1; }; }
11299 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11300 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11301 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11305 case `$LD -v 2>&1 </dev/null` in
11306 *GNU* | *'with BFD'*)
11307 lt_cv_prog_gnu_ld=yes
11308 ;;
11309 *)
11310 lt_cv_prog_gnu_ld=no
11311 ;;
11312 esac
11313 fi
11314 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11315 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11316 with_gnu_ld=$lt_cv_prog_gnu_ld
11317
11318
11319
11320 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11321 # archiving commands below assume that GNU ld is being used.
11322 if test "$with_gnu_ld" = yes; then
11323 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11324 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'
11325
11326 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11328
11329 # If archive_cmds runs LD, not CC, wlarc should be empty
11330 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11331 # investigate it a little bit more. (MM)
11332 wlarc='${wl}'
11333
11334 # ancient GNU ld didn't support --whole-archive et. al.
11335 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11336 grep 'no-whole-archive' > /dev/null; then
11337 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11338 else
11339 whole_archive_flag_spec_CXX=
11340 fi
11341 else
11342 with_gnu_ld=no
11343 wlarc=
11344
11345 # A generic and very simple default shared library creation
11346 # command for GNU C++ for the case where it uses the native
11347 # linker, instead of GNU ld. If possible, this setting should
11348 # overridden to take advantage of the native linker features on
11349 # the platform it is being used on.
11350 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11351 fi
11352
11353 # Commands to make compiler produce verbose output that lists
11354 # what "hidden" libraries, object files and flags are used when
11355 # linking a shared library.
11356 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11357
11358 else
11359 GXX=no
11360 with_gnu_ld=no
11361 wlarc=
11362 fi
11363
11364 # PORTME: fill in a description of your system's C++ link characteristics
11365 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11367 ld_shlibs_CXX=yes
11368 case $host_os in
11369 aix3*)
11370 # FIXME: insert proper C++ library support
11371 ld_shlibs_CXX=no
11372 ;;
11373 aix[4-9]*)
11374 if test "$host_cpu" = ia64; then
11375 # On IA64, the linker does run time linking by default, so we don't
11376 # have to do anything special.
11377 aix_use_runtimelinking=no
11378 exp_sym_flag='-Bexport'
11379 no_entry_flag=""
11380 else
11381 aix_use_runtimelinking=no
11382
11383 # Test if we are trying to use run time linking or normal
11384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11385 # need to do runtime linking.
11386 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11387 for ld_flag in $LDFLAGS; do
11388 case $ld_flag in
11389 *-brtl*)
11390 aix_use_runtimelinking=yes
11391 break
11392 ;;
11393 esac
11394 done
11395 ;;
11396 esac
11397
11398 exp_sym_flag='-bexport'
11399 no_entry_flag='-bnoentry'
11400 fi
11401
11402 # When large executables or shared objects are built, AIX ld can
11403 # have problems creating the table of contents. If linking a library
11404 # or program results in "error TOC overflow" add -mminimal-toc to
11405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11407
11408 archive_cmds_CXX=''
11409 hardcode_direct_CXX=yes
11410 hardcode_libdir_separator_CXX=':'
11411 link_all_deplibs_CXX=yes
11412
11413 if test "$GXX" = yes; then
11414 case $host_os in aix4.[012]|aix4.[012].*)
11415 # We only want to do this on AIX 4.2 and lower, the check
11416 # below for broken collect2 doesn't work under 4.3+
11417 collect2name=`${CC} -print-prog-name=collect2`
11418 if test -f "$collect2name" && \
11419 strings "$collect2name" | grep resolve_lib_name >/dev/null
11420 then
11421 # We have reworked collect2
11422 :
11423 else
11424 # We have old collect2
11425 hardcode_direct_CXX=unsupported
11426 # It fails to find uninstalled libraries when the uninstalled
11427 # path is not listed in the libpath. Setting hardcode_minus_L
11428 # to unsupported forces relinking
11429 hardcode_minus_L_CXX=yes
11430 hardcode_libdir_flag_spec_CXX='-L$libdir'
11431 hardcode_libdir_separator_CXX=
11432 fi
11433 ;;
11434 esac
11435 shared_flag='-shared'
11436 if test "$aix_use_runtimelinking" = yes; then
11437 shared_flag="$shared_flag "'${wl}-G'
11438 fi
11439 else
11440 # not using gcc
11441 if test "$host_cpu" = ia64; then
11442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11443 # chokes on -Wl,-G. The following line is correct:
11444 shared_flag='-G'
11445 else
11446 if test "$aix_use_runtimelinking" = yes; then
11447 shared_flag='${wl}-G'
11448 else
11449 shared_flag='${wl}-bM:SRE'
11450 fi
11451 fi
11452 fi
11453
11454 # It seems that -bexpall does not export symbols beginning with
11455 # underscore (_), so it is better to generate a list of symbols to export.
11456 always_export_symbols_CXX=yes
11457 if test "$aix_use_runtimelinking" = yes; then
11458 # Warning - without using the other runtime loading flags (-brtl),
11459 # -berok will link without error, but may produce a broken library.
11460 allow_undefined_flag_CXX='-berok'
11461 # Determine the default libpath from the value encoded in an empty executable.
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468
11469 int
11470 main ()
11471 {
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_cxx_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest$ac_exeext &&
11494 $as_test_x conftest$ac_exeext; then
11495
11496 lt_aix_libpath_sed='
11497 /Import File Strings/,/^$/ {
11498 /^0/ {
11499 s/^0 *\(.*\)$/\1/
11500 p
11501 }
11502 }'
11503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11504 # Check for a 64-bit object if we didn't find anything.
11505 if test -z "$aix_libpath"; then
11506 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11507 fi
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512
11513 fi
11514
11515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11516 conftest$ac_exeext conftest.$ac_ext
11517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11518
11519 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11520
11521 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"
11522 else
11523 if test "$host_cpu" = ia64; then
11524 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11525 allow_undefined_flag_CXX="-z nodefs"
11526 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"
11527 else
11528 # Determine the default libpath from the value encoded in an empty executable.
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535
11536 int
11537 main ()
11538 {
11539
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_cxx_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest$ac_exeext &&
11561 $as_test_x conftest$ac_exeext; then
11562
11563 lt_aix_libpath_sed='
11564 /Import File Strings/,/^$/ {
11565 /^0/ {
11566 s/^0 *\(.*\)$/\1/
11567 p
11568 }
11569 }'
11570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11571 # Check for a 64-bit object if we didn't find anything.
11572 if test -z "$aix_libpath"; then
11573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11574 fi
11575 else
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579
11580 fi
11581
11582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11583 conftest$ac_exeext conftest.$ac_ext
11584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11585
11586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11587 # Warning - without using the other run time loading flags,
11588 # -berok will link without error, but may produce a broken library.
11589 no_undefined_flag_CXX=' ${wl}-bernotok'
11590 allow_undefined_flag_CXX=' ${wl}-berok'
11591 # Exported symbols can be pulled into shared objects from archives
11592 whole_archive_flag_spec_CXX='$convenience'
11593 archive_cmds_need_lc_CXX=yes
11594 # This is similar to how AIX traditionally builds its shared libraries.
11595 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'
11596 fi
11597 fi
11598 ;;
11599
11600 beos*)
11601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11602 allow_undefined_flag_CXX=unsupported
11603 # Joseph Beckenbach <[email protected]> says some releases of gcc
11604 # support --undefined. This deserves some investigation. FIXME
11605 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11606 else
11607 ld_shlibs_CXX=no
11608 fi
11609 ;;
11610
11611 chorus*)
11612 case $cc_basename in
11613 *)
11614 # FIXME: insert proper C++ library support
11615 ld_shlibs_CXX=no
11616 ;;
11617 esac
11618 ;;
11619
11620 cygwin* | mingw* | pw32*)
11621 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11622 # as there is no search path for DLLs.
11623 hardcode_libdir_flag_spec_CXX='-L$libdir'
11624 allow_undefined_flag_CXX=unsupported
11625 always_export_symbols_CXX=no
11626 enable_shared_with_static_runtimes_CXX=yes
11627
11628 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11629 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'
11630 # If the export-symbols file already is a .def file (1st line
11631 # is EXPORTS), use it as is; otherwise, prepend...
11632 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11633 cp $export_symbols $output_objdir/$soname.def;
11634 else
11635 echo EXPORTS > $output_objdir/$soname.def;
11636 cat $export_symbols >> $output_objdir/$soname.def;
11637 fi~
11638 $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'
11639 else
11640 ld_shlibs_CXX=no
11641 fi
11642 ;;
11643 darwin* | rhapsody*)
11644 archive_cmds_need_lc_CXX=no
11645 hardcode_direct_CXX=no
11646 hardcode_automatic_CXX=yes
11647 hardcode_shlibpath_var_CXX=unsupported
11648 whole_archive_flag_spec_CXX=''
11649 link_all_deplibs_CXX=yes
11650 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11651 if test "$GXX" = yes ; then
11652 output_verbose_link_cmd='echo'
11653 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11654 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11655 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11656 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11657 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11658 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11659 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11660 fi
11661 else
11662 case $cc_basename in
11663 xlc*)
11664 output_verbose_link_cmd='echo'
11665 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11666 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11668 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11669 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}'
11670 ;;
11671 *)
11672 ld_shlibs_CXX=no
11673 ;;
11674 esac
11675 fi
11676 ;;
11677
11678 dgux*)
11679 case $cc_basename in
11680 ec++*)
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 ;;
11684 ghcx*)
11685 # Green Hills C++ Compiler
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 *)
11690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11692 ;;
11693 esac
11694 ;;
11695 freebsd[12]*)
11696 # C++ shared libraries reported to be fairly broken before switch to ELF
11697 ld_shlibs_CXX=no
11698 ;;
11699 freebsd-elf*)
11700 archive_cmds_need_lc_CXX=no
11701 ;;
11702 freebsd* | dragonfly*)
11703 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11704 # conventions
11705 ld_shlibs_CXX=yes
11706 ;;
11707 gnu*)
11708 ;;
11709 hpux9*)
11710 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11711 hardcode_libdir_separator_CXX=:
11712 export_dynamic_flag_spec_CXX='${wl}-E'
11713 hardcode_direct_CXX=yes
11714 hardcode_minus_L_CXX=yes # Not in the search PATH,
11715 # but as the default
11716 # location of the library.
11717
11718 case $cc_basename in
11719 CC*)
11720 # FIXME: insert proper C++ library support
11721 ld_shlibs_CXX=no
11722 ;;
11723 aCC*)
11724 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'
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11728 #
11729 # There doesn't appear to be a way to prevent this compiler from
11730 # explicitly linking system object files so we need to strip them
11731 # from the output so that they don't get included in the library
11732 # dependencies.
11733 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'
11734 ;;
11735 *)
11736 if test "$GXX" = yes; then
11737 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'
11738 else
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11741 fi
11742 ;;
11743 esac
11744 ;;
11745 hpux10*|hpux11*)
11746 if test $with_gnu_ld = no; then
11747 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11748 hardcode_libdir_separator_CXX=:
11749
11750 case $host_cpu in
11751 hppa*64*|ia64*) ;;
11752 *)
11753 export_dynamic_flag_spec_CXX='${wl}-E'
11754 ;;
11755 esac
11756 fi
11757 case $host_cpu in
11758 hppa*64*|ia64*)
11759 hardcode_direct_CXX=no
11760 hardcode_shlibpath_var_CXX=no
11761 ;;
11762 *)
11763 hardcode_direct_CXX=yes
11764 hardcode_minus_L_CXX=yes # Not in the search PATH,
11765 # but as the default
11766 # location of the library.
11767 ;;
11768 esac
11769
11770 case $cc_basename in
11771 CC*)
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 aCC*)
11776 case $host_cpu in
11777 hppa*64*)
11778 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11779 ;;
11780 ia64*)
11781 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782 ;;
11783 *)
11784 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11785 ;;
11786 esac
11787 # Commands to make compiler produce verbose output that lists
11788 # what "hidden" libraries, object files and flags are used when
11789 # linking a shared library.
11790 #
11791 # There doesn't appear to be a way to prevent this compiler from
11792 # explicitly linking system object files so we need to strip them
11793 # from the output so that they don't get included in the library
11794 # dependencies.
11795 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'
11796 ;;
11797 *)
11798 if test "$GXX" = yes; then
11799 if test $with_gnu_ld = no; then
11800 case $host_cpu in
11801 hppa*64*)
11802 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11803 ;;
11804 ia64*)
11805 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11806 ;;
11807 *)
11808 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'
11809 ;;
11810 esac
11811 fi
11812 else
11813 # FIXME: insert proper C++ library support
11814 ld_shlibs_CXX=no
11815 fi
11816 ;;
11817 esac
11818 ;;
11819 interix[3-9]*)
11820 hardcode_direct_CXX=no
11821 hardcode_shlibpath_var_CXX=no
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11823 export_dynamic_flag_spec_CXX='${wl}-E'
11824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11825 # Instead, shared libraries are loaded at an image base (0x10000000 by
11826 # default) and relocated if they conflict, which is a slow very memory
11827 # consuming and fragmenting process. To avoid this, we pick a random,
11828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11830 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'
11831 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'
11832 ;;
11833 irix5* | irix6*)
11834 case $cc_basename in
11835 CC*)
11836 # SGI C++
11837 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'
11838
11839 # Archives containing C++ object files must be created using
11840 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11841 # necessary to make sure instantiated templates are included
11842 # in the archive.
11843 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11844 ;;
11845 *)
11846 if test "$GXX" = yes; then
11847 if test "$with_gnu_ld" = no; then
11848 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'
11849 else
11850 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'
11851 fi
11852 fi
11853 link_all_deplibs_CXX=yes
11854 ;;
11855 esac
11856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11857 hardcode_libdir_separator_CXX=:
11858 ;;
11859 linux* | k*bsd*-gnu)
11860 case $cc_basename in
11861 KCC*)
11862 # Kuck and Associates, Inc. (KAI) C++ Compiler
11863
11864 # KCC will only create a shared library if the output file
11865 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11866 # to its proper name (with version) after linking.
11867 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'
11868 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'
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 #
11873 # There doesn't appear to be a way to prevent this compiler from
11874 # explicitly linking system object files so we need to strip them
11875 # from the output so that they don't get included in the library
11876 # dependencies.
11877 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'
11878
11879 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11881
11882 # Archives containing C++ object files must be created using
11883 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11884 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11885 ;;
11886 icpc*)
11887 # Intel C++
11888 with_gnu_ld=yes
11889 # version 8.0 and above of icpc choke on multiply defined symbols
11890 # if we add $predep_objects and $postdep_objects, however 7.1 and
11891 # earlier do not add the objects themselves.
11892 case `$CC -V 2>&1` in
11893 *"Version 7."*)
11894 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11895 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'
11896 ;;
11897 *) # Version 8.0 or newer
11898 tmp_idyn=
11899 case $host_cpu in
11900 ia64*) tmp_idyn=' -i_dynamic';;
11901 esac
11902 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11903 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'
11904 ;;
11905 esac
11906 archive_cmds_need_lc_CXX=no
11907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11909 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11910 ;;
11911 pgCC* | pgcpp*)
11912 # Portland Group C++ compiler
11913 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11914 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'
11915
11916 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11918 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'
11919 ;;
11920 cxx*)
11921 # Compaq C++
11922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11923 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'
11924
11925 runpath_var=LD_RUN_PATH
11926 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11927 hardcode_libdir_separator_CXX=:
11928
11929 # Commands to make compiler produce verbose output that lists
11930 # what "hidden" libraries, object files and flags are used when
11931 # linking a shared library.
11932 #
11933 # There doesn't appear to be a way to prevent this compiler from
11934 # explicitly linking system object files so we need to strip them
11935 # from the output so that they don't get included in the library
11936 # dependencies.
11937 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'
11938 ;;
11939 *)
11940 case `$CC -V 2>&1 | sed 5q` in
11941 *Sun\ C*)
11942 # Sun C++ 5.9
11943 no_undefined_flag_CXX=' -zdefs'
11944 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11946 hardcode_libdir_flag_spec_CXX='-R$libdir'
11947 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11948
11949 # Not sure whether something based on
11950 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11951 # would be better.
11952 output_verbose_link_cmd='echo'
11953
11954 # Archives containing C++ object files must be created using
11955 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11956 # necessary to make sure instantiated templates are included
11957 # in the archive.
11958 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11959 ;;
11960 esac
11961 ;;
11962 esac
11963 ;;
11964 lynxos*)
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968 m88k*)
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 ;;
11972 mvs*)
11973 case $cc_basename in
11974 cxx*)
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11977 ;;
11978 *)
11979 # FIXME: insert proper C++ library support
11980 ld_shlibs_CXX=no
11981 ;;
11982 esac
11983 ;;
11984 netbsd*)
11985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11986 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11987 wlarc=
11988 hardcode_libdir_flag_spec_CXX='-R$libdir'
11989 hardcode_direct_CXX=yes
11990 hardcode_shlibpath_var_CXX=no
11991 fi
11992 # Workaround some broken pre-1.5 toolchains
11993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11994 ;;
11995 openbsd2*)
11996 # C++ shared libraries are fairly broken
11997 ld_shlibs_CXX=no
11998 ;;
11999 openbsd*)
12000 if test -f /usr/libexec/ld.so; then
12001 hardcode_direct_CXX=yes
12002 hardcode_shlibpath_var_CXX=no
12003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12006 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12007 export_dynamic_flag_spec_CXX='${wl}-E'
12008 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12009 fi
12010 output_verbose_link_cmd='echo'
12011 else
12012 ld_shlibs_CXX=no
12013 fi
12014 ;;
12015 osf3*)
12016 case $cc_basename in
12017 KCC*)
12018 # Kuck and Associates, Inc. (KAI) C++ Compiler
12019
12020 # KCC will only create a shared library if the output file
12021 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022 # to its proper name (with version) after linking.
12023 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'
12024
12025 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12026 hardcode_libdir_separator_CXX=:
12027
12028 # Archives containing C++ object files must be created using
12029 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12030 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12031
12032 ;;
12033 RCC*)
12034 # Rational C++ 2.4.1
12035 # FIXME: insert proper C++ library support
12036 ld_shlibs_CXX=no
12037 ;;
12038 cxx*)
12039 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12040 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'
12041
12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12043 hardcode_libdir_separator_CXX=:
12044
12045 # Commands to make compiler produce verbose output that lists
12046 # what "hidden" libraries, object files and flags are used when
12047 # linking a shared library.
12048 #
12049 # There doesn't appear to be a way to prevent this compiler from
12050 # explicitly linking system object files so we need to strip them
12051 # from the output so that they don't get included in the library
12052 # dependencies.
12053 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'
12054 ;;
12055 *)
12056 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12057 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12058 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'
12059
12060 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12061 hardcode_libdir_separator_CXX=:
12062
12063 # Commands to make compiler produce verbose output that lists
12064 # what "hidden" libraries, object files and flags are used when
12065 # linking a shared library.
12066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12067
12068 else
12069 # FIXME: insert proper C++ library support
12070 ld_shlibs_CXX=no
12071 fi
12072 ;;
12073 esac
12074 ;;
12075 osf4* | osf5*)
12076 case $cc_basename in
12077 KCC*)
12078 # Kuck and Associates, Inc. (KAI) C++ Compiler
12079
12080 # KCC will only create a shared library if the output file
12081 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12082 # to its proper name (with version) after linking.
12083 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'
12084
12085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12086 hardcode_libdir_separator_CXX=:
12087
12088 # Archives containing C++ object files must be created using
12089 # the KAI C++ compiler.
12090 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12091 ;;
12092 RCC*)
12093 # Rational C++ 2.4.1
12094 # FIXME: insert proper C++ library support
12095 ld_shlibs_CXX=no
12096 ;;
12097 cxx*)
12098 allow_undefined_flag_CXX=' -expect_unresolved \*'
12099 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'
12100 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12101 echo "-hidden">> $lib.exp~
12102 $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~
12103 $rm $lib.exp'
12104
12105 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12106 hardcode_libdir_separator_CXX=:
12107
12108 # Commands to make compiler produce verbose output that lists
12109 # what "hidden" libraries, object files and flags are used when
12110 # linking a shared library.
12111 #
12112 # There doesn't appear to be a way to prevent this compiler from
12113 # explicitly linking system object files so we need to strip them
12114 # from the output so that they don't get included in the library
12115 # dependencies.
12116 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'
12117 ;;
12118 *)
12119 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12121 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'
12122
12123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12124 hardcode_libdir_separator_CXX=:
12125
12126 # Commands to make compiler produce verbose output that lists
12127 # what "hidden" libraries, object files and flags are used when
12128 # linking a shared library.
12129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12130
12131 else
12132 # FIXME: insert proper C++ library support
12133 ld_shlibs_CXX=no
12134 fi
12135 ;;
12136 esac
12137 ;;
12138 psos*)
12139 # FIXME: insert proper C++ library support
12140 ld_shlibs_CXX=no
12141 ;;
12142 sunos4*)
12143 case $cc_basename in
12144 CC*)
12145 # Sun C++ 4.x
12146 # FIXME: insert proper C++ library support
12147 ld_shlibs_CXX=no
12148 ;;
12149 lcc*)
12150 # Lucid
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12153 ;;
12154 *)
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12157 ;;
12158 esac
12159 ;;
12160 solaris*)
12161 case $cc_basename in
12162 CC*)
12163 # Sun C++ 4.2, 5.x and Centerline C++
12164 archive_cmds_need_lc_CXX=yes
12165 no_undefined_flag_CXX=' -zdefs'
12166 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12167 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12168 $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'
12169
12170 hardcode_libdir_flag_spec_CXX='-R$libdir'
12171 hardcode_shlibpath_var_CXX=no
12172 case $host_os in
12173 solaris2.[0-5] | solaris2.[0-5].*) ;;
12174 *)
12175 # The compiler driver will combine and reorder linker options,
12176 # but understands `-z linker_flag'.
12177 # Supported since Solaris 2.6 (maybe 2.5.1?)
12178 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12179 ;;
12180 esac
12181 link_all_deplibs_CXX=yes
12182
12183 output_verbose_link_cmd='echo'
12184
12185 # Archives containing C++ object files must be created using
12186 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12187 # necessary to make sure instantiated templates are included
12188 # in the archive.
12189 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12190 ;;
12191 gcx*)
12192 # Green Hills C++ Compiler
12193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12194
12195 # The C++ compiler must be used to create the archive.
12196 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12197 ;;
12198 *)
12199 # GNU C++ compiler with Solaris linker
12200 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12201 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12202 if $CC --version | grep -v '^2\.7' > /dev/null; then
12203 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12205 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12206
12207 # Commands to make compiler produce verbose output that lists
12208 # what "hidden" libraries, object files and flags are used when
12209 # linking a shared library.
12210 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12211 else
12212 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12213 # platform.
12214 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12215 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12216 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12217
12218 # Commands to make compiler produce verbose output that lists
12219 # what "hidden" libraries, object files and flags are used when
12220 # linking a shared library.
12221 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12222 fi
12223
12224 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12225 case $host_os in
12226 solaris2.[0-5] | solaris2.[0-5].*) ;;
12227 *)
12228 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12229 ;;
12230 esac
12231 fi
12232 ;;
12233 esac
12234 ;;
12235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12236 no_undefined_flag_CXX='${wl}-z,text'
12237 archive_cmds_need_lc_CXX=no
12238 hardcode_shlibpath_var_CXX=no
12239 runpath_var='LD_RUN_PATH'
12240
12241 case $cc_basename in
12242 CC*)
12243 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12244 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12245 ;;
12246 *)
12247 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12248 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12249 ;;
12250 esac
12251 ;;
12252 sysv5* | sco3.2v5* | sco5v6*)
12253 # Note: We can NOT use -z defs as we might desire, because we do not
12254 # link with -lc, and that would cause any symbols used from libc to
12255 # always be unresolved, which means just about no library would
12256 # ever link correctly. If we're not using GNU ld we use -z text
12257 # though, which does catch some bad symbols but isn't as heavy-handed
12258 # as -z defs.
12259 # For security reasons, it is highly recommended that you always
12260 # use absolute paths for naming shared libraries, and exclude the
12261 # DT_RUNPATH tag from executables and libraries. But doing so
12262 # requires that you compile everything twice, which is a pain.
12263 # So that behaviour is only enabled if SCOABSPATH is set to a
12264 # non-empty value in the environment. Most likely only useful for
12265 # creating official distributions of packages.
12266 # This is a hack until libtool officially supports absolute path
12267 # names for shared libraries.
12268 no_undefined_flag_CXX='${wl}-z,text'
12269 allow_undefined_flag_CXX='${wl}-z,nodefs'
12270 archive_cmds_need_lc_CXX=no
12271 hardcode_shlibpath_var_CXX=no
12272 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12273 hardcode_libdir_separator_CXX=':'
12274 link_all_deplibs_CXX=yes
12275 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12276 runpath_var='LD_RUN_PATH'
12277
12278 case $cc_basename in
12279 CC*)
12280 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12282 ;;
12283 *)
12284 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12286 ;;
12287 esac
12288 ;;
12289 tandem*)
12290 case $cc_basename in
12291 NCC*)
12292 # NonStop-UX NCC 3.20
12293 # FIXME: insert proper C++ library support
12294 ld_shlibs_CXX=no
12295 ;;
12296 *)
12297 # FIXME: insert proper C++ library support
12298 ld_shlibs_CXX=no
12299 ;;
12300 esac
12301 ;;
12302 vxworks*)
12303 # FIXME: insert proper C++ library support
12304 ld_shlibs_CXX=no
12305 ;;
12306 *)
12307 # FIXME: insert proper C++ library support
12308 ld_shlibs_CXX=no
12309 ;;
12310 esac
12311 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12312 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12313 test "$ld_shlibs_CXX" = no && can_build_shared=no
12314
12315 GCC_CXX="$GXX"
12316 LD_CXX="$LD"
12317
12318 cat > conftest.$ac_ext <<EOF
12319 class Foo
12320 {
12321 public:
12322 Foo (void) { a = 0; }
12323 private:
12324 int a;
12325 };
12326 EOF
12327
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; then
12333 # Parse the compiler output and extract the necessary
12334 # objects, libraries and library flags.
12335
12336 # Sentinel used to keep track of whether or not we are before
12337 # the conftest object file.
12338 pre_test_object_deps_done=no
12339
12340 # The `*' in the case matches for architectures that use `case' in
12341 # $output_verbose_cmd can trigger glob expansion during the loop
12342 # eval without this substitution.
12343 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12344
12345 for p in `eval $output_verbose_link_cmd`; do
12346 case $p in
12347
12348 -L* | -R* | -l*)
12349 # Some compilers place space between "-{L,R}" and the path.
12350 # Remove the space.
12351 if test $p = "-L" \
12352 || test $p = "-R"; then
12353 prev=$p
12354 continue
12355 else
12356 prev=
12357 fi
12358
12359 if test "$pre_test_object_deps_done" = no; then
12360 case $p in
12361 -L* | -R*)
12362 # Internal compiler library paths should come after those
12363 # provided the user. The postdeps already come after the
12364 # user supplied libs so there is no need to process them.
12365 if test -z "$compiler_lib_search_path_CXX"; then
12366 compiler_lib_search_path_CXX="${prev}${p}"
12367 else
12368 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12369 fi
12370 ;;
12371 # The "-l" case would never come before the object being
12372 # linked, so don't bother handling this case.
12373 esac
12374 else
12375 if test -z "$postdeps_CXX"; then
12376 postdeps_CXX="${prev}${p}"
12377 else
12378 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12379 fi
12380 fi
12381 ;;
12382
12383 *.$objext)
12384 # This assumes that the test object file only shows up
12385 # once in the compiler output.
12386 if test "$p" = "conftest.$objext"; then
12387 pre_test_object_deps_done=yes
12388 continue
12389 fi
12390
12391 if test "$pre_test_object_deps_done" = no; then
12392 if test -z "$predep_objects_CXX"; then
12393 predep_objects_CXX="$p"
12394 else
12395 predep_objects_CXX="$predep_objects_CXX $p"
12396 fi
12397 else
12398 if test -z "$postdep_objects_CXX"; then
12399 postdep_objects_CXX="$p"
12400 else
12401 postdep_objects_CXX="$postdep_objects_CXX $p"
12402 fi
12403 fi
12404 ;;
12405
12406 *) ;; # Ignore the rest.
12407
12408 esac
12409 done
12410
12411 # Clean up.
12412 rm -f a.out a.exe
12413 else
12414 echo "libtool.m4: error: problem compiling CXX test program"
12415 fi
12416
12417 $rm -f confest.$objext
12418
12419 compiler_lib_search_dirs_CXX=
12420 if test -n "$compiler_lib_search_path_CXX"; then
12421 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12422 fi
12423
12424 # PORTME: override above test on systems where it is broken
12425 case $host_os in
12426 interix[3-9]*)
12427 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12428 # hack all around it, let's just trust "g++" to DTRT.
12429 predep_objects_CXX=
12430 postdep_objects_CXX=
12431 postdeps_CXX=
12432 ;;
12433
12434 linux*)
12435 case `$CC -V 2>&1 | sed 5q` in
12436 *Sun\ C*)
12437 # Sun C++ 5.9
12438 #
12439 # The more standards-conforming stlport4 library is
12440 # incompatible with the Cstd library. Avoid specifying
12441 # it if it's in CXXFLAGS. Ignore libCrun as
12442 # -library=stlport4 depends on it.
12443 case " $CXX $CXXFLAGS " in
12444 *" -library=stlport4 "*)
12445 solaris_use_stlport4=yes
12446 ;;
12447 esac
12448 if test "$solaris_use_stlport4" != yes; then
12449 postdeps_CXX='-library=Cstd -library=Crun'
12450 fi
12451 ;;
12452 esac
12453 ;;
12454
12455 solaris*)
12456 case $cc_basename in
12457 CC*)
12458 # The more standards-conforming stlport4 library is
12459 # incompatible with the Cstd library. Avoid specifying
12460 # it if it's in CXXFLAGS. Ignore libCrun as
12461 # -library=stlport4 depends on it.
12462 case " $CXX $CXXFLAGS " in
12463 *" -library=stlport4 "*)
12464 solaris_use_stlport4=yes
12465 ;;
12466 esac
12467
12468 # Adding this requires a known-good setup of shared libraries for
12469 # Sun compiler versions before 5.6, else PIC objects from an old
12470 # archive will be linked into the output, leading to subtle bugs.
12471 if test "$solaris_use_stlport4" != yes; then
12472 postdeps_CXX='-library=Cstd -library=Crun'
12473 fi
12474 ;;
12475 esac
12476 ;;
12477 esac
12478
12479 case " $postdeps_CXX " in
12480 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12481 esac
12482
12483 lt_prog_compiler_wl_CXX=
12484 lt_prog_compiler_pic_CXX=
12485 lt_prog_compiler_static_CXX=
12486
12487 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12489
12490 # C++ specific cases for pic, static, wl, etc.
12491 if test "$GXX" = yes; then
12492 lt_prog_compiler_wl_CXX='-Wl,'
12493 lt_prog_compiler_static_CXX='-static'
12494
12495 case $host_os in
12496 aix*)
12497 # All AIX code is PIC.
12498 if test "$host_cpu" = ia64; then
12499 # AIX 5 now supports IA64 processor
12500 lt_prog_compiler_static_CXX='-Bstatic'
12501 fi
12502 ;;
12503 amigaos*)
12504 # FIXME: we need at least 68020 code to build shared libraries, but
12505 # adding the `-m68020' flag to GCC prevents building anything better,
12506 # like `-m68040'.
12507 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12508 ;;
12509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12510 # PIC is the default for these OSes.
12511 ;;
12512 mingw* | cygwin* | os2* | pw32*)
12513 # This hack is so that the source file can tell whether it is being
12514 # built for inclusion in a dll (and should export symbols for example).
12515 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12516 # (--disable-auto-import) libraries
12517 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12518 ;;
12519 darwin* | rhapsody*)
12520 # PIC is the default on this platform
12521 # Common symbols not allowed in MH_DYLIB files
12522 lt_prog_compiler_pic_CXX='-fno-common'
12523 ;;
12524 *djgpp*)
12525 # DJGPP does not support shared libraries at all
12526 lt_prog_compiler_pic_CXX=
12527 ;;
12528 interix[3-9]*)
12529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12530 # Instead, we relocate shared libraries at runtime.
12531 ;;
12532 sysv4*MP*)
12533 if test -d /usr/nec; then
12534 lt_prog_compiler_pic_CXX=-Kconform_pic
12535 fi
12536 ;;
12537 hpux*)
12538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12539 # not for PA HP-UX.
12540 case $host_cpu in
12541 hppa*64*|ia64*)
12542 ;;
12543 *)
12544 lt_prog_compiler_pic_CXX='-fPIC'
12545 ;;
12546 esac
12547 ;;
12548 *)
12549 lt_prog_compiler_pic_CXX='-fPIC'
12550 ;;
12551 esac
12552 else
12553 case $host_os in
12554 aix[4-9]*)
12555 # All AIX code is PIC.
12556 if test "$host_cpu" = ia64; then
12557 # AIX 5 now supports IA64 processor
12558 lt_prog_compiler_static_CXX='-Bstatic'
12559 else
12560 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12561 fi
12562 ;;
12563 chorus*)
12564 case $cc_basename in
12565 cxch68*)
12566 # Green Hills C++ Compiler
12567 # _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"
12568 ;;
12569 esac
12570 ;;
12571 darwin*)
12572 # PIC is the default on this platform
12573 # Common symbols not allowed in MH_DYLIB files
12574 case $cc_basename in
12575 xlc*)
12576 lt_prog_compiler_pic_CXX='-qnocommon'
12577 lt_prog_compiler_wl_CXX='-Wl,'
12578 ;;
12579 esac
12580 ;;
12581 dgux*)
12582 case $cc_basename in
12583 ec++*)
12584 lt_prog_compiler_pic_CXX='-KPIC'
12585 ;;
12586 ghcx*)
12587 # Green Hills C++ Compiler
12588 lt_prog_compiler_pic_CXX='-pic'
12589 ;;
12590 *)
12591 ;;
12592 esac
12593 ;;
12594 freebsd* | dragonfly*)
12595 # FreeBSD uses GNU C++
12596 ;;
12597 hpux9* | hpux10* | hpux11*)
12598 case $cc_basename in
12599 CC*)
12600 lt_prog_compiler_wl_CXX='-Wl,'
12601 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12602 if test "$host_cpu" != ia64; then
12603 lt_prog_compiler_pic_CXX='+Z'
12604 fi
12605 ;;
12606 aCC*)
12607 lt_prog_compiler_wl_CXX='-Wl,'
12608 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12609 case $host_cpu in
12610 hppa*64*|ia64*)
12611 # +Z the default
12612 ;;
12613 *)
12614 lt_prog_compiler_pic_CXX='+Z'
12615 ;;
12616 esac
12617 ;;
12618 *)
12619 ;;
12620 esac
12621 ;;
12622 interix*)
12623 # This is c89, which is MS Visual C++ (no shared libs)
12624 # Anyone wants to do a port?
12625 ;;
12626 irix5* | irix6* | nonstopux*)
12627 case $cc_basename in
12628 CC*)
12629 lt_prog_compiler_wl_CXX='-Wl,'
12630 lt_prog_compiler_static_CXX='-non_shared'
12631 # CC pic flag -KPIC is the default.
12632 ;;
12633 *)
12634 ;;
12635 esac
12636 ;;
12637 linux* | k*bsd*-gnu)
12638 case $cc_basename in
12639 KCC*)
12640 # KAI C++ Compiler
12641 lt_prog_compiler_wl_CXX='--backend -Wl,'
12642 lt_prog_compiler_pic_CXX='-fPIC'
12643 ;;
12644 icpc* | ecpc*)
12645 # Intel C++
12646 lt_prog_compiler_wl_CXX='-Wl,'
12647 lt_prog_compiler_pic_CXX='-KPIC'
12648 lt_prog_compiler_static_CXX='-static'
12649 ;;
12650 pgCC* | pgcpp*)
12651 # Portland Group C++ compiler.
12652 lt_prog_compiler_wl_CXX='-Wl,'
12653 lt_prog_compiler_pic_CXX='-fpic'
12654 lt_prog_compiler_static_CXX='-Bstatic'
12655 ;;
12656 cxx*)
12657 # Compaq C++
12658 # Make sure the PIC flag is empty. It appears that all Alpha
12659 # Linux and Compaq Tru64 Unix objects are PIC.
12660 lt_prog_compiler_pic_CXX=
12661 lt_prog_compiler_static_CXX='-non_shared'
12662 ;;
12663 *)
12664 case `$CC -V 2>&1 | sed 5q` in
12665 *Sun\ C*)
12666 # Sun C++ 5.9
12667 lt_prog_compiler_pic_CXX='-KPIC'
12668 lt_prog_compiler_static_CXX='-Bstatic'
12669 lt_prog_compiler_wl_CXX='-Qoption ld '
12670 ;;
12671 esac
12672 ;;
12673 esac
12674 ;;
12675 lynxos*)
12676 ;;
12677 m88k*)
12678 ;;
12679 mvs*)
12680 case $cc_basename in
12681 cxx*)
12682 lt_prog_compiler_pic_CXX='-W c,exportall'
12683 ;;
12684 *)
12685 ;;
12686 esac
12687 ;;
12688 netbsd*)
12689 ;;
12690 osf3* | osf4* | osf5*)
12691 case $cc_basename in
12692 KCC*)
12693 lt_prog_compiler_wl_CXX='--backend -Wl,'
12694 ;;
12695 RCC*)
12696 # Rational C++ 2.4.1
12697 lt_prog_compiler_pic_CXX='-pic'
12698 ;;
12699 cxx*)
12700 # Digital/Compaq C++
12701 lt_prog_compiler_wl_CXX='-Wl,'
12702 # Make sure the PIC flag is empty. It appears that all Alpha
12703 # Linux and Compaq Tru64 Unix objects are PIC.
12704 lt_prog_compiler_pic_CXX=
12705 lt_prog_compiler_static_CXX='-non_shared'
12706 ;;
12707 *)
12708 ;;
12709 esac
12710 ;;
12711 psos*)
12712 ;;
12713 solaris*)
12714 case $cc_basename in
12715 CC*)
12716 # Sun C++ 4.2, 5.x and Centerline C++
12717 lt_prog_compiler_pic_CXX='-KPIC'
12718 lt_prog_compiler_static_CXX='-Bstatic'
12719 lt_prog_compiler_wl_CXX='-Qoption ld '
12720 ;;
12721 gcx*)
12722 # Green Hills C++ Compiler
12723 lt_prog_compiler_pic_CXX='-PIC'
12724 ;;
12725 *)
12726 ;;
12727 esac
12728 ;;
12729 sunos4*)
12730 case $cc_basename in
12731 CC*)
12732 # Sun C++ 4.x
12733 lt_prog_compiler_pic_CXX='-pic'
12734 lt_prog_compiler_static_CXX='-Bstatic'
12735 ;;
12736 lcc*)
12737 # Lucid
12738 lt_prog_compiler_pic_CXX='-pic'
12739 ;;
12740 *)
12741 ;;
12742 esac
12743 ;;
12744 tandem*)
12745 case $cc_basename in
12746 NCC*)
12747 # NonStop-UX NCC 3.20
12748 lt_prog_compiler_pic_CXX='-KPIC'
12749 ;;
12750 *)
12751 ;;
12752 esac
12753 ;;
12754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12755 case $cc_basename in
12756 CC*)
12757 lt_prog_compiler_wl_CXX='-Wl,'
12758 lt_prog_compiler_pic_CXX='-KPIC'
12759 lt_prog_compiler_static_CXX='-Bstatic'
12760 ;;
12761 esac
12762 ;;
12763 vxworks*)
12764 ;;
12765 *)
12766 lt_prog_compiler_can_build_shared_CXX=no
12767 ;;
12768 esac
12769 fi
12770
12771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12772 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12773
12774 #
12775 # Check to make sure the PIC flag actually works.
12776 #
12777 if test -n "$lt_prog_compiler_pic_CXX"; then
12778
12779 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12781 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 lt_cv_prog_compiler_pic_works_CXX=no
12785 ac_outfile=conftest.$ac_objext
12786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12787 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12788 # Insert the option either (1) after the last *FLAGS variable, or
12789 # (2) before a word containing "conftest.", or (3) at the end.
12790 # Note that $ac_compile itself does not contain backslashes and begins
12791 # with a dollar sign (not a hyphen), so the echo should work correctly.
12792 # The option is referenced via a variable to avoid confusing sed.
12793 lt_compile=`echo "$ac_compile" | $SED \
12794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12796 -e 's:$: $lt_compiler_flag:'`
12797 (eval echo "\"\$as_me:12797: $lt_compile\"" >&5)
12798 (eval "$lt_compile" 2>conftest.err)
12799 ac_status=$?
12800 cat conftest.err >&5
12801 echo "$as_me:12801: \$? = $ac_status" >&5
12802 if (exit $ac_status) && test -s "$ac_outfile"; then
12803 # The compiler can only warn and ignore the option if not recognized
12804 # So say no if there are warnings other than the usual output.
12805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12808 lt_cv_prog_compiler_pic_works_CXX=yes
12809 fi
12810 fi
12811 $rm conftest*
12812
12813 fi
12814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12815 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12816
12817 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12818 case $lt_prog_compiler_pic_CXX in
12819 "" | " "*) ;;
12820 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12821 esac
12822 else
12823 lt_prog_compiler_pic_CXX=
12824 lt_prog_compiler_can_build_shared_CXX=no
12825 fi
12826
12827 fi
12828 case $host_os in
12829 # For platforms which do not support PIC, -DPIC is meaningless:
12830 *djgpp*)
12831 lt_prog_compiler_pic_CXX=
12832 ;;
12833 *)
12834 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12835 ;;
12836 esac
12837
12838 #
12839 # Check to make sure the static flag actually works.
12840 #
12841 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12842 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12843 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12844 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847 lt_cv_prog_compiler_static_works_CXX=no
12848 save_LDFLAGS="$LDFLAGS"
12849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12852 # The linker can only warn and ignore the option if not recognized
12853 # So say no if there are warnings
12854 if test -s conftest.err; then
12855 # Append any errors to the config.log.
12856 cat conftest.err 1>&5
12857 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12859 if diff conftest.exp conftest.er2 >/dev/null; then
12860 lt_cv_prog_compiler_static_works_CXX=yes
12861 fi
12862 else
12863 lt_cv_prog_compiler_static_works_CXX=yes
12864 fi
12865 fi
12866 $rm -r conftest*
12867 LDFLAGS="$save_LDFLAGS"
12868
12869 fi
12870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12871 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12872
12873 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12874 :
12875 else
12876 lt_prog_compiler_static_CXX=
12877 fi
12878
12879
12880 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885 lt_cv_prog_compiler_c_o_CXX=no
12886 $rm -r conftest 2>/dev/null
12887 mkdir conftest
12888 cd conftest
12889 mkdir out
12890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12891
12892 lt_compiler_flag="-o out/conftest2.$ac_objext"
12893 # Insert the option either (1) after the last *FLAGS variable, or
12894 # (2) before a word containing "conftest.", or (3) at the end.
12895 # Note that $ac_compile itself does not contain backslashes and begins
12896 # with a dollar sign (not a hyphen), so the echo should work correctly.
12897 lt_compile=`echo "$ac_compile" | $SED \
12898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12900 -e 's:$: $lt_compiler_flag:'`
12901 (eval echo "\"\$as_me:12901: $lt_compile\"" >&5)
12902 (eval "$lt_compile" 2>out/conftest.err)
12903 ac_status=$?
12904 cat out/conftest.err >&5
12905 echo "$as_me:12905: \$? = $ac_status" >&5
12906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12907 then
12908 # The compiler can only warn and ignore the option if not recognized
12909 # So say no if there are warnings
12910 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12913 lt_cv_prog_compiler_c_o_CXX=yes
12914 fi
12915 fi
12916 chmod u+w . 2>&5
12917 $rm conftest*
12918 # SGI C++ compiler will create directory out/ii_files/ for
12919 # template instantiation
12920 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12921 $rm out/* && rmdir out
12922 cd ..
12923 rmdir conftest
12924 $rm conftest*
12925
12926 fi
12927 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12929
12930
12931 hard_links="nottested"
12932 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12933 # do not overwrite the value of need_locks provided by the user
12934 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12936 hard_links=yes
12937 $rm conftest*
12938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12939 touch conftest.a
12940 ln conftest.a conftest.b 2>&5 || hard_links=no
12941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12942 { echo "$as_me:$LINENO: result: $hard_links" >&5
12943 echo "${ECHO_T}$hard_links" >&6; }
12944 if test "$hard_links" = no; then
12945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12947 need_locks=warn
12948 fi
12949 else
12950 need_locks=no
12951 fi
12952
12953 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12954 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12955
12956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12957 case $host_os in
12958 aix[4-9]*)
12959 # If we're using GNU nm, then we don't want the "-C" option.
12960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12962 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'
12963 else
12964 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'
12965 fi
12966 ;;
12967 pw32*)
12968 export_symbols_cmds_CXX="$ltdll_cmds"
12969 ;;
12970 cygwin* | mingw*)
12971 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'
12972 ;;
12973 *)
12974 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12975 ;;
12976 esac
12977 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12978
12979 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12980 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12981 test "$ld_shlibs_CXX" = no && can_build_shared=no
12982
12983 #
12984 # Do we need to explicitly link libc?
12985 #
12986 case "x$archive_cmds_need_lc_CXX" in
12987 x|xyes)
12988 # Assume -lc should be added
12989 archive_cmds_need_lc_CXX=yes
12990
12991 if test "$enable_shared" = yes && test "$GCC" = yes; then
12992 case $archive_cmds_CXX in
12993 *'~'*)
12994 # FIXME: we may have to deal with multi-command sequences.
12995 ;;
12996 '$CC '*)
12997 # Test whether the compiler implicitly links with -lc since on some
12998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12999 # to ld, don't add -lc before -lgcc.
13000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13002 $rm conftest*
13003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13004
13005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006 (eval $ac_compile) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } 2>conftest.err; then
13010 soname=conftest
13011 lib=conftest
13012 libobjs=conftest.$ac_objext
13013 deplibs=
13014 wl=$lt_prog_compiler_wl_CXX
13015 pic_flag=$lt_prog_compiler_pic_CXX
13016 compiler_flags=-v
13017 linker_flags=-v
13018 verstring=
13019 output_objdir=.
13020 libname=conftest
13021 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13022 allow_undefined_flag_CXX=
13023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13024 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }
13028 then
13029 archive_cmds_need_lc_CXX=no
13030 else
13031 archive_cmds_need_lc_CXX=yes
13032 fi
13033 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13034 else
13035 cat conftest.err 1>&5
13036 fi
13037 $rm conftest*
13038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13040 ;;
13041 esac
13042 fi
13043 ;;
13044 esac
13045
13046 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13048 library_names_spec=
13049 libname_spec='lib$name'
13050 soname_spec=
13051 shrext_cmds=".so"
13052 postinstall_cmds=
13053 postuninstall_cmds=
13054 finish_cmds=
13055 finish_eval=
13056 shlibpath_var=
13057 shlibpath_overrides_runpath=unknown
13058 version_type=none
13059 dynamic_linker="$host_os ld.so"
13060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13061
13062 need_lib_prefix=unknown
13063 hardcode_into_libs=no
13064
13065 # when you set need_version to no, make sure it does not cause -set_version
13066 # flags to be left without arguments
13067 need_version=unknown
13068
13069 case $host_os in
13070 aix3*)
13071 version_type=linux
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13073 shlibpath_var=LIBPATH
13074
13075 # AIX 3 has no versioning support, so we append a major version to the name.
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 ;;
13078
13079 aix[4-9]*)
13080 version_type=linux
13081 need_lib_prefix=no
13082 need_version=no
13083 hardcode_into_libs=yes
13084 if test "$host_cpu" = ia64; then
13085 # AIX 5 supports IA64
13086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 else
13089 # With GCC up to 2.95.x, collect2 would create an import file
13090 # for dependence libraries. The import file would start with
13091 # the line `#! .'. This would cause the generated library to
13092 # depend on `.', always an invalid library. This was fixed in
13093 # development snapshots of GCC prior to 3.0.
13094 case $host_os in
13095 aix4 | aix4.[01] | aix4.[01].*)
13096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13097 echo ' yes '
13098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13099 :
13100 else
13101 can_build_shared=no
13102 fi
13103 ;;
13104 esac
13105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13106 # soname into executable. Probably we can add versioning support to
13107 # collect2, so additional links can be useful in future.
13108 if test "$aix_use_runtimelinking" = yes; then
13109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13110 # instead of lib<name>.a to let people know that these are not
13111 # typical AIX shared libraries.
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 else
13114 # We preserve .a as extension for shared libraries through AIX4.2
13115 # and later when we are not doing run time linking.
13116 library_names_spec='${libname}${release}.a $libname.a'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 fi
13119 shlibpath_var=LIBPATH
13120 fi
13121 ;;
13122
13123 amigaos*)
13124 library_names_spec='$libname.ixlibrary $libname.a'
13125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13126 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'
13127 ;;
13128
13129 beos*)
13130 library_names_spec='${libname}${shared_ext}'
13131 dynamic_linker="$host_os ld.so"
13132 shlibpath_var=LIBRARY_PATH
13133 ;;
13134
13135 bsdi[45]*)
13136 version_type=linux
13137 need_version=no
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139 soname_spec='${libname}${release}${shared_ext}$major'
13140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13144 # the default ld.so.conf also contains /usr/contrib/lib and
13145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13146 # libtool to hard-code these into programs
13147 ;;
13148
13149 cygwin* | mingw* | pw32*)
13150 version_type=windows
13151 shrext_cmds=".dll"
13152 need_version=no
13153 need_lib_prefix=no
13154
13155 case $GCC,$host_os in
13156 yes,cygwin* | yes,mingw* | yes,pw32*)
13157 library_names_spec='$libname.dll.a'
13158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13159 postinstall_cmds='base_file=`basename \${file}`~
13160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13161 dldir=$destdir/`dirname \$dlpath`~
13162 test -d \$dldir || mkdir -p \$dldir~
13163 $install_prog $dir/$dlname \$dldir/$dlname~
13164 chmod a+x \$dldir/$dlname'
13165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166 dlpath=$dir/\$dldll~
13167 $rm \$dlpath'
13168 shlibpath_overrides_runpath=yes
13169
13170 case $host_os in
13171 cygwin*)
13172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13175 ;;
13176 mingw*)
13177 # MinGW DLLs use traditional 'lib' prefix
13178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13181 # It is most probably a Windows format PATH printed by
13182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13183 # path with ; separators, and with drive letters. We can handle the
13184 # drive letters (cygwin fileutils understands them), so leave them,
13185 # especially as we might pass files found there to a mingw objdump,
13186 # which wouldn't understand a cygwinified path. Ahh.
13187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188 else
13189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13190 fi
13191 ;;
13192 pw32*)
13193 # pw32 DLLs use 'pw' prefix rather than 'lib'
13194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13195 ;;
13196 esac
13197 ;;
13198
13199 *)
13200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13201 ;;
13202 esac
13203 dynamic_linker='Win32 ld.exe'
13204 # FIXME: first we should search . and the directory the executable is in
13205 shlibpath_var=PATH
13206 ;;
13207
13208 darwin* | rhapsody*)
13209 dynamic_linker="$host_os dyld"
13210 version_type=darwin
13211 need_lib_prefix=no
13212 need_version=no
13213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13214 soname_spec='${libname}${release}${major}$shared_ext'
13215 shlibpath_overrides_runpath=yes
13216 shlibpath_var=DYLD_LIBRARY_PATH
13217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13218
13219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13220 ;;
13221
13222 dgux*)
13223 version_type=linux
13224 need_lib_prefix=no
13225 need_version=no
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LD_LIBRARY_PATH
13229 ;;
13230
13231 freebsd1*)
13232 dynamic_linker=no
13233 ;;
13234
13235 freebsd* | dragonfly*)
13236 # DragonFly does not have aout. When/if they implement a new
13237 # versioning mechanism, adjust this.
13238 if test -x /usr/bin/objformat; then
13239 objformat=`/usr/bin/objformat`
13240 else
13241 case $host_os in
13242 freebsd[123]*) objformat=aout ;;
13243 *) objformat=elf ;;
13244 esac
13245 fi
13246 # Handle Gentoo/FreeBSD as it was Linux
13247 case $host_vendor in
13248 gentoo)
13249 version_type=linux ;;
13250 *)
13251 version_type=freebsd-$objformat ;;
13252 esac
13253
13254 case $version_type in
13255 freebsd-elf*)
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13257 need_version=no
13258 need_lib_prefix=no
13259 ;;
13260 freebsd-*)
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13262 need_version=yes
13263 ;;
13264 linux)
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13266 soname_spec='${libname}${release}${shared_ext}$major'
13267 need_lib_prefix=no
13268 need_version=no
13269 ;;
13270 esac
13271 shlibpath_var=LD_LIBRARY_PATH
13272 case $host_os in
13273 freebsd2*)
13274 shlibpath_overrides_runpath=yes
13275 ;;
13276 freebsd3.[01]* | freebsdelf3.[01]*)
13277 shlibpath_overrides_runpath=yes
13278 hardcode_into_libs=yes
13279 ;;
13280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13282 shlibpath_overrides_runpath=no
13283 hardcode_into_libs=yes
13284 ;;
13285 *) # from 4.6 on, and DragonFly
13286 shlibpath_overrides_runpath=yes
13287 hardcode_into_libs=yes
13288 ;;
13289 esac
13290 ;;
13291
13292 gnu*)
13293 version_type=linux
13294 need_lib_prefix=no
13295 need_version=no
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 hardcode_into_libs=yes
13300 ;;
13301
13302 hpux9* | hpux10* | hpux11*)
13303 # Give a soname corresponding to the major version so that dld.sl refuses to
13304 # link against other versions.
13305 version_type=sunos
13306 need_lib_prefix=no
13307 need_version=no
13308 case $host_cpu in
13309 ia64*)
13310 shrext_cmds='.so'
13311 hardcode_into_libs=yes
13312 dynamic_linker="$host_os dld.so"
13313 shlibpath_var=LD_LIBRARY_PATH
13314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316 soname_spec='${libname}${release}${shared_ext}$major'
13317 if test "X$HPUX_IA64_MODE" = X32; then
13318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13319 else
13320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13321 fi
13322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13323 ;;
13324 hppa*64*)
13325 shrext_cmds='.sl'
13326 hardcode_into_libs=yes
13327 dynamic_linker="$host_os dld.sl"
13328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13334 ;;
13335 *)
13336 shrext_cmds='.sl'
13337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=SHLIB_PATH
13339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 ;;
13343 esac
13344 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13345 postinstall_cmds='chmod 555 $lib'
13346 ;;
13347
13348 interix[3-9]*)
13349 version_type=linux
13350 need_lib_prefix=no
13351 need_version=no
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13353 soname_spec='${libname}${release}${shared_ext}$major'
13354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13355 shlibpath_var=LD_LIBRARY_PATH
13356 shlibpath_overrides_runpath=no
13357 hardcode_into_libs=yes
13358 ;;
13359
13360 irix5* | irix6* | nonstopux*)
13361 case $host_os in
13362 nonstopux*) version_type=nonstopux ;;
13363 *)
13364 if test "$lt_cv_prog_gnu_ld" = yes; then
13365 version_type=linux
13366 else
13367 version_type=irix
13368 fi ;;
13369 esac
13370 need_lib_prefix=no
13371 need_version=no
13372 soname_spec='${libname}${release}${shared_ext}$major'
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13374 case $host_os in
13375 irix5* | nonstopux*)
13376 libsuff= shlibsuff=
13377 ;;
13378 *)
13379 case $LD in # libtool.m4 will add one of these switches to LD
13380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13381 libsuff= shlibsuff= libmagic=32-bit;;
13382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13383 libsuff=32 shlibsuff=N32 libmagic=N32;;
13384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13386 *) libsuff= shlibsuff= libmagic=never-match;;
13387 esac
13388 ;;
13389 esac
13390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13391 shlibpath_overrides_runpath=no
13392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13394 hardcode_into_libs=yes
13395 ;;
13396
13397 # No shared lib support for Linux oldld, aout, or coff.
13398 linux*oldld* | linux*aout* | linux*coff*)
13399 dynamic_linker=no
13400 ;;
13401
13402 # This must be Linux ELF.
13403 linux* | k*bsd*-gnu)
13404 version_type=linux
13405 need_lib_prefix=no
13406 need_version=no
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13410 shlibpath_var=LD_LIBRARY_PATH
13411 shlibpath_overrides_runpath=no
13412 # This implies no fast_install, which is unacceptable.
13413 # Some rework will be needed to allow for fast_install
13414 # before this can be enabled.
13415 hardcode_into_libs=yes
13416
13417 # Append ld.so.conf contents to the search path
13418 if test -f /etc/ld.so.conf; then
13419 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13421 fi
13422
13423 # We used to test for /lib/ld.so.1 and disable shared libraries on
13424 # powerpc, because MkLinux only supported shared libraries with the
13425 # GNU dynamic linker. Since this was broken with cross compilers,
13426 # most powerpc-linux boxes support dynamic linking these days and
13427 # people can always --disable-shared, the test was removed, and we
13428 # assume the GNU/Linux dynamic linker is in use.
13429 dynamic_linker='GNU/Linux ld.so'
13430 ;;
13431
13432 netbsd*)
13433 version_type=sunos
13434 need_lib_prefix=no
13435 need_version=no
13436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13439 dynamic_linker='NetBSD (a.out) ld.so'
13440 else
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 dynamic_linker='NetBSD ld.elf_so'
13444 fi
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13447 hardcode_into_libs=yes
13448 ;;
13449
13450 newsos6)
13451 version_type=linux
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=yes
13455 ;;
13456
13457 nto-qnx*)
13458 version_type=linux
13459 need_lib_prefix=no
13460 need_version=no
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 soname_spec='${libname}${release}${shared_ext}$major'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 ;;
13466
13467 openbsd*)
13468 version_type=sunos
13469 sys_lib_dlsearch_path_spec="/usr/lib"
13470 need_lib_prefix=no
13471 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13472 case $host_os in
13473 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13474 *) need_version=no ;;
13475 esac
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480 case $host_os in
13481 openbsd2.[89] | openbsd2.[89].*)
13482 shlibpath_overrides_runpath=no
13483 ;;
13484 *)
13485 shlibpath_overrides_runpath=yes
13486 ;;
13487 esac
13488 else
13489 shlibpath_overrides_runpath=yes
13490 fi
13491 ;;
13492
13493 os2*)
13494 libname_spec='$name'
13495 shrext_cmds=".dll"
13496 need_lib_prefix=no
13497 library_names_spec='$libname${shared_ext} $libname.a'
13498 dynamic_linker='OS/2 ld.exe'
13499 shlibpath_var=LIBPATH
13500 ;;
13501
13502 osf3* | osf4* | osf5*)
13503 version_type=osf
13504 need_lib_prefix=no
13505 need_version=no
13506 soname_spec='${libname}${release}${shared_ext}$major'
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13510 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13511 ;;
13512
13513 rdos*)
13514 dynamic_linker=no
13515 ;;
13516
13517 solaris*)
13518 version_type=linux
13519 need_lib_prefix=no
13520 need_version=no
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522 soname_spec='${libname}${release}${shared_ext}$major'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=yes
13525 hardcode_into_libs=yes
13526 # ldd complains unless libraries are executable
13527 postinstall_cmds='chmod +x $lib'
13528 ;;
13529
13530 sunos4*)
13531 version_type=sunos
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=yes
13536 if test "$with_gnu_ld" = yes; then
13537 need_lib_prefix=no
13538 fi
13539 need_version=yes
13540 ;;
13541
13542 sysv4 | sysv4.3*)
13543 version_type=linux
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 shlibpath_var=LD_LIBRARY_PATH
13547 case $host_vendor in
13548 sni)
13549 shlibpath_overrides_runpath=no
13550 need_lib_prefix=no
13551 export_dynamic_flag_spec='${wl}-Blargedynsym'
13552 runpath_var=LD_RUN_PATH
13553 ;;
13554 siemens)
13555 need_lib_prefix=no
13556 ;;
13557 motorola)
13558 need_lib_prefix=no
13559 need_version=no
13560 shlibpath_overrides_runpath=no
13561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13562 ;;
13563 esac
13564 ;;
13565
13566 sysv4*MP*)
13567 if test -d /usr/nec ;then
13568 version_type=linux
13569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13570 soname_spec='$libname${shared_ext}.$major'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 fi
13573 ;;
13574
13575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13576 version_type=freebsd-elf
13577 need_lib_prefix=no
13578 need_version=no
13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13580 soname_spec='${libname}${release}${shared_ext}$major'
13581 shlibpath_var=LD_LIBRARY_PATH
13582 hardcode_into_libs=yes
13583 if test "$with_gnu_ld" = yes; then
13584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13585 shlibpath_overrides_runpath=no
13586 else
13587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13588 shlibpath_overrides_runpath=yes
13589 case $host_os in
13590 sco3.2v5*)
13591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13592 ;;
13593 esac
13594 fi
13595 sys_lib_dlsearch_path_spec='/usr/lib'
13596 ;;
13597
13598 uts4*)
13599 version_type=linux
13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13601 soname_spec='${libname}${release}${shared_ext}$major'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 ;;
13604
13605 *)
13606 dynamic_linker=no
13607 ;;
13608 esac
13609 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13610 echo "${ECHO_T}$dynamic_linker" >&6; }
13611 test "$dynamic_linker" = no && can_build_shared=no
13612
13613 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13617 fi
13618
13619 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13624 fi
13625
13626 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13627
13628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13629 if test "$GCC" = yes; then
13630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13631 fi
13632
13633 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13634 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13635 hardcode_action_CXX=
13636 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13637 test -n "$runpath_var_CXX" || \
13638 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13639
13640 # We can hardcode non-existant directories.
13641 if test "$hardcode_direct_CXX" != no &&
13642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13643 # have to relink, otherwise we might link with an installed library
13644 # when we should be linking with a yet-to-be-installed one
13645 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13646 test "$hardcode_minus_L_CXX" != no; then
13647 # Linking always hardcodes the temporary library directory.
13648 hardcode_action_CXX=relink
13649 else
13650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13651 hardcode_action_CXX=immediate
13652 fi
13653 else
13654 # We cannot hardcode anything, or else we can only hardcode existing
13655 # directories.
13656 hardcode_action_CXX=unsupported
13657 fi
13658 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13659 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13660
13661 if test "$hardcode_action_CXX" = relink; then
13662 # Fast installation is not supported
13663 enable_fast_install=no
13664 elif test "$shlibpath_overrides_runpath" = yes ||
13665 test "$enable_shared" = no; then
13666 # Fast installation is not necessary
13667 enable_fast_install=needless
13668 fi
13669
13670
13671 # The else clause should only fire when bootstrapping the
13672 # libtool distribution, otherwise you forgot to ship ltmain.sh
13673 # with your package, and you will get complaints that there are
13674 # no rules to generate ltmain.sh.
13675 if test -f "$ltmain"; then
13676 # See if we are running on zsh, and set the options which allow our commands through
13677 # without removal of \ escapes.
13678 if test -n "${ZSH_VERSION+set}" ; then
13679 setopt NO_GLOB_SUBST
13680 fi
13681 # Now quote all the things that may contain metacharacters while being
13682 # careful not to overquote the AC_SUBSTed values. We take copies of the
13683 # variables and quote the copies for generation of the libtool script.
13684 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13685 SED SHELL STRIP \
13686 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13687 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13688 deplibs_check_method reload_flag reload_cmds need_locks \
13689 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13690 lt_cv_sys_global_symbol_to_c_name_address \
13691 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13692 old_postinstall_cmds old_postuninstall_cmds \
13693 compiler_CXX \
13694 CC_CXX \
13695 LD_CXX \
13696 lt_prog_compiler_wl_CXX \
13697 lt_prog_compiler_pic_CXX \
13698 lt_prog_compiler_static_CXX \
13699 lt_prog_compiler_no_builtin_flag_CXX \
13700 export_dynamic_flag_spec_CXX \
13701 thread_safe_flag_spec_CXX \
13702 whole_archive_flag_spec_CXX \
13703 enable_shared_with_static_runtimes_CXX \
13704 old_archive_cmds_CXX \
13705 old_archive_from_new_cmds_CXX \
13706 predep_objects_CXX \
13707 postdep_objects_CXX \
13708 predeps_CXX \
13709 postdeps_CXX \
13710 compiler_lib_search_path_CXX \
13711 compiler_lib_search_dirs_CXX \
13712 archive_cmds_CXX \
13713 archive_expsym_cmds_CXX \
13714 postinstall_cmds_CXX \
13715 postuninstall_cmds_CXX \
13716 old_archive_from_expsyms_cmds_CXX \
13717 allow_undefined_flag_CXX \
13718 no_undefined_flag_CXX \
13719 export_symbols_cmds_CXX \
13720 hardcode_libdir_flag_spec_CXX \
13721 hardcode_libdir_flag_spec_ld_CXX \
13722 hardcode_libdir_separator_CXX \
13723 hardcode_automatic_CXX \
13724 module_cmds_CXX \
13725 module_expsym_cmds_CXX \
13726 lt_cv_prog_compiler_c_o_CXX \
13727 fix_srcfile_path_CXX \
13728 exclude_expsyms_CXX \
13729 include_expsyms_CXX; do
13730
13731 case $var in
13732 old_archive_cmds_CXX | \
13733 old_archive_from_new_cmds_CXX | \
13734 archive_cmds_CXX | \
13735 archive_expsym_cmds_CXX | \
13736 module_cmds_CXX | \
13737 module_expsym_cmds_CXX | \
13738 old_archive_from_expsyms_cmds_CXX | \
13739 export_symbols_cmds_CXX | \
13740 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13741 postinstall_cmds | postuninstall_cmds | \
13742 old_postinstall_cmds | old_postuninstall_cmds | \
13743 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13744 # Double-quote double-evaled strings.
13745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13746 ;;
13747 *)
13748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13749 ;;
13750 esac
13751 done
13752
13753 case $lt_echo in
13754 *'\$0 --fallback-echo"')
13755 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13756 ;;
13757 esac
13758
13759 cfgfile="$ofile"
13760
13761 cat <<__EOF__ >> "$cfgfile"
13762 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13763
13764 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13765
13766 # Shell to use when invoking shell scripts.
13767 SHELL=$lt_SHELL
13768
13769 # Whether or not to build shared libraries.
13770 build_libtool_libs=$enable_shared
13771
13772 # Whether or not to build static libraries.
13773 build_old_libs=$enable_static
13774
13775 # Whether or not to add -lc for building shared libraries.
13776 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13777
13778 # Whether or not to disallow shared libs when runtime libs are static
13779 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13780
13781 # Whether or not to optimize for fast installation.
13782 fast_install=$enable_fast_install
13783
13784 # The host system.
13785 host_alias=$host_alias
13786 host=$host
13787 host_os=$host_os
13788
13789 # The build system.
13790 build_alias=$build_alias
13791 build=$build
13792 build_os=$build_os
13793
13794 # An echo program that does not interpret backslashes.
13795 echo=$lt_echo
13796
13797 # The archiver.
13798 AR=$lt_AR
13799 AR_FLAGS=$lt_AR_FLAGS
13800
13801 # A C compiler.
13802 LTCC=$lt_LTCC
13803
13804 # LTCC compiler flags.
13805 LTCFLAGS=$lt_LTCFLAGS
13806
13807 # A language-specific compiler.
13808 CC=$lt_compiler_CXX
13809
13810 # Is the compiler the GNU C compiler?
13811 with_gcc=$GCC_CXX
13812
13813 # An ERE matcher.
13814 EGREP=$lt_EGREP
13815
13816 # The linker used to build libraries.
13817 LD=$lt_LD_CXX
13818
13819 # Whether we need hard or soft links.
13820 LN_S=$lt_LN_S
13821
13822 # A BSD-compatible nm program.
13823 NM=$lt_NM
13824
13825 # A symbol stripping program
13826 STRIP=$lt_STRIP
13827
13828 # Used to examine libraries when file_magic_cmd begins "file"
13829 MAGIC_CMD=$MAGIC_CMD
13830
13831 # Used on cygwin: DLL creation program.
13832 DLLTOOL="$DLLTOOL"
13833
13834 # Used on cygwin: object dumper.
13835 OBJDUMP="$OBJDUMP"
13836
13837 # Used on cygwin: assembler.
13838 AS="$AS"
13839
13840 # The name of the directory that contains temporary libtool files.
13841 objdir=$objdir
13842
13843 # How to create reloadable object files.
13844 reload_flag=$lt_reload_flag
13845 reload_cmds=$lt_reload_cmds
13846
13847 # How to pass a linker flag through the compiler.
13848 wl=$lt_lt_prog_compiler_wl_CXX
13849
13850 # Object file suffix (normally "o").
13851 objext="$ac_objext"
13852
13853 # Old archive suffix (normally "a").
13854 libext="$libext"
13855
13856 # Shared library suffix (normally ".so").
13857 shrext_cmds='$shrext_cmds'
13858
13859 # Executable file suffix (normally "").
13860 exeext="$exeext"
13861
13862 # Additional compiler flags for building library objects.
13863 pic_flag=$lt_lt_prog_compiler_pic_CXX
13864 pic_mode=$pic_mode
13865
13866 # What is the maximum length of a command?
13867 max_cmd_len=$lt_cv_sys_max_cmd_len
13868
13869 # Does compiler simultaneously support -c and -o options?
13870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13871
13872 # Must we lock files when doing compilation?
13873 need_locks=$lt_need_locks
13874
13875 # Do we need the lib prefix for modules?
13876 need_lib_prefix=$need_lib_prefix
13877
13878 # Do we need a version for libraries?
13879 need_version=$need_version
13880
13881 # Whether dlopen is supported.
13882 dlopen_support=$enable_dlopen
13883
13884 # Whether dlopen of programs is supported.
13885 dlopen_self=$enable_dlopen_self
13886
13887 # Whether dlopen of statically linked programs is supported.
13888 dlopen_self_static=$enable_dlopen_self_static
13889
13890 # Compiler flag to prevent dynamic linking.
13891 link_static_flag=$lt_lt_prog_compiler_static_CXX
13892
13893 # Compiler flag to turn off builtin functions.
13894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13895
13896 # Compiler flag to allow reflexive dlopens.
13897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13898
13899 # Compiler flag to generate shared objects directly from archives.
13900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13901
13902 # Compiler flag to generate thread-safe objects.
13903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13904
13905 # Library versioning type.
13906 version_type=$version_type
13907
13908 # Format of library name prefix.
13909 libname_spec=$lt_libname_spec
13910
13911 # List of archive names. First name is the real one, the rest are links.
13912 # The last name is the one that the linker finds with -lNAME.
13913 library_names_spec=$lt_library_names_spec
13914
13915 # The coded name of the library, if different from the real name.
13916 soname_spec=$lt_soname_spec
13917
13918 # Commands used to build and install an old-style archive.
13919 RANLIB=$lt_RANLIB
13920 old_archive_cmds=$lt_old_archive_cmds_CXX
13921 old_postinstall_cmds=$lt_old_postinstall_cmds
13922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13923
13924 # Create an old-style archive from a shared archive.
13925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13926
13927 # Create a temporary old-style archive to link instead of a shared archive.
13928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13929
13930 # Commands used to build and install a shared archive.
13931 archive_cmds=$lt_archive_cmds_CXX
13932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13933 postinstall_cmds=$lt_postinstall_cmds
13934 postuninstall_cmds=$lt_postuninstall_cmds
13935
13936 # Commands used to build a loadable module (assumed same as above if empty)
13937 module_cmds=$lt_module_cmds_CXX
13938 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13939
13940 # Commands to strip libraries.
13941 old_striplib=$lt_old_striplib
13942 striplib=$lt_striplib
13943
13944 # Dependencies to place before the objects being linked to create a
13945 # shared library.
13946 predep_objects=$lt_predep_objects_CXX
13947
13948 # Dependencies to place after the objects being linked to create a
13949 # shared library.
13950 postdep_objects=$lt_postdep_objects_CXX
13951
13952 # Dependencies to place before the objects being linked to create a
13953 # shared library.
13954 predeps=$lt_predeps_CXX
13955
13956 # Dependencies to place after the objects being linked to create a
13957 # shared library.
13958 postdeps=$lt_postdeps_CXX
13959
13960 # The directories searched by this compiler when creating a shared
13961 # library
13962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13963
13964 # The library search path used internally by the compiler when linking
13965 # a shared library.
13966 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13967
13968 # Method to check whether dependent libraries are shared objects.
13969 deplibs_check_method=$lt_deplibs_check_method
13970
13971 # Command to use when deplibs_check_method == file_magic.
13972 file_magic_cmd=$lt_file_magic_cmd
13973
13974 # Flag that allows shared libraries with undefined symbols to be built.
13975 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13976
13977 # Flag that forces no undefined symbols.
13978 no_undefined_flag=$lt_no_undefined_flag_CXX
13979
13980 # Commands used to finish a libtool library installation in a directory.
13981 finish_cmds=$lt_finish_cmds
13982
13983 # Same as above, but a single script fragment to be evaled but not shown.
13984 finish_eval=$lt_finish_eval
13985
13986 # Take the output of nm and produce a listing of raw symbols and C names.
13987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13988
13989 # Transform the output of nm in a proper C declaration
13990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13991
13992 # Transform the output of nm in a C name address pair
13993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13994
13995 # This is the shared library runtime path variable.
13996 runpath_var=$runpath_var
13997
13998 # This is the shared library path variable.
13999 shlibpath_var=$shlibpath_var
14000
14001 # Is shlibpath searched before the hard-coded library search path?
14002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14003
14004 # How to hardcode a shared library path into an executable.
14005 hardcode_action=$hardcode_action_CXX
14006
14007 # Whether we should hardcode library paths into libraries.
14008 hardcode_into_libs=$hardcode_into_libs
14009
14010 # Flag to hardcode \$libdir into a binary during linking.
14011 # This must work even if \$libdir does not exist.
14012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14013
14014 # If ld is used when linking, flag to hardcode \$libdir into
14015 # a binary during linking. This must work even if \$libdir does
14016 # not exist.
14017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14018
14019 # Whether we need a single -rpath flag with a separated argument.
14020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14021
14022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14023 # resulting binary.
14024 hardcode_direct=$hardcode_direct_CXX
14025
14026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14027 # resulting binary.
14028 hardcode_minus_L=$hardcode_minus_L_CXX
14029
14030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14031 # the resulting binary.
14032 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14033
14034 # Set to yes if building a shared library automatically hardcodes DIR into the library
14035 # and all subsequent libraries and executables linked against it.
14036 hardcode_automatic=$hardcode_automatic_CXX
14037
14038 # Variables whose values should be saved in libtool wrapper scripts and
14039 # restored at relink time.
14040 variables_saved_for_relink="$variables_saved_for_relink"
14041
14042 # Whether libtool must link a program against all its dependency libraries.
14043 link_all_deplibs=$link_all_deplibs_CXX
14044
14045 # Compile-time system search path for libraries
14046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14047
14048 # Run-time system search path for libraries
14049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14050
14051 # Fix the shell variable \$srcfile for the compiler.
14052 fix_srcfile_path=$lt_fix_srcfile_path
14053
14054 # Set to yes if exported symbols are required.
14055 always_export_symbols=$always_export_symbols_CXX
14056
14057 # The commands to list exported symbols.
14058 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14059
14060 # The commands to extract the exported symbol list from a shared archive.
14061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14062
14063 # Symbols that should not be listed in the preloaded symbols.
14064 exclude_expsyms=$lt_exclude_expsyms_CXX
14065
14066 # Symbols that must always be exported.
14067 include_expsyms=$lt_include_expsyms_CXX
14068
14069 # ### END LIBTOOL TAG CONFIG: $tagname
14070
14071 __EOF__
14072
14073
14074 else
14075 # If there is no Makefile yet, we rely on a make rule to execute
14076 # `config.status --recheck' to rerun these tests and create the
14077 # libtool script then.
14078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14079 if test -f "$ltmain_in"; then
14080 test -f Makefile && make "$ltmain"
14081 fi
14082 fi
14083
14084
14085 ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091 CC=$lt_save_CC
14092 LDCXX=$LD
14093 LD=$lt_save_LD
14094 GCC=$lt_save_GCC
14095 with_gnu_ldcxx=$with_gnu_ld
14096 with_gnu_ld=$lt_save_with_gnu_ld
14097 lt_cv_path_LDCXX=$lt_cv_path_LD
14098 lt_cv_path_LD=$lt_save_path_LD
14099 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14100 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14101
14102 else
14103 tagname=""
14104 fi
14105 ;;
14106
14107 F77)
14108 if test -n "$F77" && test "X$F77" != "Xno"; then
14109
14110 ac_ext=f
14111 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14112 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14113 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14114
14115
14116 archive_cmds_need_lc_F77=no
14117 allow_undefined_flag_F77=
14118 always_export_symbols_F77=no
14119 archive_expsym_cmds_F77=
14120 export_dynamic_flag_spec_F77=
14121 hardcode_direct_F77=no
14122 hardcode_libdir_flag_spec_F77=
14123 hardcode_libdir_flag_spec_ld_F77=
14124 hardcode_libdir_separator_F77=
14125 hardcode_minus_L_F77=no
14126 hardcode_automatic_F77=no
14127 module_cmds_F77=
14128 module_expsym_cmds_F77=
14129 link_all_deplibs_F77=unknown
14130 old_archive_cmds_F77=$old_archive_cmds
14131 no_undefined_flag_F77=
14132 whole_archive_flag_spec_F77=
14133 enable_shared_with_static_runtimes_F77=no
14134
14135 # Source file extension for f77 test sources.
14136 ac_ext=f
14137
14138 # Object file extension for compiled f77 test sources.
14139 objext=o
14140 objext_F77=$objext
14141
14142 # Code to be used in simple compile tests
14143 lt_simple_compile_test_code="\
14144 subroutine t
14145 return
14146 end
14147 "
14148
14149 # Code to be used in simple link tests
14150 lt_simple_link_test_code="\
14151 program t
14152 end
14153 "
14154
14155 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14156
14157 # If no C compiler was specified, use CC.
14158 LTCC=${LTCC-"$CC"}
14159
14160 # If no C compiler flags were specified, use CFLAGS.
14161 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14162
14163 # Allow CC to be a program name with arguments.
14164 compiler=$CC
14165
14166
14167 # save warnings/boilerplate of simple test code
14168 ac_outfile=conftest.$ac_objext
14169 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14170 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14171 _lt_compiler_boilerplate=`cat conftest.err`
14172 $rm conftest*
14173
14174 ac_outfile=conftest.$ac_objext
14175 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14176 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14177 _lt_linker_boilerplate=`cat conftest.err`
14178 $rm -r conftest*
14179
14180
14181 # Allow CC to be a program name with arguments.
14182 lt_save_CC="$CC"
14183 CC=${F77-"f77"}
14184 compiler=$CC
14185 compiler_F77=$CC
14186 for cc_temp in $compiler""; do
14187 case $cc_temp in
14188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14190 \-*) ;;
14191 *) break;;
14192 esac
14193 done
14194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14195
14196
14197 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14198 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14199 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14200 echo "${ECHO_T}$can_build_shared" >&6; }
14201
14202 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14203 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14204 test "$can_build_shared" = "no" && enable_shared=no
14205
14206 # On AIX, shared libraries and static libraries use the same namespace, and
14207 # are all built from PIC.
14208 case $host_os in
14209 aix3*)
14210 test "$enable_shared" = yes && enable_static=no
14211 if test -n "$RANLIB"; then
14212 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14213 postinstall_cmds='$RANLIB $lib'
14214 fi
14215 ;;
14216 aix[4-9]*)
14217 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14218 test "$enable_shared" = yes && enable_static=no
14219 fi
14220 ;;
14221 esac
14222 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14223 echo "${ECHO_T}$enable_shared" >&6; }
14224
14225 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14226 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14227 # Make sure either enable_shared or enable_static is yes.
14228 test "$enable_shared" = yes || enable_static=yes
14229 { echo "$as_me:$LINENO: result: $enable_static" >&5
14230 echo "${ECHO_T}$enable_static" >&6; }
14231
14232 GCC_F77="$G77"
14233 LD_F77="$LD"
14234
14235 lt_prog_compiler_wl_F77=
14236 lt_prog_compiler_pic_F77=
14237 lt_prog_compiler_static_F77=
14238
14239 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14240 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14241
14242 if test "$GCC" = yes; then
14243 lt_prog_compiler_wl_F77='-Wl,'
14244 lt_prog_compiler_static_F77='-static'
14245
14246 case $host_os in
14247 aix*)
14248 # All AIX code is PIC.
14249 if test "$host_cpu" = ia64; then
14250 # AIX 5 now supports IA64 processor
14251 lt_prog_compiler_static_F77='-Bstatic'
14252 fi
14253 ;;
14254
14255 amigaos*)
14256 # FIXME: we need at least 68020 code to build shared libraries, but
14257 # adding the `-m68020' flag to GCC prevents building anything better,
14258 # like `-m68040'.
14259 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14260 ;;
14261
14262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14263 # PIC is the default for these OSes.
14264 ;;
14265
14266 mingw* | cygwin* | pw32* | os2*)
14267 # This hack is so that the source file can tell whether it is being
14268 # built for inclusion in a dll (and should export symbols for example).
14269 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14270 # (--disable-auto-import) libraries
14271 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14272 ;;
14273
14274 darwin* | rhapsody*)
14275 # PIC is the default on this platform
14276 # Common symbols not allowed in MH_DYLIB files
14277 lt_prog_compiler_pic_F77='-fno-common'
14278 ;;
14279
14280 interix[3-9]*)
14281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14282 # Instead, we relocate shared libraries at runtime.
14283 ;;
14284
14285 msdosdjgpp*)
14286 # Just because we use GCC doesn't mean we suddenly get shared libraries
14287 # on systems that don't support them.
14288 lt_prog_compiler_can_build_shared_F77=no
14289 enable_shared=no
14290 ;;
14291
14292 sysv4*MP*)
14293 if test -d /usr/nec; then
14294 lt_prog_compiler_pic_F77=-Kconform_pic
14295 fi
14296 ;;
14297
14298 hpux*)
14299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14300 # not for PA HP-UX.
14301 case $host_cpu in
14302 hppa*64*|ia64*)
14303 # +Z the default
14304 ;;
14305 *)
14306 lt_prog_compiler_pic_F77='-fPIC'
14307 ;;
14308 esac
14309 ;;
14310
14311 *)
14312 lt_prog_compiler_pic_F77='-fPIC'
14313 ;;
14314 esac
14315 else
14316 # PORTME Check for flag to pass linker flags through the system compiler.
14317 case $host_os in
14318 aix*)
14319 lt_prog_compiler_wl_F77='-Wl,'
14320 if test "$host_cpu" = ia64; then
14321 # AIX 5 now supports IA64 processor
14322 lt_prog_compiler_static_F77='-Bstatic'
14323 else
14324 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14325 fi
14326 ;;
14327 darwin*)
14328 # PIC is the default on this platform
14329 # Common symbols not allowed in MH_DYLIB files
14330 case $cc_basename in
14331 xlc*)
14332 lt_prog_compiler_pic_F77='-qnocommon'
14333 lt_prog_compiler_wl_F77='-Wl,'
14334 ;;
14335 esac
14336 ;;
14337
14338 mingw* | cygwin* | pw32* | os2*)
14339 # This hack is so that the source file can tell whether it is being
14340 # built for inclusion in a dll (and should export symbols for example).
14341 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14342 ;;
14343
14344 hpux9* | hpux10* | hpux11*)
14345 lt_prog_compiler_wl_F77='-Wl,'
14346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14347 # not for PA HP-UX.
14348 case $host_cpu in
14349 hppa*64*|ia64*)
14350 # +Z the default
14351 ;;
14352 *)
14353 lt_prog_compiler_pic_F77='+Z'
14354 ;;
14355 esac
14356 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14357 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14358 ;;
14359
14360 irix5* | irix6* | nonstopux*)
14361 lt_prog_compiler_wl_F77='-Wl,'
14362 # PIC (with -KPIC) is the default.
14363 lt_prog_compiler_static_F77='-non_shared'
14364 ;;
14365
14366 newsos6)
14367 lt_prog_compiler_pic_F77='-KPIC'
14368 lt_prog_compiler_static_F77='-Bstatic'
14369 ;;
14370
14371 linux* | k*bsd*-gnu)
14372 case $cc_basename in
14373 icc* | ecc*)
14374 lt_prog_compiler_wl_F77='-Wl,'
14375 lt_prog_compiler_pic_F77='-KPIC'
14376 lt_prog_compiler_static_F77='-static'
14377 ;;
14378 pgcc* | pgf77* | pgf90* | pgf95*)
14379 # Portland Group compilers (*not* the Pentium gcc compiler,
14380 # which looks to be a dead project)
14381 lt_prog_compiler_wl_F77='-Wl,'
14382 lt_prog_compiler_pic_F77='-fpic'
14383 lt_prog_compiler_static_F77='-Bstatic'
14384 ;;
14385 ccc*)
14386 lt_prog_compiler_wl_F77='-Wl,'
14387 # All Alpha code is PIC.
14388 lt_prog_compiler_static_F77='-non_shared'
14389 ;;
14390 *)
14391 case `$CC -V 2>&1 | sed 5q` in
14392 *Sun\ C*)
14393 # Sun C 5.9
14394 lt_prog_compiler_pic_F77='-KPIC'
14395 lt_prog_compiler_static_F77='-Bstatic'
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 ;;
14398 *Sun\ F*)
14399 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14400 lt_prog_compiler_pic_F77='-KPIC'
14401 lt_prog_compiler_static_F77='-Bstatic'
14402 lt_prog_compiler_wl_F77=''
14403 ;;
14404 esac
14405 ;;
14406 esac
14407 ;;
14408
14409 osf3* | osf4* | osf5*)
14410 lt_prog_compiler_wl_F77='-Wl,'
14411 # All OSF/1 code is PIC.
14412 lt_prog_compiler_static_F77='-non_shared'
14413 ;;
14414
14415 rdos*)
14416 lt_prog_compiler_static_F77='-non_shared'
14417 ;;
14418
14419 solaris*)
14420 lt_prog_compiler_pic_F77='-KPIC'
14421 lt_prog_compiler_static_F77='-Bstatic'
14422 case $cc_basename in
14423 f77* | f90* | f95*)
14424 lt_prog_compiler_wl_F77='-Qoption ld ';;
14425 *)
14426 lt_prog_compiler_wl_F77='-Wl,';;
14427 esac
14428 ;;
14429
14430 sunos4*)
14431 lt_prog_compiler_wl_F77='-Qoption ld '
14432 lt_prog_compiler_pic_F77='-PIC'
14433 lt_prog_compiler_static_F77='-Bstatic'
14434 ;;
14435
14436 sysv4 | sysv4.2uw2* | sysv4.3*)
14437 lt_prog_compiler_wl_F77='-Wl,'
14438 lt_prog_compiler_pic_F77='-KPIC'
14439 lt_prog_compiler_static_F77='-Bstatic'
14440 ;;
14441
14442 sysv4*MP*)
14443 if test -d /usr/nec ;then
14444 lt_prog_compiler_pic_F77='-Kconform_pic'
14445 lt_prog_compiler_static_F77='-Bstatic'
14446 fi
14447 ;;
14448
14449 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14450 lt_prog_compiler_wl_F77='-Wl,'
14451 lt_prog_compiler_pic_F77='-KPIC'
14452 lt_prog_compiler_static_F77='-Bstatic'
14453 ;;
14454
14455 unicos*)
14456 lt_prog_compiler_wl_F77='-Wl,'
14457 lt_prog_compiler_can_build_shared_F77=no
14458 ;;
14459
14460 uts4*)
14461 lt_prog_compiler_pic_F77='-pic'
14462 lt_prog_compiler_static_F77='-Bstatic'
14463 ;;
14464
14465 *)
14466 lt_prog_compiler_can_build_shared_F77=no
14467 ;;
14468 esac
14469 fi
14470
14471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14472 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14473
14474 #
14475 # Check to make sure the PIC flag actually works.
14476 #
14477 if test -n "$lt_prog_compiler_pic_F77"; then
14478
14479 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14480 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14481 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 lt_cv_prog_compiler_pic_works_F77=no
14485 ac_outfile=conftest.$ac_objext
14486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14487 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14488 # Insert the option either (1) after the last *FLAGS variable, or
14489 # (2) before a word containing "conftest.", or (3) at the end.
14490 # Note that $ac_compile itself does not contain backslashes and begins
14491 # with a dollar sign (not a hyphen), so the echo should work correctly.
14492 # The option is referenced via a variable to avoid confusing sed.
14493 lt_compile=`echo "$ac_compile" | $SED \
14494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14496 -e 's:$: $lt_compiler_flag:'`
14497 (eval echo "\"\$as_me:14497: $lt_compile\"" >&5)
14498 (eval "$lt_compile" 2>conftest.err)
14499 ac_status=$?
14500 cat conftest.err >&5
14501 echo "$as_me:14501: \$? = $ac_status" >&5
14502 if (exit $ac_status) && test -s "$ac_outfile"; then
14503 # The compiler can only warn and ignore the option if not recognized
14504 # So say no if there are warnings other than the usual output.
14505 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14508 lt_cv_prog_compiler_pic_works_F77=yes
14509 fi
14510 fi
14511 $rm conftest*
14512
14513 fi
14514 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14515 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14516
14517 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14518 case $lt_prog_compiler_pic_F77 in
14519 "" | " "*) ;;
14520 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14521 esac
14522 else
14523 lt_prog_compiler_pic_F77=
14524 lt_prog_compiler_can_build_shared_F77=no
14525 fi
14526
14527 fi
14528 case $host_os in
14529 # For platforms which do not support PIC, -DPIC is meaningless:
14530 *djgpp*)
14531 lt_prog_compiler_pic_F77=
14532 ;;
14533 *)
14534 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14535 ;;
14536 esac
14537
14538 #
14539 # Check to make sure the static flag actually works.
14540 #
14541 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14542 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14543 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14544 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547 lt_cv_prog_compiler_static_works_F77=no
14548 save_LDFLAGS="$LDFLAGS"
14549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14552 # The linker can only warn and ignore the option if not recognized
14553 # So say no if there are warnings
14554 if test -s conftest.err; then
14555 # Append any errors to the config.log.
14556 cat conftest.err 1>&5
14557 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14559 if diff conftest.exp conftest.er2 >/dev/null; then
14560 lt_cv_prog_compiler_static_works_F77=yes
14561 fi
14562 else
14563 lt_cv_prog_compiler_static_works_F77=yes
14564 fi
14565 fi
14566 $rm -r conftest*
14567 LDFLAGS="$save_LDFLAGS"
14568
14569 fi
14570 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14571 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14572
14573 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14574 :
14575 else
14576 lt_prog_compiler_static_F77=
14577 fi
14578
14579
14580 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14582 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585 lt_cv_prog_compiler_c_o_F77=no
14586 $rm -r conftest 2>/dev/null
14587 mkdir conftest
14588 cd conftest
14589 mkdir out
14590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14591
14592 lt_compiler_flag="-o out/conftest2.$ac_objext"
14593 # Insert the option either (1) after the last *FLAGS variable, or
14594 # (2) before a word containing "conftest.", or (3) at the end.
14595 # Note that $ac_compile itself does not contain backslashes and begins
14596 # with a dollar sign (not a hyphen), so the echo should work correctly.
14597 lt_compile=`echo "$ac_compile" | $SED \
14598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14600 -e 's:$: $lt_compiler_flag:'`
14601 (eval echo "\"\$as_me:14601: $lt_compile\"" >&5)
14602 (eval "$lt_compile" 2>out/conftest.err)
14603 ac_status=$?
14604 cat out/conftest.err >&5
14605 echo "$as_me:14605: \$? = $ac_status" >&5
14606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14607 then
14608 # The compiler can only warn and ignore the option if not recognized
14609 # So say no if there are warnings
14610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14613 lt_cv_prog_compiler_c_o_F77=yes
14614 fi
14615 fi
14616 chmod u+w . 2>&5
14617 $rm conftest*
14618 # SGI C++ compiler will create directory out/ii_files/ for
14619 # template instantiation
14620 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14621 $rm out/* && rmdir out
14622 cd ..
14623 rmdir conftest
14624 $rm conftest*
14625
14626 fi
14627 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14628 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14629
14630
14631 hard_links="nottested"
14632 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14633 # do not overwrite the value of need_locks provided by the user
14634 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14635 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14636 hard_links=yes
14637 $rm conftest*
14638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14639 touch conftest.a
14640 ln conftest.a conftest.b 2>&5 || hard_links=no
14641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642 { echo "$as_me:$LINENO: result: $hard_links" >&5
14643 echo "${ECHO_T}$hard_links" >&6; }
14644 if test "$hard_links" = no; then
14645 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14646 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14647 need_locks=warn
14648 fi
14649 else
14650 need_locks=no
14651 fi
14652
14653 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14655
14656 runpath_var=
14657 allow_undefined_flag_F77=
14658 enable_shared_with_static_runtimes_F77=no
14659 archive_cmds_F77=
14660 archive_expsym_cmds_F77=
14661 old_archive_From_new_cmds_F77=
14662 old_archive_from_expsyms_cmds_F77=
14663 export_dynamic_flag_spec_F77=
14664 whole_archive_flag_spec_F77=
14665 thread_safe_flag_spec_F77=
14666 hardcode_libdir_flag_spec_F77=
14667 hardcode_libdir_flag_spec_ld_F77=
14668 hardcode_libdir_separator_F77=
14669 hardcode_direct_F77=no
14670 hardcode_minus_L_F77=no
14671 hardcode_shlibpath_var_F77=unsupported
14672 link_all_deplibs_F77=unknown
14673 hardcode_automatic_F77=no
14674 module_cmds_F77=
14675 module_expsym_cmds_F77=
14676 always_export_symbols_F77=no
14677 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14678 # include_expsyms should be a list of space-separated symbols to be *always*
14679 # included in the symbol list
14680 include_expsyms_F77=
14681 # exclude_expsyms can be an extended regexp of symbols to exclude
14682 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14683 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14684 # as well as any symbol that contains `d'.
14685 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14686 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14687 # platforms (ab)use it in PIC code, but their linkers get confused if
14688 # the symbol is explicitly referenced. Since portable code cannot
14689 # rely on this symbol name, it's probably fine to never include it in
14690 # preloaded symbol tables.
14691 # Exclude shared library initialization/finalization symbols.
14692 extract_expsyms_cmds=
14693 # Just being paranoid about ensuring that cc_basename is set.
14694 for cc_temp in $compiler""; do
14695 case $cc_temp in
14696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14698 \-*) ;;
14699 *) break;;
14700 esac
14701 done
14702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14703
14704 case $host_os in
14705 cygwin* | mingw* | pw32*)
14706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14707 # When not using gcc, we currently assume that we are using
14708 # Microsoft Visual C++.
14709 if test "$GCC" != yes; then
14710 with_gnu_ld=no
14711 fi
14712 ;;
14713 interix*)
14714 # we just hope/assume this is gcc and not c89 (= MSVC++)
14715 with_gnu_ld=yes
14716 ;;
14717 openbsd*)
14718 with_gnu_ld=no
14719 ;;
14720 esac
14721
14722 ld_shlibs_F77=yes
14723 if test "$with_gnu_ld" = yes; then
14724 # If archive_cmds runs LD, not CC, wlarc should be empty
14725 wlarc='${wl}'
14726
14727 # Set some defaults for GNU ld with shared library support. These
14728 # are reset later if shared libraries are not supported. Putting them
14729 # here allows them to be overridden if necessary.
14730 runpath_var=LD_RUN_PATH
14731 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14732 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14733 # ancient GNU ld didn't support --whole-archive et. al.
14734 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14735 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14736 else
14737 whole_archive_flag_spec_F77=
14738 fi
14739 supports_anon_versioning=no
14740 case `$LD -v 2>/dev/null` in
14741 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14742 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14743 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14744 *\ 2.11.*) ;; # other 2.11 versions
14745 *) supports_anon_versioning=yes ;;
14746 esac
14747
14748 # See if GNU ld supports shared libraries.
14749 case $host_os in
14750 aix[3-9]*)
14751 # On AIX/PPC, the GNU linker is very broken
14752 if test "$host_cpu" != ia64; then
14753 ld_shlibs_F77=no
14754 cat <<EOF 1>&2
14755
14756 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14757 *** to be unable to reliably create shared libraries on AIX.
14758 *** Therefore, libtool is disabling shared libraries support. If you
14759 *** really care for shared libraries, you may want to modify your PATH
14760 *** so that a non-GNU linker is found, and then restart.
14761
14762 EOF
14763 fi
14764 ;;
14765
14766 amigaos*)
14767 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)'
14768 hardcode_libdir_flag_spec_F77='-L$libdir'
14769 hardcode_minus_L_F77=yes
14770
14771 # Samuel A. Falvo II <[email protected]> reports
14772 # that the semantics of dynamic libraries on AmigaOS, at least up
14773 # to version 4, is to share data among multiple programs linked
14774 # with the same dynamic library. Since this doesn't match the
14775 # behavior of shared libraries on other platforms, we can't use
14776 # them.
14777 ld_shlibs_F77=no
14778 ;;
14779
14780 beos*)
14781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14782 allow_undefined_flag_F77=unsupported
14783 # Joseph Beckenbach <[email protected]> says some releases of gcc
14784 # support --undefined. This deserves some investigation. FIXME
14785 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786 else
14787 ld_shlibs_F77=no
14788 fi
14789 ;;
14790
14791 cygwin* | mingw* | pw32*)
14792 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14793 # as there is no search path for DLLs.
14794 hardcode_libdir_flag_spec_F77='-L$libdir'
14795 allow_undefined_flag_F77=unsupported
14796 always_export_symbols_F77=no
14797 enable_shared_with_static_runtimes_F77=yes
14798 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14799
14800 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14801 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14802 # If the export-symbols file already is a .def file (1st line
14803 # is EXPORTS), use it as is; otherwise, prepend...
14804 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14805 cp $export_symbols $output_objdir/$soname.def;
14806 else
14807 echo EXPORTS > $output_objdir/$soname.def;
14808 cat $export_symbols >> $output_objdir/$soname.def;
14809 fi~
14810 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14811 else
14812 ld_shlibs_F77=no
14813 fi
14814 ;;
14815
14816 interix[3-9]*)
14817 hardcode_direct_F77=no
14818 hardcode_shlibpath_var_F77=no
14819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14820 export_dynamic_flag_spec_F77='${wl}-E'
14821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14822 # Instead, shared libraries are loaded at an image base (0x10000000 by
14823 # default) and relocated if they conflict, which is a slow very memory
14824 # consuming and fragmenting process. To avoid this, we pick a random,
14825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14826 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14827 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'
14828 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'
14829 ;;
14830
14831 gnu* | linux* | k*bsd*-gnu)
14832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833 tmp_addflag=
14834 case $cc_basename,$host_cpu in
14835 pgcc*) # Portland Group C compiler
14836 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'
14837 tmp_addflag=' $pic_flag'
14838 ;;
14839 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14840 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'
14841 tmp_addflag=' $pic_flag -Mnomain' ;;
14842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14843 tmp_addflag=' -i_dynamic' ;;
14844 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14845 tmp_addflag=' -i_dynamic -nofor_main' ;;
14846 ifc* | ifort*) # Intel Fortran compiler
14847 tmp_addflag=' -nofor_main' ;;
14848 esac
14849 case `$CC -V 2>&1 | sed 5q` in
14850 *Sun\ C*) # Sun C 5.9
14851 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14852 tmp_sharedflag='-G' ;;
14853 *Sun\ F*) # Sun Fortran 8.3
14854 tmp_sharedflag='-G' ;;
14855 *)
14856 tmp_sharedflag='-shared' ;;
14857 esac
14858 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859
14860 if test $supports_anon_versioning = yes; then
14861 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863 $echo "local: *; };" >> $output_objdir/$libname.ver~
14864 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14865 fi
14866 else
14867 ld_shlibs_F77=no
14868 fi
14869 ;;
14870
14871 netbsd*)
14872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14874 wlarc=
14875 else
14876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14878 fi
14879 ;;
14880
14881 solaris*)
14882 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14883 ld_shlibs_F77=no
14884 cat <<EOF 1>&2
14885
14886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887 *** create shared libraries on Solaris systems. Therefore, libtool
14888 *** is disabling shared libraries support. We urge you to upgrade GNU
14889 *** binutils to release 2.9.1 or newer. Another option is to modify
14890 *** your PATH or compiler configuration so that the native linker is
14891 *** used, and then restart.
14892
14893 EOF
14894 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14897 else
14898 ld_shlibs_F77=no
14899 fi
14900 ;;
14901
14902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903 case `$LD -v 2>&1` in
14904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14905 ld_shlibs_F77=no
14906 cat <<_LT_EOF 1>&2
14907
14908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909 *** reliably create shared libraries on SCO systems. Therefore, libtool
14910 *** is disabling shared libraries support. We urge you to upgrade GNU
14911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14912 *** your PATH or compiler configuration so that the native linker is
14913 *** used, and then restart.
14914
14915 _LT_EOF
14916 ;;
14917 *)
14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14922 else
14923 ld_shlibs_F77=no
14924 fi
14925 ;;
14926 esac
14927 ;;
14928
14929 sunos4*)
14930 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14931 wlarc=
14932 hardcode_direct_F77=yes
14933 hardcode_shlibpath_var_F77=no
14934 ;;
14935
14936 *)
14937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14940 else
14941 ld_shlibs_F77=no
14942 fi
14943 ;;
14944 esac
14945
14946 if test "$ld_shlibs_F77" = no; then
14947 runpath_var=
14948 hardcode_libdir_flag_spec_F77=
14949 export_dynamic_flag_spec_F77=
14950 whole_archive_flag_spec_F77=
14951 fi
14952 else
14953 # PORTME fill in a description of your system's linker (not GNU ld)
14954 case $host_os in
14955 aix3*)
14956 allow_undefined_flag_F77=unsupported
14957 always_export_symbols_F77=yes
14958 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'
14959 # Note: this linker hardcodes the directories in LIBPATH if there
14960 # are no directories specified by -L.
14961 hardcode_minus_L_F77=yes
14962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14963 # Neither direct hardcoding nor static linking is supported with a
14964 # broken collect2.
14965 hardcode_direct_F77=unsupported
14966 fi
14967 ;;
14968
14969 aix[4-9]*)
14970 if test "$host_cpu" = ia64; then
14971 # On IA64, the linker does run time linking by default, so we don't
14972 # have to do anything special.
14973 aix_use_runtimelinking=no
14974 exp_sym_flag='-Bexport'
14975 no_entry_flag=""
14976 else
14977 # If we're using GNU nm, then we don't want the "-C" option.
14978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14979 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980 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'
14981 else
14982 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'
14983 fi
14984 aix_use_runtimelinking=no
14985
14986 # Test if we are trying to use run time linking or normal
14987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988 # need to do runtime linking.
14989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14990 for ld_flag in $LDFLAGS; do
14991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992 aix_use_runtimelinking=yes
14993 break
14994 fi
14995 done
14996 ;;
14997 esac
14998
14999 exp_sym_flag='-bexport'
15000 no_entry_flag='-bnoentry'
15001 fi
15002
15003 # When large executables or shared objects are built, AIX ld can
15004 # have problems creating the table of contents. If linking a library
15005 # or program results in "error TOC overflow" add -mminimal-toc to
15006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15008
15009 archive_cmds_F77=''
15010 hardcode_direct_F77=yes
15011 hardcode_libdir_separator_F77=':'
15012 link_all_deplibs_F77=yes
15013
15014 if test "$GCC" = yes; then
15015 case $host_os in aix4.[012]|aix4.[012].*)
15016 # We only want to do this on AIX 4.2 and lower, the check
15017 # below for broken collect2 doesn't work under 4.3+
15018 collect2name=`${CC} -print-prog-name=collect2`
15019 if test -f "$collect2name" && \
15020 strings "$collect2name" | grep resolve_lib_name >/dev/null
15021 then
15022 # We have reworked collect2
15023 :
15024 else
15025 # We have old collect2
15026 hardcode_direct_F77=unsupported
15027 # It fails to find uninstalled libraries when the uninstalled
15028 # path is not listed in the libpath. Setting hardcode_minus_L
15029 # to unsupported forces relinking
15030 hardcode_minus_L_F77=yes
15031 hardcode_libdir_flag_spec_F77='-L$libdir'
15032 hardcode_libdir_separator_F77=
15033 fi
15034 ;;
15035 esac
15036 shared_flag='-shared'
15037 if test "$aix_use_runtimelinking" = yes; then
15038 shared_flag="$shared_flag "'${wl}-G'
15039 fi
15040 else
15041 # not using gcc
15042 if test "$host_cpu" = ia64; then
15043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044 # chokes on -Wl,-G. The following line is correct:
15045 shared_flag='-G'
15046 else
15047 if test "$aix_use_runtimelinking" = yes; then
15048 shared_flag='${wl}-G'
15049 else
15050 shared_flag='${wl}-bM:SRE'
15051 fi
15052 fi
15053 fi
15054
15055 # It seems that -bexpall does not export symbols beginning with
15056 # underscore (_), so it is better to generate a list of symbols to export.
15057 always_export_symbols_F77=yes
15058 if test "$aix_use_runtimelinking" = yes; then
15059 # Warning - without using the other runtime loading flags (-brtl),
15060 # -berok will link without error, but may produce a broken library.
15061 allow_undefined_flag_F77='-berok'
15062 # Determine the default libpath from the value encoded in an empty executable.
15063 cat >conftest.$ac_ext <<_ACEOF
15064 program main
15065
15066 end
15067 _ACEOF
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (ac_try="$ac_link"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_link") 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } && {
15082 test -z "$ac_f77_werror_flag" ||
15083 test ! -s conftest.err
15084 } && test -s conftest$ac_exeext &&
15085 $as_test_x conftest$ac_exeext; then
15086
15087 lt_aix_libpath_sed='
15088 /Import File Strings/,/^$/ {
15089 /^0/ {
15090 s/^0 *\(.*\)$/\1/
15091 p
15092 }
15093 }'
15094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095 # Check for a 64-bit object if we didn't find anything.
15096 if test -z "$aix_libpath"; then
15097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15098 fi
15099 else
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103
15104 fi
15105
15106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107 conftest$ac_exeext conftest.$ac_ext
15108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15109
15110 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15111 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"
15112 else
15113 if test "$host_cpu" = ia64; then
15114 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15115 allow_undefined_flag_F77="-z nodefs"
15116 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"
15117 else
15118 # Determine the default libpath from the value encoded in an empty executable.
15119 cat >conftest.$ac_ext <<_ACEOF
15120 program main
15121
15122 end
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && {
15138 test -z "$ac_f77_werror_flag" ||
15139 test ! -s conftest.err
15140 } && test -s conftest$ac_exeext &&
15141 $as_test_x conftest$ac_exeext; then
15142
15143 lt_aix_libpath_sed='
15144 /Import File Strings/,/^$/ {
15145 /^0/ {
15146 s/^0 *\(.*\)$/\1/
15147 p
15148 }
15149 }'
15150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15151 # Check for a 64-bit object if we didn't find anything.
15152 if test -z "$aix_libpath"; then
15153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15154 fi
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159
15160 fi
15161
15162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163 conftest$ac_exeext conftest.$ac_ext
15164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15165
15166 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15167 # Warning - without using the other run time loading flags,
15168 # -berok will link without error, but may produce a broken library.
15169 no_undefined_flag_F77=' ${wl}-bernotok'
15170 allow_undefined_flag_F77=' ${wl}-berok'
15171 # Exported symbols can be pulled into shared objects from archives
15172 whole_archive_flag_spec_F77='$convenience'
15173 archive_cmds_need_lc_F77=yes
15174 # This is similar to how AIX traditionally builds its shared libraries.
15175 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'
15176 fi
15177 fi
15178 ;;
15179
15180 amigaos*)
15181 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)'
15182 hardcode_libdir_flag_spec_F77='-L$libdir'
15183 hardcode_minus_L_F77=yes
15184 # see comment about different semantics on the GNU ld section
15185 ld_shlibs_F77=no
15186 ;;
15187
15188 bsdi[45]*)
15189 export_dynamic_flag_spec_F77=-rdynamic
15190 ;;
15191
15192 cygwin* | mingw* | pw32*)
15193 # When not using gcc, we currently assume that we are using
15194 # Microsoft Visual C++.
15195 # hardcode_libdir_flag_spec is actually meaningless, as there is
15196 # no search path for DLLs.
15197 hardcode_libdir_flag_spec_F77=' '
15198 allow_undefined_flag_F77=unsupported
15199 # Tell ltmain to make .lib files, not .a files.
15200 libext=lib
15201 # Tell ltmain to make .dll files, not .so files.
15202 shrext_cmds=".dll"
15203 # FIXME: Setting linknames here is a bad hack.
15204 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15205 # The linker will automatically build a .lib file if we build a DLL.
15206 old_archive_From_new_cmds_F77='true'
15207 # FIXME: Should let the user specify the lib program.
15208 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15209 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15210 enable_shared_with_static_runtimes_F77=yes
15211 ;;
15212
15213 darwin* | rhapsody*)
15214 case $host_os in
15215 rhapsody* | darwin1.[012])
15216 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15217 ;;
15218 *) # Darwin 1.3 on
15219 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15220 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15221 else
15222 case ${MACOSX_DEPLOYMENT_TARGET} in
15223 10.[012])
15224 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225 ;;
15226 10.*)
15227 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15228 ;;
15229 esac
15230 fi
15231 ;;
15232 esac
15233 archive_cmds_need_lc_F77=no
15234 hardcode_direct_F77=no
15235 hardcode_automatic_F77=yes
15236 hardcode_shlibpath_var_F77=unsupported
15237 whole_archive_flag_spec_F77=''
15238 link_all_deplibs_F77=yes
15239 if test "$GCC" = yes ; then
15240 output_verbose_link_cmd='echo'
15241 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15242 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15243 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15244 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15245 else
15246 case $cc_basename in
15247 xlc*)
15248 output_verbose_link_cmd='echo'
15249 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15250 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15252 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15253 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}'
15254 ;;
15255 *)
15256 ld_shlibs_F77=no
15257 ;;
15258 esac
15259 fi
15260 ;;
15261
15262 dgux*)
15263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264 hardcode_libdir_flag_spec_F77='-L$libdir'
15265 hardcode_shlibpath_var_F77=no
15266 ;;
15267
15268 freebsd1*)
15269 ld_shlibs_F77=no
15270 ;;
15271
15272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15273 # support. Future versions do this automatically, but an explicit c++rt0.o
15274 # does not break anything, and helps significantly (at the cost of a little
15275 # extra space).
15276 freebsd2.2*)
15277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15278 hardcode_libdir_flag_spec_F77='-R$libdir'
15279 hardcode_direct_F77=yes
15280 hardcode_shlibpath_var_F77=no
15281 ;;
15282
15283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15284 freebsd2*)
15285 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286 hardcode_direct_F77=yes
15287 hardcode_minus_L_F77=yes
15288 hardcode_shlibpath_var_F77=no
15289 ;;
15290
15291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15292 freebsd* | dragonfly*)
15293 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15294 hardcode_libdir_flag_spec_F77='-R$libdir'
15295 hardcode_direct_F77=yes
15296 hardcode_shlibpath_var_F77=no
15297 ;;
15298
15299 hpux9*)
15300 if test "$GCC" = yes; then
15301 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'
15302 else
15303 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'
15304 fi
15305 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15306 hardcode_libdir_separator_F77=:
15307 hardcode_direct_F77=yes
15308
15309 # hardcode_minus_L: Not really in the search PATH,
15310 # but as the default location of the library.
15311 hardcode_minus_L_F77=yes
15312 export_dynamic_flag_spec_F77='${wl}-E'
15313 ;;
15314
15315 hpux10*)
15316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15317 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15318 else
15319 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15320 fi
15321 if test "$with_gnu_ld" = no; then
15322 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15323 hardcode_libdir_separator_F77=:
15324
15325 hardcode_direct_F77=yes
15326 export_dynamic_flag_spec_F77='${wl}-E'
15327
15328 # hardcode_minus_L: Not really in the search PATH,
15329 # but as the default location of the library.
15330 hardcode_minus_L_F77=yes
15331 fi
15332 ;;
15333
15334 hpux11*)
15335 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15336 case $host_cpu in
15337 hppa*64*)
15338 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15339 ;;
15340 ia64*)
15341 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15342 ;;
15343 *)
15344 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15345 ;;
15346 esac
15347 else
15348 case $host_cpu in
15349 hppa*64*)
15350 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15351 ;;
15352 ia64*)
15353 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15354 ;;
15355 *)
15356 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15357 ;;
15358 esac
15359 fi
15360 if test "$with_gnu_ld" = no; then
15361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15362 hardcode_libdir_separator_F77=:
15363
15364 case $host_cpu in
15365 hppa*64*|ia64*)
15366 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15367 hardcode_direct_F77=no
15368 hardcode_shlibpath_var_F77=no
15369 ;;
15370 *)
15371 hardcode_direct_F77=yes
15372 export_dynamic_flag_spec_F77='${wl}-E'
15373
15374 # hardcode_minus_L: Not really in the search PATH,
15375 # but as the default location of the library.
15376 hardcode_minus_L_F77=yes
15377 ;;
15378 esac
15379 fi
15380 ;;
15381
15382 irix5* | irix6* | nonstopux*)
15383 if test "$GCC" = yes; then
15384 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'
15385 else
15386 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'
15387 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15388 fi
15389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15390 hardcode_libdir_separator_F77=:
15391 link_all_deplibs_F77=yes
15392 ;;
15393
15394 netbsd*)
15395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15397 else
15398 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15399 fi
15400 hardcode_libdir_flag_spec_F77='-R$libdir'
15401 hardcode_direct_F77=yes
15402 hardcode_shlibpath_var_F77=no
15403 ;;
15404
15405 newsos6)
15406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407 hardcode_direct_F77=yes
15408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409 hardcode_libdir_separator_F77=:
15410 hardcode_shlibpath_var_F77=no
15411 ;;
15412
15413 openbsd*)
15414 if test -f /usr/libexec/ld.so; then
15415 hardcode_direct_F77=yes
15416 hardcode_shlibpath_var_F77=no
15417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15418 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15419 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15420 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15421 export_dynamic_flag_spec_F77='${wl}-E'
15422 else
15423 case $host_os in
15424 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15425 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_libdir_flag_spec_F77='-R$libdir'
15427 ;;
15428 *)
15429 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15431 ;;
15432 esac
15433 fi
15434 else
15435 ld_shlibs_F77=no
15436 fi
15437 ;;
15438
15439 os2*)
15440 hardcode_libdir_flag_spec_F77='-L$libdir'
15441 hardcode_minus_L_F77=yes
15442 allow_undefined_flag_F77=unsupported
15443 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'
15444 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15445 ;;
15446
15447 osf3*)
15448 if test "$GCC" = yes; then
15449 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15450 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'
15451 else
15452 allow_undefined_flag_F77=' -expect_unresolved \*'
15453 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'
15454 fi
15455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15456 hardcode_libdir_separator_F77=:
15457 ;;
15458
15459 osf4* | osf5*) # as osf3* with the addition of -msym flag
15460 if test "$GCC" = yes; then
15461 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15462 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'
15463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464 else
15465 allow_undefined_flag_F77=' -expect_unresolved \*'
15466 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'
15467 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~
15468 $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'
15469
15470 # Both c and cxx compiler support -rpath directly
15471 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15472 fi
15473 hardcode_libdir_separator_F77=:
15474 ;;
15475
15476 solaris*)
15477 no_undefined_flag_F77=' -z text'
15478 if test "$GCC" = yes; then
15479 wlarc='${wl}'
15480 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15483 else
15484 wlarc=''
15485 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15488 fi
15489 hardcode_libdir_flag_spec_F77='-R$libdir'
15490 hardcode_shlibpath_var_F77=no
15491 case $host_os in
15492 solaris2.[0-5] | solaris2.[0-5].*) ;;
15493 *)
15494 # The compiler driver will combine and reorder linker options,
15495 # but understands `-z linker_flag'. GCC discards it without `$wl',
15496 # but is careful enough not to reorder.
15497 # Supported since Solaris 2.6 (maybe 2.5.1?)
15498 if test "$GCC" = yes; then
15499 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15500 else
15501 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15502 fi
15503 ;;
15504 esac
15505 link_all_deplibs_F77=yes
15506 ;;
15507
15508 sunos4*)
15509 if test "x$host_vendor" = xsequent; then
15510 # Use $CC to link under sequent, because it throws in some extra .o
15511 # files that make .init and .fini sections work.
15512 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15513 else
15514 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15515 fi
15516 hardcode_libdir_flag_spec_F77='-L$libdir'
15517 hardcode_direct_F77=yes
15518 hardcode_minus_L_F77=yes
15519 hardcode_shlibpath_var_F77=no
15520 ;;
15521
15522 sysv4)
15523 case $host_vendor in
15524 sni)
15525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_direct_F77=yes # is this really true???
15527 ;;
15528 siemens)
15529 ## LD is ld it makes a PLAMLIB
15530 ## CC just makes a GrossModule.
15531 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15532 reload_cmds_F77='$CC -r -o $output$reload_objs'
15533 hardcode_direct_F77=no
15534 ;;
15535 motorola)
15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15538 ;;
15539 esac
15540 runpath_var='LD_RUN_PATH'
15541 hardcode_shlibpath_var_F77=no
15542 ;;
15543
15544 sysv4.3*)
15545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_shlibpath_var_F77=no
15547 export_dynamic_flag_spec_F77='-Bexport'
15548 ;;
15549
15550 sysv4*MP*)
15551 if test -d /usr/nec; then
15552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_shlibpath_var_F77=no
15554 runpath_var=LD_RUN_PATH
15555 hardcode_runpath_var=yes
15556 ld_shlibs_F77=yes
15557 fi
15558 ;;
15559
15560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15561 no_undefined_flag_F77='${wl}-z,text'
15562 archive_cmds_need_lc_F77=no
15563 hardcode_shlibpath_var_F77=no
15564 runpath_var='LD_RUN_PATH'
15565
15566 if test "$GCC" = yes; then
15567 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 else
15570 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 fi
15573 ;;
15574
15575 sysv5* | sco3.2v5* | sco5v6*)
15576 # Note: We can NOT use -z defs as we might desire, because we do not
15577 # link with -lc, and that would cause any symbols used from libc to
15578 # always be unresolved, which means just about no library would
15579 # ever link correctly. If we're not using GNU ld we use -z text
15580 # though, which does catch some bad symbols but isn't as heavy-handed
15581 # as -z defs.
15582 no_undefined_flag_F77='${wl}-z,text'
15583 allow_undefined_flag_F77='${wl}-z,nodefs'
15584 archive_cmds_need_lc_F77=no
15585 hardcode_shlibpath_var_F77=no
15586 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15587 hardcode_libdir_separator_F77=':'
15588 link_all_deplibs_F77=yes
15589 export_dynamic_flag_spec_F77='${wl}-Bexport'
15590 runpath_var='LD_RUN_PATH'
15591
15592 if test "$GCC" = yes; then
15593 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 else
15596 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 fi
15599 ;;
15600
15601 uts4*)
15602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603 hardcode_libdir_flag_spec_F77='-L$libdir'
15604 hardcode_shlibpath_var_F77=no
15605 ;;
15606
15607 *)
15608 ld_shlibs_F77=no
15609 ;;
15610 esac
15611 fi
15612
15613 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15614 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15615 test "$ld_shlibs_F77" = no && can_build_shared=no
15616
15617 #
15618 # Do we need to explicitly link libc?
15619 #
15620 case "x$archive_cmds_need_lc_F77" in
15621 x|xyes)
15622 # Assume -lc should be added
15623 archive_cmds_need_lc_F77=yes
15624
15625 if test "$enable_shared" = yes && test "$GCC" = yes; then
15626 case $archive_cmds_F77 in
15627 *'~'*)
15628 # FIXME: we may have to deal with multi-command sequences.
15629 ;;
15630 '$CC '*)
15631 # Test whether the compiler implicitly links with -lc since on some
15632 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15633 # to ld, don't add -lc before -lgcc.
15634 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15635 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15636 $rm conftest*
15637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15638
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } 2>conftest.err; then
15644 soname=conftest
15645 lib=conftest
15646 libobjs=conftest.$ac_objext
15647 deplibs=
15648 wl=$lt_prog_compiler_wl_F77
15649 pic_flag=$lt_prog_compiler_pic_F77
15650 compiler_flags=-v
15651 linker_flags=-v
15652 verstring=
15653 output_objdir=.
15654 libname=conftest
15655 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15656 allow_undefined_flag_F77=
15657 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15658 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }
15662 then
15663 archive_cmds_need_lc_F77=no
15664 else
15665 archive_cmds_need_lc_F77=yes
15666 fi
15667 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15668 else
15669 cat conftest.err 1>&5
15670 fi
15671 $rm conftest*
15672 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15673 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15674 ;;
15675 esac
15676 fi
15677 ;;
15678 esac
15679
15680 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15681 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15682 library_names_spec=
15683 libname_spec='lib$name'
15684 soname_spec=
15685 shrext_cmds=".so"
15686 postinstall_cmds=
15687 postuninstall_cmds=
15688 finish_cmds=
15689 finish_eval=
15690 shlibpath_var=
15691 shlibpath_overrides_runpath=unknown
15692 version_type=none
15693 dynamic_linker="$host_os ld.so"
15694 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15695
15696 need_lib_prefix=unknown
15697 hardcode_into_libs=no
15698
15699 # when you set need_version to no, make sure it does not cause -set_version
15700 # flags to be left without arguments
15701 need_version=unknown
15702
15703 case $host_os in
15704 aix3*)
15705 version_type=linux
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15707 shlibpath_var=LIBPATH
15708
15709 # AIX 3 has no versioning support, so we append a major version to the name.
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 ;;
15712
15713 aix[4-9]*)
15714 version_type=linux
15715 need_lib_prefix=no
15716 need_version=no
15717 hardcode_into_libs=yes
15718 if test "$host_cpu" = ia64; then
15719 # AIX 5 supports IA64
15720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 else
15723 # With GCC up to 2.95.x, collect2 would create an import file
15724 # for dependence libraries. The import file would start with
15725 # the line `#! .'. This would cause the generated library to
15726 # depend on `.', always an invalid library. This was fixed in
15727 # development snapshots of GCC prior to 3.0.
15728 case $host_os in
15729 aix4 | aix4.[01] | aix4.[01].*)
15730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15731 echo ' yes '
15732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15733 :
15734 else
15735 can_build_shared=no
15736 fi
15737 ;;
15738 esac
15739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15740 # soname into executable. Probably we can add versioning support to
15741 # collect2, so additional links can be useful in future.
15742 if test "$aix_use_runtimelinking" = yes; then
15743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15744 # instead of lib<name>.a to let people know that these are not
15745 # typical AIX shared libraries.
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 else
15748 # We preserve .a as extension for shared libraries through AIX4.2
15749 # and later when we are not doing run time linking.
15750 library_names_spec='${libname}${release}.a $libname.a'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 fi
15753 shlibpath_var=LIBPATH
15754 fi
15755 ;;
15756
15757 amigaos*)
15758 library_names_spec='$libname.ixlibrary $libname.a'
15759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15760 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'
15761 ;;
15762
15763 beos*)
15764 library_names_spec='${libname}${shared_ext}'
15765 dynamic_linker="$host_os ld.so"
15766 shlibpath_var=LIBRARY_PATH
15767 ;;
15768
15769 bsdi[45]*)
15770 version_type=linux
15771 need_version=no
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15778 # the default ld.so.conf also contains /usr/contrib/lib and
15779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15780 # libtool to hard-code these into programs
15781 ;;
15782
15783 cygwin* | mingw* | pw32*)
15784 version_type=windows
15785 shrext_cmds=".dll"
15786 need_version=no
15787 need_lib_prefix=no
15788
15789 case $GCC,$host_os in
15790 yes,cygwin* | yes,mingw* | yes,pw32*)
15791 library_names_spec='$libname.dll.a'
15792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15793 postinstall_cmds='base_file=`basename \${file}`~
15794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15795 dldir=$destdir/`dirname \$dlpath`~
15796 test -d \$dldir || mkdir -p \$dldir~
15797 $install_prog $dir/$dlname \$dldir/$dlname~
15798 chmod a+x \$dldir/$dlname'
15799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15800 dlpath=$dir/\$dldll~
15801 $rm \$dlpath'
15802 shlibpath_overrides_runpath=yes
15803
15804 case $host_os in
15805 cygwin*)
15806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15809 ;;
15810 mingw*)
15811 # MinGW DLLs use traditional 'lib' prefix
15812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15814 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15815 # It is most probably a Windows format PATH printed by
15816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15817 # path with ; separators, and with drive letters. We can handle the
15818 # drive letters (cygwin fileutils understands them), so leave them,
15819 # especially as we might pass files found there to a mingw objdump,
15820 # which wouldn't understand a cygwinified path. Ahh.
15821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15822 else
15823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15824 fi
15825 ;;
15826 pw32*)
15827 # pw32 DLLs use 'pw' prefix rather than 'lib'
15828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15829 ;;
15830 esac
15831 ;;
15832
15833 *)
15834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15835 ;;
15836 esac
15837 dynamic_linker='Win32 ld.exe'
15838 # FIXME: first we should search . and the directory the executable is in
15839 shlibpath_var=PATH
15840 ;;
15841
15842 darwin* | rhapsody*)
15843 dynamic_linker="$host_os dyld"
15844 version_type=darwin
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15848 soname_spec='${libname}${release}${major}$shared_ext'
15849 shlibpath_overrides_runpath=yes
15850 shlibpath_var=DYLD_LIBRARY_PATH
15851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15852
15853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15854 ;;
15855
15856 dgux*)
15857 version_type=linux
15858 need_lib_prefix=no
15859 need_version=no
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15861 soname_spec='${libname}${release}${shared_ext}$major'
15862 shlibpath_var=LD_LIBRARY_PATH
15863 ;;
15864
15865 freebsd1*)
15866 dynamic_linker=no
15867 ;;
15868
15869 freebsd* | dragonfly*)
15870 # DragonFly does not have aout. When/if they implement a new
15871 # versioning mechanism, adjust this.
15872 if test -x /usr/bin/objformat; then
15873 objformat=`/usr/bin/objformat`
15874 else
15875 case $host_os in
15876 freebsd[123]*) objformat=aout ;;
15877 *) objformat=elf ;;
15878 esac
15879 fi
15880 # Handle Gentoo/FreeBSD as it was Linux
15881 case $host_vendor in
15882 gentoo)
15883 version_type=linux ;;
15884 *)
15885 version_type=freebsd-$objformat ;;
15886 esac
15887
15888 case $version_type in
15889 freebsd-elf*)
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15891 need_version=no
15892 need_lib_prefix=no
15893 ;;
15894 freebsd-*)
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15896 need_version=yes
15897 ;;
15898 linux)
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 need_lib_prefix=no
15902 need_version=no
15903 ;;
15904 esac
15905 shlibpath_var=LD_LIBRARY_PATH
15906 case $host_os in
15907 freebsd2*)
15908 shlibpath_overrides_runpath=yes
15909 ;;
15910 freebsd3.[01]* | freebsdelf3.[01]*)
15911 shlibpath_overrides_runpath=yes
15912 hardcode_into_libs=yes
15913 ;;
15914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15916 shlibpath_overrides_runpath=no
15917 hardcode_into_libs=yes
15918 ;;
15919 *) # from 4.6 on, and DragonFly
15920 shlibpath_overrides_runpath=yes
15921 hardcode_into_libs=yes
15922 ;;
15923 esac
15924 ;;
15925
15926 gnu*)
15927 version_type=linux
15928 need_lib_prefix=no
15929 need_version=no
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 hardcode_into_libs=yes
15934 ;;
15935
15936 hpux9* | hpux10* | hpux11*)
15937 # Give a soname corresponding to the major version so that dld.sl refuses to
15938 # link against other versions.
15939 version_type=sunos
15940 need_lib_prefix=no
15941 need_version=no
15942 case $host_cpu in
15943 ia64*)
15944 shrext_cmds='.so'
15945 hardcode_into_libs=yes
15946 dynamic_linker="$host_os dld.so"
15947 shlibpath_var=LD_LIBRARY_PATH
15948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 if test "X$HPUX_IA64_MODE" = X32; then
15952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15953 else
15954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15955 fi
15956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15957 ;;
15958 hppa*64*)
15959 shrext_cmds='.sl'
15960 hardcode_into_libs=yes
15961 dynamic_linker="$host_os dld.sl"
15962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15968 ;;
15969 *)
15970 shrext_cmds='.sl'
15971 dynamic_linker="$host_os dld.sl"
15972 shlibpath_var=SHLIB_PATH
15973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 ;;
15977 esac
15978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15979 postinstall_cmds='chmod 555 $lib'
15980 ;;
15981
15982 interix[3-9]*)
15983 version_type=linux
15984 need_lib_prefix=no
15985 need_version=no
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15987 soname_spec='${libname}${release}${shared_ext}$major'
15988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15989 shlibpath_var=LD_LIBRARY_PATH
15990 shlibpath_overrides_runpath=no
15991 hardcode_into_libs=yes
15992 ;;
15993
15994 irix5* | irix6* | nonstopux*)
15995 case $host_os in
15996 nonstopux*) version_type=nonstopux ;;
15997 *)
15998 if test "$lt_cv_prog_gnu_ld" = yes; then
15999 version_type=linux
16000 else
16001 version_type=irix
16002 fi ;;
16003 esac
16004 need_lib_prefix=no
16005 need_version=no
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16008 case $host_os in
16009 irix5* | nonstopux*)
16010 libsuff= shlibsuff=
16011 ;;
16012 *)
16013 case $LD in # libtool.m4 will add one of these switches to LD
16014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16015 libsuff= shlibsuff= libmagic=32-bit;;
16016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16017 libsuff=32 shlibsuff=N32 libmagic=N32;;
16018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16020 *) libsuff= shlibsuff= libmagic=never-match;;
16021 esac
16022 ;;
16023 esac
16024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16025 shlibpath_overrides_runpath=no
16026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16028 hardcode_into_libs=yes
16029 ;;
16030
16031 # No shared lib support for Linux oldld, aout, or coff.
16032 linux*oldld* | linux*aout* | linux*coff*)
16033 dynamic_linker=no
16034 ;;
16035
16036 # This must be Linux ELF.
16037 linux* | k*bsd*-gnu)
16038 version_type=linux
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=no
16046 # This implies no fast_install, which is unacceptable.
16047 # Some rework will be needed to allow for fast_install
16048 # before this can be enabled.
16049 hardcode_into_libs=yes
16050
16051 # Append ld.so.conf contents to the search path
16052 if test -f /etc/ld.so.conf; then
16053 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16055 fi
16056
16057 # We used to test for /lib/ld.so.1 and disable shared libraries on
16058 # powerpc, because MkLinux only supported shared libraries with the
16059 # GNU dynamic linker. Since this was broken with cross compilers,
16060 # most powerpc-linux boxes support dynamic linking these days and
16061 # people can always --disable-shared, the test was removed, and we
16062 # assume the GNU/Linux dynamic linker is in use.
16063 dynamic_linker='GNU/Linux ld.so'
16064 ;;
16065
16066 netbsd*)
16067 version_type=sunos
16068 need_lib_prefix=no
16069 need_version=no
16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16073 dynamic_linker='NetBSD (a.out) ld.so'
16074 else
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 dynamic_linker='NetBSD ld.elf_so'
16078 fi
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=yes
16081 hardcode_into_libs=yes
16082 ;;
16083
16084 newsos6)
16085 version_type=linux
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes
16089 ;;
16090
16091 nto-qnx*)
16092 version_type=linux
16093 need_lib_prefix=no
16094 need_version=no
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16099 ;;
16100
16101 openbsd*)
16102 version_type=sunos
16103 sys_lib_dlsearch_path_spec="/usr/lib"
16104 need_lib_prefix=no
16105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16106 case $host_os in
16107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16108 *) need_version=no ;;
16109 esac
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16114 case $host_os in
16115 openbsd2.[89] | openbsd2.[89].*)
16116 shlibpath_overrides_runpath=no
16117 ;;
16118 *)
16119 shlibpath_overrides_runpath=yes
16120 ;;
16121 esac
16122 else
16123 shlibpath_overrides_runpath=yes
16124 fi
16125 ;;
16126
16127 os2*)
16128 libname_spec='$name'
16129 shrext_cmds=".dll"
16130 need_lib_prefix=no
16131 library_names_spec='$libname${shared_ext} $libname.a'
16132 dynamic_linker='OS/2 ld.exe'
16133 shlibpath_var=LIBPATH
16134 ;;
16135
16136 osf3* | osf4* | osf5*)
16137 version_type=osf
16138 need_lib_prefix=no
16139 need_version=no
16140 soname_spec='${libname}${release}${shared_ext}$major'
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16145 ;;
16146
16147 rdos*)
16148 dynamic_linker=no
16149 ;;
16150
16151 solaris*)
16152 version_type=linux
16153 need_lib_prefix=no
16154 need_version=no
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 soname_spec='${libname}${release}${shared_ext}$major'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=yes
16159 hardcode_into_libs=yes
16160 # ldd complains unless libraries are executable
16161 postinstall_cmds='chmod +x $lib'
16162 ;;
16163
16164 sunos4*)
16165 version_type=sunos
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 shlibpath_overrides_runpath=yes
16170 if test "$with_gnu_ld" = yes; then
16171 need_lib_prefix=no
16172 fi
16173 need_version=yes
16174 ;;
16175
16176 sysv4 | sysv4.3*)
16177 version_type=linux
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 shlibpath_var=LD_LIBRARY_PATH
16181 case $host_vendor in
16182 sni)
16183 shlibpath_overrides_runpath=no
16184 need_lib_prefix=no
16185 export_dynamic_flag_spec='${wl}-Blargedynsym'
16186 runpath_var=LD_RUN_PATH
16187 ;;
16188 siemens)
16189 need_lib_prefix=no
16190 ;;
16191 motorola)
16192 need_lib_prefix=no
16193 need_version=no
16194 shlibpath_overrides_runpath=no
16195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16196 ;;
16197 esac
16198 ;;
16199
16200 sysv4*MP*)
16201 if test -d /usr/nec ;then
16202 version_type=linux
16203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16204 soname_spec='$libname${shared_ext}.$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 fi
16207 ;;
16208
16209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16210 version_type=freebsd-elf
16211 need_lib_prefix=no
16212 need_version=no
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 hardcode_into_libs=yes
16217 if test "$with_gnu_ld" = yes; then
16218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16219 shlibpath_overrides_runpath=no
16220 else
16221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16222 shlibpath_overrides_runpath=yes
16223 case $host_os in
16224 sco3.2v5*)
16225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16226 ;;
16227 esac
16228 fi
16229 sys_lib_dlsearch_path_spec='/usr/lib'
16230 ;;
16231
16232 uts4*)
16233 version_type=linux
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 ;;
16238
16239 *)
16240 dynamic_linker=no
16241 ;;
16242 esac
16243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16244 echo "${ECHO_T}$dynamic_linker" >&6; }
16245 test "$dynamic_linker" = no && can_build_shared=no
16246
16247 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16251 fi
16252
16253 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16254 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16258 fi
16259
16260 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16261
16262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16263 if test "$GCC" = yes; then
16264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16265 fi
16266
16267 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16268 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16269 hardcode_action_F77=
16270 if test -n "$hardcode_libdir_flag_spec_F77" || \
16271 test -n "$runpath_var_F77" || \
16272 test "X$hardcode_automatic_F77" = "Xyes" ; then
16273
16274 # We can hardcode non-existant directories.
16275 if test "$hardcode_direct_F77" != no &&
16276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16277 # have to relink, otherwise we might link with an installed library
16278 # when we should be linking with a yet-to-be-installed one
16279 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16280 test "$hardcode_minus_L_F77" != no; then
16281 # Linking always hardcodes the temporary library directory.
16282 hardcode_action_F77=relink
16283 else
16284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16285 hardcode_action_F77=immediate
16286 fi
16287 else
16288 # We cannot hardcode anything, or else we can only hardcode existing
16289 # directories.
16290 hardcode_action_F77=unsupported
16291 fi
16292 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16293 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16294
16295 if test "$hardcode_action_F77" = relink; then
16296 # Fast installation is not supported
16297 enable_fast_install=no
16298 elif test "$shlibpath_overrides_runpath" = yes ||
16299 test "$enable_shared" = no; then
16300 # Fast installation is not necessary
16301 enable_fast_install=needless
16302 fi
16303
16304
16305 # The else clause should only fire when bootstrapping the
16306 # libtool distribution, otherwise you forgot to ship ltmain.sh
16307 # with your package, and you will get complaints that there are
16308 # no rules to generate ltmain.sh.
16309 if test -f "$ltmain"; then
16310 # See if we are running on zsh, and set the options which allow our commands through
16311 # without removal of \ escapes.
16312 if test -n "${ZSH_VERSION+set}" ; then
16313 setopt NO_GLOB_SUBST
16314 fi
16315 # Now quote all the things that may contain metacharacters while being
16316 # careful not to overquote the AC_SUBSTed values. We take copies of the
16317 # variables and quote the copies for generation of the libtool script.
16318 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16319 SED SHELL STRIP \
16320 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16321 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16322 deplibs_check_method reload_flag reload_cmds need_locks \
16323 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16324 lt_cv_sys_global_symbol_to_c_name_address \
16325 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16326 old_postinstall_cmds old_postuninstall_cmds \
16327 compiler_F77 \
16328 CC_F77 \
16329 LD_F77 \
16330 lt_prog_compiler_wl_F77 \
16331 lt_prog_compiler_pic_F77 \
16332 lt_prog_compiler_static_F77 \
16333 lt_prog_compiler_no_builtin_flag_F77 \
16334 export_dynamic_flag_spec_F77 \
16335 thread_safe_flag_spec_F77 \
16336 whole_archive_flag_spec_F77 \
16337 enable_shared_with_static_runtimes_F77 \
16338 old_archive_cmds_F77 \
16339 old_archive_from_new_cmds_F77 \
16340 predep_objects_F77 \
16341 postdep_objects_F77 \
16342 predeps_F77 \
16343 postdeps_F77 \
16344 compiler_lib_search_path_F77 \
16345 compiler_lib_search_dirs_F77 \
16346 archive_cmds_F77 \
16347 archive_expsym_cmds_F77 \
16348 postinstall_cmds_F77 \
16349 postuninstall_cmds_F77 \
16350 old_archive_from_expsyms_cmds_F77 \
16351 allow_undefined_flag_F77 \
16352 no_undefined_flag_F77 \
16353 export_symbols_cmds_F77 \
16354 hardcode_libdir_flag_spec_F77 \
16355 hardcode_libdir_flag_spec_ld_F77 \
16356 hardcode_libdir_separator_F77 \
16357 hardcode_automatic_F77 \
16358 module_cmds_F77 \
16359 module_expsym_cmds_F77 \
16360 lt_cv_prog_compiler_c_o_F77 \
16361 fix_srcfile_path_F77 \
16362 exclude_expsyms_F77 \
16363 include_expsyms_F77; do
16364
16365 case $var in
16366 old_archive_cmds_F77 | \
16367 old_archive_from_new_cmds_F77 | \
16368 archive_cmds_F77 | \
16369 archive_expsym_cmds_F77 | \
16370 module_cmds_F77 | \
16371 module_expsym_cmds_F77 | \
16372 old_archive_from_expsyms_cmds_F77 | \
16373 export_symbols_cmds_F77 | \
16374 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16375 postinstall_cmds | postuninstall_cmds | \
16376 old_postinstall_cmds | old_postuninstall_cmds | \
16377 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16378 # Double-quote double-evaled strings.
16379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16380 ;;
16381 *)
16382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16383 ;;
16384 esac
16385 done
16386
16387 case $lt_echo in
16388 *'\$0 --fallback-echo"')
16389 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16390 ;;
16391 esac
16392
16393 cfgfile="$ofile"
16394
16395 cat <<__EOF__ >> "$cfgfile"
16396 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16397
16398 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16399
16400 # Shell to use when invoking shell scripts.
16401 SHELL=$lt_SHELL
16402
16403 # Whether or not to build shared libraries.
16404 build_libtool_libs=$enable_shared
16405
16406 # Whether or not to build static libraries.
16407 build_old_libs=$enable_static
16408
16409 # Whether or not to add -lc for building shared libraries.
16410 build_libtool_need_lc=$archive_cmds_need_lc_F77
16411
16412 # Whether or not to disallow shared libs when runtime libs are static
16413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16414
16415 # Whether or not to optimize for fast installation.
16416 fast_install=$enable_fast_install
16417
16418 # The host system.
16419 host_alias=$host_alias
16420 host=$host
16421 host_os=$host_os
16422
16423 # The build system.
16424 build_alias=$build_alias
16425 build=$build
16426 build_os=$build_os
16427
16428 # An echo program that does not interpret backslashes.
16429 echo=$lt_echo
16430
16431 # The archiver.
16432 AR=$lt_AR
16433 AR_FLAGS=$lt_AR_FLAGS
16434
16435 # A C compiler.
16436 LTCC=$lt_LTCC
16437
16438 # LTCC compiler flags.
16439 LTCFLAGS=$lt_LTCFLAGS
16440
16441 # A language-specific compiler.
16442 CC=$lt_compiler_F77
16443
16444 # Is the compiler the GNU C compiler?
16445 with_gcc=$GCC_F77
16446
16447 # An ERE matcher.
16448 EGREP=$lt_EGREP
16449
16450 # The linker used to build libraries.
16451 LD=$lt_LD_F77
16452
16453 # Whether we need hard or soft links.
16454 LN_S=$lt_LN_S
16455
16456 # A BSD-compatible nm program.
16457 NM=$lt_NM
16458
16459 # A symbol stripping program
16460 STRIP=$lt_STRIP
16461
16462 # Used to examine libraries when file_magic_cmd begins "file"
16463 MAGIC_CMD=$MAGIC_CMD
16464
16465 # Used on cygwin: DLL creation program.
16466 DLLTOOL="$DLLTOOL"
16467
16468 # Used on cygwin: object dumper.
16469 OBJDUMP="$OBJDUMP"
16470
16471 # Used on cygwin: assembler.
16472 AS="$AS"
16473
16474 # The name of the directory that contains temporary libtool files.
16475 objdir=$objdir
16476
16477 # How to create reloadable object files.
16478 reload_flag=$lt_reload_flag
16479 reload_cmds=$lt_reload_cmds
16480
16481 # How to pass a linker flag through the compiler.
16482 wl=$lt_lt_prog_compiler_wl_F77
16483
16484 # Object file suffix (normally "o").
16485 objext="$ac_objext"
16486
16487 # Old archive suffix (normally "a").
16488 libext="$libext"
16489
16490 # Shared library suffix (normally ".so").
16491 shrext_cmds='$shrext_cmds'
16492
16493 # Executable file suffix (normally "").
16494 exeext="$exeext"
16495
16496 # Additional compiler flags for building library objects.
16497 pic_flag=$lt_lt_prog_compiler_pic_F77
16498 pic_mode=$pic_mode
16499
16500 # What is the maximum length of a command?
16501 max_cmd_len=$lt_cv_sys_max_cmd_len
16502
16503 # Does compiler simultaneously support -c and -o options?
16504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16505
16506 # Must we lock files when doing compilation?
16507 need_locks=$lt_need_locks
16508
16509 # Do we need the lib prefix for modules?
16510 need_lib_prefix=$need_lib_prefix
16511
16512 # Do we need a version for libraries?
16513 need_version=$need_version
16514
16515 # Whether dlopen is supported.
16516 dlopen_support=$enable_dlopen
16517
16518 # Whether dlopen of programs is supported.
16519 dlopen_self=$enable_dlopen_self
16520
16521 # Whether dlopen of statically linked programs is supported.
16522 dlopen_self_static=$enable_dlopen_self_static
16523
16524 # Compiler flag to prevent dynamic linking.
16525 link_static_flag=$lt_lt_prog_compiler_static_F77
16526
16527 # Compiler flag to turn off builtin functions.
16528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16529
16530 # Compiler flag to allow reflexive dlopens.
16531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16532
16533 # Compiler flag to generate shared objects directly from archives.
16534 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16535
16536 # Compiler flag to generate thread-safe objects.
16537 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16538
16539 # Library versioning type.
16540 version_type=$version_type
16541
16542 # Format of library name prefix.
16543 libname_spec=$lt_libname_spec
16544
16545 # List of archive names. First name is the real one, the rest are links.
16546 # The last name is the one that the linker finds with -lNAME.
16547 library_names_spec=$lt_library_names_spec
16548
16549 # The coded name of the library, if different from the real name.
16550 soname_spec=$lt_soname_spec
16551
16552 # Commands used to build and install an old-style archive.
16553 RANLIB=$lt_RANLIB
16554 old_archive_cmds=$lt_old_archive_cmds_F77
16555 old_postinstall_cmds=$lt_old_postinstall_cmds
16556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16557
16558 # Create an old-style archive from a shared archive.
16559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16560
16561 # Create a temporary old-style archive to link instead of a shared archive.
16562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16563
16564 # Commands used to build and install a shared archive.
16565 archive_cmds=$lt_archive_cmds_F77
16566 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16567 postinstall_cmds=$lt_postinstall_cmds
16568 postuninstall_cmds=$lt_postuninstall_cmds
16569
16570 # Commands used to build a loadable module (assumed same as above if empty)
16571 module_cmds=$lt_module_cmds_F77
16572 module_expsym_cmds=$lt_module_expsym_cmds_F77
16573
16574 # Commands to strip libraries.
16575 old_striplib=$lt_old_striplib
16576 striplib=$lt_striplib
16577
16578 # Dependencies to place before the objects being linked to create a
16579 # shared library.
16580 predep_objects=$lt_predep_objects_F77
16581
16582 # Dependencies to place after the objects being linked to create a
16583 # shared library.
16584 postdep_objects=$lt_postdep_objects_F77
16585
16586 # Dependencies to place before the objects being linked to create a
16587 # shared library.
16588 predeps=$lt_predeps_F77
16589
16590 # Dependencies to place after the objects being linked to create a
16591 # shared library.
16592 postdeps=$lt_postdeps_F77
16593
16594 # The directories searched by this compiler when creating a shared
16595 # library
16596 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16597
16598 # The library search path used internally by the compiler when linking
16599 # a shared library.
16600 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16601
16602 # Method to check whether dependent libraries are shared objects.
16603 deplibs_check_method=$lt_deplibs_check_method
16604
16605 # Command to use when deplibs_check_method == file_magic.
16606 file_magic_cmd=$lt_file_magic_cmd
16607
16608 # Flag that allows shared libraries with undefined symbols to be built.
16609 allow_undefined_flag=$lt_allow_undefined_flag_F77
16610
16611 # Flag that forces no undefined symbols.
16612 no_undefined_flag=$lt_no_undefined_flag_F77
16613
16614 # Commands used to finish a libtool library installation in a directory.
16615 finish_cmds=$lt_finish_cmds
16616
16617 # Same as above, but a single script fragment to be evaled but not shown.
16618 finish_eval=$lt_finish_eval
16619
16620 # Take the output of nm and produce a listing of raw symbols and C names.
16621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16622
16623 # Transform the output of nm in a proper C declaration
16624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16625
16626 # Transform the output of nm in a C name address pair
16627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16628
16629 # This is the shared library runtime path variable.
16630 runpath_var=$runpath_var
16631
16632 # This is the shared library path variable.
16633 shlibpath_var=$shlibpath_var
16634
16635 # Is shlibpath searched before the hard-coded library search path?
16636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16637
16638 # How to hardcode a shared library path into an executable.
16639 hardcode_action=$hardcode_action_F77
16640
16641 # Whether we should hardcode library paths into libraries.
16642 hardcode_into_libs=$hardcode_into_libs
16643
16644 # Flag to hardcode \$libdir into a binary during linking.
16645 # This must work even if \$libdir does not exist.
16646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16647
16648 # If ld is used when linking, flag to hardcode \$libdir into
16649 # a binary during linking. This must work even if \$libdir does
16650 # not exist.
16651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16652
16653 # Whether we need a single -rpath flag with a separated argument.
16654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16655
16656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16657 # resulting binary.
16658 hardcode_direct=$hardcode_direct_F77
16659
16660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16661 # resulting binary.
16662 hardcode_minus_L=$hardcode_minus_L_F77
16663
16664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16665 # the resulting binary.
16666 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16667
16668 # Set to yes if building a shared library automatically hardcodes DIR into the library
16669 # and all subsequent libraries and executables linked against it.
16670 hardcode_automatic=$hardcode_automatic_F77
16671
16672 # Variables whose values should be saved in libtool wrapper scripts and
16673 # restored at relink time.
16674 variables_saved_for_relink="$variables_saved_for_relink"
16675
16676 # Whether libtool must link a program against all its dependency libraries.
16677 link_all_deplibs=$link_all_deplibs_F77
16678
16679 # Compile-time system search path for libraries
16680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16681
16682 # Run-time system search path for libraries
16683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16684
16685 # Fix the shell variable \$srcfile for the compiler.
16686 fix_srcfile_path=$lt_fix_srcfile_path
16687
16688 # Set to yes if exported symbols are required.
16689 always_export_symbols=$always_export_symbols_F77
16690
16691 # The commands to list exported symbols.
16692 export_symbols_cmds=$lt_export_symbols_cmds_F77
16693
16694 # The commands to extract the exported symbol list from a shared archive.
16695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16696
16697 # Symbols that should not be listed in the preloaded symbols.
16698 exclude_expsyms=$lt_exclude_expsyms_F77
16699
16700 # Symbols that must always be exported.
16701 include_expsyms=$lt_include_expsyms_F77
16702
16703 # ### END LIBTOOL TAG CONFIG: $tagname
16704
16705 __EOF__
16706
16707
16708 else
16709 # If there is no Makefile yet, we rely on a make rule to execute
16710 # `config.status --recheck' to rerun these tests and create the
16711 # libtool script then.
16712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16713 if test -f "$ltmain_in"; then
16714 test -f Makefile && make "$ltmain"
16715 fi
16716 fi
16717
16718
16719 ac_ext=c
16720 ac_cpp='$CPP $CPPFLAGS'
16721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16724
16725 CC="$lt_save_CC"
16726
16727 else
16728 tagname=""
16729 fi
16730 ;;
16731
16732 GCJ)
16733 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16734
16735
16736 # Source file extension for Java test sources.
16737 ac_ext=java
16738
16739 # Object file extension for compiled Java test sources.
16740 objext=o
16741 objext_GCJ=$objext
16742
16743 # Code to be used in simple compile tests
16744 lt_simple_compile_test_code="class foo {}"
16745
16746 # Code to be used in simple link tests
16747 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16748
16749 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16750
16751 # If no C compiler was specified, use CC.
16752 LTCC=${LTCC-"$CC"}
16753
16754 # If no C compiler flags were specified, use CFLAGS.
16755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16756
16757 # Allow CC to be a program name with arguments.
16758 compiler=$CC
16759
16760
16761 # save warnings/boilerplate of simple test code
16762 ac_outfile=conftest.$ac_objext
16763 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16764 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16765 _lt_compiler_boilerplate=`cat conftest.err`
16766 $rm conftest*
16767
16768 ac_outfile=conftest.$ac_objext
16769 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16770 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16771 _lt_linker_boilerplate=`cat conftest.err`
16772 $rm -r conftest*
16773
16774
16775 # Allow CC to be a program name with arguments.
16776 lt_save_CC="$CC"
16777 CC=${GCJ-"gcj"}
16778 compiler=$CC
16779 compiler_GCJ=$CC
16780 for cc_temp in $compiler""; do
16781 case $cc_temp in
16782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16784 \-*) ;;
16785 *) break;;
16786 esac
16787 done
16788 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16789
16790
16791 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16792 archive_cmds_need_lc_GCJ=no
16793
16794 old_archive_cmds_GCJ=$old_archive_cmds
16795
16796
16797 lt_prog_compiler_no_builtin_flag_GCJ=
16798
16799 if test "$GCC" = yes; then
16800 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16801
16802
16803 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16804 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16805 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808 lt_cv_prog_compiler_rtti_exceptions=no
16809 ac_outfile=conftest.$ac_objext
16810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16811 lt_compiler_flag="-fno-rtti -fno-exceptions"
16812 # Insert the option either (1) after the last *FLAGS variable, or
16813 # (2) before a word containing "conftest.", or (3) at the end.
16814 # Note that $ac_compile itself does not contain backslashes and begins
16815 # with a dollar sign (not a hyphen), so the echo should work correctly.
16816 # The option is referenced via a variable to avoid confusing sed.
16817 lt_compile=`echo "$ac_compile" | $SED \
16818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16820 -e 's:$: $lt_compiler_flag:'`
16821 (eval echo "\"\$as_me:16821: $lt_compile\"" >&5)
16822 (eval "$lt_compile" 2>conftest.err)
16823 ac_status=$?
16824 cat conftest.err >&5
16825 echo "$as_me:16825: \$? = $ac_status" >&5
16826 if (exit $ac_status) && test -s "$ac_outfile"; then
16827 # The compiler can only warn and ignore the option if not recognized
16828 # So say no if there are warnings other than the usual output.
16829 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16832 lt_cv_prog_compiler_rtti_exceptions=yes
16833 fi
16834 fi
16835 $rm conftest*
16836
16837 fi
16838 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16839 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16840
16841 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16842 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16843 else
16844 :
16845 fi
16846
16847 fi
16848
16849 lt_prog_compiler_wl_GCJ=
16850 lt_prog_compiler_pic_GCJ=
16851 lt_prog_compiler_static_GCJ=
16852
16853 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16854 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16855
16856 if test "$GCC" = yes; then
16857 lt_prog_compiler_wl_GCJ='-Wl,'
16858 lt_prog_compiler_static_GCJ='-static'
16859
16860 case $host_os in
16861 aix*)
16862 # All AIX code is PIC.
16863 if test "$host_cpu" = ia64; then
16864 # AIX 5 now supports IA64 processor
16865 lt_prog_compiler_static_GCJ='-Bstatic'
16866 fi
16867 ;;
16868
16869 amigaos*)
16870 # FIXME: we need at least 68020 code to build shared libraries, but
16871 # adding the `-m68020' flag to GCC prevents building anything better,
16872 # like `-m68040'.
16873 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16874 ;;
16875
16876 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16877 # PIC is the default for these OSes.
16878 ;;
16879
16880 mingw* | cygwin* | pw32* | os2*)
16881 # This hack is so that the source file can tell whether it is being
16882 # built for inclusion in a dll (and should export symbols for example).
16883 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16884 # (--disable-auto-import) libraries
16885
16886 ;;
16887
16888 darwin* | rhapsody*)
16889 # PIC is the default on this platform
16890 # Common symbols not allowed in MH_DYLIB files
16891 lt_prog_compiler_pic_GCJ='-fno-common'
16892 ;;
16893
16894 interix[3-9]*)
16895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16896 # Instead, we relocate shared libraries at runtime.
16897 ;;
16898
16899 msdosdjgpp*)
16900 # Just because we use GCC doesn't mean we suddenly get shared libraries
16901 # on systems that don't support them.
16902 lt_prog_compiler_can_build_shared_GCJ=no
16903 enable_shared=no
16904 ;;
16905
16906 sysv4*MP*)
16907 if test -d /usr/nec; then
16908 lt_prog_compiler_pic_GCJ=-Kconform_pic
16909 fi
16910 ;;
16911
16912 hpux*)
16913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16914 # not for PA HP-UX.
16915 case $host_cpu in
16916 hppa*64*|ia64*)
16917 # +Z the default
16918 ;;
16919 *)
16920 lt_prog_compiler_pic_GCJ='-fPIC'
16921 ;;
16922 esac
16923 ;;
16924
16925 *)
16926 lt_prog_compiler_pic_GCJ='-fPIC'
16927 ;;
16928 esac
16929 else
16930 # PORTME Check for flag to pass linker flags through the system compiler.
16931 case $host_os in
16932 aix*)
16933 lt_prog_compiler_wl_GCJ='-Wl,'
16934 if test "$host_cpu" = ia64; then
16935 # AIX 5 now supports IA64 processor
16936 lt_prog_compiler_static_GCJ='-Bstatic'
16937 else
16938 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16939 fi
16940 ;;
16941 darwin*)
16942 # PIC is the default on this platform
16943 # Common symbols not allowed in MH_DYLIB files
16944 case $cc_basename in
16945 xlc*)
16946 lt_prog_compiler_pic_GCJ='-qnocommon'
16947 lt_prog_compiler_wl_GCJ='-Wl,'
16948 ;;
16949 esac
16950 ;;
16951
16952 mingw* | cygwin* | pw32* | os2*)
16953 # This hack is so that the source file can tell whether it is being
16954 # built for inclusion in a dll (and should export symbols for example).
16955
16956 ;;
16957
16958 hpux9* | hpux10* | hpux11*)
16959 lt_prog_compiler_wl_GCJ='-Wl,'
16960 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16961 # not for PA HP-UX.
16962 case $host_cpu in
16963 hppa*64*|ia64*)
16964 # +Z the default
16965 ;;
16966 *)
16967 lt_prog_compiler_pic_GCJ='+Z'
16968 ;;
16969 esac
16970 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16971 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16972 ;;
16973
16974 irix5* | irix6* | nonstopux*)
16975 lt_prog_compiler_wl_GCJ='-Wl,'
16976 # PIC (with -KPIC) is the default.
16977 lt_prog_compiler_static_GCJ='-non_shared'
16978 ;;
16979
16980 newsos6)
16981 lt_prog_compiler_pic_GCJ='-KPIC'
16982 lt_prog_compiler_static_GCJ='-Bstatic'
16983 ;;
16984
16985 linux* | k*bsd*-gnu)
16986 case $cc_basename in
16987 icc* | ecc*)
16988 lt_prog_compiler_wl_GCJ='-Wl,'
16989 lt_prog_compiler_pic_GCJ='-KPIC'
16990 lt_prog_compiler_static_GCJ='-static'
16991 ;;
16992 pgcc* | pgf77* | pgf90* | pgf95*)
16993 # Portland Group compilers (*not* the Pentium gcc compiler,
16994 # which looks to be a dead project)
16995 lt_prog_compiler_wl_GCJ='-Wl,'
16996 lt_prog_compiler_pic_GCJ='-fpic'
16997 lt_prog_compiler_static_GCJ='-Bstatic'
16998 ;;
16999 ccc*)
17000 lt_prog_compiler_wl_GCJ='-Wl,'
17001 # All Alpha code is PIC.
17002 lt_prog_compiler_static_GCJ='-non_shared'
17003 ;;
17004 *)
17005 case `$CC -V 2>&1 | sed 5q` in
17006 *Sun\ C*)
17007 # Sun C 5.9
17008 lt_prog_compiler_pic_GCJ='-KPIC'
17009 lt_prog_compiler_static_GCJ='-Bstatic'
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 ;;
17012 *Sun\ F*)
17013 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17014 lt_prog_compiler_pic_GCJ='-KPIC'
17015 lt_prog_compiler_static_GCJ='-Bstatic'
17016 lt_prog_compiler_wl_GCJ=''
17017 ;;
17018 esac
17019 ;;
17020 esac
17021 ;;
17022
17023 osf3* | osf4* | osf5*)
17024 lt_prog_compiler_wl_GCJ='-Wl,'
17025 # All OSF/1 code is PIC.
17026 lt_prog_compiler_static_GCJ='-non_shared'
17027 ;;
17028
17029 rdos*)
17030 lt_prog_compiler_static_GCJ='-non_shared'
17031 ;;
17032
17033 solaris*)
17034 lt_prog_compiler_pic_GCJ='-KPIC'
17035 lt_prog_compiler_static_GCJ='-Bstatic'
17036 case $cc_basename in
17037 f77* | f90* | f95*)
17038 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17039 *)
17040 lt_prog_compiler_wl_GCJ='-Wl,';;
17041 esac
17042 ;;
17043
17044 sunos4*)
17045 lt_prog_compiler_wl_GCJ='-Qoption ld '
17046 lt_prog_compiler_pic_GCJ='-PIC'
17047 lt_prog_compiler_static_GCJ='-Bstatic'
17048 ;;
17049
17050 sysv4 | sysv4.2uw2* | sysv4.3*)
17051 lt_prog_compiler_wl_GCJ='-Wl,'
17052 lt_prog_compiler_pic_GCJ='-KPIC'
17053 lt_prog_compiler_static_GCJ='-Bstatic'
17054 ;;
17055
17056 sysv4*MP*)
17057 if test -d /usr/nec ;then
17058 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17059 lt_prog_compiler_static_GCJ='-Bstatic'
17060 fi
17061 ;;
17062
17063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17064 lt_prog_compiler_wl_GCJ='-Wl,'
17065 lt_prog_compiler_pic_GCJ='-KPIC'
17066 lt_prog_compiler_static_GCJ='-Bstatic'
17067 ;;
17068
17069 unicos*)
17070 lt_prog_compiler_wl_GCJ='-Wl,'
17071 lt_prog_compiler_can_build_shared_GCJ=no
17072 ;;
17073
17074 uts4*)
17075 lt_prog_compiler_pic_GCJ='-pic'
17076 lt_prog_compiler_static_GCJ='-Bstatic'
17077 ;;
17078
17079 *)
17080 lt_prog_compiler_can_build_shared_GCJ=no
17081 ;;
17082 esac
17083 fi
17084
17085 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17086 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17087
17088 #
17089 # Check to make sure the PIC flag actually works.
17090 #
17091 if test -n "$lt_prog_compiler_pic_GCJ"; then
17092
17093 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17094 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17095 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098 lt_cv_prog_compiler_pic_works_GCJ=no
17099 ac_outfile=conftest.$ac_objext
17100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17101 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17102 # Insert the option either (1) after the last *FLAGS variable, or
17103 # (2) before a word containing "conftest.", or (3) at the end.
17104 # Note that $ac_compile itself does not contain backslashes and begins
17105 # with a dollar sign (not a hyphen), so the echo should work correctly.
17106 # The option is referenced via a variable to avoid confusing sed.
17107 lt_compile=`echo "$ac_compile" | $SED \
17108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17110 -e 's:$: $lt_compiler_flag:'`
17111 (eval echo "\"\$as_me:17111: $lt_compile\"" >&5)
17112 (eval "$lt_compile" 2>conftest.err)
17113 ac_status=$?
17114 cat conftest.err >&5
17115 echo "$as_me:17115: \$? = $ac_status" >&5
17116 if (exit $ac_status) && test -s "$ac_outfile"; then
17117 # The compiler can only warn and ignore the option if not recognized
17118 # So say no if there are warnings other than the usual output.
17119 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17122 lt_cv_prog_compiler_pic_works_GCJ=yes
17123 fi
17124 fi
17125 $rm conftest*
17126
17127 fi
17128 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17129 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17130
17131 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17132 case $lt_prog_compiler_pic_GCJ in
17133 "" | " "*) ;;
17134 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17135 esac
17136 else
17137 lt_prog_compiler_pic_GCJ=
17138 lt_prog_compiler_can_build_shared_GCJ=no
17139 fi
17140
17141 fi
17142 case $host_os in
17143 # For platforms which do not support PIC, -DPIC is meaningless:
17144 *djgpp*)
17145 lt_prog_compiler_pic_GCJ=
17146 ;;
17147 *)
17148 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17149 ;;
17150 esac
17151
17152 #
17153 # Check to make sure the static flag actually works.
17154 #
17155 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17156 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17157 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17158 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 lt_cv_prog_compiler_static_works_GCJ=no
17162 save_LDFLAGS="$LDFLAGS"
17163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17166 # The linker can only warn and ignore the option if not recognized
17167 # So say no if there are warnings
17168 if test -s conftest.err; then
17169 # Append any errors to the config.log.
17170 cat conftest.err 1>&5
17171 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17173 if diff conftest.exp conftest.er2 >/dev/null; then
17174 lt_cv_prog_compiler_static_works_GCJ=yes
17175 fi
17176 else
17177 lt_cv_prog_compiler_static_works_GCJ=yes
17178 fi
17179 fi
17180 $rm -r conftest*
17181 LDFLAGS="$save_LDFLAGS"
17182
17183 fi
17184 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17185 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17186
17187 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17188 :
17189 else
17190 lt_prog_compiler_static_GCJ=
17191 fi
17192
17193
17194 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17195 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17196 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199 lt_cv_prog_compiler_c_o_GCJ=no
17200 $rm -r conftest 2>/dev/null
17201 mkdir conftest
17202 cd conftest
17203 mkdir out
17204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17205
17206 lt_compiler_flag="-o out/conftest2.$ac_objext"
17207 # Insert the option either (1) after the last *FLAGS variable, or
17208 # (2) before a word containing "conftest.", or (3) at the end.
17209 # Note that $ac_compile itself does not contain backslashes and begins
17210 # with a dollar sign (not a hyphen), so the echo should work correctly.
17211 lt_compile=`echo "$ac_compile" | $SED \
17212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17214 -e 's:$: $lt_compiler_flag:'`
17215 (eval echo "\"\$as_me:17215: $lt_compile\"" >&5)
17216 (eval "$lt_compile" 2>out/conftest.err)
17217 ac_status=$?
17218 cat out/conftest.err >&5
17219 echo "$as_me:17219: \$? = $ac_status" >&5
17220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17221 then
17222 # The compiler can only warn and ignore the option if not recognized
17223 # So say no if there are warnings
17224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17227 lt_cv_prog_compiler_c_o_GCJ=yes
17228 fi
17229 fi
17230 chmod u+w . 2>&5
17231 $rm conftest*
17232 # SGI C++ compiler will create directory out/ii_files/ for
17233 # template instantiation
17234 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17235 $rm out/* && rmdir out
17236 cd ..
17237 rmdir conftest
17238 $rm conftest*
17239
17240 fi
17241 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17242 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17243
17244
17245 hard_links="nottested"
17246 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17247 # do not overwrite the value of need_locks provided by the user
17248 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17249 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17250 hard_links=yes
17251 $rm conftest*
17252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17253 touch conftest.a
17254 ln conftest.a conftest.b 2>&5 || hard_links=no
17255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17256 { echo "$as_me:$LINENO: result: $hard_links" >&5
17257 echo "${ECHO_T}$hard_links" >&6; }
17258 if test "$hard_links" = no; then
17259 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17260 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17261 need_locks=warn
17262 fi
17263 else
17264 need_locks=no
17265 fi
17266
17267 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17268 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17269
17270 runpath_var=
17271 allow_undefined_flag_GCJ=
17272 enable_shared_with_static_runtimes_GCJ=no
17273 archive_cmds_GCJ=
17274 archive_expsym_cmds_GCJ=
17275 old_archive_From_new_cmds_GCJ=
17276 old_archive_from_expsyms_cmds_GCJ=
17277 export_dynamic_flag_spec_GCJ=
17278 whole_archive_flag_spec_GCJ=
17279 thread_safe_flag_spec_GCJ=
17280 hardcode_libdir_flag_spec_GCJ=
17281 hardcode_libdir_flag_spec_ld_GCJ=
17282 hardcode_libdir_separator_GCJ=
17283 hardcode_direct_GCJ=no
17284 hardcode_minus_L_GCJ=no
17285 hardcode_shlibpath_var_GCJ=unsupported
17286 link_all_deplibs_GCJ=unknown
17287 hardcode_automatic_GCJ=no
17288 module_cmds_GCJ=
17289 module_expsym_cmds_GCJ=
17290 always_export_symbols_GCJ=no
17291 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17292 # include_expsyms should be a list of space-separated symbols to be *always*
17293 # included in the symbol list
17294 include_expsyms_GCJ=
17295 # exclude_expsyms can be an extended regexp of symbols to exclude
17296 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17297 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17298 # as well as any symbol that contains `d'.
17299 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17300 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17301 # platforms (ab)use it in PIC code, but their linkers get confused if
17302 # the symbol is explicitly referenced. Since portable code cannot
17303 # rely on this symbol name, it's probably fine to never include it in
17304 # preloaded symbol tables.
17305 # Exclude shared library initialization/finalization symbols.
17306 extract_expsyms_cmds=
17307 # Just being paranoid about ensuring that cc_basename is set.
17308 for cc_temp in $compiler""; do
17309 case $cc_temp in
17310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17312 \-*) ;;
17313 *) break;;
17314 esac
17315 done
17316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17317
17318 case $host_os in
17319 cygwin* | mingw* | pw32*)
17320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17321 # When not using gcc, we currently assume that we are using
17322 # Microsoft Visual C++.
17323 if test "$GCC" != yes; then
17324 with_gnu_ld=no
17325 fi
17326 ;;
17327 interix*)
17328 # we just hope/assume this is gcc and not c89 (= MSVC++)
17329 with_gnu_ld=yes
17330 ;;
17331 openbsd*)
17332 with_gnu_ld=no
17333 ;;
17334 esac
17335
17336 ld_shlibs_GCJ=yes
17337 if test "$with_gnu_ld" = yes; then
17338 # If archive_cmds runs LD, not CC, wlarc should be empty
17339 wlarc='${wl}'
17340
17341 # Set some defaults for GNU ld with shared library support. These
17342 # are reset later if shared libraries are not supported. Putting them
17343 # here allows them to be overridden if necessary.
17344 runpath_var=LD_RUN_PATH
17345 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17346 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17347 # ancient GNU ld didn't support --whole-archive et. al.
17348 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17349 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17350 else
17351 whole_archive_flag_spec_GCJ=
17352 fi
17353 supports_anon_versioning=no
17354 case `$LD -v 2>/dev/null` in
17355 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17356 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17357 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17358 *\ 2.11.*) ;; # other 2.11 versions
17359 *) supports_anon_versioning=yes ;;
17360 esac
17361
17362 # See if GNU ld supports shared libraries.
17363 case $host_os in
17364 aix[3-9]*)
17365 # On AIX/PPC, the GNU linker is very broken
17366 if test "$host_cpu" != ia64; then
17367 ld_shlibs_GCJ=no
17368 cat <<EOF 1>&2
17369
17370 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17371 *** to be unable to reliably create shared libraries on AIX.
17372 *** Therefore, libtool is disabling shared libraries support. If you
17373 *** really care for shared libraries, you may want to modify your PATH
17374 *** so that a non-GNU linker is found, and then restart.
17375
17376 EOF
17377 fi
17378 ;;
17379
17380 amigaos*)
17381 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)'
17382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17383 hardcode_minus_L_GCJ=yes
17384
17385 # Samuel A. Falvo II <[email protected]> reports
17386 # that the semantics of dynamic libraries on AmigaOS, at least up
17387 # to version 4, is to share data among multiple programs linked
17388 # with the same dynamic library. Since this doesn't match the
17389 # behavior of shared libraries on other platforms, we can't use
17390 # them.
17391 ld_shlibs_GCJ=no
17392 ;;
17393
17394 beos*)
17395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17396 allow_undefined_flag_GCJ=unsupported
17397 # Joseph Beckenbach <[email protected]> says some releases of gcc
17398 # support --undefined. This deserves some investigation. FIXME
17399 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17400 else
17401 ld_shlibs_GCJ=no
17402 fi
17403 ;;
17404
17405 cygwin* | mingw* | pw32*)
17406 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17407 # as there is no search path for DLLs.
17408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409 allow_undefined_flag_GCJ=unsupported
17410 always_export_symbols_GCJ=no
17411 enable_shared_with_static_runtimes_GCJ=yes
17412 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17413
17414 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17415 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17416 # If the export-symbols file already is a .def file (1st line
17417 # is EXPORTS), use it as is; otherwise, prepend...
17418 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17419 cp $export_symbols $output_objdir/$soname.def;
17420 else
17421 echo EXPORTS > $output_objdir/$soname.def;
17422 cat $export_symbols >> $output_objdir/$soname.def;
17423 fi~
17424 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17425 else
17426 ld_shlibs_GCJ=no
17427 fi
17428 ;;
17429
17430 interix[3-9]*)
17431 hardcode_direct_GCJ=no
17432 hardcode_shlibpath_var_GCJ=no
17433 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17434 export_dynamic_flag_spec_GCJ='${wl}-E'
17435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17436 # Instead, shared libraries are loaded at an image base (0x10000000 by
17437 # default) and relocated if they conflict, which is a slow very memory
17438 # consuming and fragmenting process. To avoid this, we pick a random,
17439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17441 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'
17442 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'
17443 ;;
17444
17445 gnu* | linux* | k*bsd*-gnu)
17446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447 tmp_addflag=
17448 case $cc_basename,$host_cpu in
17449 pgcc*) # Portland Group C compiler
17450 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'
17451 tmp_addflag=' $pic_flag'
17452 ;;
17453 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17454 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'
17455 tmp_addflag=' $pic_flag -Mnomain' ;;
17456 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17457 tmp_addflag=' -i_dynamic' ;;
17458 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17459 tmp_addflag=' -i_dynamic -nofor_main' ;;
17460 ifc* | ifort*) # Intel Fortran compiler
17461 tmp_addflag=' -nofor_main' ;;
17462 esac
17463 case `$CC -V 2>&1 | sed 5q` in
17464 *Sun\ C*) # Sun C 5.9
17465 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17466 tmp_sharedflag='-G' ;;
17467 *Sun\ F*) # Sun Fortran 8.3
17468 tmp_sharedflag='-G' ;;
17469 *)
17470 tmp_sharedflag='-shared' ;;
17471 esac
17472 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17473
17474 if test $supports_anon_versioning = yes; then
17475 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17477 $echo "local: *; };" >> $output_objdir/$libname.ver~
17478 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17479 fi
17480 else
17481 ld_shlibs_GCJ=no
17482 fi
17483 ;;
17484
17485 netbsd*)
17486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17487 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17488 wlarc=
17489 else
17490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17492 fi
17493 ;;
17494
17495 solaris*)
17496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17497 ld_shlibs_GCJ=no
17498 cat <<EOF 1>&2
17499
17500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17501 *** create shared libraries on Solaris systems. Therefore, libtool
17502 *** is disabling shared libraries support. We urge you to upgrade GNU
17503 *** binutils to release 2.9.1 or newer. Another option is to modify
17504 *** your PATH or compiler configuration so that the native linker is
17505 *** used, and then restart.
17506
17507 EOF
17508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17511 else
17512 ld_shlibs_GCJ=no
17513 fi
17514 ;;
17515
17516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17517 case `$LD -v 2>&1` in
17518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17519 ld_shlibs_GCJ=no
17520 cat <<_LT_EOF 1>&2
17521
17522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17523 *** reliably create shared libraries on SCO systems. Therefore, libtool
17524 *** is disabling shared libraries support. We urge you to upgrade GNU
17525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17526 *** your PATH or compiler configuration so that the native linker is
17527 *** used, and then restart.
17528
17529 _LT_EOF
17530 ;;
17531 *)
17532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17533 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17534 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17535 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17536 else
17537 ld_shlibs_GCJ=no
17538 fi
17539 ;;
17540 esac
17541 ;;
17542
17543 sunos4*)
17544 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17545 wlarc=
17546 hardcode_direct_GCJ=yes
17547 hardcode_shlibpath_var_GCJ=no
17548 ;;
17549
17550 *)
17551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17554 else
17555 ld_shlibs_GCJ=no
17556 fi
17557 ;;
17558 esac
17559
17560 if test "$ld_shlibs_GCJ" = no; then
17561 runpath_var=
17562 hardcode_libdir_flag_spec_GCJ=
17563 export_dynamic_flag_spec_GCJ=
17564 whole_archive_flag_spec_GCJ=
17565 fi
17566 else
17567 # PORTME fill in a description of your system's linker (not GNU ld)
17568 case $host_os in
17569 aix3*)
17570 allow_undefined_flag_GCJ=unsupported
17571 always_export_symbols_GCJ=yes
17572 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'
17573 # Note: this linker hardcodes the directories in LIBPATH if there
17574 # are no directories specified by -L.
17575 hardcode_minus_L_GCJ=yes
17576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17577 # Neither direct hardcoding nor static linking is supported with a
17578 # broken collect2.
17579 hardcode_direct_GCJ=unsupported
17580 fi
17581 ;;
17582
17583 aix[4-9]*)
17584 if test "$host_cpu" = ia64; then
17585 # On IA64, the linker does run time linking by default, so we don't
17586 # have to do anything special.
17587 aix_use_runtimelinking=no
17588 exp_sym_flag='-Bexport'
17589 no_entry_flag=""
17590 else
17591 # If we're using GNU nm, then we don't want the "-C" option.
17592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17594 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'
17595 else
17596 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'
17597 fi
17598 aix_use_runtimelinking=no
17599
17600 # Test if we are trying to use run time linking or normal
17601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17602 # need to do runtime linking.
17603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17604 for ld_flag in $LDFLAGS; do
17605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17606 aix_use_runtimelinking=yes
17607 break
17608 fi
17609 done
17610 ;;
17611 esac
17612
17613 exp_sym_flag='-bexport'
17614 no_entry_flag='-bnoentry'
17615 fi
17616
17617 # When large executables or shared objects are built, AIX ld can
17618 # have problems creating the table of contents. If linking a library
17619 # or program results in "error TOC overflow" add -mminimal-toc to
17620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17622
17623 archive_cmds_GCJ=''
17624 hardcode_direct_GCJ=yes
17625 hardcode_libdir_separator_GCJ=':'
17626 link_all_deplibs_GCJ=yes
17627
17628 if test "$GCC" = yes; then
17629 case $host_os in aix4.[012]|aix4.[012].*)
17630 # We only want to do this on AIX 4.2 and lower, the check
17631 # below for broken collect2 doesn't work under 4.3+
17632 collect2name=`${CC} -print-prog-name=collect2`
17633 if test -f "$collect2name" && \
17634 strings "$collect2name" | grep resolve_lib_name >/dev/null
17635 then
17636 # We have reworked collect2
17637 :
17638 else
17639 # We have old collect2
17640 hardcode_direct_GCJ=unsupported
17641 # It fails to find uninstalled libraries when the uninstalled
17642 # path is not listed in the libpath. Setting hardcode_minus_L
17643 # to unsupported forces relinking
17644 hardcode_minus_L_GCJ=yes
17645 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17646 hardcode_libdir_separator_GCJ=
17647 fi
17648 ;;
17649 esac
17650 shared_flag='-shared'
17651 if test "$aix_use_runtimelinking" = yes; then
17652 shared_flag="$shared_flag "'${wl}-G'
17653 fi
17654 else
17655 # not using gcc
17656 if test "$host_cpu" = ia64; then
17657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17658 # chokes on -Wl,-G. The following line is correct:
17659 shared_flag='-G'
17660 else
17661 if test "$aix_use_runtimelinking" = yes; then
17662 shared_flag='${wl}-G'
17663 else
17664 shared_flag='${wl}-bM:SRE'
17665 fi
17666 fi
17667 fi
17668
17669 # It seems that -bexpall does not export symbols beginning with
17670 # underscore (_), so it is better to generate a list of symbols to export.
17671 always_export_symbols_GCJ=yes
17672 if test "$aix_use_runtimelinking" = yes; then
17673 # Warning - without using the other runtime loading flags (-brtl),
17674 # -berok will link without error, but may produce a broken library.
17675 allow_undefined_flag_GCJ='-berok'
17676 # Determine the default libpath from the value encoded in an empty executable.
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683
17684 int
17685 main ()
17686 {
17687
17688 ;
17689 return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (ac_try="$ac_link"
17694 case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_link") 2>conftest.er1
17700 ac_status=$?
17701 grep -v '^ *+' conftest.er1 >conftest.err
17702 rm -f conftest.er1
17703 cat conftest.err >&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } && {
17706 test -z "$ac_c_werror_flag" ||
17707 test ! -s conftest.err
17708 } && test -s conftest$ac_exeext &&
17709 $as_test_x conftest$ac_exeext; then
17710
17711 lt_aix_libpath_sed='
17712 /Import File Strings/,/^$/ {
17713 /^0/ {
17714 s/^0 *\(.*\)$/\1/
17715 p
17716 }
17717 }'
17718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17719 # Check for a 64-bit object if we didn't find anything.
17720 if test -z "$aix_libpath"; then
17721 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17722 fi
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727
17728 fi
17729
17730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17731 conftest$ac_exeext conftest.$ac_ext
17732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17733
17734 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17735 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"
17736 else
17737 if test "$host_cpu" = ia64; then
17738 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17739 allow_undefined_flag_GCJ="-z nodefs"
17740 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"
17741 else
17742 # Determine the default libpath from the value encoded in an empty executable.
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749
17750 int
17751 main ()
17752 {
17753
17754 ;
17755 return 0;
17756 }
17757 _ACEOF
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (ac_try="$ac_link"
17760 case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17763 esac
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_link") 2>conftest.er1
17766 ac_status=$?
17767 grep -v '^ *+' conftest.er1 >conftest.err
17768 rm -f conftest.er1
17769 cat conftest.err >&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } && {
17772 test -z "$ac_c_werror_flag" ||
17773 test ! -s conftest.err
17774 } && test -s conftest$ac_exeext &&
17775 $as_test_x conftest$ac_exeext; then
17776
17777 lt_aix_libpath_sed='
17778 /Import File Strings/,/^$/ {
17779 /^0/ {
17780 s/^0 *\(.*\)$/\1/
17781 p
17782 }
17783 }'
17784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17785 # Check for a 64-bit object if we didn't find anything.
17786 if test -z "$aix_libpath"; then
17787 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788 fi
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17792
17793
17794 fi
17795
17796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797 conftest$ac_exeext conftest.$ac_ext
17798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17799
17800 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17801 # Warning - without using the other run time loading flags,
17802 # -berok will link without error, but may produce a broken library.
17803 no_undefined_flag_GCJ=' ${wl}-bernotok'
17804 allow_undefined_flag_GCJ=' ${wl}-berok'
17805 # Exported symbols can be pulled into shared objects from archives
17806 whole_archive_flag_spec_GCJ='$convenience'
17807 archive_cmds_need_lc_GCJ=yes
17808 # This is similar to how AIX traditionally builds its shared libraries.
17809 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'
17810 fi
17811 fi
17812 ;;
17813
17814 amigaos*)
17815 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)'
17816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17817 hardcode_minus_L_GCJ=yes
17818 # see comment about different semantics on the GNU ld section
17819 ld_shlibs_GCJ=no
17820 ;;
17821
17822 bsdi[45]*)
17823 export_dynamic_flag_spec_GCJ=-rdynamic
17824 ;;
17825
17826 cygwin* | mingw* | pw32*)
17827 # When not using gcc, we currently assume that we are using
17828 # Microsoft Visual C++.
17829 # hardcode_libdir_flag_spec is actually meaningless, as there is
17830 # no search path for DLLs.
17831 hardcode_libdir_flag_spec_GCJ=' '
17832 allow_undefined_flag_GCJ=unsupported
17833 # Tell ltmain to make .lib files, not .a files.
17834 libext=lib
17835 # Tell ltmain to make .dll files, not .so files.
17836 shrext_cmds=".dll"
17837 # FIXME: Setting linknames here is a bad hack.
17838 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17839 # The linker will automatically build a .lib file if we build a DLL.
17840 old_archive_From_new_cmds_GCJ='true'
17841 # FIXME: Should let the user specify the lib program.
17842 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17843 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17844 enable_shared_with_static_runtimes_GCJ=yes
17845 ;;
17846
17847 darwin* | rhapsody*)
17848 case $host_os in
17849 rhapsody* | darwin1.[012])
17850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17851 ;;
17852 *) # Darwin 1.3 on
17853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17855 else
17856 case ${MACOSX_DEPLOYMENT_TARGET} in
17857 10.[012])
17858 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17859 ;;
17860 10.*)
17861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17862 ;;
17863 esac
17864 fi
17865 ;;
17866 esac
17867 archive_cmds_need_lc_GCJ=no
17868 hardcode_direct_GCJ=no
17869 hardcode_automatic_GCJ=yes
17870 hardcode_shlibpath_var_GCJ=unsupported
17871 whole_archive_flag_spec_GCJ=''
17872 link_all_deplibs_GCJ=yes
17873 if test "$GCC" = yes ; then
17874 output_verbose_link_cmd='echo'
17875 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17876 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17877 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17878 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17879 else
17880 case $cc_basename in
17881 xlc*)
17882 output_verbose_link_cmd='echo'
17883 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17884 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17885 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17886 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17887 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}'
17888 ;;
17889 *)
17890 ld_shlibs_GCJ=no
17891 ;;
17892 esac
17893 fi
17894 ;;
17895
17896 dgux*)
17897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17899 hardcode_shlibpath_var_GCJ=no
17900 ;;
17901
17902 freebsd1*)
17903 ld_shlibs_GCJ=no
17904 ;;
17905
17906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17907 # support. Future versions do this automatically, but an explicit c++rt0.o
17908 # does not break anything, and helps significantly (at the cost of a little
17909 # extra space).
17910 freebsd2.2*)
17911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913 hardcode_direct_GCJ=yes
17914 hardcode_shlibpath_var_GCJ=no
17915 ;;
17916
17917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17918 freebsd2*)
17919 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17920 hardcode_direct_GCJ=yes
17921 hardcode_minus_L_GCJ=yes
17922 hardcode_shlibpath_var_GCJ=no
17923 ;;
17924
17925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17926 freebsd* | dragonfly*)
17927 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929 hardcode_direct_GCJ=yes
17930 hardcode_shlibpath_var_GCJ=no
17931 ;;
17932
17933 hpux9*)
17934 if test "$GCC" = yes; then
17935 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'
17936 else
17937 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'
17938 fi
17939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17940 hardcode_libdir_separator_GCJ=:
17941 hardcode_direct_GCJ=yes
17942
17943 # hardcode_minus_L: Not really in the search PATH,
17944 # but as the default location of the library.
17945 hardcode_minus_L_GCJ=yes
17946 export_dynamic_flag_spec_GCJ='${wl}-E'
17947 ;;
17948
17949 hpux10*)
17950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17951 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17952 else
17953 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17954 fi
17955 if test "$with_gnu_ld" = no; then
17956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17957 hardcode_libdir_separator_GCJ=:
17958
17959 hardcode_direct_GCJ=yes
17960 export_dynamic_flag_spec_GCJ='${wl}-E'
17961
17962 # hardcode_minus_L: Not really in the search PATH,
17963 # but as the default location of the library.
17964 hardcode_minus_L_GCJ=yes
17965 fi
17966 ;;
17967
17968 hpux11*)
17969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17970 case $host_cpu in
17971 hppa*64*)
17972 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17973 ;;
17974 ia64*)
17975 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17976 ;;
17977 *)
17978 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17979 ;;
17980 esac
17981 else
17982 case $host_cpu in
17983 hppa*64*)
17984 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17985 ;;
17986 ia64*)
17987 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17988 ;;
17989 *)
17990 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17991 ;;
17992 esac
17993 fi
17994 if test "$with_gnu_ld" = no; then
17995 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17996 hardcode_libdir_separator_GCJ=:
17997
17998 case $host_cpu in
17999 hppa*64*|ia64*)
18000 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18001 hardcode_direct_GCJ=no
18002 hardcode_shlibpath_var_GCJ=no
18003 ;;
18004 *)
18005 hardcode_direct_GCJ=yes
18006 export_dynamic_flag_spec_GCJ='${wl}-E'
18007
18008 # hardcode_minus_L: Not really in the search PATH,
18009 # but as the default location of the library.
18010 hardcode_minus_L_GCJ=yes
18011 ;;
18012 esac
18013 fi
18014 ;;
18015
18016 irix5* | irix6* | nonstopux*)
18017 if test "$GCC" = yes; then
18018 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'
18019 else
18020 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'
18021 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18022 fi
18023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18024 hardcode_libdir_separator_GCJ=:
18025 link_all_deplibs_GCJ=yes
18026 ;;
18027
18028 netbsd*)
18029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18030 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18031 else
18032 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18033 fi
18034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035 hardcode_direct_GCJ=yes
18036 hardcode_shlibpath_var_GCJ=no
18037 ;;
18038
18039 newsos6)
18040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_direct_GCJ=yes
18042 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18043 hardcode_libdir_separator_GCJ=:
18044 hardcode_shlibpath_var_GCJ=no
18045 ;;
18046
18047 openbsd*)
18048 if test -f /usr/libexec/ld.so; then
18049 hardcode_direct_GCJ=yes
18050 hardcode_shlibpath_var_GCJ=no
18051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18055 export_dynamic_flag_spec_GCJ='${wl}-E'
18056 else
18057 case $host_os in
18058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061 ;;
18062 *)
18063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18065 ;;
18066 esac
18067 fi
18068 else
18069 ld_shlibs_GCJ=no
18070 fi
18071 ;;
18072
18073 os2*)
18074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18075 hardcode_minus_L_GCJ=yes
18076 allow_undefined_flag_GCJ=unsupported
18077 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'
18078 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18079 ;;
18080
18081 osf3*)
18082 if test "$GCC" = yes; then
18083 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18084 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'
18085 else
18086 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18087 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'
18088 fi
18089 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18090 hardcode_libdir_separator_GCJ=:
18091 ;;
18092
18093 osf4* | osf5*) # as osf3* with the addition of -msym flag
18094 if test "$GCC" = yes; then
18095 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18096 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'
18097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18098 else
18099 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18100 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'
18101 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~
18102 $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'
18103
18104 # Both c and cxx compiler support -rpath directly
18105 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18106 fi
18107 hardcode_libdir_separator_GCJ=:
18108 ;;
18109
18110 solaris*)
18111 no_undefined_flag_GCJ=' -z text'
18112 if test "$GCC" = yes; then
18113 wlarc='${wl}'
18114 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18116 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18117 else
18118 wlarc=''
18119 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18120 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18121 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18122 fi
18123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18124 hardcode_shlibpath_var_GCJ=no
18125 case $host_os in
18126 solaris2.[0-5] | solaris2.[0-5].*) ;;
18127 *)
18128 # The compiler driver will combine and reorder linker options,
18129 # but understands `-z linker_flag'. GCC discards it without `$wl',
18130 # but is careful enough not to reorder.
18131 # Supported since Solaris 2.6 (maybe 2.5.1?)
18132 if test "$GCC" = yes; then
18133 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18134 else
18135 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18136 fi
18137 ;;
18138 esac
18139 link_all_deplibs_GCJ=yes
18140 ;;
18141
18142 sunos4*)
18143 if test "x$host_vendor" = xsequent; then
18144 # Use $CC to link under sequent, because it throws in some extra .o
18145 # files that make .init and .fini sections work.
18146 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18147 else
18148 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18149 fi
18150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151 hardcode_direct_GCJ=yes
18152 hardcode_minus_L_GCJ=yes
18153 hardcode_shlibpath_var_GCJ=no
18154 ;;
18155
18156 sysv4)
18157 case $host_vendor in
18158 sni)
18159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160 hardcode_direct_GCJ=yes # is this really true???
18161 ;;
18162 siemens)
18163 ## LD is ld it makes a PLAMLIB
18164 ## CC just makes a GrossModule.
18165 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18166 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18167 hardcode_direct_GCJ=no
18168 ;;
18169 motorola)
18170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18172 ;;
18173 esac
18174 runpath_var='LD_RUN_PATH'
18175 hardcode_shlibpath_var_GCJ=no
18176 ;;
18177
18178 sysv4.3*)
18179 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180 hardcode_shlibpath_var_GCJ=no
18181 export_dynamic_flag_spec_GCJ='-Bexport'
18182 ;;
18183
18184 sysv4*MP*)
18185 if test -d /usr/nec; then
18186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_shlibpath_var_GCJ=no
18188 runpath_var=LD_RUN_PATH
18189 hardcode_runpath_var=yes
18190 ld_shlibs_GCJ=yes
18191 fi
18192 ;;
18193
18194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18195 no_undefined_flag_GCJ='${wl}-z,text'
18196 archive_cmds_need_lc_GCJ=no
18197 hardcode_shlibpath_var_GCJ=no
18198 runpath_var='LD_RUN_PATH'
18199
18200 if test "$GCC" = yes; then
18201 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18202 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18203 else
18204 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18205 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18206 fi
18207 ;;
18208
18209 sysv5* | sco3.2v5* | sco5v6*)
18210 # Note: We can NOT use -z defs as we might desire, because we do not
18211 # link with -lc, and that would cause any symbols used from libc to
18212 # always be unresolved, which means just about no library would
18213 # ever link correctly. If we're not using GNU ld we use -z text
18214 # though, which does catch some bad symbols but isn't as heavy-handed
18215 # as -z defs.
18216 no_undefined_flag_GCJ='${wl}-z,text'
18217 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18218 archive_cmds_need_lc_GCJ=no
18219 hardcode_shlibpath_var_GCJ=no
18220 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18221 hardcode_libdir_separator_GCJ=':'
18222 link_all_deplibs_GCJ=yes
18223 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18224 runpath_var='LD_RUN_PATH'
18225
18226 if test "$GCC" = yes; then
18227 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18229 else
18230 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18232 fi
18233 ;;
18234
18235 uts4*)
18236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18238 hardcode_shlibpath_var_GCJ=no
18239 ;;
18240
18241 *)
18242 ld_shlibs_GCJ=no
18243 ;;
18244 esac
18245 fi
18246
18247 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18248 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18249 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18250
18251 #
18252 # Do we need to explicitly link libc?
18253 #
18254 case "x$archive_cmds_need_lc_GCJ" in
18255 x|xyes)
18256 # Assume -lc should be added
18257 archive_cmds_need_lc_GCJ=yes
18258
18259 if test "$enable_shared" = yes && test "$GCC" = yes; then
18260 case $archive_cmds_GCJ in
18261 *'~'*)
18262 # FIXME: we may have to deal with multi-command sequences.
18263 ;;
18264 '$CC '*)
18265 # Test whether the compiler implicitly links with -lc since on some
18266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18267 # to ld, don't add -lc before -lgcc.
18268 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18269 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18270 $rm conftest*
18271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18272
18273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274 (eval $ac_compile) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } 2>conftest.err; then
18278 soname=conftest
18279 lib=conftest
18280 libobjs=conftest.$ac_objext
18281 deplibs=
18282 wl=$lt_prog_compiler_wl_GCJ
18283 pic_flag=$lt_prog_compiler_pic_GCJ
18284 compiler_flags=-v
18285 linker_flags=-v
18286 verstring=
18287 output_objdir=.
18288 libname=conftest
18289 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18290 allow_undefined_flag_GCJ=
18291 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18292 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }
18296 then
18297 archive_cmds_need_lc_GCJ=no
18298 else
18299 archive_cmds_need_lc_GCJ=yes
18300 fi
18301 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18302 else
18303 cat conftest.err 1>&5
18304 fi
18305 $rm conftest*
18306 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18307 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18308 ;;
18309 esac
18310 fi
18311 ;;
18312 esac
18313
18314 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18316 library_names_spec=
18317 libname_spec='lib$name'
18318 soname_spec=
18319 shrext_cmds=".so"
18320 postinstall_cmds=
18321 postuninstall_cmds=
18322 finish_cmds=
18323 finish_eval=
18324 shlibpath_var=
18325 shlibpath_overrides_runpath=unknown
18326 version_type=none
18327 dynamic_linker="$host_os ld.so"
18328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18329
18330 need_lib_prefix=unknown
18331 hardcode_into_libs=no
18332
18333 # when you set need_version to no, make sure it does not cause -set_version
18334 # flags to be left without arguments
18335 need_version=unknown
18336
18337 case $host_os in
18338 aix3*)
18339 version_type=linux
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18341 shlibpath_var=LIBPATH
18342
18343 # AIX 3 has no versioning support, so we append a major version to the name.
18344 soname_spec='${libname}${release}${shared_ext}$major'
18345 ;;
18346
18347 aix[4-9]*)
18348 version_type=linux
18349 need_lib_prefix=no
18350 need_version=no
18351 hardcode_into_libs=yes
18352 if test "$host_cpu" = ia64; then
18353 # AIX 5 supports IA64
18354 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 else
18357 # With GCC up to 2.95.x, collect2 would create an import file
18358 # for dependence libraries. The import file would start with
18359 # the line `#! .'. This would cause the generated library to
18360 # depend on `.', always an invalid library. This was fixed in
18361 # development snapshots of GCC prior to 3.0.
18362 case $host_os in
18363 aix4 | aix4.[01] | aix4.[01].*)
18364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18365 echo ' yes '
18366 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18367 :
18368 else
18369 can_build_shared=no
18370 fi
18371 ;;
18372 esac
18373 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18374 # soname into executable. Probably we can add versioning support to
18375 # collect2, so additional links can be useful in future.
18376 if test "$aix_use_runtimelinking" = yes; then
18377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18378 # instead of lib<name>.a to let people know that these are not
18379 # typical AIX shared libraries.
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18381 else
18382 # We preserve .a as extension for shared libraries through AIX4.2
18383 # and later when we are not doing run time linking.
18384 library_names_spec='${libname}${release}.a $libname.a'
18385 soname_spec='${libname}${release}${shared_ext}$major'
18386 fi
18387 shlibpath_var=LIBPATH
18388 fi
18389 ;;
18390
18391 amigaos*)
18392 library_names_spec='$libname.ixlibrary $libname.a'
18393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18394 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'
18395 ;;
18396
18397 beos*)
18398 library_names_spec='${libname}${shared_ext}'
18399 dynamic_linker="$host_os ld.so"
18400 shlibpath_var=LIBRARY_PATH
18401 ;;
18402
18403 bsdi[45]*)
18404 version_type=linux
18405 need_version=no
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 soname_spec='${libname}${release}${shared_ext}$major'
18408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18409 shlibpath_var=LD_LIBRARY_PATH
18410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18412 # the default ld.so.conf also contains /usr/contrib/lib and
18413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18414 # libtool to hard-code these into programs
18415 ;;
18416
18417 cygwin* | mingw* | pw32*)
18418 version_type=windows
18419 shrext_cmds=".dll"
18420 need_version=no
18421 need_lib_prefix=no
18422
18423 case $GCC,$host_os in
18424 yes,cygwin* | yes,mingw* | yes,pw32*)
18425 library_names_spec='$libname.dll.a'
18426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18427 postinstall_cmds='base_file=`basename \${file}`~
18428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18429 dldir=$destdir/`dirname \$dlpath`~
18430 test -d \$dldir || mkdir -p \$dldir~
18431 $install_prog $dir/$dlname \$dldir/$dlname~
18432 chmod a+x \$dldir/$dlname'
18433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18434 dlpath=$dir/\$dldll~
18435 $rm \$dlpath'
18436 shlibpath_overrides_runpath=yes
18437
18438 case $host_os in
18439 cygwin*)
18440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18443 ;;
18444 mingw*)
18445 # MinGW DLLs use traditional 'lib' prefix
18446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18449 # It is most probably a Windows format PATH printed by
18450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18451 # path with ; separators, and with drive letters. We can handle the
18452 # drive letters (cygwin fileutils understands them), so leave them,
18453 # especially as we might pass files found there to a mingw objdump,
18454 # which wouldn't understand a cygwinified path. Ahh.
18455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18456 else
18457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18458 fi
18459 ;;
18460 pw32*)
18461 # pw32 DLLs use 'pw' prefix rather than 'lib'
18462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463 ;;
18464 esac
18465 ;;
18466
18467 *)
18468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18469 ;;
18470 esac
18471 dynamic_linker='Win32 ld.exe'
18472 # FIXME: first we should search . and the directory the executable is in
18473 shlibpath_var=PATH
18474 ;;
18475
18476 darwin* | rhapsody*)
18477 dynamic_linker="$host_os dyld"
18478 version_type=darwin
18479 need_lib_prefix=no
18480 need_version=no
18481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18482 soname_spec='${libname}${release}${major}$shared_ext'
18483 shlibpath_overrides_runpath=yes
18484 shlibpath_var=DYLD_LIBRARY_PATH
18485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18486
18487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18488 ;;
18489
18490 dgux*)
18491 version_type=linux
18492 need_lib_prefix=no
18493 need_version=no
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18495 soname_spec='${libname}${release}${shared_ext}$major'
18496 shlibpath_var=LD_LIBRARY_PATH
18497 ;;
18498
18499 freebsd1*)
18500 dynamic_linker=no
18501 ;;
18502
18503 freebsd* | dragonfly*)
18504 # DragonFly does not have aout. When/if they implement a new
18505 # versioning mechanism, adjust this.
18506 if test -x /usr/bin/objformat; then
18507 objformat=`/usr/bin/objformat`
18508 else
18509 case $host_os in
18510 freebsd[123]*) objformat=aout ;;
18511 *) objformat=elf ;;
18512 esac
18513 fi
18514 # Handle Gentoo/FreeBSD as it was Linux
18515 case $host_vendor in
18516 gentoo)
18517 version_type=linux ;;
18518 *)
18519 version_type=freebsd-$objformat ;;
18520 esac
18521
18522 case $version_type in
18523 freebsd-elf*)
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18525 need_version=no
18526 need_lib_prefix=no
18527 ;;
18528 freebsd-*)
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18530 need_version=yes
18531 ;;
18532 linux)
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 need_lib_prefix=no
18536 need_version=no
18537 ;;
18538 esac
18539 shlibpath_var=LD_LIBRARY_PATH
18540 case $host_os in
18541 freebsd2*)
18542 shlibpath_overrides_runpath=yes
18543 ;;
18544 freebsd3.[01]* | freebsdelf3.[01]*)
18545 shlibpath_overrides_runpath=yes
18546 hardcode_into_libs=yes
18547 ;;
18548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18550 shlibpath_overrides_runpath=no
18551 hardcode_into_libs=yes
18552 ;;
18553 *) # from 4.6 on, and DragonFly
18554 shlibpath_overrides_runpath=yes
18555 hardcode_into_libs=yes
18556 ;;
18557 esac
18558 ;;
18559
18560 gnu*)
18561 version_type=linux
18562 need_lib_prefix=no
18563 need_version=no
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18565 soname_spec='${libname}${release}${shared_ext}$major'
18566 shlibpath_var=LD_LIBRARY_PATH
18567 hardcode_into_libs=yes
18568 ;;
18569
18570 hpux9* | hpux10* | hpux11*)
18571 # Give a soname corresponding to the major version so that dld.sl refuses to
18572 # link against other versions.
18573 version_type=sunos
18574 need_lib_prefix=no
18575 need_version=no
18576 case $host_cpu in
18577 ia64*)
18578 shrext_cmds='.so'
18579 hardcode_into_libs=yes
18580 dynamic_linker="$host_os dld.so"
18581 shlibpath_var=LD_LIBRARY_PATH
18582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18584 soname_spec='${libname}${release}${shared_ext}$major'
18585 if test "X$HPUX_IA64_MODE" = X32; then
18586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18587 else
18588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18589 fi
18590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18591 ;;
18592 hppa*64*)
18593 shrext_cmds='.sl'
18594 hardcode_into_libs=yes
18595 dynamic_linker="$host_os dld.sl"
18596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18599 soname_spec='${libname}${release}${shared_ext}$major'
18600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18602 ;;
18603 *)
18604 shrext_cmds='.sl'
18605 dynamic_linker="$host_os dld.sl"
18606 shlibpath_var=SHLIB_PATH
18607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 ;;
18611 esac
18612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18613 postinstall_cmds='chmod 555 $lib'
18614 ;;
18615
18616 interix[3-9]*)
18617 version_type=linux
18618 need_lib_prefix=no
18619 need_version=no
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=no
18625 hardcode_into_libs=yes
18626 ;;
18627
18628 irix5* | irix6* | nonstopux*)
18629 case $host_os in
18630 nonstopux*) version_type=nonstopux ;;
18631 *)
18632 if test "$lt_cv_prog_gnu_ld" = yes; then
18633 version_type=linux
18634 else
18635 version_type=irix
18636 fi ;;
18637 esac
18638 need_lib_prefix=no
18639 need_version=no
18640 soname_spec='${libname}${release}${shared_ext}$major'
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18642 case $host_os in
18643 irix5* | nonstopux*)
18644 libsuff= shlibsuff=
18645 ;;
18646 *)
18647 case $LD in # libtool.m4 will add one of these switches to LD
18648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18649 libsuff= shlibsuff= libmagic=32-bit;;
18650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18651 libsuff=32 shlibsuff=N32 libmagic=N32;;
18652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18654 *) libsuff= shlibsuff= libmagic=never-match;;
18655 esac
18656 ;;
18657 esac
18658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18659 shlibpath_overrides_runpath=no
18660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18662 hardcode_into_libs=yes
18663 ;;
18664
18665 # No shared lib support for Linux oldld, aout, or coff.
18666 linux*oldld* | linux*aout* | linux*coff*)
18667 dynamic_linker=no
18668 ;;
18669
18670 # This must be Linux ELF.
18671 linux* | k*bsd*-gnu)
18672 version_type=linux
18673 need_lib_prefix=no
18674 need_version=no
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676 soname_spec='${libname}${release}${shared_ext}$major'
18677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18678 shlibpath_var=LD_LIBRARY_PATH
18679 shlibpath_overrides_runpath=no
18680 # This implies no fast_install, which is unacceptable.
18681 # Some rework will be needed to allow for fast_install
18682 # before this can be enabled.
18683 hardcode_into_libs=yes
18684
18685 # Append ld.so.conf contents to the search path
18686 if test -f /etc/ld.so.conf; then
18687 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18689 fi
18690
18691 # We used to test for /lib/ld.so.1 and disable shared libraries on
18692 # powerpc, because MkLinux only supported shared libraries with the
18693 # GNU dynamic linker. Since this was broken with cross compilers,
18694 # most powerpc-linux boxes support dynamic linking these days and
18695 # people can always --disable-shared, the test was removed, and we
18696 # assume the GNU/Linux dynamic linker is in use.
18697 dynamic_linker='GNU/Linux ld.so'
18698 ;;
18699
18700 netbsd*)
18701 version_type=sunos
18702 need_lib_prefix=no
18703 need_version=no
18704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18707 dynamic_linker='NetBSD (a.out) ld.so'
18708 else
18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18710 soname_spec='${libname}${release}${shared_ext}$major'
18711 dynamic_linker='NetBSD ld.elf_so'
18712 fi
18713 shlibpath_var=LD_LIBRARY_PATH
18714 shlibpath_overrides_runpath=yes
18715 hardcode_into_libs=yes
18716 ;;
18717
18718 newsos6)
18719 version_type=linux
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 shlibpath_var=LD_LIBRARY_PATH
18722 shlibpath_overrides_runpath=yes
18723 ;;
18724
18725 nto-qnx*)
18726 version_type=linux
18727 need_lib_prefix=no
18728 need_version=no
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 shlibpath_overrides_runpath=yes
18733 ;;
18734
18735 openbsd*)
18736 version_type=sunos
18737 sys_lib_dlsearch_path_spec="/usr/lib"
18738 need_lib_prefix=no
18739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18740 case $host_os in
18741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18742 *) need_version=no ;;
18743 esac
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18748 case $host_os in
18749 openbsd2.[89] | openbsd2.[89].*)
18750 shlibpath_overrides_runpath=no
18751 ;;
18752 *)
18753 shlibpath_overrides_runpath=yes
18754 ;;
18755 esac
18756 else
18757 shlibpath_overrides_runpath=yes
18758 fi
18759 ;;
18760
18761 os2*)
18762 libname_spec='$name'
18763 shrext_cmds=".dll"
18764 need_lib_prefix=no
18765 library_names_spec='$libname${shared_ext} $libname.a'
18766 dynamic_linker='OS/2 ld.exe'
18767 shlibpath_var=LIBPATH
18768 ;;
18769
18770 osf3* | osf4* | osf5*)
18771 version_type=osf
18772 need_lib_prefix=no
18773 need_version=no
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18779 ;;
18780
18781 rdos*)
18782 dynamic_linker=no
18783 ;;
18784
18785 solaris*)
18786 version_type=linux
18787 need_lib_prefix=no
18788 need_version=no
18789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790 soname_spec='${libname}${release}${shared_ext}$major'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 shlibpath_overrides_runpath=yes
18793 hardcode_into_libs=yes
18794 # ldd complains unless libraries are executable
18795 postinstall_cmds='chmod +x $lib'
18796 ;;
18797
18798 sunos4*)
18799 version_type=sunos
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18802 shlibpath_var=LD_LIBRARY_PATH
18803 shlibpath_overrides_runpath=yes
18804 if test "$with_gnu_ld" = yes; then
18805 need_lib_prefix=no
18806 fi
18807 need_version=yes
18808 ;;
18809
18810 sysv4 | sysv4.3*)
18811 version_type=linux
18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813 soname_spec='${libname}${release}${shared_ext}$major'
18814 shlibpath_var=LD_LIBRARY_PATH
18815 case $host_vendor in
18816 sni)
18817 shlibpath_overrides_runpath=no
18818 need_lib_prefix=no
18819 export_dynamic_flag_spec='${wl}-Blargedynsym'
18820 runpath_var=LD_RUN_PATH
18821 ;;
18822 siemens)
18823 need_lib_prefix=no
18824 ;;
18825 motorola)
18826 need_lib_prefix=no
18827 need_version=no
18828 shlibpath_overrides_runpath=no
18829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18830 ;;
18831 esac
18832 ;;
18833
18834 sysv4*MP*)
18835 if test -d /usr/nec ;then
18836 version_type=linux
18837 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18838 soname_spec='$libname${shared_ext}.$major'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 fi
18841 ;;
18842
18843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18844 version_type=freebsd-elf
18845 need_lib_prefix=no
18846 need_version=no
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 hardcode_into_libs=yes
18851 if test "$with_gnu_ld" = yes; then
18852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18853 shlibpath_overrides_runpath=no
18854 else
18855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18856 shlibpath_overrides_runpath=yes
18857 case $host_os in
18858 sco3.2v5*)
18859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18860 ;;
18861 esac
18862 fi
18863 sys_lib_dlsearch_path_spec='/usr/lib'
18864 ;;
18865
18866 uts4*)
18867 version_type=linux
18868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869 soname_spec='${libname}${release}${shared_ext}$major'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 ;;
18872
18873 *)
18874 dynamic_linker=no
18875 ;;
18876 esac
18877 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18878 echo "${ECHO_T}$dynamic_linker" >&6; }
18879 test "$dynamic_linker" = no && can_build_shared=no
18880
18881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18885 fi
18886
18887 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18888 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18892 fi
18893
18894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18895
18896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18897 if test "$GCC" = yes; then
18898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18899 fi
18900
18901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18903 hardcode_action_GCJ=
18904 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18905 test -n "$runpath_var_GCJ" || \
18906 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18907
18908 # We can hardcode non-existant directories.
18909 if test "$hardcode_direct_GCJ" != no &&
18910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18911 # have to relink, otherwise we might link with an installed library
18912 # when we should be linking with a yet-to-be-installed one
18913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18914 test "$hardcode_minus_L_GCJ" != no; then
18915 # Linking always hardcodes the temporary library directory.
18916 hardcode_action_GCJ=relink
18917 else
18918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18919 hardcode_action_GCJ=immediate
18920 fi
18921 else
18922 # We cannot hardcode anything, or else we can only hardcode existing
18923 # directories.
18924 hardcode_action_GCJ=unsupported
18925 fi
18926 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18927 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18928
18929 if test "$hardcode_action_GCJ" = relink; then
18930 # Fast installation is not supported
18931 enable_fast_install=no
18932 elif test "$shlibpath_overrides_runpath" = yes ||
18933 test "$enable_shared" = no; then
18934 # Fast installation is not necessary
18935 enable_fast_install=needless
18936 fi
18937
18938
18939 # The else clause should only fire when bootstrapping the
18940 # libtool distribution, otherwise you forgot to ship ltmain.sh
18941 # with your package, and you will get complaints that there are
18942 # no rules to generate ltmain.sh.
18943 if test -f "$ltmain"; then
18944 # See if we are running on zsh, and set the options which allow our commands through
18945 # without removal of \ escapes.
18946 if test -n "${ZSH_VERSION+set}" ; then
18947 setopt NO_GLOB_SUBST
18948 fi
18949 # Now quote all the things that may contain metacharacters while being
18950 # careful not to overquote the AC_SUBSTed values. We take copies of the
18951 # variables and quote the copies for generation of the libtool script.
18952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18953 SED SHELL STRIP \
18954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18956 deplibs_check_method reload_flag reload_cmds need_locks \
18957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18958 lt_cv_sys_global_symbol_to_c_name_address \
18959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18960 old_postinstall_cmds old_postuninstall_cmds \
18961 compiler_GCJ \
18962 CC_GCJ \
18963 LD_GCJ \
18964 lt_prog_compiler_wl_GCJ \
18965 lt_prog_compiler_pic_GCJ \
18966 lt_prog_compiler_static_GCJ \
18967 lt_prog_compiler_no_builtin_flag_GCJ \
18968 export_dynamic_flag_spec_GCJ \
18969 thread_safe_flag_spec_GCJ \
18970 whole_archive_flag_spec_GCJ \
18971 enable_shared_with_static_runtimes_GCJ \
18972 old_archive_cmds_GCJ \
18973 old_archive_from_new_cmds_GCJ \
18974 predep_objects_GCJ \
18975 postdep_objects_GCJ \
18976 predeps_GCJ \
18977 postdeps_GCJ \
18978 compiler_lib_search_path_GCJ \
18979 compiler_lib_search_dirs_GCJ \
18980 archive_cmds_GCJ \
18981 archive_expsym_cmds_GCJ \
18982 postinstall_cmds_GCJ \
18983 postuninstall_cmds_GCJ \
18984 old_archive_from_expsyms_cmds_GCJ \
18985 allow_undefined_flag_GCJ \
18986 no_undefined_flag_GCJ \
18987 export_symbols_cmds_GCJ \
18988 hardcode_libdir_flag_spec_GCJ \
18989 hardcode_libdir_flag_spec_ld_GCJ \
18990 hardcode_libdir_separator_GCJ \
18991 hardcode_automatic_GCJ \
18992 module_cmds_GCJ \
18993 module_expsym_cmds_GCJ \
18994 lt_cv_prog_compiler_c_o_GCJ \
18995 fix_srcfile_path_GCJ \
18996 exclude_expsyms_GCJ \
18997 include_expsyms_GCJ; do
18998
18999 case $var in
19000 old_archive_cmds_GCJ | \
19001 old_archive_from_new_cmds_GCJ | \
19002 archive_cmds_GCJ | \
19003 archive_expsym_cmds_GCJ | \
19004 module_cmds_GCJ | \
19005 module_expsym_cmds_GCJ | \
19006 old_archive_from_expsyms_cmds_GCJ | \
19007 export_symbols_cmds_GCJ | \
19008 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19009 postinstall_cmds | postuninstall_cmds | \
19010 old_postinstall_cmds | old_postuninstall_cmds | \
19011 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19012 # Double-quote double-evaled strings.
19013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19014 ;;
19015 *)
19016 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19017 ;;
19018 esac
19019 done
19020
19021 case $lt_echo in
19022 *'\$0 --fallback-echo"')
19023 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19024 ;;
19025 esac
19026
19027 cfgfile="$ofile"
19028
19029 cat <<__EOF__ >> "$cfgfile"
19030 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19031
19032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033
19034 # Shell to use when invoking shell scripts.
19035 SHELL=$lt_SHELL
19036
19037 # Whether or not to build shared libraries.
19038 build_libtool_libs=$enable_shared
19039
19040 # Whether or not to build static libraries.
19041 build_old_libs=$enable_static
19042
19043 # Whether or not to add -lc for building shared libraries.
19044 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19045
19046 # Whether or not to disallow shared libs when runtime libs are static
19047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19048
19049 # Whether or not to optimize for fast installation.
19050 fast_install=$enable_fast_install
19051
19052 # The host system.
19053 host_alias=$host_alias
19054 host=$host
19055 host_os=$host_os
19056
19057 # The build system.
19058 build_alias=$build_alias
19059 build=$build
19060 build_os=$build_os
19061
19062 # An echo program that does not interpret backslashes.
19063 echo=$lt_echo
19064
19065 # The archiver.
19066 AR=$lt_AR
19067 AR_FLAGS=$lt_AR_FLAGS
19068
19069 # A C compiler.
19070 LTCC=$lt_LTCC
19071
19072 # LTCC compiler flags.
19073 LTCFLAGS=$lt_LTCFLAGS
19074
19075 # A language-specific compiler.
19076 CC=$lt_compiler_GCJ
19077
19078 # Is the compiler the GNU C compiler?
19079 with_gcc=$GCC_GCJ
19080
19081 # An ERE matcher.
19082 EGREP=$lt_EGREP
19083
19084 # The linker used to build libraries.
19085 LD=$lt_LD_GCJ
19086
19087 # Whether we need hard or soft links.
19088 LN_S=$lt_LN_S
19089
19090 # A BSD-compatible nm program.
19091 NM=$lt_NM
19092
19093 # A symbol stripping program
19094 STRIP=$lt_STRIP
19095
19096 # Used to examine libraries when file_magic_cmd begins "file"
19097 MAGIC_CMD=$MAGIC_CMD
19098
19099 # Used on cygwin: DLL creation program.
19100 DLLTOOL="$DLLTOOL"
19101
19102 # Used on cygwin: object dumper.
19103 OBJDUMP="$OBJDUMP"
19104
19105 # Used on cygwin: assembler.
19106 AS="$AS"
19107
19108 # The name of the directory that contains temporary libtool files.
19109 objdir=$objdir
19110
19111 # How to create reloadable object files.
19112 reload_flag=$lt_reload_flag
19113 reload_cmds=$lt_reload_cmds
19114
19115 # How to pass a linker flag through the compiler.
19116 wl=$lt_lt_prog_compiler_wl_GCJ
19117
19118 # Object file suffix (normally "o").
19119 objext="$ac_objext"
19120
19121 # Old archive suffix (normally "a").
19122 libext="$libext"
19123
19124 # Shared library suffix (normally ".so").
19125 shrext_cmds='$shrext_cmds'
19126
19127 # Executable file suffix (normally "").
19128 exeext="$exeext"
19129
19130 # Additional compiler flags for building library objects.
19131 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19132 pic_mode=$pic_mode
19133
19134 # What is the maximum length of a command?
19135 max_cmd_len=$lt_cv_sys_max_cmd_len
19136
19137 # Does compiler simultaneously support -c and -o options?
19138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19139
19140 # Must we lock files when doing compilation?
19141 need_locks=$lt_need_locks
19142
19143 # Do we need the lib prefix for modules?
19144 need_lib_prefix=$need_lib_prefix
19145
19146 # Do we need a version for libraries?
19147 need_version=$need_version
19148
19149 # Whether dlopen is supported.
19150 dlopen_support=$enable_dlopen
19151
19152 # Whether dlopen of programs is supported.
19153 dlopen_self=$enable_dlopen_self
19154
19155 # Whether dlopen of statically linked programs is supported.
19156 dlopen_self_static=$enable_dlopen_self_static
19157
19158 # Compiler flag to prevent dynamic linking.
19159 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19160
19161 # Compiler flag to turn off builtin functions.
19162 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19163
19164 # Compiler flag to allow reflexive dlopens.
19165 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19166
19167 # Compiler flag to generate shared objects directly from archives.
19168 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19169
19170 # Compiler flag to generate thread-safe objects.
19171 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19172
19173 # Library versioning type.
19174 version_type=$version_type
19175
19176 # Format of library name prefix.
19177 libname_spec=$lt_libname_spec
19178
19179 # List of archive names. First name is the real one, the rest are links.
19180 # The last name is the one that the linker finds with -lNAME.
19181 library_names_spec=$lt_library_names_spec
19182
19183 # The coded name of the library, if different from the real name.
19184 soname_spec=$lt_soname_spec
19185
19186 # Commands used to build and install an old-style archive.
19187 RANLIB=$lt_RANLIB
19188 old_archive_cmds=$lt_old_archive_cmds_GCJ
19189 old_postinstall_cmds=$lt_old_postinstall_cmds
19190 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191
19192 # Create an old-style archive from a shared archive.
19193 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19194
19195 # Create a temporary old-style archive to link instead of a shared archive.
19196 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19197
19198 # Commands used to build and install a shared archive.
19199 archive_cmds=$lt_archive_cmds_GCJ
19200 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19201 postinstall_cmds=$lt_postinstall_cmds
19202 postuninstall_cmds=$lt_postuninstall_cmds
19203
19204 # Commands used to build a loadable module (assumed same as above if empty)
19205 module_cmds=$lt_module_cmds_GCJ
19206 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19207
19208 # Commands to strip libraries.
19209 old_striplib=$lt_old_striplib
19210 striplib=$lt_striplib
19211
19212 # Dependencies to place before the objects being linked to create a
19213 # shared library.
19214 predep_objects=$lt_predep_objects_GCJ
19215
19216 # Dependencies to place after the objects being linked to create a
19217 # shared library.
19218 postdep_objects=$lt_postdep_objects_GCJ
19219
19220 # Dependencies to place before the objects being linked to create a
19221 # shared library.
19222 predeps=$lt_predeps_GCJ
19223
19224 # Dependencies to place after the objects being linked to create a
19225 # shared library.
19226 postdeps=$lt_postdeps_GCJ
19227
19228 # The directories searched by this compiler when creating a shared
19229 # library
19230 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19231
19232 # The library search path used internally by the compiler when linking
19233 # a shared library.
19234 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19235
19236 # Method to check whether dependent libraries are shared objects.
19237 deplibs_check_method=$lt_deplibs_check_method
19238
19239 # Command to use when deplibs_check_method == file_magic.
19240 file_magic_cmd=$lt_file_magic_cmd
19241
19242 # Flag that allows shared libraries with undefined symbols to be built.
19243 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19244
19245 # Flag that forces no undefined symbols.
19246 no_undefined_flag=$lt_no_undefined_flag_GCJ
19247
19248 # Commands used to finish a libtool library installation in a directory.
19249 finish_cmds=$lt_finish_cmds
19250
19251 # Same as above, but a single script fragment to be evaled but not shown.
19252 finish_eval=$lt_finish_eval
19253
19254 # Take the output of nm and produce a listing of raw symbols and C names.
19255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19256
19257 # Transform the output of nm in a proper C declaration
19258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19259
19260 # Transform the output of nm in a C name address pair
19261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19262
19263 # This is the shared library runtime path variable.
19264 runpath_var=$runpath_var
19265
19266 # This is the shared library path variable.
19267 shlibpath_var=$shlibpath_var
19268
19269 # Is shlibpath searched before the hard-coded library search path?
19270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19271
19272 # How to hardcode a shared library path into an executable.
19273 hardcode_action=$hardcode_action_GCJ
19274
19275 # Whether we should hardcode library paths into libraries.
19276 hardcode_into_libs=$hardcode_into_libs
19277
19278 # Flag to hardcode \$libdir into a binary during linking.
19279 # This must work even if \$libdir does not exist.
19280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19281
19282 # If ld is used when linking, flag to hardcode \$libdir into
19283 # a binary during linking. This must work even if \$libdir does
19284 # not exist.
19285 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19286
19287 # Whether we need a single -rpath flag with a separated argument.
19288 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19289
19290 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19291 # resulting binary.
19292 hardcode_direct=$hardcode_direct_GCJ
19293
19294 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19295 # resulting binary.
19296 hardcode_minus_L=$hardcode_minus_L_GCJ
19297
19298 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19299 # the resulting binary.
19300 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19301
19302 # Set to yes if building a shared library automatically hardcodes DIR into the library
19303 # and all subsequent libraries and executables linked against it.
19304 hardcode_automatic=$hardcode_automatic_GCJ
19305
19306 # Variables whose values should be saved in libtool wrapper scripts and
19307 # restored at relink time.
19308 variables_saved_for_relink="$variables_saved_for_relink"
19309
19310 # Whether libtool must link a program against all its dependency libraries.
19311 link_all_deplibs=$link_all_deplibs_GCJ
19312
19313 # Compile-time system search path for libraries
19314 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19315
19316 # Run-time system search path for libraries
19317 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19318
19319 # Fix the shell variable \$srcfile for the compiler.
19320 fix_srcfile_path=$lt_fix_srcfile_path
19321
19322 # Set to yes if exported symbols are required.
19323 always_export_symbols=$always_export_symbols_GCJ
19324
19325 # The commands to list exported symbols.
19326 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19327
19328 # The commands to extract the exported symbol list from a shared archive.
19329 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19330
19331 # Symbols that should not be listed in the preloaded symbols.
19332 exclude_expsyms=$lt_exclude_expsyms_GCJ
19333
19334 # Symbols that must always be exported.
19335 include_expsyms=$lt_include_expsyms_GCJ
19336
19337 # ### END LIBTOOL TAG CONFIG: $tagname
19338
19339 __EOF__
19340
19341
19342 else
19343 # If there is no Makefile yet, we rely on a make rule to execute
19344 # `config.status --recheck' to rerun these tests and create the
19345 # libtool script then.
19346 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19347 if test -f "$ltmain_in"; then
19348 test -f Makefile && make "$ltmain"
19349 fi
19350 fi
19351
19352
19353 ac_ext=c
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358
19359 CC="$lt_save_CC"
19360
19361 else
19362 tagname=""
19363 fi
19364 ;;
19365
19366 RC)
19367
19368
19369 # Source file extension for RC test sources.
19370 ac_ext=rc
19371
19372 # Object file extension for compiled RC test sources.
19373 objext=o
19374 objext_RC=$objext
19375
19376 # Code to be used in simple compile tests
19377 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19378
19379 # Code to be used in simple link tests
19380 lt_simple_link_test_code="$lt_simple_compile_test_code"
19381
19382 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19383
19384 # If no C compiler was specified, use CC.
19385 LTCC=${LTCC-"$CC"}
19386
19387 # If no C compiler flags were specified, use CFLAGS.
19388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19389
19390 # Allow CC to be a program name with arguments.
19391 compiler=$CC
19392
19393
19394 # save warnings/boilerplate of simple test code
19395 ac_outfile=conftest.$ac_objext
19396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19398 _lt_compiler_boilerplate=`cat conftest.err`
19399 $rm conftest*
19400
19401 ac_outfile=conftest.$ac_objext
19402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19404 _lt_linker_boilerplate=`cat conftest.err`
19405 $rm -r conftest*
19406
19407
19408 # Allow CC to be a program name with arguments.
19409 lt_save_CC="$CC"
19410 CC=${RC-"windres"}
19411 compiler=$CC
19412 compiler_RC=$CC
19413 for cc_temp in $compiler""; do
19414 case $cc_temp in
19415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19417 \-*) ;;
19418 *) break;;
19419 esac
19420 done
19421 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19422
19423 lt_cv_prog_compiler_c_o_RC=yes
19424
19425 # The else clause should only fire when bootstrapping the
19426 # libtool distribution, otherwise you forgot to ship ltmain.sh
19427 # with your package, and you will get complaints that there are
19428 # no rules to generate ltmain.sh.
19429 if test -f "$ltmain"; then
19430 # See if we are running on zsh, and set the options which allow our commands through
19431 # without removal of \ escapes.
19432 if test -n "${ZSH_VERSION+set}" ; then
19433 setopt NO_GLOB_SUBST
19434 fi
19435 # Now quote all the things that may contain metacharacters while being
19436 # careful not to overquote the AC_SUBSTed values. We take copies of the
19437 # variables and quote the copies for generation of the libtool script.
19438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19439 SED SHELL STRIP \
19440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19442 deplibs_check_method reload_flag reload_cmds need_locks \
19443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19444 lt_cv_sys_global_symbol_to_c_name_address \
19445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19446 old_postinstall_cmds old_postuninstall_cmds \
19447 compiler_RC \
19448 CC_RC \
19449 LD_RC \
19450 lt_prog_compiler_wl_RC \
19451 lt_prog_compiler_pic_RC \
19452 lt_prog_compiler_static_RC \
19453 lt_prog_compiler_no_builtin_flag_RC \
19454 export_dynamic_flag_spec_RC \
19455 thread_safe_flag_spec_RC \
19456 whole_archive_flag_spec_RC \
19457 enable_shared_with_static_runtimes_RC \
19458 old_archive_cmds_RC \
19459 old_archive_from_new_cmds_RC \
19460 predep_objects_RC \
19461 postdep_objects_RC \
19462 predeps_RC \
19463 postdeps_RC \
19464 compiler_lib_search_path_RC \
19465 compiler_lib_search_dirs_RC \
19466 archive_cmds_RC \
19467 archive_expsym_cmds_RC \
19468 postinstall_cmds_RC \
19469 postuninstall_cmds_RC \
19470 old_archive_from_expsyms_cmds_RC \
19471 allow_undefined_flag_RC \
19472 no_undefined_flag_RC \
19473 export_symbols_cmds_RC \
19474 hardcode_libdir_flag_spec_RC \
19475 hardcode_libdir_flag_spec_ld_RC \
19476 hardcode_libdir_separator_RC \
19477 hardcode_automatic_RC \
19478 module_cmds_RC \
19479 module_expsym_cmds_RC \
19480 lt_cv_prog_compiler_c_o_RC \
19481 fix_srcfile_path_RC \
19482 exclude_expsyms_RC \
19483 include_expsyms_RC; do
19484
19485 case $var in
19486 old_archive_cmds_RC | \
19487 old_archive_from_new_cmds_RC | \
19488 archive_cmds_RC | \
19489 archive_expsym_cmds_RC | \
19490 module_cmds_RC | \
19491 module_expsym_cmds_RC | \
19492 old_archive_from_expsyms_cmds_RC | \
19493 export_symbols_cmds_RC | \
19494 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19495 postinstall_cmds | postuninstall_cmds | \
19496 old_postinstall_cmds | old_postuninstall_cmds | \
19497 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19498 # Double-quote double-evaled strings.
19499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19500 ;;
19501 *)
19502 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19503 ;;
19504 esac
19505 done
19506
19507 case $lt_echo in
19508 *'\$0 --fallback-echo"')
19509 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19510 ;;
19511 esac
19512
19513 cfgfile="$ofile"
19514
19515 cat <<__EOF__ >> "$cfgfile"
19516 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19517
19518 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19519
19520 # Shell to use when invoking shell scripts.
19521 SHELL=$lt_SHELL
19522
19523 # Whether or not to build shared libraries.
19524 build_libtool_libs=$enable_shared
19525
19526 # Whether or not to build static libraries.
19527 build_old_libs=$enable_static
19528
19529 # Whether or not to add -lc for building shared libraries.
19530 build_libtool_need_lc=$archive_cmds_need_lc_RC
19531
19532 # Whether or not to disallow shared libs when runtime libs are static
19533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19534
19535 # Whether or not to optimize for fast installation.
19536 fast_install=$enable_fast_install
19537
19538 # The host system.
19539 host_alias=$host_alias
19540 host=$host
19541 host_os=$host_os
19542
19543 # The build system.
19544 build_alias=$build_alias
19545 build=$build
19546 build_os=$build_os
19547
19548 # An echo program that does not interpret backslashes.
19549 echo=$lt_echo
19550
19551 # The archiver.
19552 AR=$lt_AR
19553 AR_FLAGS=$lt_AR_FLAGS
19554
19555 # A C compiler.
19556 LTCC=$lt_LTCC
19557
19558 # LTCC compiler flags.
19559 LTCFLAGS=$lt_LTCFLAGS
19560
19561 # A language-specific compiler.
19562 CC=$lt_compiler_RC
19563
19564 # Is the compiler the GNU C compiler?
19565 with_gcc=$GCC_RC
19566
19567 # An ERE matcher.
19568 EGREP=$lt_EGREP
19569
19570 # The linker used to build libraries.
19571 LD=$lt_LD_RC
19572
19573 # Whether we need hard or soft links.
19574 LN_S=$lt_LN_S
19575
19576 # A BSD-compatible nm program.
19577 NM=$lt_NM
19578
19579 # A symbol stripping program
19580 STRIP=$lt_STRIP
19581
19582 # Used to examine libraries when file_magic_cmd begins "file"
19583 MAGIC_CMD=$MAGIC_CMD
19584
19585 # Used on cygwin: DLL creation program.
19586 DLLTOOL="$DLLTOOL"
19587
19588 # Used on cygwin: object dumper.
19589 OBJDUMP="$OBJDUMP"
19590
19591 # Used on cygwin: assembler.
19592 AS="$AS"
19593
19594 # The name of the directory that contains temporary libtool files.
19595 objdir=$objdir
19596
19597 # How to create reloadable object files.
19598 reload_flag=$lt_reload_flag
19599 reload_cmds=$lt_reload_cmds
19600
19601 # How to pass a linker flag through the compiler.
19602 wl=$lt_lt_prog_compiler_wl_RC
19603
19604 # Object file suffix (normally "o").
19605 objext="$ac_objext"
19606
19607 # Old archive suffix (normally "a").
19608 libext="$libext"
19609
19610 # Shared library suffix (normally ".so").
19611 shrext_cmds='$shrext_cmds'
19612
19613 # Executable file suffix (normally "").
19614 exeext="$exeext"
19615
19616 # Additional compiler flags for building library objects.
19617 pic_flag=$lt_lt_prog_compiler_pic_RC
19618 pic_mode=$pic_mode
19619
19620 # What is the maximum length of a command?
19621 max_cmd_len=$lt_cv_sys_max_cmd_len
19622
19623 # Does compiler simultaneously support -c and -o options?
19624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19625
19626 # Must we lock files when doing compilation?
19627 need_locks=$lt_need_locks
19628
19629 # Do we need the lib prefix for modules?
19630 need_lib_prefix=$need_lib_prefix
19631
19632 # Do we need a version for libraries?
19633 need_version=$need_version
19634
19635 # Whether dlopen is supported.
19636 dlopen_support=$enable_dlopen
19637
19638 # Whether dlopen of programs is supported.
19639 dlopen_self=$enable_dlopen_self
19640
19641 # Whether dlopen of statically linked programs is supported.
19642 dlopen_self_static=$enable_dlopen_self_static
19643
19644 # Compiler flag to prevent dynamic linking.
19645 link_static_flag=$lt_lt_prog_compiler_static_RC
19646
19647 # Compiler flag to turn off builtin functions.
19648 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19649
19650 # Compiler flag to allow reflexive dlopens.
19651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19652
19653 # Compiler flag to generate shared objects directly from archives.
19654 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19655
19656 # Compiler flag to generate thread-safe objects.
19657 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19658
19659 # Library versioning type.
19660 version_type=$version_type
19661
19662 # Format of library name prefix.
19663 libname_spec=$lt_libname_spec
19664
19665 # List of archive names. First name is the real one, the rest are links.
19666 # The last name is the one that the linker finds with -lNAME.
19667 library_names_spec=$lt_library_names_spec
19668
19669 # The coded name of the library, if different from the real name.
19670 soname_spec=$lt_soname_spec
19671
19672 # Commands used to build and install an old-style archive.
19673 RANLIB=$lt_RANLIB
19674 old_archive_cmds=$lt_old_archive_cmds_RC
19675 old_postinstall_cmds=$lt_old_postinstall_cmds
19676 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19677
19678 # Create an old-style archive from a shared archive.
19679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19680
19681 # Create a temporary old-style archive to link instead of a shared archive.
19682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19683
19684 # Commands used to build and install a shared archive.
19685 archive_cmds=$lt_archive_cmds_RC
19686 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19687 postinstall_cmds=$lt_postinstall_cmds
19688 postuninstall_cmds=$lt_postuninstall_cmds
19689
19690 # Commands used to build a loadable module (assumed same as above if empty)
19691 module_cmds=$lt_module_cmds_RC
19692 module_expsym_cmds=$lt_module_expsym_cmds_RC
19693
19694 # Commands to strip libraries.
19695 old_striplib=$lt_old_striplib
19696 striplib=$lt_striplib
19697
19698 # Dependencies to place before the objects being linked to create a
19699 # shared library.
19700 predep_objects=$lt_predep_objects_RC
19701
19702 # Dependencies to place after the objects being linked to create a
19703 # shared library.
19704 postdep_objects=$lt_postdep_objects_RC
19705
19706 # Dependencies to place before the objects being linked to create a
19707 # shared library.
19708 predeps=$lt_predeps_RC
19709
19710 # Dependencies to place after the objects being linked to create a
19711 # shared library.
19712 postdeps=$lt_postdeps_RC
19713
19714 # The directories searched by this compiler when creating a shared
19715 # library
19716 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19717
19718 # The library search path used internally by the compiler when linking
19719 # a shared library.
19720 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19721
19722 # Method to check whether dependent libraries are shared objects.
19723 deplibs_check_method=$lt_deplibs_check_method
19724
19725 # Command to use when deplibs_check_method == file_magic.
19726 file_magic_cmd=$lt_file_magic_cmd
19727
19728 # Flag that allows shared libraries with undefined symbols to be built.
19729 allow_undefined_flag=$lt_allow_undefined_flag_RC
19730
19731 # Flag that forces no undefined symbols.
19732 no_undefined_flag=$lt_no_undefined_flag_RC
19733
19734 # Commands used to finish a libtool library installation in a directory.
19735 finish_cmds=$lt_finish_cmds
19736
19737 # Same as above, but a single script fragment to be evaled but not shown.
19738 finish_eval=$lt_finish_eval
19739
19740 # Take the output of nm and produce a listing of raw symbols and C names.
19741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19742
19743 # Transform the output of nm in a proper C declaration
19744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19745
19746 # Transform the output of nm in a C name address pair
19747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19748
19749 # This is the shared library runtime path variable.
19750 runpath_var=$runpath_var
19751
19752 # This is the shared library path variable.
19753 shlibpath_var=$shlibpath_var
19754
19755 # Is shlibpath searched before the hard-coded library search path?
19756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19757
19758 # How to hardcode a shared library path into an executable.
19759 hardcode_action=$hardcode_action_RC
19760
19761 # Whether we should hardcode library paths into libraries.
19762 hardcode_into_libs=$hardcode_into_libs
19763
19764 # Flag to hardcode \$libdir into a binary during linking.
19765 # This must work even if \$libdir does not exist.
19766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19767
19768 # If ld is used when linking, flag to hardcode \$libdir into
19769 # a binary during linking. This must work even if \$libdir does
19770 # not exist.
19771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19772
19773 # Whether we need a single -rpath flag with a separated argument.
19774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19775
19776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19777 # resulting binary.
19778 hardcode_direct=$hardcode_direct_RC
19779
19780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19781 # resulting binary.
19782 hardcode_minus_L=$hardcode_minus_L_RC
19783
19784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19785 # the resulting binary.
19786 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19787
19788 # Set to yes if building a shared library automatically hardcodes DIR into the library
19789 # and all subsequent libraries and executables linked against it.
19790 hardcode_automatic=$hardcode_automatic_RC
19791
19792 # Variables whose values should be saved in libtool wrapper scripts and
19793 # restored at relink time.
19794 variables_saved_for_relink="$variables_saved_for_relink"
19795
19796 # Whether libtool must link a program against all its dependency libraries.
19797 link_all_deplibs=$link_all_deplibs_RC
19798
19799 # Compile-time system search path for libraries
19800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19801
19802 # Run-time system search path for libraries
19803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19804
19805 # Fix the shell variable \$srcfile for the compiler.
19806 fix_srcfile_path=$lt_fix_srcfile_path
19807
19808 # Set to yes if exported symbols are required.
19809 always_export_symbols=$always_export_symbols_RC
19810
19811 # The commands to list exported symbols.
19812 export_symbols_cmds=$lt_export_symbols_cmds_RC
19813
19814 # The commands to extract the exported symbol list from a shared archive.
19815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19816
19817 # Symbols that should not be listed in the preloaded symbols.
19818 exclude_expsyms=$lt_exclude_expsyms_RC
19819
19820 # Symbols that must always be exported.
19821 include_expsyms=$lt_include_expsyms_RC
19822
19823 # ### END LIBTOOL TAG CONFIG: $tagname
19824
19825 __EOF__
19826
19827
19828 else
19829 # If there is no Makefile yet, we rely on a make rule to execute
19830 # `config.status --recheck' to rerun these tests and create the
19831 # libtool script then.
19832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19833 if test -f "$ltmain_in"; then
19834 test -f Makefile && make "$ltmain"
19835 fi
19836 fi
19837
19838
19839 ac_ext=c
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844
19845 CC="$lt_save_CC"
19846
19847 ;;
19848
19849 *)
19850 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19851 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19852 { (exit 1); exit 1; }; }
19853 ;;
19854 esac
19855
19856 # Append the new tag name to the list of available tags.
19857 if test -n "$tagname" ; then
19858 available_tags="$available_tags $tagname"
19859 fi
19860 fi
19861 done
19862 IFS="$lt_save_ifs"
19863
19864 # Now substitute the updated list of available tags.
19865 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19866 mv "${ofile}T" "$ofile"
19867 chmod +x "$ofile"
19868 else
19869 rm -f "${ofile}T"
19870 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19871 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19872 { (exit 1); exit 1; }; }
19873 fi
19874 fi
19875
19876
19877
19878 # This can be used to rebuild libtool when needed
19879 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19880
19881 # Always use our own libtool.
19882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19883
19884 # Prevent multiple expansion
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906 # Checks for header files.
19907 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19908 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19909 if test "${ac_cv_header_stdc+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 #include <stdlib.h>
19919 #include <stdarg.h>
19920 #include <string.h>
19921 #include <float.h>
19922
19923 int
19924 main ()
19925 {
19926
19927 ;
19928 return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19948 ac_cv_header_stdc=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 ac_cv_header_stdc=no
19954 fi
19955
19956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957
19958 if test $ac_cv_header_stdc = yes; then
19959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #include <string.h>
19967
19968 _ACEOF
19969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19970 $EGREP "memchr" >/dev/null 2>&1; then
19971 :
19972 else
19973 ac_cv_header_stdc=no
19974 fi
19975 rm -f conftest*
19976
19977 fi
19978
19979 if test $ac_cv_header_stdc = yes; then
19980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 #include <stdlib.h>
19988
19989 _ACEOF
19990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19991 $EGREP "free" >/dev/null 2>&1; then
19992 :
19993 else
19994 ac_cv_header_stdc=no
19995 fi
19996 rm -f conftest*
19997
19998 fi
19999
20000 if test $ac_cv_header_stdc = yes; then
20001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20002 if test "$cross_compiling" = yes; then
20003 :
20004 else
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h. */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #include <ctype.h>
20012 #include <stdlib.h>
20013 #if ((' ' & 0x0FF) == 0x020)
20014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20016 #else
20017 # define ISLOWER(c) \
20018 (('a' <= (c) && (c) <= 'i') \
20019 || ('j' <= (c) && (c) <= 'r') \
20020 || ('s' <= (c) && (c) <= 'z'))
20021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20022 #endif
20023
20024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20025 int
20026 main ()
20027 {
20028 int i;
20029 for (i = 0; i < 256; i++)
20030 if (XOR (islower (i), ISLOWER (i))
20031 || toupper (i) != TOUPPER (i))
20032 return 2;
20033 return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest$ac_exeext
20037 if { (ac_try="$ac_link"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_link") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 :
20057 else
20058 echo "$as_me: program exited with status $ac_status" >&5
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ( exit $ac_status )
20063 ac_cv_header_stdc=no
20064 fi
20065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20066 fi
20067
20068
20069 fi
20070 fi
20071 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20072 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20073 if test $ac_cv_header_stdc = yes; then
20074
20075 cat >>confdefs.h <<\_ACEOF
20076 #define STDC_HEADERS 1
20077 _ACEOF
20078
20079 fi
20080
20081
20082
20083
20084
20085
20086
20087 for ac_header in fcntl.h stdlib.h string.h sys/time.h termios.h unistd.h
20088 do
20089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 fi
20096 ac_res=`eval echo '${'$as_ac_Header'}'`
20097 { echo "$as_me:$LINENO: result: $ac_res" >&5
20098 echo "${ECHO_T}$ac_res" >&6; }
20099 else
20100 # Is the header compilable?
20101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20110 #include <$ac_header>
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (ac_try="$ac_compile"
20114 case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20117 esac
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119 (eval "$ac_compile") 2>conftest.er1
20120 ac_status=$?
20121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && {
20126 test -z "$ac_c_werror_flag" ||
20127 test ! -s conftest.err
20128 } && test -s conftest.$ac_objext; then
20129 ac_header_compiler=yes
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_header_compiler=no
20135 fi
20136
20137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20139 echo "${ECHO_T}$ac_header_compiler" >&6; }
20140
20141 # Is the header present?
20142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 #include <$ac_header>
20151 _ACEOF
20152 if { (ac_try="$ac_cpp conftest.$ac_ext"
20153 case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } >/dev/null && {
20165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 }; then
20168 ac_header_preproc=yes
20169 else
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 ac_header_preproc=no
20174 fi
20175
20176 rm -f conftest.err conftest.$ac_ext
20177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20178 echo "${ECHO_T}$ac_header_preproc" >&6; }
20179
20180 # So? What about this header?
20181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20182 yes:no: )
20183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20187 ac_header_preproc=yes
20188 ;;
20189 no:yes:* )
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20202 ( cat <<\_ASBOX
20203 ## ----------------------------- ##
20204 ## Report this to [email protected] ##
20205 ## ----------------------------- ##
20206 _ASBOX
20207 ) | sed "s/^/$as_me: WARNING: /" >&2
20208 ;;
20209 esac
20210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215 eval "$as_ac_Header=\$ac_header_preproc"
20216 fi
20217 ac_res=`eval echo '${'$as_ac_Header'}'`
20218 { echo "$as_me:$LINENO: result: $ac_res" >&5
20219 echo "${ECHO_T}$ac_res" >&6; }
20220
20221 fi
20222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20225 _ACEOF
20226
20227 fi
20228
20229 done
20230
20231
20232 # Checks for typedefs, structures, and compiler characteristics.
20233 { echo "$as_me:$LINENO: checking for size_t" >&5
20234 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20235 if test "${ac_cv_type_size_t+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $ac_includes_default
20245 typedef size_t ac__type_new_;
20246 int
20247 main ()
20248 {
20249 if ((ac__type_new_ *) 0)
20250 return 0;
20251 if (sizeof (ac__type_new_))
20252 return 0;
20253 ;
20254 return 0;
20255 }
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (ac_try="$ac_compile"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_compile") 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && {
20271 test -z "$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20273 } && test -s conftest.$ac_objext; then
20274 ac_cv_type_size_t=yes
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279 ac_cv_type_size_t=no
20280 fi
20281
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 fi
20284 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20285 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20286 if test $ac_cv_type_size_t = yes; then
20287 :
20288 else
20289
20290 cat >>confdefs.h <<_ACEOF
20291 #define size_t unsigned int
20292 _ACEOF
20293
20294 fi
20295
20296 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20297 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20298 if test "${ac_cv_struct_tm+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 #include <sys/types.h>
20308 #include <time.h>
20309
20310 int
20311 main ()
20312 {
20313 struct tm tm;
20314 int *p = &tm.tm_sec;
20315 return !p;
20316 ;
20317 return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
20337 ac_cv_struct_tm=time.h
20338 else
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 ac_cv_struct_tm=sys/time.h
20343 fi
20344
20345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20346 fi
20347 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20348 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20349 if test $ac_cv_struct_tm = sys/time.h; then
20350
20351 cat >>confdefs.h <<\_ACEOF
20352 #define TM_IN_SYS_TIME 1
20353 _ACEOF
20354
20355 fi
20356
20357
20358 # Checks for library functions.
20359 { echo "$as_me:$LINENO: checking for function prototypes" >&5
20360 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
20361 if test "$ac_cv_prog_cc_c89" != no; then
20362 { echo "$as_me:$LINENO: result: yes" >&5
20363 echo "${ECHO_T}yes" >&6; }
20364
20365 cat >>confdefs.h <<\_ACEOF
20366 #define PROTOTYPES 1
20367 _ACEOF
20368
20369
20370 cat >>confdefs.h <<\_ACEOF
20371 #define __PROTOTYPES 1
20372 _ACEOF
20373
20374 else
20375 { echo "$as_me:$LINENO: result: no" >&5
20376 echo "${ECHO_T}no" >&6; }
20377 fi
20378
20379 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
20380 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
20381 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384 ac_cv_func_setvbuf_reversed=no
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h. */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 #include <stdio.h>
20392 # ifdef PROTOTYPES
20393 int (setvbuf) (FILE *, int, char *, size_t);
20394 # endif
20395 int
20396 main ()
20397 {
20398 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
20399 ;
20400 return 0;
20401 }
20402 _ACEOF
20403 rm -f conftest.$ac_objext conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>conftest.er1
20411 ac_status=$?
20412 grep -v '^ *+' conftest.er1 >conftest.err
20413 rm -f conftest.er1
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } && {
20417 test -z "$ac_c_werror_flag" ||
20418 test ! -s conftest.err
20419 } && test -s conftest$ac_exeext &&
20420 $as_test_x conftest$ac_exeext; then
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 #include <stdio.h>
20428 # ifdef PROTOTYPES
20429 int (setvbuf) (FILE *, int, char *, size_t);
20430 # endif
20431 int
20432 main ()
20433 {
20434 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
20435 ;
20436 return 0;
20437 }
20438 _ACEOF
20439 rm -f conftest.$ac_objext conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext &&
20456 $as_test_x conftest$ac_exeext; then
20457 # It compiles and links either way, so it must not be declared
20458 # with a prototype and most likely this is a K&R C compiler.
20459 # Try running it.
20460 if test "$cross_compiling" = yes; then
20461 : # Assume setvbuf is not reversed when cross-compiling.
20462 else
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20470 int
20471 main ()
20472 {
20473 /* This call has the arguments reversed.
20474 A reversed system may check and see that the address of buf
20475 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
20476 char buf;
20477 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
20478 return 1;
20479 putchar ('\r');
20480 return 0; /* Non-reversed systems SEGV here. */
20481 ;
20482 return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest$ac_exeext
20486 if { (ac_try="$ac_link"
20487 case "(($ac_try" in
20488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489 *) ac_try_echo=$ac_try;;
20490 esac
20491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492 (eval "$ac_link") 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20496 { (case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_try") 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ac_cv_func_setvbuf_reversed=yes
20506 else
20507 echo "$as_me: program exited with status $ac_status" >&5
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 fi
20512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20513 fi
20514
20515
20516 ac_cv_func_setvbuf_reversed=yes
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20525 conftest$ac_exeext conftest.$ac_ext
20526 else
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530
20531 fi
20532
20533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534 conftest$ac_exeext conftest.$ac_ext
20535 fi
20536 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
20537 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
20538 if test $ac_cv_func_setvbuf_reversed = yes; then
20539
20540 cat >>confdefs.h <<\_ACEOF
20541 #define SETVBUF_REVERSED 1
20542 _ACEOF
20543
20544 fi
20545
20546
20547 for ac_func in strftime
20548 do
20549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20563 #define $ac_func innocuous_$ac_func
20564
20565 /* System header to define __stub macros and hopefully few prototypes,
20566 which can conflict with char $ac_func (); below.
20567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20568 <limits.h> exists even on freestanding compilers. */
20569
20570 #ifdef __STDC__
20571 # include <limits.h>
20572 #else
20573 # include <assert.h>
20574 #endif
20575
20576 #undef $ac_func
20577
20578 /* Override any GCC internal prototype to avoid an error.
20579 Use char because int might match the return type of a GCC
20580 builtin and then its argument prototype would still apply. */
20581 #ifdef __cplusplus
20582 extern "C"
20583 #endif
20584 char $ac_func ();
20585 /* The GNU C library defines this for functions which it implements
20586 to always fail with ENOSYS. Some functions are actually named
20587 something starting with __ and the normal name is an alias. */
20588 #if defined __stub_$ac_func || defined __stub___$ac_func
20589 choke me
20590 #endif
20591
20592 int
20593 main ()
20594 {
20595 return $ac_func ();
20596 ;
20597 return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 eval "$as_ac_var=yes"
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 eval "$as_ac_var=no"
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 fi
20629 ac_res=`eval echo '${'$as_ac_var'}'`
20630 { echo "$as_me:$LINENO: result: $ac_res" >&5
20631 echo "${ECHO_T}$ac_res" >&6; }
20632 if test `eval echo '${'$as_ac_var'}'` = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20635 _ACEOF
20636
20637 else
20638 # strftime is in -lintl on SCO UNIX.
20639 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20640 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20641 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644 ac_check_lib_save_LIBS=$LIBS
20645 LIBS="-lintl $LIBS"
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652
20653 /* Override any GCC internal prototype to avoid an error.
20654 Use char because int might match the return type of a GCC
20655 builtin and then its argument prototype would still apply. */
20656 #ifdef __cplusplus
20657 extern "C"
20658 #endif
20659 char strftime ();
20660 int
20661 main ()
20662 {
20663 return strftime ();
20664 ;
20665 return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (ac_try="$ac_link"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_link") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest$ac_exeext &&
20685 $as_test_x conftest$ac_exeext; then
20686 ac_cv_lib_intl_strftime=yes
20687 else
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691 ac_cv_lib_intl_strftime=no
20692 fi
20693
20694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20695 conftest$ac_exeext conftest.$ac_ext
20696 LIBS=$ac_check_lib_save_LIBS
20697 fi
20698 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20699 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20700 if test $ac_cv_lib_intl_strftime = yes; then
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_STRFTIME 1
20703 _ACEOF
20704
20705 LIBS="-lintl $LIBS"
20706 fi
20707
20708 fi
20709 done
20710
20711
20712
20713 for ac_func in memset strerror
20714 do
20715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h. */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20729 #define $ac_func innocuous_$ac_func
20730
20731 /* System header to define __stub macros and hopefully few prototypes,
20732 which can conflict with char $ac_func (); below.
20733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20734 <limits.h> exists even on freestanding compilers. */
20735
20736 #ifdef __STDC__
20737 # include <limits.h>
20738 #else
20739 # include <assert.h>
20740 #endif
20741
20742 #undef $ac_func
20743
20744 /* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20747 #ifdef __cplusplus
20748 extern "C"
20749 #endif
20750 char $ac_func ();
20751 /* The GNU C library defines this for functions which it implements
20752 to always fail with ENOSYS. Some functions are actually named
20753 something starting with __ and the normal name is an alias. */
20754 #if defined __stub_$ac_func || defined __stub___$ac_func
20755 choke me
20756 #endif
20757
20758 int
20759 main ()
20760 {
20761 return $ac_func ();
20762 ;
20763 return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext conftest$ac_exeext
20767 if { (ac_try="$ac_link"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20771 esac
20772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_link") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest$ac_exeext &&
20783 $as_test_x conftest$ac_exeext; then
20784 eval "$as_ac_var=yes"
20785 else
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 eval "$as_ac_var=no"
20790 fi
20791
20792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20793 conftest$ac_exeext conftest.$ac_ext
20794 fi
20795 ac_res=`eval echo '${'$as_ac_var'}'`
20796 { echo "$as_me:$LINENO: result: $ac_res" >&5
20797 echo "${ECHO_T}$ac_res" >&6; }
20798 if test `eval echo '${'$as_ac_var'}'` = yes; then
20799 cat >>confdefs.h <<_ACEOF
20800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20801 _ACEOF
20802
20803 fi
20804 done
20805
20806
20807 # Check endianness
20808 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20809 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20810 if test "${ac_cv_c_bigendian+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813 # See if sys/param.h defines the BYTE_ORDER macro.
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 #include <sys/types.h>
20821 #include <sys/param.h>
20822
20823 int
20824 main ()
20825 {
20826 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20827 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20828 bogus endian macros
20829 #endif
20830
20831 ;
20832 return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20843 ac_status=$?
20844 grep -v '^ *+' conftest.er1 >conftest.err
20845 rm -f conftest.er1
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20852 # It does; now see whether it defined to BIG_ENDIAN or not.
20853 cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h. */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <sys/types.h>
20860 #include <sys/param.h>
20861
20862 int
20863 main ()
20864 {
20865 #if BYTE_ORDER != BIG_ENDIAN
20866 not big endian
20867 #endif
20868
20869 ;
20870 return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_cv_c_bigendian=yes
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_cv_c_bigendian=no
20896 fi
20897
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 else
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 # It does not; compile a test program.
20904 if test "$cross_compiling" = yes; then
20905 # try to guess the endianness by grepping values into an object file
20906 ac_cv_c_bigendian=unknown
20907 cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h. */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20914 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20915 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20916 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20917 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20918 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20919 int
20920 main ()
20921 {
20922 _ascii (); _ebcdic ();
20923 ;
20924 return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_compile") 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && {
20941 test -z "$ac_c_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest.$ac_objext; then
20944 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20945 ac_cv_c_bigendian=yes
20946 fi
20947 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20948 if test "$ac_cv_c_bigendian" = unknown; then
20949 ac_cv_c_bigendian=no
20950 else
20951 # finding both strings is unlikely to happen, but who knows?
20952 ac_cv_c_bigendian=unknown
20953 fi
20954 fi
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959
20960 fi
20961
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 else
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 int
20972 main ()
20973 {
20974
20975 /* Are we little or big endian? From Harbison&Steele. */
20976 union
20977 {
20978 long int l;
20979 char c[sizeof (long int)];
20980 } u;
20981 u.l = 1;
20982 return u.c[sizeof (long int) - 1] == 1;
20983
20984 ;
20985 return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20999 { (case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_try") 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 ac_cv_c_bigendian=no
21009 else
21010 echo "$as_me: program exited with status $ac_status" >&5
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 ( exit $ac_status )
21015 ac_cv_c_bigendian=yes
21016 fi
21017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21018 fi
21019
21020
21021 fi
21022
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 fi
21025 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21026 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21027 case $ac_cv_c_bigendian in
21028 yes)
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define WORDS_BIGENDIAN 1
21032 _ACEOF
21033 ;;
21034 no)
21035 ;;
21036 *)
21037 { { echo "$as_me:$LINENO: error: unknown endianness
21038 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21039 echo "$as_me: error: unknown endianness
21040 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21041 { (exit 1); exit 1; }; } ;;
21042 esac
21043
21044
21045 # Checks for libusb
21046 # Extract the first word of "libusb-config", so it can be a program name with args.
21047 set dummy libusb-config; ac_word=$2
21048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21050 if test "${ac_cv_path_LIBUSB_CONFIG+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053 case $LIBUSB_CONFIG in
21054 [\\/]* | ?:[\\/]*)
21055 ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
21056 ;;
21057 *)
21058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21059 for as_dir in $PATH
21060 do
21061 IFS=$as_save_IFS
21062 test -z "$as_dir" && as_dir=.
21063 for ac_exec_ext in '' $ac_executable_extensions; do
21064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21065 ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21067 break 2
21068 fi
21069 done
21070 done
21071 IFS=$as_save_IFS
21072
21073 ;;
21074 esac
21075 fi
21076 LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
21077 if test -n "$LIBUSB_CONFIG"; then
21078 { echo "$as_me:$LINENO: result: $LIBUSB_CONFIG" >&5
21079 echo "${ECHO_T}$LIBUSB_CONFIG" >&6; }
21080 else
21081 { echo "$as_me:$LINENO: result: no" >&5
21082 echo "${ECHO_T}no" >&6; }
21083 fi
21084
21085
21086 if test -n "${LIBUSB_CONFIG}"; then
21087 USB_LIBS="`$LIBUSB_CONFIG --libs`"
21088 USB_CFLAGS="`$LIBUSB_CONFIG --cflags`"
21089 else
21090 { { echo "$as_me:$LINENO: error: cannot build garmintools without libusb" >&5
21091 echo "$as_me: error: cannot build garmintools without libusb" >&2;}
21092 { (exit 1); exit 1; }; }
21093 fi
21094
21095 # Checks for python
21096
21097 # Check whether --with-python was given.
21098 if test "${with_python+set}" = set; then
21099 withval=$with_python;
21100 if test "${withval}" = "yes"; then
21101 PYTHON_SUBDIRS="python"
21102 # Extract the first word of ""python"", so it can be a program name with args.
21103 set dummy "python"; ac_word=$2
21104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21106 if test "${ac_cv_prog_HAVE_PYTHON+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109 if test -n "$HAVE_PYTHON"; then
21110 ac_cv_prog_HAVE_PYTHON="$HAVE_PYTHON" # Let the user override the test.
21111 else
21112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21113 for as_dir in $PATH
21114 do
21115 IFS=$as_save_IFS
21116 test -z "$as_dir" && as_dir=.
21117 for ac_exec_ext in '' $ac_executable_extensions; do
21118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21119 ac_cv_prog_HAVE_PYTHON=""yes""
21120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21121 break 2
21122 fi
21123 done
21124 done
21125 IFS=$as_save_IFS
21126
21127 fi
21128 fi
21129 HAVE_PYTHON=$ac_cv_prog_HAVE_PYTHON
21130 if test -n "$HAVE_PYTHON"; then
21131 { echo "$as_me:$LINENO: result: $HAVE_PYTHON" >&5
21132 echo "${ECHO_T}$HAVE_PYTHON" >&6; }
21133 else
21134 { echo "$as_me:$LINENO: result: no" >&5
21135 echo "${ECHO_T}no" >&6; }
21136 fi
21137
21138
21139 if test "${HAVE_PYTHON}" != "yes"; then
21140 { { echo "$as_me:$LINENO: error: No usable python interpreter found" >&5
21141 echo "$as_me: error: No usable python interpreter found" >&2;}
21142 { (exit 1); exit 1; }; }
21143 fi
21144 fi
21145
21146 fi
21147
21148
21149 PROG_LIBS="$USB_LIBS"
21150
21151
21152
21153
21154
21155
21156 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/man/Makefile extras/Makefile"
21157
21158
21159 if test "${HAVE_PYTHON}" = "yes"; then
21160 ac_config_files="$ac_config_files python/Makefile"
21161
21162 fi
21163
21164 cat >confcache <<\_ACEOF
21165 # This file is a shell script that caches the results of configure
21166 # tests run on this system so they can be shared between configure
21167 # scripts and configure runs, see configure's option --config-cache.
21168 # It is not useful on other systems. If it contains results you don't
21169 # want to keep, you may remove or edit it.
21170 #
21171 # config.status only pays attention to the cache file if you give it
21172 # the --recheck option to rerun configure.
21173 #
21174 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21175 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21176 # following values.
21177
21178 _ACEOF
21179
21180 # The following way of writing the cache mishandles newlines in values,
21181 # but we know of no workaround that is simple, portable, and efficient.
21182 # So, we kill variables containing newlines.
21183 # Ultrix sh set writes to stderr and can't be redirected directly,
21184 # and sets the high bit in the cache file unless we assign to the vars.
21185 (
21186 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21187 eval ac_val=\$$ac_var
21188 case $ac_val in #(
21189 *${as_nl}*)
21190 case $ac_var in #(
21191 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21192 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21193 esac
21194 case $ac_var in #(
21195 _ | IFS | as_nl) ;; #(
21196 *) $as_unset $ac_var ;;
21197 esac ;;
21198 esac
21199 done
21200
21201 (set) 2>&1 |
21202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21203 *${as_nl}ac_space=\ *)
21204 # `set' does not quote correctly, so add quotes (double-quote
21205 # substitution turns \\\\ into \\, and sed turns \\ into \).
21206 sed -n \
21207 "s/'/'\\\\''/g;
21208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21209 ;; #(
21210 *)
21211 # `set' quotes correctly as required by POSIX, so do not add quotes.
21212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21213 ;;
21214 esac |
21215 sort
21216 ) |
21217 sed '
21218 /^ac_cv_env_/b end
21219 t clear
21220 :clear
21221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21222 t end
21223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21224 :end' >>confcache
21225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21226 if test -w "$cache_file"; then
21227 test "x$cache_file" != "x/dev/null" &&
21228 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21229 echo "$as_me: updating cache $cache_file" >&6;}
21230 cat confcache >$cache_file
21231 else
21232 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21233 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21234 fi
21235 fi
21236 rm -f confcache
21237
21238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21239 # Let make expand exec_prefix.
21240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21241
21242 DEFS=-DHAVE_CONFIG_H
21243
21244 ac_libobjs=
21245 ac_ltlibobjs=
21246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21247 # 1. Remove the extension, and $U if already installed.
21248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21249 ac_i=`echo "$ac_i" | sed "$ac_script"`
21250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21251 # will be set to the directory where LIBOBJS objects are built.
21252 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21253 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21254 done
21255 LIBOBJS=$ac_libobjs
21256
21257 LTLIBOBJS=$ac_ltlibobjs
21258
21259
21260 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21261 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21262 Usually this means the macro was only invoked conditionally." >&5
21263 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21264 Usually this means the macro was only invoked conditionally." >&2;}
21265 { (exit 1); exit 1; }; }
21266 fi
21267 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21268 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21269 Usually this means the macro was only invoked conditionally." >&5
21270 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21271 Usually this means the macro was only invoked conditionally." >&2;}
21272 { (exit 1); exit 1; }; }
21273 fi
21274 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21275 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21276 Usually this means the macro was only invoked conditionally." >&5
21277 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21278 Usually this means the macro was only invoked conditionally." >&2;}
21279 { (exit 1); exit 1; }; }
21280 fi
21281
21282 : ${CONFIG_STATUS=./config.status}
21283 ac_clean_files_save=$ac_clean_files
21284 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21285 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21286 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21287 cat >$CONFIG_STATUS <<_ACEOF
21288 #! $SHELL
21289 # Generated by $as_me.
21290 # Run this file to recreate the current configuration.
21291 # Compiler output produced by configure, useful for debugging
21292 # configure, is in config.log if it exists.
21293
21294 debug=false
21295 ac_cs_recheck=false
21296 ac_cs_silent=false
21297 SHELL=\${CONFIG_SHELL-$SHELL}
21298 _ACEOF
21299
21300 cat >>$CONFIG_STATUS <<\_ACEOF
21301 ## --------------------- ##
21302 ## M4sh Initialization. ##
21303 ## --------------------- ##
21304
21305 # Be more Bourne compatible
21306 DUALCASE=1; export DUALCASE # for MKS sh
21307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21308 emulate sh
21309 NULLCMD=:
21310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21311 # is contrary to our usage. Disable this feature.
21312 alias -g '${1+"$@"}'='"$@"'
21313 setopt NO_GLOB_SUBST
21314 else
21315 case `(set -o) 2>/dev/null` in
21316 *posix*) set -o posix ;;
21317 esac
21318
21319 fi
21320
21321
21322
21323
21324 # PATH needs CR
21325 # Avoid depending upon Character Ranges.
21326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21329 as_cr_digits='0123456789'
21330 as_cr_alnum=$as_cr_Letters$as_cr_digits
21331
21332 # The user is always right.
21333 if test "${PATH_SEPARATOR+set}" != set; then
21334 echo "#! /bin/sh" >conf$$.sh
21335 echo "exit 0" >>conf$$.sh
21336 chmod +x conf$$.sh
21337 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21338 PATH_SEPARATOR=';'
21339 else
21340 PATH_SEPARATOR=:
21341 fi
21342 rm -f conf$$.sh
21343 fi
21344
21345 # Support unset when possible.
21346 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21347 as_unset=unset
21348 else
21349 as_unset=false
21350 fi
21351
21352
21353 # IFS
21354 # We need space, tab and new line, in precisely that order. Quoting is
21355 # there to prevent editors from complaining about space-tab.
21356 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21357 # splitting by setting IFS to empty value.)
21358 as_nl='
21359 '
21360 IFS=" "" $as_nl"
21361
21362 # Find who we are. Look in the path if we contain no directory separator.
21363 case $0 in
21364 *[\\/]* ) as_myself=$0 ;;
21365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21366 for as_dir in $PATH
21367 do
21368 IFS=$as_save_IFS
21369 test -z "$as_dir" && as_dir=.
21370 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21371 done
21372 IFS=$as_save_IFS
21373
21374 ;;
21375 esac
21376 # We did not find ourselves, most probably we were run as `sh COMMAND'
21377 # in which case we are not to be found in the path.
21378 if test "x$as_myself" = x; then
21379 as_myself=$0
21380 fi
21381 if test ! -f "$as_myself"; then
21382 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21383 { (exit 1); exit 1; }
21384 fi
21385
21386 # Work around bugs in pre-3.0 UWIN ksh.
21387 for as_var in ENV MAIL MAILPATH
21388 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21389 done
21390 PS1='$ '
21391 PS2='> '
21392 PS4='+ '
21393
21394 # NLS nuisances.
21395 for as_var in \
21396 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21397 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21398 LC_TELEPHONE LC_TIME
21399 do
21400 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21401 eval $as_var=C; export $as_var
21402 else
21403 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21404 fi
21405 done
21406
21407 # Required to use basename.
21408 if expr a : '\(a\)' >/dev/null 2>&1 &&
21409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21410 as_expr=expr
21411 else
21412 as_expr=false
21413 fi
21414
21415 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21416 as_basename=basename
21417 else
21418 as_basename=false
21419 fi
21420
21421
21422 # Name of the executable.
21423 as_me=`$as_basename -- "$0" ||
21424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21425 X"$0" : 'X\(//\)$' \| \
21426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21427 echo X/"$0" |
21428 sed '/^.*\/\([^/][^/]*\)\/*$/{
21429 s//\1/
21430 q
21431 }
21432 /^X\/\(\/\/\)$/{
21433 s//\1/
21434 q
21435 }
21436 /^X\/\(\/\).*/{
21437 s//\1/
21438 q
21439 }
21440 s/.*/./; q'`
21441
21442 # CDPATH.
21443 $as_unset CDPATH
21444
21445
21446
21447 as_lineno_1=$LINENO
21448 as_lineno_2=$LINENO
21449 test "x$as_lineno_1" != "x$as_lineno_2" &&
21450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21451
21452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21453 # uniformly replaced by the line number. The first 'sed' inserts a
21454 # line-number line after each line using $LINENO; the second 'sed'
21455 # does the real work. The second script uses 'N' to pair each
21456 # line-number line with the line containing $LINENO, and appends
21457 # trailing '-' during substitution so that $LINENO is not a special
21458 # case at line end.
21459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21460 # scripts with optimization help from Paolo Bonzini. Blame Lee
21461 # E. McMahon (1931-1989) for sed's syntax. :-)
21462 sed -n '
21463 p
21464 /[$]LINENO/=
21465 ' <$as_myself |
21466 sed '
21467 s/[$]LINENO.*/&-/
21468 t lineno
21469 b
21470 :lineno
21471 N
21472 :loop
21473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21474 t loop
21475 s/-\n.*//
21476 ' >$as_me.lineno &&
21477 chmod +x "$as_me.lineno" ||
21478 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21479 { (exit 1); exit 1; }; }
21480
21481 # Don't try to exec as it changes $[0], causing all sort of problems
21482 # (the dirname of $[0] is not the place where we might find the
21483 # original and so on. Autoconf is especially sensitive to this).
21484 . "./$as_me.lineno"
21485 # Exit status is that of the last command.
21486 exit
21487 }
21488
21489
21490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21491 as_dirname=dirname
21492 else
21493 as_dirname=false
21494 fi
21495
21496 ECHO_C= ECHO_N= ECHO_T=
21497 case `echo -n x` in
21498 -n*)
21499 case `echo 'x\c'` in
21500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21501 *) ECHO_C='\c';;
21502 esac;;
21503 *)
21504 ECHO_N='-n';;
21505 esac
21506
21507 if expr a : '\(a\)' >/dev/null 2>&1 &&
21508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21509 as_expr=expr
21510 else
21511 as_expr=false
21512 fi
21513
21514 rm -f conf$$ conf$$.exe conf$$.file
21515 if test -d conf$$.dir; then
21516 rm -f conf$$.dir/conf$$.file
21517 else
21518 rm -f conf$$.dir
21519 mkdir conf$$.dir
21520 fi
21521 echo >conf$$.file
21522 if ln -s conf$$.file conf$$ 2>/dev/null; then
21523 as_ln_s='ln -s'
21524 # ... but there are two gotchas:
21525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21527 # In both cases, we have to default to `cp -p'.
21528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21529 as_ln_s='cp -p'
21530 elif ln conf$$.file conf$$ 2>/dev/null; then
21531 as_ln_s=ln
21532 else
21533 as_ln_s='cp -p'
21534 fi
21535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21536 rmdir conf$$.dir 2>/dev/null
21537
21538 if mkdir -p . 2>/dev/null; then
21539 as_mkdir_p=:
21540 else
21541 test -d ./-p && rmdir ./-p
21542 as_mkdir_p=false
21543 fi
21544
21545 if test -x / >/dev/null 2>&1; then
21546 as_test_x='test -x'
21547 else
21548 if ls -dL / >/dev/null 2>&1; then
21549 as_ls_L_option=L
21550 else
21551 as_ls_L_option=
21552 fi
21553 as_test_x='
21554 eval sh -c '\''
21555 if test -d "$1"; then
21556 test -d "$1/.";
21557 else
21558 case $1 in
21559 -*)set "./$1";;
21560 esac;
21561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21562 ???[sx]*):;;*)false;;esac;fi
21563 '\'' sh
21564 '
21565 fi
21566 as_executable_p=$as_test_x
21567
21568 # Sed expression to map a string onto a valid CPP name.
21569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21570
21571 # Sed expression to map a string onto a valid variable name.
21572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21573
21574
21575 exec 6>&1
21576
21577 # Save the log message, to keep $[0] and so on meaningful, and to
21578 # report actual input values of CONFIG_FILES etc. instead of their
21579 # values after options handling.
21580 ac_log="
21581 This file was extended by garmintools $as_me 0.10, which was
21582 generated by GNU Autoconf 2.61. Invocation command line was
21583
21584 CONFIG_FILES = $CONFIG_FILES
21585 CONFIG_HEADERS = $CONFIG_HEADERS
21586 CONFIG_LINKS = $CONFIG_LINKS
21587 CONFIG_COMMANDS = $CONFIG_COMMANDS
21588 $ $0 $@
21589
21590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21591 "
21592
21593 _ACEOF
21594
21595 cat >>$CONFIG_STATUS <<_ACEOF
21596 # Files that config.status was made for.
21597 config_files="$ac_config_files"
21598 config_headers="$ac_config_headers"
21599 config_commands="$ac_config_commands"
21600
21601 _ACEOF
21602
21603 cat >>$CONFIG_STATUS <<\_ACEOF
21604 ac_cs_usage="\
21605 \`$as_me' instantiates files from templates according to the
21606 current configuration.
21607
21608 Usage: $0 [OPTIONS] [FILE]...
21609
21610 -h, --help print this help, then exit
21611 -V, --version print version number and configuration settings, then exit
21612 -q, --quiet do not print progress messages
21613 -d, --debug don't remove temporary files
21614 --recheck update $as_me by reconfiguring in the same conditions
21615 --file=FILE[:TEMPLATE]
21616 instantiate the configuration file FILE
21617 --header=FILE[:TEMPLATE]
21618 instantiate the configuration header FILE
21619
21620 Configuration files:
21621 $config_files
21622
21623 Configuration headers:
21624 $config_headers
21625
21626 Configuration commands:
21627 $config_commands
21628
21629 Report bugs to <[email protected]>."
21630
21631 _ACEOF
21632 cat >>$CONFIG_STATUS <<_ACEOF
21633 ac_cs_version="\\
21634 garmintools config.status 0.10
21635 configured by $0, generated by GNU Autoconf 2.61,
21636 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21637
21638 Copyright (C) 2006 Free Software Foundation, Inc.
21639 This config.status script is free software; the Free Software Foundation
21640 gives unlimited permission to copy, distribute and modify it."
21641
21642 ac_pwd='$ac_pwd'
21643 srcdir='$srcdir'
21644 INSTALL='$INSTALL'
21645 MKDIR_P='$MKDIR_P'
21646 _ACEOF
21647
21648 cat >>$CONFIG_STATUS <<\_ACEOF
21649 # If no file are specified by the user, then we need to provide default
21650 # value. By we need to know if files were specified by the user.
21651 ac_need_defaults=:
21652 while test $# != 0
21653 do
21654 case $1 in
21655 --*=*)
21656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21658 ac_shift=:
21659 ;;
21660 *)
21661 ac_option=$1
21662 ac_optarg=$2
21663 ac_shift=shift
21664 ;;
21665 esac
21666
21667 case $ac_option in
21668 # Handling of the options.
21669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21670 ac_cs_recheck=: ;;
21671 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21672 echo "$ac_cs_version"; exit ;;
21673 --debug | --debu | --deb | --de | --d | -d )
21674 debug=: ;;
21675 --file | --fil | --fi | --f )
21676 $ac_shift
21677 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21678 ac_need_defaults=false;;
21679 --header | --heade | --head | --hea )
21680 $ac_shift
21681 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21682 ac_need_defaults=false;;
21683 --he | --h)
21684 # Conflict between --help and --header
21685 { echo "$as_me: error: ambiguous option: $1
21686 Try \`$0 --help' for more information." >&2
21687 { (exit 1); exit 1; }; };;
21688 --help | --hel | -h )
21689 echo "$ac_cs_usage"; exit ;;
21690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21692 ac_cs_silent=: ;;
21693
21694 # This is an error.
21695 -*) { echo "$as_me: error: unrecognized option: $1
21696 Try \`$0 --help' for more information." >&2
21697 { (exit 1); exit 1; }; } ;;
21698
21699 *) ac_config_targets="$ac_config_targets $1"
21700 ac_need_defaults=false ;;
21701
21702 esac
21703 shift
21704 done
21705
21706 ac_configure_extra_args=
21707
21708 if $ac_cs_silent; then
21709 exec 6>/dev/null
21710 ac_configure_extra_args="$ac_configure_extra_args --silent"
21711 fi
21712
21713 _ACEOF
21714 cat >>$CONFIG_STATUS <<_ACEOF
21715 if \$ac_cs_recheck; then
21716 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21717 CONFIG_SHELL=$SHELL
21718 export CONFIG_SHELL
21719 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21720 fi
21721
21722 _ACEOF
21723 cat >>$CONFIG_STATUS <<\_ACEOF
21724 exec 5>>config.log
21725 {
21726 echo
21727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21728 ## Running $as_me. ##
21729 _ASBOX
21730 echo "$ac_log"
21731 } >&5
21732
21733 _ACEOF
21734 cat >>$CONFIG_STATUS <<_ACEOF
21735 #
21736 # INIT-COMMANDS
21737 #
21738 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21739
21740 _ACEOF
21741
21742 cat >>$CONFIG_STATUS <<\_ACEOF
21743
21744 # Handling of arguments.
21745 for ac_config_target in $ac_config_targets
21746 do
21747 case $ac_config_target in
21748 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.h.in" ;;
21749 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21750 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21751 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21752 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21753 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
21754 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
21755 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
21756
21757 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21758 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21759 { (exit 1); exit 1; }; };;
21760 esac
21761 done
21762
21763
21764 # If the user did not use the arguments to specify the items to instantiate,
21765 # then the envvar interface is used. Set only those that are not.
21766 # We use the long form for the default assignment because of an extremely
21767 # bizarre bug on SunOS 4.1.3.
21768 if $ac_need_defaults; then
21769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21772 fi
21773
21774 # Have a temporary directory for convenience. Make it in the build tree
21775 # simply because there is no reason against having it here, and in addition,
21776 # creating and moving files from /tmp can sometimes cause problems.
21777 # Hook for its removal unless debugging.
21778 # Note that there is a small window in which the directory will not be cleaned:
21779 # after its creation but before its name has been assigned to `$tmp'.
21780 $debug ||
21781 {
21782 tmp=
21783 trap 'exit_status=$?
21784 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21785 ' 0
21786 trap '{ (exit 1); exit 1; }' 1 2 13 15
21787 }
21788 # Create a (secure) tmp directory for tmp files.
21789
21790 {
21791 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21792 test -n "$tmp" && test -d "$tmp"
21793 } ||
21794 {
21795 tmp=./conf$$-$RANDOM
21796 (umask 077 && mkdir "$tmp")
21797 } ||
21798 {
21799 echo "$me: cannot create a temporary directory in ." >&2
21800 { (exit 1); exit 1; }
21801 }
21802
21803 #
21804 # Set up the sed scripts for CONFIG_FILES section.
21805 #
21806
21807 # No need to generate the scripts if there are no CONFIG_FILES.
21808 # This happens for instance when ./config.status config.h
21809 if test -n "$CONFIG_FILES"; then
21810
21811 _ACEOF
21812
21813
21814
21815 ac_delim='%!_!# '
21816 for ac_last_try in false false false false false :; do
21817 cat >conf$$subs.sed <<_ACEOF
21818 SHELL!$SHELL$ac_delim
21819 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21820 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21821 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21822 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21823 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21824 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21825 exec_prefix!$exec_prefix$ac_delim
21826 prefix!$prefix$ac_delim
21827 program_transform_name!$program_transform_name$ac_delim
21828 bindir!$bindir$ac_delim
21829 sbindir!$sbindir$ac_delim
21830 libexecdir!$libexecdir$ac_delim
21831 datarootdir!$datarootdir$ac_delim
21832 datadir!$datadir$ac_delim
21833 sysconfdir!$sysconfdir$ac_delim
21834 sharedstatedir!$sharedstatedir$ac_delim
21835 localstatedir!$localstatedir$ac_delim
21836 includedir!$includedir$ac_delim
21837 oldincludedir!$oldincludedir$ac_delim
21838 docdir!$docdir$ac_delim
21839 infodir!$infodir$ac_delim
21840 htmldir!$htmldir$ac_delim
21841 dvidir!$dvidir$ac_delim
21842 pdfdir!$pdfdir$ac_delim
21843 psdir!$psdir$ac_delim
21844 libdir!$libdir$ac_delim
21845 localedir!$localedir$ac_delim
21846 mandir!$mandir$ac_delim
21847 DEFS!$DEFS$ac_delim
21848 ECHO_C!$ECHO_C$ac_delim
21849 ECHO_N!$ECHO_N$ac_delim
21850 ECHO_T!$ECHO_T$ac_delim
21851 LIBS!$LIBS$ac_delim
21852 build_alias!$build_alias$ac_delim
21853 host_alias!$host_alias$ac_delim
21854 target_alias!$target_alias$ac_delim
21855 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21856 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21857 INSTALL_DATA!$INSTALL_DATA$ac_delim
21858 am__isrc!$am__isrc$ac_delim
21859 CYGPATH_W!$CYGPATH_W$ac_delim
21860 PACKAGE!$PACKAGE$ac_delim
21861 VERSION!$VERSION$ac_delim
21862 ACLOCAL!$ACLOCAL$ac_delim
21863 AUTOCONF!$AUTOCONF$ac_delim
21864 AUTOMAKE!$AUTOMAKE$ac_delim
21865 AUTOHEADER!$AUTOHEADER$ac_delim
21866 MAKEINFO!$MAKEINFO$ac_delim
21867 install_sh!$install_sh$ac_delim
21868 STRIP!$STRIP$ac_delim
21869 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21870 mkdir_p!$mkdir_p$ac_delim
21871 AWK!$AWK$ac_delim
21872 SET_MAKE!$SET_MAKE$ac_delim
21873 am__leading_dot!$am__leading_dot$ac_delim
21874 AMTAR!$AMTAR$ac_delim
21875 am__tar!$am__tar$ac_delim
21876 am__untar!$am__untar$ac_delim
21877 CC!$CC$ac_delim
21878 CFLAGS!$CFLAGS$ac_delim
21879 LDFLAGS!$LDFLAGS$ac_delim
21880 CPPFLAGS!$CPPFLAGS$ac_delim
21881 ac_ct_CC!$ac_ct_CC$ac_delim
21882 EXEEXT!$EXEEXT$ac_delim
21883 OBJEXT!$OBJEXT$ac_delim
21884 DEPDIR!$DEPDIR$ac_delim
21885 am__include!$am__include$ac_delim
21886 am__quote!$am__quote$ac_delim
21887 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21888 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21889 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21890 CCDEPMODE!$CCDEPMODE$ac_delim
21891 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21892 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21893 build!$build$ac_delim
21894 build_cpu!$build_cpu$ac_delim
21895 build_vendor!$build_vendor$ac_delim
21896 build_os!$build_os$ac_delim
21897 host!$host$ac_delim
21898 host_cpu!$host_cpu$ac_delim
21899 host_vendor!$host_vendor$ac_delim
21900 host_os!$host_os$ac_delim
21901 SED!$SED$ac_delim
21902 GREP!$GREP$ac_delim
21903 EGREP!$EGREP$ac_delim
21904 LN_S!$LN_S$ac_delim
21905 ECHO!$ECHO$ac_delim
21906 AR!$AR$ac_delim
21907 RANLIB!$RANLIB$ac_delim
21908 DSYMUTIL!$DSYMUTIL$ac_delim
21909 NMEDIT!$NMEDIT$ac_delim
21910 CPP!$CPP$ac_delim
21911 CXX!$CXX$ac_delim
21912 CXXFLAGS!$CXXFLAGS$ac_delim
21913 ac_ct_CXX!$ac_ct_CXX$ac_delim
21914 CXXDEPMODE!$CXXDEPMODE$ac_delim
21915 _ACEOF
21916
21917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21918 break
21919 elif $ac_last_try; then
21920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21922 { (exit 1); exit 1; }; }
21923 else
21924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21925 fi
21926 done
21927
21928 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21929 if test -n "$ac_eof"; then
21930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21931 ac_eof=`expr $ac_eof + 1`
21932 fi
21933
21934 cat >>$CONFIG_STATUS <<_ACEOF
21935 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21937 _ACEOF
21938 sed '
21939 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21940 s/^/s,@/; s/!/@,|#_!!_#|/
21941 :n
21942 t n
21943 s/'"$ac_delim"'$/,g/; t
21944 s/$/\\/; p
21945 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21946 ' >>$CONFIG_STATUS <conf$$subs.sed
21947 rm -f conf$$subs.sed
21948 cat >>$CONFIG_STATUS <<_ACEOF
21949 CEOF$ac_eof
21950 _ACEOF
21951
21952
21953 ac_delim='%!_!# '
21954 for ac_last_try in false false false false false :; do
21955 cat >conf$$subs.sed <<_ACEOF
21956 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21957 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21958 CXXCPP!$CXXCPP$ac_delim
21959 F77!$F77$ac_delim
21960 FFLAGS!$FFLAGS$ac_delim
21961 ac_ct_F77!$ac_ct_F77$ac_delim
21962 LIBTOOL!$LIBTOOL$ac_delim
21963 LIBUSB_CONFIG!$LIBUSB_CONFIG$ac_delim
21964 HAVE_PYTHON!$HAVE_PYTHON$ac_delim
21965 USB_CFLAGS!$USB_CFLAGS$ac_delim
21966 USB_LIBS!$USB_LIBS$ac_delim
21967 PROG_LIBS!$PROG_LIBS$ac_delim
21968 PYTHON_SUBDIRS!$PYTHON_SUBDIRS$ac_delim
21969 LIBOBJS!$LIBOBJS$ac_delim
21970 LTLIBOBJS!$LTLIBOBJS$ac_delim
21971 _ACEOF
21972
21973 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21974 break
21975 elif $ac_last_try; then
21976 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21977 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21978 { (exit 1); exit 1; }; }
21979 else
21980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21981 fi
21982 done
21983
21984 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21985 if test -n "$ac_eof"; then
21986 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21987 ac_eof=`expr $ac_eof + 1`
21988 fi
21989
21990 cat >>$CONFIG_STATUS <<_ACEOF
21991 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21993 _ACEOF
21994 sed '
21995 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21996 s/^/s,@/; s/!/@,|#_!!_#|/
21997 :n
21998 t n
21999 s/'"$ac_delim"'$/,g/; t
22000 s/$/\\/; p
22001 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22002 ' >>$CONFIG_STATUS <conf$$subs.sed
22003 rm -f conf$$subs.sed
22004 cat >>$CONFIG_STATUS <<_ACEOF
22005 :end
22006 s/|#_!!_#|//g
22007 CEOF$ac_eof
22008 _ACEOF
22009
22010
22011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22013 # trailing colons and then remove the whole line if VPATH becomes empty
22014 # (actually we leave an empty line to preserve line numbers).
22015 if test "x$srcdir" = x.; then
22016 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22017 s/:*\$(srcdir):*/:/
22018 s/:*\${srcdir}:*/:/
22019 s/:*@srcdir@:*/:/
22020 s/^\([^=]*=[ ]*\):*/\1/
22021 s/:*$//
22022 s/^[^=]*=[ ]*$//
22023 }'
22024 fi
22025
22026 cat >>$CONFIG_STATUS <<\_ACEOF
22027 fi # test -n "$CONFIG_FILES"
22028
22029
22030 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22031 do
22032 case $ac_tag in
22033 :[FHLC]) ac_mode=$ac_tag; continue;;
22034 esac
22035 case $ac_mode$ac_tag in
22036 :[FHL]*:*);;
22037 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22038 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22039 { (exit 1); exit 1; }; };;
22040 :[FH]-) ac_tag=-:-;;
22041 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22042 esac
22043 ac_save_IFS=$IFS
22044 IFS=:
22045 set x $ac_tag
22046 IFS=$ac_save_IFS
22047 shift
22048 ac_file=$1
22049 shift
22050
22051 case $ac_mode in
22052 :L) ac_source=$1;;
22053 :[FH])
22054 ac_file_inputs=
22055 for ac_f
22056 do
22057 case $ac_f in
22058 -) ac_f="$tmp/stdin";;
22059 *) # Look for the file first in the build tree, then in the source tree
22060 # (if the path is not absolute). The absolute path cannot be DOS-style,
22061 # because $ac_f cannot contain `:'.
22062 test -f "$ac_f" ||
22063 case $ac_f in
22064 [\\/$]*) false;;
22065 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22066 esac ||
22067 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22068 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22069 { (exit 1); exit 1; }; };;
22070 esac
22071 ac_file_inputs="$ac_file_inputs $ac_f"
22072 done
22073
22074 # Let's still pretend it is `configure' which instantiates (i.e., don't
22075 # use $as_me), people would be surprised to read:
22076 # /* config.h. Generated by config.status. */
22077 configure_input="Generated from "`IFS=:
22078 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22079 if test x"$ac_file" != x-; then
22080 configure_input="$ac_file. $configure_input"
22081 { echo "$as_me:$LINENO: creating $ac_file" >&5
22082 echo "$as_me: creating $ac_file" >&6;}
22083 fi
22084
22085 case $ac_tag in
22086 *:-:* | *:-) cat >"$tmp/stdin";;
22087 esac
22088 ;;
22089 esac
22090
22091 ac_dir=`$as_dirname -- "$ac_file" ||
22092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22093 X"$ac_file" : 'X\(//\)[^/]' \| \
22094 X"$ac_file" : 'X\(//\)$' \| \
22095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22096 echo X"$ac_file" |
22097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22098 s//\1/
22099 q
22100 }
22101 /^X\(\/\/\)[^/].*/{
22102 s//\1/
22103 q
22104 }
22105 /^X\(\/\/\)$/{
22106 s//\1/
22107 q
22108 }
22109 /^X\(\/\).*/{
22110 s//\1/
22111 q
22112 }
22113 s/.*/./; q'`
22114 { as_dir="$ac_dir"
22115 case $as_dir in #(
22116 -*) as_dir=./$as_dir;;
22117 esac
22118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22119 as_dirs=
22120 while :; do
22121 case $as_dir in #(
22122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22123 *) as_qdir=$as_dir;;
22124 esac
22125 as_dirs="'$as_qdir' $as_dirs"
22126 as_dir=`$as_dirname -- "$as_dir" ||
22127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22128 X"$as_dir" : 'X\(//\)[^/]' \| \
22129 X"$as_dir" : 'X\(//\)$' \| \
22130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22131 echo X"$as_dir" |
22132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22133 s//\1/
22134 q
22135 }
22136 /^X\(\/\/\)[^/].*/{
22137 s//\1/
22138 q
22139 }
22140 /^X\(\/\/\)$/{
22141 s//\1/
22142 q
22143 }
22144 /^X\(\/\).*/{
22145 s//\1/
22146 q
22147 }
22148 s/.*/./; q'`
22149 test -d "$as_dir" && break
22150 done
22151 test -z "$as_dirs" || eval "mkdir $as_dirs"
22152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22154 { (exit 1); exit 1; }; }; }
22155 ac_builddir=.
22156
22157 case "$ac_dir" in
22158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22159 *)
22160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22161 # A ".." for each directory in $ac_dir_suffix.
22162 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22163 case $ac_top_builddir_sub in
22164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22166 esac ;;
22167 esac
22168 ac_abs_top_builddir=$ac_pwd
22169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22170 # for backward compatibility:
22171 ac_top_builddir=$ac_top_build_prefix
22172
22173 case $srcdir in
22174 .) # We are building in place.
22175 ac_srcdir=.
22176 ac_top_srcdir=$ac_top_builddir_sub
22177 ac_abs_top_srcdir=$ac_pwd ;;
22178 [\\/]* | ?:[\\/]* ) # Absolute name.
22179 ac_srcdir=$srcdir$ac_dir_suffix;
22180 ac_top_srcdir=$srcdir
22181 ac_abs_top_srcdir=$srcdir ;;
22182 *) # Relative name.
22183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22184 ac_top_srcdir=$ac_top_build_prefix$srcdir
22185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22186 esac
22187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22188
22189
22190 case $ac_mode in
22191 :F)
22192 #
22193 # CONFIG_FILE
22194 #
22195
22196 case $INSTALL in
22197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22199 esac
22200 ac_MKDIR_P=$MKDIR_P
22201 case $MKDIR_P in
22202 [\\/$]* | ?:[\\/]* ) ;;
22203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22204 esac
22205 _ACEOF
22206
22207 cat >>$CONFIG_STATUS <<\_ACEOF
22208 # If the template does not know about datarootdir, expand it.
22209 # FIXME: This hack should be removed a few years after 2.60.
22210 ac_datarootdir_hack=; ac_datarootdir_seen=
22211
22212 case `sed -n '/datarootdir/ {
22213 p
22214 q
22215 }
22216 /@datadir@/p
22217 /@docdir@/p
22218 /@infodir@/p
22219 /@localedir@/p
22220 /@mandir@/p
22221 ' $ac_file_inputs` in
22222 *datarootdir*) ac_datarootdir_seen=yes;;
22223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22224 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22225 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22226 _ACEOF
22227 cat >>$CONFIG_STATUS <<_ACEOF
22228 ac_datarootdir_hack='
22229 s&@datadir@&$datadir&g
22230 s&@docdir@&$docdir&g
22231 s&@infodir@&$infodir&g
22232 s&@localedir@&$localedir&g
22233 s&@mandir@&$mandir&g
22234 s&\\\${datarootdir}&$datarootdir&g' ;;
22235 esac
22236 _ACEOF
22237
22238 # Neutralize VPATH when `$srcdir' = `.'.
22239 # Shell code in configure.ac might set extrasub.
22240 # FIXME: do we really want to maintain this feature?
22241 cat >>$CONFIG_STATUS <<_ACEOF
22242 sed "$ac_vpsub
22243 $extrasub
22244 _ACEOF
22245 cat >>$CONFIG_STATUS <<\_ACEOF
22246 :t
22247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22248 s&@configure_input@&$configure_input&;t t
22249 s&@top_builddir@&$ac_top_builddir_sub&;t t
22250 s&@srcdir@&$ac_srcdir&;t t
22251 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22252 s&@top_srcdir@&$ac_top_srcdir&;t t
22253 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22254 s&@builddir@&$ac_builddir&;t t
22255 s&@abs_builddir@&$ac_abs_builddir&;t t
22256 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22257 s&@INSTALL@&$ac_INSTALL&;t t
22258 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22259 $ac_datarootdir_hack
22260 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22261
22262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22263 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22265 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22266 which seems to be undefined. Please make sure it is defined." >&5
22267 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22268 which seems to be undefined. Please make sure it is defined." >&2;}
22269
22270 rm -f "$tmp/stdin"
22271 case $ac_file in
22272 -) cat "$tmp/out"; rm -f "$tmp/out";;
22273 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22274 esac
22275 ;;
22276 :H)
22277 #
22278 # CONFIG_HEADER
22279 #
22280 _ACEOF
22281
22282 # Transform confdefs.h into a sed script `conftest.defines', that
22283 # substitutes the proper values into config.h.in to produce config.h.
22284 rm -f conftest.defines conftest.tail
22285 # First, append a space to every undef/define line, to ease matching.
22286 echo 's/$/ /' >conftest.defines
22287 # Then, protect against being on the right side of a sed subst, or in
22288 # an unquoted here document, in config.status. If some macros were
22289 # called several times there might be several #defines for the same
22290 # symbol, which is useless. But do not sort them, since the last
22291 # AC_DEFINE must be honored.
22292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22293 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22294 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22295 # PARAMS is the parameter list in the macro definition--in most cases, it's
22296 # just an empty string.
22297 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22298 ac_dB='\\)[ (].*,\\1define\\2'
22299 ac_dC=' '
22300 ac_dD=' ,'
22301
22302 uniq confdefs.h |
22303 sed -n '
22304 t rset
22305 :rset
22306 s/^[ ]*#[ ]*define[ ][ ]*//
22307 t ok
22308 d
22309 :ok
22310 s/[\\&,]/\\&/g
22311 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22312 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22313 ' >>conftest.defines
22314
22315 # Remove the space that was appended to ease matching.
22316 # Then replace #undef with comments. This is necessary, for
22317 # example, in the case of _POSIX_SOURCE, which is predefined and required
22318 # on some systems where configure will not decide to define it.
22319 # (The regexp can be short, since the line contains either #define or #undef.)
22320 echo 's/ $//
22321 s,^[ #]*u.*,/* & */,' >>conftest.defines
22322
22323 # Break up conftest.defines:
22324 ac_max_sed_lines=50
22325
22326 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22327 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22328 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22329 # et cetera.
22330 ac_in='$ac_file_inputs'
22331 ac_out='"$tmp/out1"'
22332 ac_nxt='"$tmp/out2"'
22333
22334 while :
22335 do
22336 # Write a here document:
22337 cat >>$CONFIG_STATUS <<_ACEOF
22338 # First, check the format of the line:
22339 cat >"\$tmp/defines.sed" <<\\CEOF
22340 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22341 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22342 b
22343 :def
22344 _ACEOF
22345 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22346 echo 'CEOF
22347 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22348 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22349 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22350 grep . conftest.tail >/dev/null || break
22351 rm -f conftest.defines
22352 mv conftest.tail conftest.defines
22353 done
22354 rm -f conftest.defines conftest.tail
22355
22356 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22357 cat >>$CONFIG_STATUS <<\_ACEOF
22358 if test x"$ac_file" != x-; then
22359 echo "/* $configure_input */" >"$tmp/config.h"
22360 cat "$ac_result" >>"$tmp/config.h"
22361 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22362 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22363 echo "$as_me: $ac_file is unchanged" >&6;}
22364 else
22365 rm -f $ac_file
22366 mv "$tmp/config.h" $ac_file
22367 fi
22368 else
22369 echo "/* $configure_input */"
22370 cat "$ac_result"
22371 fi
22372 rm -f "$tmp/out12"
22373 # Compute $ac_file's index in $config_headers.
22374 _am_arg=$ac_file
22375 _am_stamp_count=1
22376 for _am_header in $config_headers :; do
22377 case $_am_header in
22378 $_am_arg | $_am_arg:* )
22379 break ;;
22380 * )
22381 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22382 esac
22383 done
22384 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22385 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22386 X"$_am_arg" : 'X\(//\)[^/]' \| \
22387 X"$_am_arg" : 'X\(//\)$' \| \
22388 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22389 echo X"$_am_arg" |
22390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22391 s//\1/
22392 q
22393 }
22394 /^X\(\/\/\)[^/].*/{
22395 s//\1/
22396 q
22397 }
22398 /^X\(\/\/\)$/{
22399 s//\1/
22400 q
22401 }
22402 /^X\(\/\).*/{
22403 s//\1/
22404 q
22405 }
22406 s/.*/./; q'`/stamp-h$_am_stamp_count
22407 ;;
22408
22409 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22410 echo "$as_me: executing $ac_file commands" >&6;}
22411 ;;
22412 esac
22413
22414
22415 case $ac_file$ac_mode in
22416 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22417 # Strip MF so we end up with the name of the file.
22418 mf=`echo "$mf" | sed -e 's/:.*$//'`
22419 # Check whether this is an Automake generated Makefile or not.
22420 # We used to match only the files named `Makefile.in', but
22421 # some people rename them; so instead we look at the file content.
22422 # Grep'ing the first line is not enough: some people post-process
22423 # each Makefile.in and add a new line on top of each file to say so.
22424 # Grep'ing the whole file is not good either: AIX grep has a line
22425 # limit of 2048, but all sed's we know have understand at least 4000.
22426 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22427 dirpart=`$as_dirname -- "$mf" ||
22428 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22429 X"$mf" : 'X\(//\)[^/]' \| \
22430 X"$mf" : 'X\(//\)$' \| \
22431 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22432 echo X"$mf" |
22433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22434 s//\1/
22435 q
22436 }
22437 /^X\(\/\/\)[^/].*/{
22438 s//\1/
22439 q
22440 }
22441 /^X\(\/\/\)$/{
22442 s//\1/
22443 q
22444 }
22445 /^X\(\/\).*/{
22446 s//\1/
22447 q
22448 }
22449 s/.*/./; q'`
22450 else
22451 continue
22452 fi
22453 # Extract the definition of DEPDIR, am__include, and am__quote
22454 # from the Makefile without running `make'.
22455 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22456 test -z "$DEPDIR" && continue
22457 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22458 test -z "am__include" && continue
22459 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22460 # When using ansi2knr, U may be empty or an underscore; expand it
22461 U=`sed -n 's/^U = //p' < "$mf"`
22462 # Find all dependency output files, they are included files with
22463 # $(DEPDIR) in their names. We invoke sed twice because it is the
22464 # simplest approach to changing $(DEPDIR) to its actual value in the
22465 # expansion.
22466 for file in `sed -n "
22467 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22468 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22469 # Make sure the directory exists.
22470 test -f "$dirpart/$file" && continue
22471 fdir=`$as_dirname -- "$file" ||
22472 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22473 X"$file" : 'X\(//\)[^/]' \| \
22474 X"$file" : 'X\(//\)$' \| \
22475 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22476 echo X"$file" |
22477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22478 s//\1/
22479 q
22480 }
22481 /^X\(\/\/\)[^/].*/{
22482 s//\1/
22483 q
22484 }
22485 /^X\(\/\/\)$/{
22486 s//\1/
22487 q
22488 }
22489 /^X\(\/\).*/{
22490 s//\1/
22491 q
22492 }
22493 s/.*/./; q'`
22494 { as_dir=$dirpart/$fdir
22495 case $as_dir in #(
22496 -*) as_dir=./$as_dir;;
22497 esac
22498 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22499 as_dirs=
22500 while :; do
22501 case $as_dir in #(
22502 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22503 *) as_qdir=$as_dir;;
22504 esac
22505 as_dirs="'$as_qdir' $as_dirs"
22506 as_dir=`$as_dirname -- "$as_dir" ||
22507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22508 X"$as_dir" : 'X\(//\)[^/]' \| \
22509 X"$as_dir" : 'X\(//\)$' \| \
22510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22511 echo X"$as_dir" |
22512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22513 s//\1/
22514 q
22515 }
22516 /^X\(\/\/\)[^/].*/{
22517 s//\1/
22518 q
22519 }
22520 /^X\(\/\/\)$/{
22521 s//\1/
22522 q
22523 }
22524 /^X\(\/\).*/{
22525 s//\1/
22526 q
22527 }
22528 s/.*/./; q'`
22529 test -d "$as_dir" && break
22530 done
22531 test -z "$as_dirs" || eval "mkdir $as_dirs"
22532 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22533 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22534 { (exit 1); exit 1; }; }; }
22535 # echo "creating $dirpart/$file"
22536 echo '# dummy' > "$dirpart/$file"
22537 done
22538 done
22539 ;;
22540
22541 esac
22542 done # for ac_tag
22543
22544
22545 { (exit 0); exit 0; }
22546 _ACEOF
22547 chmod +x $CONFIG_STATUS
22548 ac_clean_files=$ac_clean_files_save
22549
22550
22551 # configure is writing to config.log, and then calls config.status.
22552 # config.status does its own redirection, appending to config.log.
22553 # Unfortunately, on DOS this fails, as config.log is still kept open
22554 # by configure, so config.status won't be able to write to it; its
22555 # output is simply discarded. So we exec the FD to /dev/null,
22556 # effectively closing config.log, so it can be properly (re)opened and
22557 # appended to by config.status. When coming back to configure, we
22558 # need to make the FD available again.
22559 if test "$no_create" != yes; then
22560 ac_cs_success=:
22561 ac_config_status_args=
22562 test "$silent" = yes &&
22563 ac_config_status_args="$ac_config_status_args --quiet"
22564 exec 5>/dev/null
22565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22566 exec 5>>config.log
22567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22568 # would make configure fail if this is the last instruction.
22569 $ac_cs_success || { (exit 1); exit 1; }
22570 fi
22571