Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for scim-m17n 0.2.3.
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, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='scim-m17n'
752 PACKAGE_TARNAME='scim-m17n'
753 PACKAGE_VERSION='0.2.3'
754 PACKAGE_STRING='scim-m17n 0.2.3'
755 PACKAGE_BUGREPORT='[email protected]'
756
757 ac_unique_file="src/scim_m17n_imengine.h"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 SCIM_MODULEDIR
797 SCIM_ICONDIR
798 SCIM_DEBUG_FLAGS
799 LIBTOOL_EXPORT_OPTIONS
800 ac_aux_dir
801 M17N_VERSION
802 M17N_LIBS
803 M17N_CFLAGS
804 SCIM_VERSION
805 SCIM_LIBS
806 SCIM_CFLAGS
807 PKG_CONFIG
808 LIBTOOL_DEPS
809 LIBADD_DL
810 CONVENIENCE_LTDL_FALSE
811 CONVENIENCE_LTDL_TRUE
812 INSTALL_LTDL_FALSE
813 INSTALL_LTDL_TRUE
814 LIBTOOL
815 ac_ct_F77
816 FFLAGS
817 F77
818 CXXCPP
819 am__fastdepCXX_FALSE
820 am__fastdepCXX_TRUE
821 CXXDEPMODE
822 ac_ct_CXX
823 CXXFLAGS
824 CXX
825 CPP
826 NMEDIT
827 DSYMUTIL
828 RANLIB
829 AR
830 ECHO
831 LN_S
832 EGREP
833 GREP
834 SED
835 am__fastdepCC_FALSE
836 am__fastdepCC_TRUE
837 CCDEPMODE
838 AMDEPBACKSLASH
839 AMDEP_FALSE
840 AMDEP_TRUE
841 am__quote
842 am__include
843 DEPDIR
844 OBJEXT
845 EXEEXT
846 ac_ct_CC
847 CPPFLAGS
848 LDFLAGS
849 CFLAGS
850 CC
851 host_os
852 host_vendor
853 host_cpu
854 host
855 build_os
856 build_vendor
857 build_cpu
858 build
859 am__untar
860 am__tar
861 AMTAR
862 am__leading_dot
863 SET_MAKE
864 AWK
865 mkdir_p
866 MKDIR_P
867 INSTALL_STRIP_PROGRAM
868 STRIP
869 install_sh
870 MAKEINFO
871 AUTOHEADER
872 AUTOMAKE
873 AUTOCONF
874 ACLOCAL
875 VERSION
876 PACKAGE
877 CYGPATH_W
878 am__isrc
879 INSTALL_DATA
880 INSTALL_SCRIPT
881 INSTALL_PROGRAM
882 SCIM_M17N_VERSION
883 SCIM_M17N_MICRO_VERSION
884 SCIM_M17N_MINOR_VERSION
885 SCIM_M17N_MAJOR_VERSION
886 target_alias
887 host_alias
888 build_alias
889 LIBS
890 ECHO_T
891 ECHO_N
892 ECHO_C
893 DEFS
894 mandir
895 localedir
896 libdir
897 psdir
898 pdfdir
899 dvidir
900 htmldir
901 infodir
902 docdir
903 oldincludedir
904 includedir
905 localstatedir
906 sharedstatedir
907 sysconfdir
908 datadir
909 datarootdir
910 libexecdir
911 sbindir
912 bindir
913 program_transform_name
914 prefix
915 exec_prefix
916 PACKAGE_BUGREPORT
917 PACKAGE_STRING
918 PACKAGE_VERSION
919 PACKAGE_TARNAME
920 PACKAGE_NAME
921 PATH_SEPARATOR
922 SHELL'
923 ac_subst_files=''
924 ac_user_opts='
925 enable_option_checking
926 enable_shared
927 enable_static
928 enable_fast_install
929 enable_dependency_tracking
930 with_gnu_ld
931 enable_libtool_lock
932 with_pic
933 with_tags
934 enable_ltdl_install
935 enable_debug
936 '
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CPP
946 CXX
947 CXXFLAGS
948 CCC
949 CXXCPP
950 F77
951 FFLAGS
952 PKG_CONFIG
953 SCIM_CFLAGS
954 SCIM_LIBS
955 M17N_CFLAGS
956 M17N_LIBS'
957
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1087
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1309
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1315 { (exit 1); exit 1; }; }
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1319 *"
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=no ;;
1326
1327 --x)
1328 # Obsolete; use --with-x.
1329 with_x=yes ;;
1330
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1337
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1344
1345 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1346 Try \`$0 --help' for more information." >&2
1347 { (exit 1); exit 1; }; }
1348 ;;
1349
1350 *=*)
1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1355 { (exit 1); exit 1; }; }
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1358
1359 *)
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 ;;
1366
1367 esac
1368 done
1369
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1373 { (exit 1); exit 1; }; }
1374 fi
1375
1376 if test -n "$ac_unrecognized_opts"; then
1377 case $enable_option_checking in
1378 no) ;;
1379 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1380 { (exit 1); exit 1; }; } ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1383 fi
1384
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1390 do
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1404 { (exit 1); exit 1; }; }
1405 done
1406
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1410 build=$build_alias
1411 host=$host_alias
1412 target=$target_alias
1413
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1419 If a cross compiler is detected then cross compile mode will be used." >&2
1420 elif test "x$build_alias" != "x$host_alias"; then
1421 cross_compiling=yes
1422 fi
1423 fi
1424
1425 ac_tool_prefix=
1426 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427
1428 test "$silent" = yes && exec 6>/dev/null
1429
1430
1431 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432 ac_ls_di=`ls -di .` &&
1433 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1435 { (exit 1); exit 1; }; }
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1438 { (exit 1); exit 1; }; }
1439
1440
1441 # Find the source files, if location was not specified.
1442 if test -z "$srcdir"; then
1443 ac_srcdir_defaulted=yes
1444 # Try the directory containing this script, then the parent directory.
1445 ac_confdir=`$as_dirname -- "$as_myself" ||
1446 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447 X"$as_myself" : 'X\(//\)[^/]' \| \
1448 X"$as_myself" : 'X\(//\)$' \| \
1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450 $as_echo X"$as_myself" |
1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\/\)[^/].*/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\/\)$/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\).*/{
1464 s//\1/
1465 q
1466 }
1467 s/.*/./; q'`
1468 srcdir=$ac_confdir
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 srcdir=..
1471 fi
1472 else
1473 ac_srcdir_defaulted=no
1474 fi
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1478 { (exit 1); exit 1; }; }
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1483 { (exit 1); exit 1; }; }
1484 pwd)`
1485 # When building in place, set srcdir=.
1486 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487 srcdir=.
1488 fi
1489 # Remove unnecessary trailing slashes from srcdir.
1490 # Double slashes in file names in object file debugging info
1491 # mess up M-x gdb in Emacs.
1492 case $srcdir in
1493 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 esac
1495 for ac_var in $ac_precious_vars; do
1496 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_env_${ac_var}_value=\$${ac_var}
1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 done
1501
1502 #
1503 # Report the --help message.
1504 #
1505 if test "$ac_init_help" = "long"; then
1506 # Omit some internal or obsolete options to make the list less imposing.
1507 # This message is too long to be a string in the A/UX 3.1 sh.
1508 cat <<_ACEOF
1509 \`configure' configures scim-m17n 0.2.3 to adapt to many kinds of systems.
1510
1511 Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514 VAR=VALUE. See below for descriptions of some of the useful variables.
1515
1516 Defaults for the options are specified in brackets.
1517
1518 Configuration:
1519 -h, --help display this help and exit
1520 --help=short display options specific to this package
1521 --help=recursive display the short help of all the included packages
1522 -V, --version display version information and exit
1523 -q, --quiet, --silent do not print \`checking...' messages
1524 --cache-file=FILE cache test results in FILE [disabled]
1525 -C, --config-cache alias for \`--cache-file=config.cache'
1526 -n, --no-create do not create output files
1527 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1528
1529 Installation directories:
1530 --prefix=PREFIX install architecture-independent files in PREFIX
1531 [$ac_default_prefix]
1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533 [PREFIX]
1534
1535 By default, \`make install' will install all the files in
1536 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1537 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538 for instance \`--prefix=\$HOME'.
1539
1540 For better control, use the options below.
1541
1542 Fine tuning of the installation directories:
1543 --bindir=DIR user executables [EPREFIX/bin]
1544 --sbindir=DIR system admin executables [EPREFIX/sbin]
1545 --libexecdir=DIR program executables [EPREFIX/libexec]
1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1549 --libdir=DIR object code libraries [EPREFIX/lib]
1550 --includedir=DIR C header files [PREFIX/include]
1551 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1554 --infodir=DIR info documentation [DATAROOTDIR/info]
1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1556 --mandir=DIR man documentation [DATAROOTDIR/man]
1557 --docdir=DIR documentation root [DATAROOTDIR/doc/scim-m17n]
1558 --htmldir=DIR html documentation [DOCDIR]
1559 --dvidir=DIR dvi documentation [DOCDIR]
1560 --pdfdir=DIR pdf documentation [DOCDIR]
1561 --psdir=DIR ps documentation [DOCDIR]
1562 _ACEOF
1563
1564 cat <<\_ACEOF
1565
1566 Program names:
1567 --program-prefix=PREFIX prepend PREFIX to installed program names
1568 --program-suffix=SUFFIX append SUFFIX to installed program names
1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1570
1571 System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1575 fi
1576
1577 if test -n "$ac_init_help"; then
1578 case $ac_init_help in
1579 short | recursive ) echo "Configuration of scim-m17n 0.2.3:";;
1580 esac
1581 cat <<\_ACEOF
1582
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-shared[=PKGS] build shared libraries [default=yes]
1588 --enable-static[=PKGS] build static libraries [default=yes]
1589 --enable-fast-install[=PKGS]
1590 optimize for fast installation [default=yes]
1591 --disable-dependency-tracking speeds up one-time build
1592 --enable-dependency-tracking do not reject slow dependency extractors
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --enable-ltdl-install install libltdl
1595 --enable-debug Turn on debugging
1596
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-pic try to use only PIC/non-PIC objects [default=use
1602 both]
1603 --with-tags[=TAGS] include additional configurations [automatic]
1604
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 CPP C preprocessor
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1619 PKG_CONFIG path to pkg-config utility
1620 SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1621 SCIM_LIBS linker flags for SCIM, overriding pkg-config
1622 M17N_CFLAGS C compiler flags for M17N, overriding pkg-config
1623 M17N_LIBS linker flags for M17N, overriding pkg-config
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to <[email protected]>.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638 continue
1639 ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658 .) # We are building in place.
1659 ac_srcdir=.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1666 *) # Relative name.
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for guested configure.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1681 else
1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 fi || ac_status=$?
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1685 done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690 cat <<\_ACEOF
1691 scim-m17n configure 0.2.3
1692 generated by GNU Autoconf 2.63
1693
1694 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1695 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1698 _ACEOF
1699 exit
1700 fi
1701 cat >config.log <<_ACEOF
1702 This file contains any messages produced by compilers while
1703 running configure, to aid debugging if configure makes a mistake.
1704
1705 It was created by scim-m17n $as_me 0.2.3, which was
1706 generated by GNU Autoconf 2.63. Invocation command line was
1707
1708 $ $0 $@
1709
1710 _ACEOF
1711 exec 5>>config.log
1712 {
1713 cat <<_ASUNAME
1714 ## --------- ##
1715 ## Platform. ##
1716 ## --------- ##
1717
1718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1723
1724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1726
1727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1730 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1734
1735 _ASUNAME
1736
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 $as_echo "PATH: $as_dir"
1743 done
1744 IFS=$as_save_IFS
1745
1746 } >&5
1747
1748 cat >&5 <<_ACEOF
1749
1750
1751 ## ----------- ##
1752 ## Core tests. ##
1753 ## ----------- ##
1754
1755 _ACEOF
1756
1757
1758 # Keep a trace of the command line.
1759 # Strip out --no-create and --no-recursion so they do not pile up.
1760 # Strip out --silent because we don't want to record it for future runs.
1761 # Also quote any args containing shell meta-characters.
1762 # Make two passes to allow for proper duplicate-argument suppression.
1763 ac_configure_args=
1764 ac_configure_args0=
1765 ac_configure_args1=
1766 ac_must_keep_next=false
1767 for ac_pass in 1 2
1768 do
1769 for ac_arg
1770 do
1771 case $ac_arg in
1772 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1774 | -silent | --silent | --silen | --sile | --sil)
1775 continue ;;
1776 *\'*)
1777 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778 esac
1779 case $ac_pass in
1780 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1781 2)
1782 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1783 if test $ac_must_keep_next = true; then
1784 ac_must_keep_next=false # Got value, back to normal.
1785 else
1786 case $ac_arg in
1787 *=* | --config-cache | -C | -disable-* | --disable-* \
1788 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1789 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1790 | -with-* | --with-* | -without-* | --without-* | --x)
1791 case "$ac_configure_args0 " in
1792 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793 esac
1794 ;;
1795 -* ) ac_must_keep_next=true ;;
1796 esac
1797 fi
1798 ac_configure_args="$ac_configure_args '$ac_arg'"
1799 ;;
1800 esac
1801 done
1802 done
1803 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1804 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1805
1806 # When interrupted or exit'd, cleanup temporary files, and complete
1807 # config.log. We remove comments because anyway the quotes in there
1808 # would cause problems or look ugly.
1809 # WARNING: Use '\'' to represent an apostrophe within the trap.
1810 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1811 trap 'exit_status=$?
1812 # Save into config.log some information that might help in debugging.
1813 {
1814 echo
1815
1816 cat <<\_ASBOX
1817 ## ---------------- ##
1818 ## Cache variables. ##
1819 ## ---------------- ##
1820 _ASBOX
1821 echo
1822 # The following way of writing the cache mishandles newlines in values,
1823 (
1824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1825 eval ac_val=\$$ac_var
1826 case $ac_val in #(
1827 *${as_nl}*)
1828 case $ac_var in #(
1829 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1831 esac
1832 case $ac_var in #(
1833 _ | IFS | as_nl) ;; #(
1834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
1839 (set) 2>&1 |
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1842 sed -n \
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
1846 *)
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ;;
1849 esac |
1850 sort
1851 )
1852 echo
1853
1854 cat <<\_ASBOX
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1858 _ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 $as_echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1875 _ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
1879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 $as_echo "$ac_var='\''$ac_val'\''"
1884 done | sort
1885 echo
1886 fi
1887
1888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890 ## ----------- ##
1891 ## confdefs.h. ##
1892 ## ----------- ##
1893 _ASBOX
1894 echo
1895 cat confdefs.h
1896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 $as_echo "$as_me: caught signal $ac_signal"
1900 $as_echo "$as_me: exit $exit_status"
1901 } >&5
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904 exit $exit_status
1905 ' 0
1906 for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 done
1909 ac_signal=0
1910
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1913
1914 # Predefined preprocessor variables.
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 _ACEOF
1939
1940
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer an explicitly selected file to automatically selected ones.
1943 ac_site_file1=NONE
1944 ac_site_file2=NONE
1945 if test -n "$CONFIG_SITE"; then
1946 ac_site_file1=$CONFIG_SITE
1947 elif test "x$prefix" != xNONE; then
1948 ac_site_file1=$prefix/share/config.site
1949 ac_site_file2=$prefix/etc/config.site
1950 else
1951 ac_site_file1=$ac_default_prefix/share/config.site
1952 ac_site_file2=$ac_default_prefix/etc/config.site
1953 fi
1954 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955 do
1956 test "x$ac_site_file" = xNONE && continue
1957 if test -r "$ac_site_file"; then
1958 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1959 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1960 sed 's/^/| /' "$ac_site_file" >&5
1961 . "$ac_site_file"
1962 fi
1963 done
1964
1965 if test -r "$cache_file"; then
1966 # Some versions of bash will fail to source /dev/null (special
1967 # files actually), so we avoid doing that.
1968 if test -f "$cache_file"; then
1969 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1970 $as_echo "$as_me: loading cache $cache_file" >&6;}
1971 case $cache_file in
1972 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1973 *) . "./$cache_file";;
1974 esac
1975 fi
1976 else
1977 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1978 $as_echo "$as_me: creating cache $cache_file" >&6;}
1979 >$cache_file
1980 fi
1981
1982 # Check that the precious variables saved in the cache have kept the same
1983 # value.
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987 eval ac_new_set=\$ac_env_${ac_var}_set
1988 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989 eval ac_new_val=\$ac_env_${ac_var}_value
1990 case $ac_old_set,$ac_new_set in
1991 set,)
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1995 ,set)
1996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
1999 ,);;
2000 *)
2001 if test "x$ac_old_val" != "x$ac_new_val"; then
2002 # differences in whitespace do not lead to failure.
2003 ac_old_val_w=`echo x $ac_old_val`
2004 ac_new_val_w=`echo x $ac_new_val`
2005 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2006 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008 ac_cache_corrupted=:
2009 else
2010 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2011 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2012 eval $ac_var=\$ac_old_val
2013 fi
2014 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2015 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2016 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2017 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2018 fi;;
2019 esac
2020 # Pass precious variables to config.status.
2021 if test "$ac_new_set" = set; then
2022 case $ac_new_val in
2023 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 *) ac_arg=$ac_var=$ac_new_val ;;
2025 esac
2026 case " $ac_configure_args " in
2027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2028 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2029 esac
2030 fi
2031 done
2032 if $ac_cache_corrupted; then
2033 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039 { (exit 1); exit 1; }; }
2040 fi
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066 ac_ext=c
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071
2072
2073
2074
2075 # Save this value here, since automake will set cflags and cxxflags later
2076 cflags_set=${CFLAGS+set}
2077 cppflags_set=${CPPFLAGS+set}
2078
2079 SCIM_M17N_MAJOR_VERSION=0
2080 SCIM_M17N_MINOR_VERSION=2
2081 SCIM_M17N_MICRO_VERSION=3
2082
2083 SCIM_M17N_VERSION=$SCIM_M17N_MAJOR_VERSION.$SCIM_M17N_MINOR_VERSION.$SCIM_M17N_MICRO_VERSION
2084
2085
2086
2087
2088
2089
2090 # Init automake stuff
2091 am__api_version='1.10'
2092
2093 ac_aux_dir=
2094 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2095 if test -f "$ac_dir/install-sh"; then
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/install-sh -c"
2098 break
2099 elif test -f "$ac_dir/install.sh"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/install.sh -c"
2102 break
2103 elif test -f "$ac_dir/shtool"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/shtool install -c"
2106 break
2107 fi
2108 done
2109 if test -z "$ac_aux_dir"; then
2110 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2111 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122
2123
2124 # Find a good install program. We prefer a C program (faster),
2125 # so one script is as good as another. But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 # Reject install programs that cannot install multiple files.
2138 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2139 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2140 if test -z "$INSTALL"; then
2141 if test "${ac_cv_path_install+set}" = set; then
2142 $as_echo_n "(cached) " >&6
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 # Account for people who put trailing slashes in PATH elements.
2150 case $as_dir/ in
2151 ./ | .// | /cC/* | \
2152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2154 /usr/ucb/* ) ;;
2155 *)
2156 # OSF1 and SCO ODT 3.0 have their own names for install.
2157 # Don't use installbsd from OSF since it installs stuff as root
2158 # by default.
2159 for ac_prog in ginstall scoinst install; do
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162 if test $ac_prog = install &&
2163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164 # AIX install. It has an incompatible calling convention.
2165 :
2166 elif test $ac_prog = install &&
2167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # program-specific install script used by HP pwplus--don't use.
2169 :
2170 else
2171 rm -rf conftest.one conftest.two conftest.dir
2172 echo one > conftest.one
2173 echo two > conftest.two
2174 mkdir conftest.dir
2175 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176 test -s conftest.one && test -s conftest.two &&
2177 test -s conftest.dir/conftest.one &&
2178 test -s conftest.dir/conftest.two
2179 then
2180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 break 3
2182 fi
2183 fi
2184 fi
2185 done
2186 done
2187 ;;
2188 esac
2189
2190 done
2191 IFS=$as_save_IFS
2192
2193 rm -rf conftest.one conftest.two conftest.dir
2194
2195 fi
2196 if test "${ac_cv_path_install+set}" = set; then
2197 INSTALL=$ac_cv_path_install
2198 else
2199 # As a last resort, use the slow shell script. Don't cache a
2200 # value for INSTALL within a source directory, because that will
2201 # break other packages using the cache if that directory is
2202 # removed, or if the value is a relative name.
2203 INSTALL=$ac_install_sh
2204 fi
2205 fi
2206 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2207 $as_echo "$INSTALL" >&6; }
2208
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2218 $as_echo_n "checking whether build environment is sane... " >&6; }
2219 # Just in case
2220 sleep 1
2221 echo timestamp > conftest.file
2222 # Do `set' in a subshell so we don't clobber the current shell's
2223 # arguments. Must try -L first in case configure is actually a
2224 # symlink; some systems play weird games with the mod time of symlinks
2225 # (eg FreeBSD returns the mod time of the symlink's containing
2226 # directory).
2227 if (
2228 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2229 if test "$*" = "X"; then
2230 # -L didn't work.
2231 set X `ls -t $srcdir/configure conftest.file`
2232 fi
2233 rm -f conftest.file
2234 if test "$*" != "X $srcdir/configure conftest.file" \
2235 && test "$*" != "X conftest.file $srcdir/configure"; then
2236
2237 # If neither matched, then we have a broken ls. This can happen
2238 # if, for instance, CONFIG_SHELL is bash and it inherits a
2239 # broken ls alias from the environment. This has actually
2240 # happened. Such a system could not be considered "sane".
2241 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2242 alias in your environment" >&5
2243 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2244 alias in your environment" >&2;}
2245 { (exit 1); exit 1; }; }
2246 fi
2247
2248 test "$2" = conftest.file
2249 )
2250 then
2251 # Ok.
2252 :
2253 else
2254 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2255 Check your system clock" >&5
2256 $as_echo "$as_me: error: newly created file is older than distributed files!
2257 Check your system clock" >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260 { $as_echo "$as_me:$LINENO: result: yes" >&5
2261 $as_echo "yes" >&6; }
2262 test "$program_prefix" != NONE &&
2263 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264 # Use a double $ so make ignores it.
2265 test "$program_suffix" != NONE &&
2266 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267 # Double any \ or $.
2268 # By default was `s,x,x', remove it if useless.
2269 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2270 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2271
2272 # expand $ac_aux_dir to an absolute path
2273 am_aux_dir=`cd $ac_aux_dir && pwd`
2274
2275 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2276 # Use eval to expand $SHELL
2277 if eval "$MISSING --run true"; then
2278 am_missing_run="$MISSING --run "
2279 else
2280 am_missing_run=
2281 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2282 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2283 fi
2284
2285 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2286 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2287 if test -z "$MKDIR_P"; then
2288 if test "${ac_cv_path_mkdir+set}" = set; then
2289 $as_echo_n "(cached) " >&6
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2293 do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_prog in mkdir gmkdir; do
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2299 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2300 'mkdir (GNU coreutils) '* | \
2301 'mkdir (coreutils) '* | \
2302 'mkdir (fileutils) '4.1*)
2303 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2304 break 3;;
2305 esac
2306 done
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312
2313 if test "${ac_cv_path_mkdir+set}" = set; then
2314 MKDIR_P="$ac_cv_path_mkdir -p"
2315 else
2316 # As a last resort, use the slow shell script. Don't cache a
2317 # value for MKDIR_P within a source directory, because that will
2318 # break other packages using the cache if that directory is
2319 # removed, or if the value is a relative name.
2320 test -d ./--version && rmdir ./--version
2321 MKDIR_P="$ac_install_sh -d"
2322 fi
2323 fi
2324 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2325 $as_echo "$MKDIR_P" >&6; }
2326
2327 mkdir_p="$MKDIR_P"
2328 case $mkdir_p in
2329 [\\/$]* | ?:[\\/]*) ;;
2330 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2331 esac
2332
2333 for ac_prog in gawk mawk nawk awk
2334 do
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if test "${ac_cv_prog_AWK+set}" = set; then
2340 $as_echo_n "(cached) " >&6
2341 else
2342 if test -n "$AWK"; then
2343 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_AWK="$ac_prog"
2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 AWK=$ac_cv_prog_AWK
2363 if test -n "$AWK"; then
2364 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2365 $as_echo "$AWK" >&6; }
2366 else
2367 { $as_echo "$as_me:$LINENO: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372 test -n "$AWK" && break
2373 done
2374
2375 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2376 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2377 set x ${MAKE-make}
2378 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2379 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2380 $as_echo_n "(cached) " >&6
2381 else
2382 cat >conftest.make <<\_ACEOF
2383 SHELL = /bin/sh
2384 all:
2385 @echo '@@@%%%=$(MAKE)=@@@%%%'
2386 _ACEOF
2387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2388 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2389 *@@@%%%=?*=@@@%%%*)
2390 eval ac_cv_prog_make_${ac_make}_set=yes;;
2391 *)
2392 eval ac_cv_prog_make_${ac_make}_set=no;;
2393 esac
2394 rm -f conftest.make
2395 fi
2396 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2397 { $as_echo "$as_me:$LINENO: result: yes" >&5
2398 $as_echo "yes" >&6; }
2399 SET_MAKE=
2400 else
2401 { $as_echo "$as_me:$LINENO: result: no" >&5
2402 $as_echo "no" >&6; }
2403 SET_MAKE="MAKE=${MAKE-make}"
2404 fi
2405
2406 rm -rf .tst 2>/dev/null
2407 mkdir .tst 2>/dev/null
2408 if test -d .tst; then
2409 am__leading_dot=.
2410 else
2411 am__leading_dot=_
2412 fi
2413 rmdir .tst 2>/dev/null
2414
2415 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2416 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2417 # is not polluted with repeated "-I."
2418 am__isrc=' -I$(srcdir)'
2419 # test to see if srcdir already configured
2420 if test -f $srcdir/config.status; then
2421 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2422 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2423 { (exit 1); exit 1; }; }
2424 fi
2425 fi
2426
2427 # test whether we have cygpath
2428 if test -z "$CYGPATH_W"; then
2429 if (cygpath --version) >/dev/null 2>/dev/null; then
2430 CYGPATH_W='cygpath -w'
2431 else
2432 CYGPATH_W=echo
2433 fi
2434 fi
2435
2436
2437 # Define the identity of the package.
2438 PACKAGE='scim-m17n'
2439 VERSION='0.2.3'
2440
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE "$PACKAGE"
2444 _ACEOF
2445
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define VERSION "$VERSION"
2449 _ACEOF
2450
2451 # Some tools Automake needs.
2452
2453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2454
2455
2456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2457
2458
2459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2460
2461
2462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2463
2464
2465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2466
2467 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2468
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'. However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480 $as_echo_n "(cached) " >&6
2481 else
2482 if test -n "$STRIP"; then
2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2505 $as_echo "$STRIP" >&6; }
2506 else
2507 { $as_echo "$as_me:$LINENO: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_STRIP"; then
2514 ac_ct_STRIP=$STRIP
2515 # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$ac_ct_STRIP"; then
2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_STRIP="strip"
2533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 $as_echo "$ac_ct_STRIP" >&6; }
2546 else
2547 { $as_echo "$as_me:$LINENO: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551 if test "x$ac_ct_STRIP" = x; then
2552 STRIP=":"
2553 else
2554 case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560 STRIP=$ac_ct_STRIP
2561 fi
2562 else
2563 STRIP="$ac_cv_prog_STRIP"
2564 fi
2565
2566 fi
2567 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569 # We need awk for the "check" target. The system "awk" is bad on
2570 # some platforms.
2571 # Always define AMTAR for backward compatibility.
2572
2573 AMTAR=${AMTAR-"${am_missing_run}tar"}
2574
2575 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2576
2577
2578
2579
2580
2581 ac_config_headers="$ac_config_headers config.h"
2582
2583
2584 # Init libtool
2585
2586
2587 # Check whether --enable-shared was given.
2588 if test "${enable_shared+set}" = set; then
2589 enableval=$enable_shared; p=${PACKAGE-default}
2590 case $enableval in
2591 yes) enable_shared=yes ;;
2592 no) enable_shared=no ;;
2593 *)
2594 enable_shared=no
2595 # Look at the argument we got. We use all the common list separators.
2596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2597 for pkg in $enableval; do
2598 IFS="$lt_save_ifs"
2599 if test "X$pkg" = "X$p"; then
2600 enable_shared=yes
2601 fi
2602 done
2603 IFS="$lt_save_ifs"
2604 ;;
2605 esac
2606 else
2607 enable_shared=yes
2608 fi
2609
2610
2611 # Check whether --enable-static was given.
2612 if test "${enable_static+set}" = set; then
2613 enableval=$enable_static; p=${PACKAGE-default}
2614 case $enableval in
2615 yes) enable_static=yes ;;
2616 no) enable_static=no ;;
2617 *)
2618 enable_static=no
2619 # Look at the argument we got. We use all the common list separators.
2620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2621 for pkg in $enableval; do
2622 IFS="$lt_save_ifs"
2623 if test "X$pkg" = "X$p"; then
2624 enable_static=yes
2625 fi
2626 done
2627 IFS="$lt_save_ifs"
2628 ;;
2629 esac
2630 else
2631 enable_static=yes
2632 fi
2633
2634
2635 # Check whether --enable-fast-install was given.
2636 if test "${enable_fast_install+set}" = set; then
2637 enableval=$enable_fast_install; p=${PACKAGE-default}
2638 case $enableval in
2639 yes) enable_fast_install=yes ;;
2640 no) enable_fast_install=no ;;
2641 *)
2642 enable_fast_install=no
2643 # Look at the argument we got. We use all the common list separators.
2644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2645 for pkg in $enableval; do
2646 IFS="$lt_save_ifs"
2647 if test "X$pkg" = "X$p"; then
2648 enable_fast_install=yes
2649 fi
2650 done
2651 IFS="$lt_save_ifs"
2652 ;;
2653 esac
2654 else
2655 enable_fast_install=yes
2656 fi
2657
2658
2659 # Make sure we can run config.sub.
2660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2661 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2662 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2663 { (exit 1); exit 1; }; }
2664
2665 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2666 $as_echo_n "checking build system type... " >&6; }
2667 if test "${ac_cv_build+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2669 else
2670 ac_build_alias=$build_alias
2671 test "x$ac_build_alias" = x &&
2672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2673 test "x$ac_build_alias" = x &&
2674 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2675 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2676 { (exit 1); exit 1; }; }
2677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2678 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2679 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2680 { (exit 1); exit 1; }; }
2681
2682 fi
2683 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2684 $as_echo "$ac_cv_build" >&6; }
2685 case $ac_cv_build in
2686 *-*-*) ;;
2687 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2688 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2689 { (exit 1); exit 1; }; };;
2690 esac
2691 build=$ac_cv_build
2692 ac_save_IFS=$IFS; IFS='-'
2693 set x $ac_cv_build
2694 shift
2695 build_cpu=$1
2696 build_vendor=$2
2697 shift; shift
2698 # Remember, the first character of IFS is used to create $*,
2699 # except with old shells:
2700 build_os=$*
2701 IFS=$ac_save_IFS
2702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2703
2704
2705 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2706 $as_echo_n "checking host system type... " >&6; }
2707 if test "${ac_cv_host+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test "x$host_alias" = x; then
2711 ac_cv_host=$ac_cv_build
2712 else
2713 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2714 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2715 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2716 { (exit 1); exit 1; }; }
2717 fi
2718
2719 fi
2720 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2721 $as_echo "$ac_cv_host" >&6; }
2722 case $ac_cv_host in
2723 *-*-*) ;;
2724 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2725 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2726 { (exit 1); exit 1; }; };;
2727 esac
2728 host=$ac_cv_host
2729 ac_save_IFS=$IFS; IFS='-'
2730 set x $ac_cv_host
2731 shift
2732 host_cpu=$1
2733 host_vendor=$2
2734 shift; shift
2735 # Remember, the first character of IFS is used to create $*,
2736 # except with old shells:
2737 host_os=$*
2738 IFS=$ac_save_IFS
2739 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2740
2741
2742 DEPDIR="${am__leading_dot}deps"
2743
2744 ac_config_commands="$ac_config_commands depfiles"
2745
2746
2747 am_make=${MAKE-make}
2748 cat > confinc << 'END'
2749 am__doit:
2750 @echo done
2751 .PHONY: am__doit
2752 END
2753 # If we don't find an include directive, just comment out the code.
2754 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2756 am__include="#"
2757 am__quote=
2758 _am_result=none
2759 # First try GNU make style include.
2760 echo "include confinc" > confmf
2761 # We grep out `Entering directory' and `Leaving directory'
2762 # messages which can occur if `w' ends up in MAKEFLAGS.
2763 # In particular we don't look at `^make:' because GNU make might
2764 # be invoked under some other name (usually "gmake"), in which
2765 # case it prints its new name instead of `make'.
2766 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2767 am__include=include
2768 am__quote=
2769 _am_result=GNU
2770 fi
2771 # Now try BSD make style include.
2772 if test "$am__include" = "#"; then
2773 echo '.include "confinc"' > confmf
2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775 am__include=.include
2776 am__quote="\""
2777 _am_result=BSD
2778 fi
2779 fi
2780
2781
2782 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2783 $as_echo "$_am_result" >&6; }
2784 rm -f confinc confmf
2785
2786 # Check whether --enable-dependency-tracking was given.
2787 if test "${enable_dependency_tracking+set}" = set; then
2788 enableval=$enable_dependency_tracking;
2789 fi
2790
2791 if test "x$enable_dependency_tracking" != xno; then
2792 am_depcomp="$ac_aux_dir/depcomp"
2793 AMDEPBACKSLASH='\'
2794 fi
2795 if test "x$enable_dependency_tracking" != xno; then
2796 AMDEP_TRUE=
2797 AMDEP_FALSE='#'
2798 else
2799 AMDEP_TRUE='#'
2800 AMDEP_FALSE=
2801 fi
2802
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2840 $as_echo "$CC" >&6; }
2841 else
2842 { $as_echo "$as_me:$LINENO: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849 ac_ct_CC=$CC
2850 # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_CC="gcc"
2868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882 { $as_echo "$as_me:$LINENO: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886 if test "x$ac_ct_CC" = x; then
2887 CC=""
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895 CC=$ac_ct_CC
2896 fi
2897 else
2898 CC="$ac_cv_prog_CC"
2899 fi
2900
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}cc; ac_word=$2
2905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_CC+set}" = set; then
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="${ac_tool_prefix}cc"
2921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:$LINENO: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 fi
2942 if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944 set dummy cc; ac_word=$2
2945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_CC+set}" = set; then
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 ac_prog_rejected=no
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962 ac_prog_rejected=yes
2963 continue
2964 fi
2965 ac_cv_prog_CC="cc"
2966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 if test $ac_prog_rejected = yes; then
2974 # We found a bogon in the path, so make sure we never use it.
2975 set dummy $ac_cv_prog_CC
2976 shift
2977 if test $# != 0; then
2978 # We chose a different compiler from the bogus one.
2979 # However, it has the same basename, so the bogon will be chosen
2980 # first if we set CC to just the basename; use the full file name.
2981 shift
2982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2983 fi
2984 fi
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:$LINENO: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 for ac_prog in cl.exe
3001 do
3002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034 { $as_echo "$as_me:$LINENO: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 test -n "$CC" && break
3040 done
3041 fi
3042 if test -z "$CC"; then
3043 ac_ct_CC=$CC
3044 for ac_prog in cl.exe
3045 do
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047 set dummy $ac_prog; ac_word=$2
3048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$ac_ct_CC"; then
3054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_ac_ct_CC="$ac_prog"
3064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074 if test -n "$ac_ct_CC"; then
3075 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3076 $as_echo "$ac_ct_CC" >&6; }
3077 else
3078 { $as_echo "$as_me:$LINENO: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 test -n "$ac_ct_CC" && break
3084 done
3085
3086 if test "x$ac_ct_CC" = x; then
3087 CC=""
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 CC=$ac_ct_CC
3096 fi
3097 fi
3098
3099 fi
3100
3101
3102 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3105 See \`config.log' for more details." >&5
3106 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }; }
3109
3110 # Provide some information about the compiler.
3111 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3112 set X $ac_compile
3113 ac_compiler=$2
3114 { (ac_try="$ac_compiler --version >&5"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120 $as_echo "$ac_try_echo") >&5
3121 (eval "$ac_compiler --version >&5") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }
3125 { (ac_try="$ac_compiler -v >&5"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131 $as_echo "$ac_try_echo") >&5
3132 (eval "$ac_compiler -v >&5") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }
3136 { (ac_try="$ac_compiler -V >&5"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142 $as_echo "$ac_try_echo") >&5
3143 (eval "$ac_compiler -V >&5") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }
3147
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 ac_clean_files_save=$ac_clean_files
3164 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3165 # Try to create an executable without -o first, disregard a.out.
3166 # It will help us diagnose broken compilers, and finding out an intuition
3167 # of exeext.
3168 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3169 $as_echo_n "checking for C compiler default output file name... " >&6; }
3170 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3171
3172 # The possible output files:
3173 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3174
3175 ac_rmfiles=
3176 for ac_file in $ac_files
3177 do
3178 case $ac_file in
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181 esac
3182 done
3183 rm -f $ac_rmfiles
3184
3185 if { (ac_try="$ac_link_default"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3191 $as_echo "$ac_try_echo") >&5
3192 (eval "$ac_link_default") 2>&5
3193 ac_status=$?
3194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; then
3196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3199 # so that the user can short-circuit this test for compilers unknown to
3200 # Autoconf.
3201 for ac_file in $ac_files ''
3202 do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3206 ;;
3207 [ab].out )
3208 # We found the default executable, but exeext='' is most
3209 # certainly right.
3210 break;;
3211 *.* )
3212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3213 then :; else
3214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 fi
3216 # We set ac_cv_exeext here because the later test for it is not
3217 # safe: cross compilers may not add the suffix if given an `-o'
3218 # argument, so we may need to know it at that point already.
3219 # Even if this section looks crufty: it has the advantage of
3220 # actually working.
3221 break;;
3222 * )
3223 break;;
3224 esac
3225 done
3226 test "$ac_cv_exeext" = no && ac_cv_exeext=
3227
3228 else
3229 ac_file=''
3230 fi
3231
3232 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3233 $as_echo "$ac_file" >&6; }
3234 if test -z "$ac_file"; then
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3241 See \`config.log' for more details." >&5
3242 $as_echo "$as_me: error: C compiler cannot create executables
3243 See \`config.log' for more details." >&2;}
3244 { (exit 77); exit 77; }; }; }
3245 fi
3246
3247 ac_exeext=$ac_cv_exeext
3248
3249 # Check that the compiler produces executables we can run. If not, either
3250 # the compiler is broken, or we cross compile.
3251 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3252 $as_echo_n "checking whether the C compiler works... " >&6; }
3253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3254 # If not cross compiling, check that we can run a simple program.
3255 if test "$cross_compiling" != yes; then
3256 if { ac_try='./$ac_file'
3257 { (case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_try") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3267 cross_compiling=no
3268 else
3269 if test "$cross_compiling" = maybe; then
3270 cross_compiling=yes
3271 else
3272 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details." >&5
3277 $as_echo "$as_me: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }; }
3281 fi
3282 fi
3283 fi
3284 { $as_echo "$as_me:$LINENO: result: yes" >&5
3285 $as_echo "yes" >&6; }
3286
3287 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run. If not, either
3290 # the compiler is broken, or we cross compile.
3291 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3292 $as_echo_n "checking whether we are cross compiling... " >&6; }
3293 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3294 $as_echo "$cross_compiling" >&6; }
3295
3296 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3297 $as_echo_n "checking for suffix of executables... " >&6; }
3298 if { (ac_try="$ac_link"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_link") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; then
3309 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3310 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3311 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 # `rm'.
3313 for ac_file in conftest.exe conftest conftest.*; do
3314 test -f "$ac_file" || continue
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 break;;
3319 * ) break;;
3320 esac
3321 done
3322 else
3323 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }; }
3330 fi
3331
3332 rm -f conftest$ac_cv_exeext
3333 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3334 $as_echo "$ac_cv_exeext" >&6; }
3335
3336 rm -f conftest.$ac_ext
3337 EXEEXT=$ac_cv_exeext
3338 ac_exeext=$EXEEXT
3339 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3340 $as_echo_n "checking for suffix of object files... " >&6; }
3341 if test "${ac_cv_objext+set}" = set; then
3342 $as_echo_n "(cached) " >&6
3343 else
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.o conftest.obj
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compile") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; then
3371 for ac_file in conftest.o conftest.obj conftest.*; do
3372 test -f "$ac_file" || continue;
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3375 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3376 break;;
3377 esac
3378 done
3379 else
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3386 See \`config.log' for more details." >&5
3387 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3388 See \`config.log' for more details." >&2;}
3389 { (exit 1); exit 1; }; }; }
3390 fi
3391
3392 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 fi
3394 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3395 $as_echo "$ac_cv_objext" >&6; }
3396 OBJEXT=$ac_cv_objext
3397 ac_objext=$OBJEXT
3398 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3399 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3400 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3401 $as_echo_n "(cached) " >&6
3402 else
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414 choke me
3415 #endif
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3439 ac_compiler_gnu=yes
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 ac_compiler_gnu=no
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3452 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3453 if test $ac_compiler_gnu = yes; then
3454 GCC=yes
3455 else
3456 GCC=
3457 fi
3458 ac_test_CFLAGS=${CFLAGS+set}
3459 ac_save_CFLAGS=$CFLAGS
3460 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3462 if test "${ac_cv_prog_cc_g+set}" = set; then
3463 $as_echo_n "(cached) " >&6
3464 else
3465 ac_save_c_werror_flag=$ac_c_werror_flag
3466 ac_c_werror_flag=yes
3467 ac_cv_prog_cc_g=no
3468 CFLAGS="-g"
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492 (eval "$ac_compile") 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && {
3499 test -z "$ac_c_werror_flag" ||
3500 test ! -s conftest.err
3501 } && test -s conftest.$ac_objext; then
3502 ac_cv_prog_cc_g=yes
3503 else
3504 $as_echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 CFLAGS=""
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530 $as_echo "$ac_try_echo") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest.$ac_objext; then
3541 :
3542 else
3543 $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3547 CFLAGS="-g"
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3570 $as_echo "$ac_try_echo") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_cv_prog_cc_g=yes
3582 else
3583 $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 fi
3598 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599 $as_echo "$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3604 CFLAGS="-g -O2"
3605 else
3606 CFLAGS="-g"
3607 fi
3608 else
3609 if test "$GCC" = yes; then
3610 CFLAGS="-O2"
3611 else
3612 CFLAGS=
3613 fi
3614 fi
3615 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617 if test "${ac_cv_prog_cc_c89+set}" = set; then
3618 $as_echo_n "(cached) " >&6
3619 else
3620 ac_cv_prog_cc_c89=no
3621 ac_save_CC=$CC
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h. */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 #include <stdarg.h>
3629 #include <stdio.h>
3630 #include <sys/types.h>
3631 #include <sys/stat.h>
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636 char **p;
3637 int i;
3638 {
3639 return p[i];
3640 }
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3642 {
3643 char *s;
3644 va_list v;
3645 va_start (v,p);
3646 s = g (p, va_arg (v,int));
3647 va_end (v);
3648 return s;
3649 }
3650
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std. */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661 inside strings and character constants. */
3662 #define FOO(x) 'x'
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 int argc;
3670 char **argv;
3671 int
3672 main ()
3673 {
3674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 do
3682 CC="$ac_save_CC $ac_arg"
3683 rm -f conftest.$ac_objext
3684 if { (ac_try="$ac_compile"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3690 $as_echo "$ac_try_echo") >&5
3691 (eval "$ac_compile") 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } && {
3698 test -z "$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3700 } && test -s conftest.$ac_objext; then
3701 ac_cv_prog_cc_c89=$ac_arg
3702 else
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706
3707 fi
3708
3709 rm -f core conftest.err conftest.$ac_objext
3710 test "x$ac_cv_prog_cc_c89" != "xno" && break
3711 done
3712 rm -f conftest.$ac_ext
3713 CC=$ac_save_CC
3714
3715 fi
3716 # AC_CACHE_VAL
3717 case "x$ac_cv_prog_cc_c89" in
3718 x)
3719 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3720 $as_echo "none needed" >&6; } ;;
3721 xno)
3722 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3723 $as_echo "unsupported" >&6; } ;;
3724 *)
3725 CC="$CC $ac_cv_prog_cc_c89"
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3728 esac
3729
3730
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737 depcc="$CC" am_compiler_list=
3738
3739 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3740 $as_echo_n "checking dependency style of $depcc... " >&6; }
3741 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3742 $as_echo_n "(cached) " >&6
3743 else
3744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3745 # We make a subdir and do the tests there. Otherwise we can end up
3746 # making bogus files that we don't know about and never remove. For
3747 # instance it was reported that on HP-UX the gcc test will end up
3748 # making a dummy file named `D' -- because `-MD' means `put the output
3749 # in D'.
3750 mkdir conftest.dir
3751 # Copy depcomp to subdir because otherwise we won't find it if we're
3752 # using a relative directory.
3753 cp "$am_depcomp" conftest.dir
3754 cd conftest.dir
3755 # We will build objects and dependencies in a subdirectory because
3756 # it helps to detect inapplicable dependency modes. For instance
3757 # both Tru64's cc and ICC support -MD to output dependencies as a
3758 # side effect of compilation, but ICC will put the dependencies in
3759 # the current directory while Tru64 will put them in the object
3760 # directory.
3761 mkdir sub
3762
3763 am_cv_CC_dependencies_compiler_type=none
3764 if test "$am_compiler_list" = ""; then
3765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766 fi
3767 for depmode in $am_compiler_list; do
3768 # Setup a source with many dependencies, because some compilers
3769 # like to wrap large dependency lists on column 80 (with \), and
3770 # we should not choose a depcomp mode which is confused by this.
3771 #
3772 # We need to recreate these files for each test, as the compiler may
3773 # overwrite some of them when testing with obscure command lines.
3774 # This happens at least with the AIX C compiler.
3775 : > sub/conftest.c
3776 for i in 1 2 3 4 5 6; do
3777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3778 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3779 # Solaris 8's {/usr,}/bin/sh.
3780 touch sub/conftst$i.h
3781 done
3782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3783
3784 case $depmode in
3785 nosideeffect)
3786 # after this tag, mechanisms are not by side-effect, so they'll
3787 # only be used when explicitly requested
3788 if test "x$enable_dependency_tracking" = xyes; then
3789 continue
3790 else
3791 break
3792 fi
3793 ;;
3794 none) break ;;
3795 esac
3796 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3797 # mode. It turns out that the SunPro C++ compiler does not properly
3798 # handle `-M -o', and we need to detect this.
3799 if depmode=$depmode \
3800 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3801 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3802 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3803 >/dev/null 2>conftest.err &&
3804 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3805 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3806 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3807 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3808 # icc doesn't choke on unknown options, it will just issue warnings
3809 # or remarks (even with -Werror). So we grep stderr for any message
3810 # that says an option was ignored or not supported.
3811 # When given -MP, icc 7.0 and 7.1 complain thusly:
3812 # icc: Command line warning: ignoring option '-M'; no argument required
3813 # The diagnosis changed in icc 8.0:
3814 # icc: Command line remark: option '-MP' not supported
3815 if (grep 'ignoring option' conftest.err ||
3816 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3817 am_cv_CC_dependencies_compiler_type=$depmode
3818 break
3819 fi
3820 fi
3821 done
3822
3823 cd ..
3824 rm -rf conftest.dir
3825 else
3826 am_cv_CC_dependencies_compiler_type=none
3827 fi
3828
3829 fi
3830 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3831 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3832 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3833
3834 if
3835 test "x$enable_dependency_tracking" != xno \
3836 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3837 am__fastdepCC_TRUE=
3838 am__fastdepCC_FALSE='#'
3839 else
3840 am__fastdepCC_TRUE='#'
3841 am__fastdepCC_FALSE=
3842 fi
3843
3844
3845 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3846 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3847 if test "${lt_cv_path_SED+set}" = set; then
3848 $as_echo_n "(cached) " >&6
3849 else
3850 # Loop through the user's path and test for sed and gsed.
3851 # Then use that list of sed's as ones to test for truncation.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for lt_ac_prog in sed gsed; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3860 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3861 fi
3862 done
3863 done
3864 done
3865 IFS=$as_save_IFS
3866 lt_ac_max=0
3867 lt_ac_count=0
3868 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3869 # along with /bin/sed that truncates output.
3870 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3871 test ! -f $lt_ac_sed && continue
3872 cat /dev/null > conftest.in
3873 lt_ac_count=0
3874 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3875 # Check for GNU sed and select it if it is found.
3876 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3877 lt_cv_path_SED=$lt_ac_sed
3878 break
3879 fi
3880 while true; do
3881 cat conftest.in conftest.in >conftest.tmp
3882 mv conftest.tmp conftest.in
3883 cp conftest.in conftest.nl
3884 echo >>conftest.nl
3885 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3886 cmp -s conftest.out conftest.nl || break
3887 # 10000 chars as input seems more than enough
3888 test $lt_ac_count -gt 10 && break
3889 lt_ac_count=`expr $lt_ac_count + 1`
3890 if test $lt_ac_count -gt $lt_ac_max; then
3891 lt_ac_max=$lt_ac_count
3892 lt_cv_path_SED=$lt_ac_sed
3893 fi
3894 done
3895 done
3896
3897 fi
3898
3899 SED=$lt_cv_path_SED
3900
3901 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3902 $as_echo "$SED" >&6; }
3903
3904 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3905 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3906 if test "${ac_cv_path_GREP+set}" = set; then
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -z "$GREP"; then
3910 ac_path_GREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in grep ggrep; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3921 # Check for GNU ac_path_GREP and select it if it is found.
3922 # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3924 *GNU*)
3925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3926 *)
3927 ac_count=0
3928 $as_echo_n 0123456789 >"conftest.in"
3929 while :
3930 do
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 $as_echo 'GREP' >> "conftest.nl"
3935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 ac_count=`expr $ac_count + 1`
3938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_GREP="$ac_path_GREP"
3941 ac_path_GREP_max=$ac_count
3942 fi
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3945 done
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 esac
3948
3949 $ac_path_GREP_found && break 3
3950 done
3951 done
3952 done
3953 IFS=$as_save_IFS
3954 if test -z "$ac_cv_path_GREP"; then
3955 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957 { (exit 1); exit 1; }; }
3958 fi
3959 else
3960 ac_cv_path_GREP=$GREP
3961 fi
3962
3963 fi
3964 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3965 $as_echo "$ac_cv_path_GREP" >&6; }
3966 GREP="$ac_cv_path_GREP"
3967
3968
3969 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3970 $as_echo_n "checking for egrep... " >&6; }
3971 if test "${ac_cv_path_EGREP+set}" = set; then
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3975 then ac_cv_path_EGREP="$GREP -E"
3976 else
3977 if test -z "$EGREP"; then
3978 ac_path_EGREP_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in egrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3989 # Check for GNU ac_path_EGREP and select it if it is found.
3990 # Check for GNU $ac_path_EGREP
3991 case `"$ac_path_EGREP" --version 2>&1` in
3992 *GNU*)
3993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3994 *)
3995 ac_count=0
3996 $as_echo_n 0123456789 >"conftest.in"
3997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo 'EGREP' >> "conftest.nl"
4003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 ac_count=`expr $ac_count + 1`
4006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_EGREP="$ac_path_EGREP"
4009 ac_path_EGREP_max=$ac_count
4010 fi
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 esac
4016
4017 $ac_path_EGREP_found && break 3
4018 done
4019 done
4020 done
4021 IFS=$as_save_IFS
4022 if test -z "$ac_cv_path_EGREP"; then
4023 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4026 fi
4027 else
4028 ac_cv_path_EGREP=$EGREP
4029 fi
4030
4031 fi
4032 fi
4033 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4034 $as_echo "$ac_cv_path_EGREP" >&6; }
4035 EGREP="$ac_cv_path_EGREP"
4036
4037
4038
4039 # Check whether --with-gnu-ld was given.
4040 if test "${with_gnu_ld+set}" = set; then
4041 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4042 else
4043 with_gnu_ld=no
4044 fi
4045
4046 ac_prog=ld
4047 if test "$GCC" = yes; then
4048 # Check if gcc -print-prog-name=ld gives a path.
4049 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4050 $as_echo_n "checking for ld used by $CC... " >&6; }
4051 case $host in
4052 *-*-mingw*)
4053 # gcc leaves a trailing carriage return which upsets mingw
4054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4055 *)
4056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4057 esac
4058 case $ac_prog in
4059 # Accept absolute paths.
4060 [\\/]* | ?:[\\/]*)
4061 re_direlt='/[^/][^/]*/\.\./'
4062 # Canonicalize the pathname of ld
4063 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4064 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4065 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4066 done
4067 test -z "$LD" && LD="$ac_prog"
4068 ;;
4069 "")
4070 # If it fails, then pretend we aren't using GCC.
4071 ac_prog=ld
4072 ;;
4073 *)
4074 # If it is relative, then search for the first ld in PATH.
4075 with_gnu_ld=unknown
4076 ;;
4077 esac
4078 elif test "$with_gnu_ld" = yes; then
4079 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4080 $as_echo_n "checking for GNU ld... " >&6; }
4081 else
4082 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4083 $as_echo_n "checking for non-GNU ld... " >&6; }
4084 fi
4085 if test "${lt_cv_path_LD+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -z "$LD"; then
4089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4090 for ac_dir in $PATH; do
4091 IFS="$lt_save_ifs"
4092 test -z "$ac_dir" && ac_dir=.
4093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4094 lt_cv_path_LD="$ac_dir/$ac_prog"
4095 # Check to see if the program is GNU ld. I'd rather use --version,
4096 # but apparently some variants of GNU ld only accept -v.
4097 # Break only if it was the GNU/non-GNU ld that we prefer.
4098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4099 *GNU* | *'with BFD'*)
4100 test "$with_gnu_ld" != no && break
4101 ;;
4102 *)
4103 test "$with_gnu_ld" != yes && break
4104 ;;
4105 esac
4106 fi
4107 done
4108 IFS="$lt_save_ifs"
4109 else
4110 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4111 fi
4112 fi
4113
4114 LD="$lt_cv_path_LD"
4115 if test -n "$LD"; then
4116 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4117 $as_echo "$LD" >&6; }
4118 else
4119 { $as_echo "$as_me:$LINENO: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4123 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4124 { (exit 1); exit 1; }; }
4125 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4127 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4128 $as_echo_n "(cached) " >&6
4129 else
4130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4131 case `$LD -v 2>&1 </dev/null` in
4132 *GNU* | *'with BFD'*)
4133 lt_cv_prog_gnu_ld=yes
4134 ;;
4135 *)
4136 lt_cv_prog_gnu_ld=no
4137 ;;
4138 esac
4139 fi
4140 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4142 with_gnu_ld=$lt_cv_prog_gnu_ld
4143
4144
4145 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4146 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4147 if test "${lt_cv_ld_reload_flag+set}" = set; then
4148 $as_echo_n "(cached) " >&6
4149 else
4150 lt_cv_ld_reload_flag='-r'
4151 fi
4152 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4153 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4154 reload_flag=$lt_cv_ld_reload_flag
4155 case $reload_flag in
4156 "" | " "*) ;;
4157 *) reload_flag=" $reload_flag" ;;
4158 esac
4159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4160 case $host_os in
4161 darwin*)
4162 if test "$GCC" = yes; then
4163 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4164 else
4165 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4166 fi
4167 ;;
4168 esac
4169
4170 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4171 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4172 if test "${lt_cv_path_NM+set}" = set; then
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$NM"; then
4176 # Let the user override the test.
4177 lt_cv_path_NM="$NM"
4178 else
4179 lt_nm_to_check="${ac_tool_prefix}nm"
4180 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4181 lt_nm_to_check="$lt_nm_to_check nm"
4182 fi
4183 for lt_tmp_nm in $lt_nm_to_check; do
4184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4185 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4186 IFS="$lt_save_ifs"
4187 test -z "$ac_dir" && ac_dir=.
4188 tmp_nm="$ac_dir/$lt_tmp_nm"
4189 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4190 # Check to see if the nm accepts a BSD-compat flag.
4191 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4192 # nm: unknown option "B" ignored
4193 # Tru64's nm complains that /dev/null is an invalid object file
4194 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4195 */dev/null* | *'Invalid file or object type'*)
4196 lt_cv_path_NM="$tmp_nm -B"
4197 break
4198 ;;
4199 *)
4200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4201 */dev/null*)
4202 lt_cv_path_NM="$tmp_nm -p"
4203 break
4204 ;;
4205 *)
4206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4207 continue # so that we can try to find one that supports BSD flags
4208 ;;
4209 esac
4210 ;;
4211 esac
4212 fi
4213 done
4214 IFS="$lt_save_ifs"
4215 done
4216 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4217 fi
4218 fi
4219 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4220 $as_echo "$lt_cv_path_NM" >&6; }
4221 NM="$lt_cv_path_NM"
4222
4223 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4224 $as_echo_n "checking whether ln -s works... " >&6; }
4225 LN_S=$as_ln_s
4226 if test "$LN_S" = "ln -s"; then
4227 { $as_echo "$as_me:$LINENO: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229 else
4230 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4231 $as_echo "no, using $LN_S" >&6; }
4232 fi
4233
4234 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4235 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4236 if test "${lt_cv_deplibs_check_method+set}" = set; then
4237 $as_echo_n "(cached) " >&6
4238 else
4239 lt_cv_file_magic_cmd='$MAGIC_CMD'
4240 lt_cv_file_magic_test_file=
4241 lt_cv_deplibs_check_method='unknown'
4242 # Need to set the preceding variable on all platforms that support
4243 # interlibrary dependencies.
4244 # 'none' -- dependencies not supported.
4245 # `unknown' -- same as none, but documents that we really don't know.
4246 # 'pass_all' -- all dependencies passed with no checks.
4247 # 'test_compile' -- check by making test program.
4248 # 'file_magic [[regex]]' -- check by looking for files in library path
4249 # which responds to the $file_magic_cmd with a given extended regex.
4250 # If you have `file' or equivalent on your system and you're not sure
4251 # whether `pass_all' will *always* work, you probably want this one.
4252
4253 case $host_os in
4254 aix[4-9]*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
4258 beos*)
4259 lt_cv_deplibs_check_method=pass_all
4260 ;;
4261
4262 bsdi[45]*)
4263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4264 lt_cv_file_magic_cmd='/usr/bin/file -L'
4265 lt_cv_file_magic_test_file=/shlib/libc.so
4266 ;;
4267
4268 cygwin*)
4269 # func_win32_libid is a shell function defined in ltmain.sh
4270 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4271 lt_cv_file_magic_cmd='func_win32_libid'
4272 ;;
4273
4274 mingw* | pw32*)
4275 # Base MSYS/MinGW do not provide the 'file' command needed by
4276 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4277 # unless we find 'file', for example because we are cross-compiling.
4278 if ( file / ) >/dev/null 2>&1; then
4279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4280 lt_cv_file_magic_cmd='func_win32_libid'
4281 else
4282 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4283 lt_cv_file_magic_cmd='$OBJDUMP -f'
4284 fi
4285 ;;
4286
4287 darwin* | rhapsody*)
4288 lt_cv_deplibs_check_method=pass_all
4289 ;;
4290
4291 freebsd* | dragonfly*)
4292 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4293 case $host_cpu in
4294 i*86 )
4295 # Not sure whether the presence of OpenBSD here was a mistake.
4296 # Let's accept both of them until this is cleared up.
4297 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4298 lt_cv_file_magic_cmd=/usr/bin/file
4299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4300 ;;
4301 esac
4302 else
4303 lt_cv_deplibs_check_method=pass_all
4304 fi
4305 ;;
4306
4307 gnu*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311 hpux10.20* | hpux11*)
4312 lt_cv_file_magic_cmd=/usr/bin/file
4313 case $host_cpu in
4314 ia64*)
4315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4317 ;;
4318 hppa*64*)
4319 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]'
4320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4321 ;;
4322 *)
4323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4324 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4325 ;;
4326 esac
4327 ;;
4328
4329 interix[3-9]*)
4330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4332 ;;
4333
4334 irix5* | irix6* | nonstopux*)
4335 case $LD in
4336 *-32|*"-32 ") libmagic=32-bit;;
4337 *-n32|*"-n32 ") libmagic=N32;;
4338 *-64|*"-64 ") libmagic=64-bit;;
4339 *) libmagic=never-match;;
4340 esac
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344 # This must be Linux ELF.
4345 linux* | k*bsd*-gnu)
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348
4349 netbsd*)
4350 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4352 else
4353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4354 fi
4355 ;;
4356
4357 newos6*)
4358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4359 lt_cv_file_magic_cmd=/usr/bin/file
4360 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4361 ;;
4362
4363 nto-qnx*)
4364 lt_cv_deplibs_check_method=unknown
4365 ;;
4366
4367 openbsd*)
4368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4370 else
4371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4372 fi
4373 ;;
4374
4375 osf3* | osf4* | osf5*)
4376 lt_cv_deplibs_check_method=pass_all
4377 ;;
4378
4379 rdos*)
4380 lt_cv_deplibs_check_method=pass_all
4381 ;;
4382
4383 solaris*)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386
4387 sysv4 | sysv4.3*)
4388 case $host_vendor in
4389 motorola)
4390 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]'
4391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4392 ;;
4393 ncr)
4394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396 sequent)
4397 lt_cv_file_magic_cmd='/bin/file'
4398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4399 ;;
4400 sni)
4401 lt_cv_file_magic_cmd='/bin/file'
4402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4403 lt_cv_file_magic_test_file=/lib/libc.so
4404 ;;
4405 siemens)
4406 lt_cv_deplibs_check_method=pass_all
4407 ;;
4408 pc)
4409 lt_cv_deplibs_check_method=pass_all
4410 ;;
4411 esac
4412 ;;
4413
4414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4415 lt_cv_deplibs_check_method=pass_all
4416 ;;
4417 esac
4418
4419 fi
4420 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4421 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4422 file_magic_cmd=$lt_cv_file_magic_cmd
4423 deplibs_check_method=$lt_cv_deplibs_check_method
4424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4425
4426
4427
4428
4429 # If no C compiler was specified, use CC.
4430 LTCC=${LTCC-"$CC"}
4431
4432 # If no C compiler flags were specified, use CFLAGS.
4433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4434
4435 # Allow CC to be a program name with arguments.
4436 compiler=$CC
4437
4438
4439 # Check whether --enable-libtool-lock was given.
4440 if test "${enable_libtool_lock+set}" = set; then
4441 enableval=$enable_libtool_lock;
4442 fi
4443
4444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4445
4446 # Some flags need to be propagated to the compiler or linker for good
4447 # libtool support.
4448 case $host in
4449 ia64-*-hpux*)
4450 # Find out which ABI we are using.
4451 echo 'int i;' > conftest.$ac_ext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4454 ac_status=$?
4455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; then
4457 case `/usr/bin/file conftest.$ac_objext` in
4458 *ELF-32*)
4459 HPUX_IA64_MODE="32"
4460 ;;
4461 *ELF-64*)
4462 HPUX_IA64_MODE="64"
4463 ;;
4464 esac
4465 fi
4466 rm -rf conftest*
4467 ;;
4468 *-*-irix6*)
4469 # Find out which ABI we are using.
4470 echo '#line 4470 "configure"' > conftest.$ac_ext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4473 ac_status=$?
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; then
4476 if test "$lt_cv_prog_gnu_ld" = yes; then
4477 case `/usr/bin/file conftest.$ac_objext` in
4478 *32-bit*)
4479 LD="${LD-ld} -melf32bsmip"
4480 ;;
4481 *N32*)
4482 LD="${LD-ld} -melf32bmipn32"
4483 ;;
4484 *64-bit*)
4485 LD="${LD-ld} -melf64bmip"
4486 ;;
4487 esac
4488 else
4489 case `/usr/bin/file conftest.$ac_objext` in
4490 *32-bit*)
4491 LD="${LD-ld} -32"
4492 ;;
4493 *N32*)
4494 LD="${LD-ld} -n32"
4495 ;;
4496 *64-bit*)
4497 LD="${LD-ld} -64"
4498 ;;
4499 esac
4500 fi
4501 fi
4502 rm -rf conftest*
4503 ;;
4504
4505 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4506 s390*-*linux*|sparc*-*linux*)
4507 # Find out which ABI we are using.
4508 echo 'int i;' > conftest.$ac_ext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; then
4514 case `/usr/bin/file conftest.o` in
4515 *32-bit*)
4516 case $host in
4517 x86_64-*kfreebsd*-gnu)
4518 LD="${LD-ld} -m elf_i386_fbsd"
4519 ;;
4520 x86_64-*linux*)
4521 LD="${LD-ld} -m elf_i386"
4522 ;;
4523 ppc64-*linux*|powerpc64-*linux*)
4524 LD="${LD-ld} -m elf32ppclinux"
4525 ;;
4526 s390x-*linux*)
4527 LD="${LD-ld} -m elf_s390"
4528 ;;
4529 sparc64-*linux*)
4530 LD="${LD-ld} -m elf32_sparc"
4531 ;;
4532 esac
4533 ;;
4534 *64-bit*)
4535 libsuff=64
4536 case $host in
4537 x86_64-*kfreebsd*-gnu)
4538 LD="${LD-ld} -m elf_x86_64_fbsd"
4539 ;;
4540 x86_64-*linux*)
4541 LD="${LD-ld} -m elf_x86_64"
4542 ;;
4543 ppc*-*linux*|powerpc*-*linux*)
4544 LD="${LD-ld} -m elf64ppc"
4545 ;;
4546 s390*-*linux*)
4547 LD="${LD-ld} -m elf64_s390"
4548 ;;
4549 sparc*-*linux*)
4550 LD="${LD-ld} -m elf64_sparc"
4551 ;;
4552 esac
4553 ;;
4554 esac
4555 fi
4556 rm -rf conftest*
4557 ;;
4558
4559 *-*-sco3.2v5*)
4560 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4561 SAVE_CFLAGS="$CFLAGS"
4562 CFLAGS="$CFLAGS -belf"
4563 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4564 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4565 if test "${lt_cv_cc_needs_belf+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4567 else
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580
4581 int
4582 main ()
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext conftest$ac_exeext
4590 if { (ac_try="$ac_link"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4596 $as_echo "$ac_try_echo") >&5
4597 (eval "$ac_link") 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } && {
4604 test -z "$ac_c_werror_flag" ||
4605 test ! -s conftest.err
4606 } && test -s conftest$ac_exeext && {
4607 test "$cross_compiling" = yes ||
4608 $as_test_x conftest$ac_exeext
4609 }; then
4610 lt_cv_cc_needs_belf=yes
4611 else
4612 $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 lt_cv_cc_needs_belf=no
4616 fi
4617
4618 rm -rf conftest.dSYM
4619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4620 conftest$ac_exeext conftest.$ac_ext
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626
4627 fi
4628 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4629 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4630 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4632 CFLAGS="$SAVE_CFLAGS"
4633 fi
4634 ;;
4635 sparc*-*solaris*)
4636 # Find out which ABI we are using.
4637 echo 'int i;' > conftest.$ac_ext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; then
4643 case `/usr/bin/file conftest.o` in
4644 *64-bit*)
4645 case $lt_cv_prog_gnu_ld in
4646 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4647 *)
4648 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4649 LD="${LD-ld} -64"
4650 fi
4651 ;;
4652 esac
4653 ;;
4654 esac
4655 fi
4656 rm -rf conftest*
4657 ;;
4658
4659
4660 esac
4661
4662 need_locks="$enable_libtool_lock"
4663
4664
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4671 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4672 # On Suns, sometimes $CPP names a directory.
4673 if test -n "$CPP" && test -d "$CPP"; then
4674 CPP=
4675 fi
4676 if test -z "$CPP"; then
4677 if test "${ac_cv_prog_CPP+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4679 else
4680 # Double quotes because CPP needs to be expanded
4681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4682 do
4683 ac_preproc_ok=false
4684 for ac_c_preproc_warn_flag in '' yes
4685 do
4686 # Use a header file that comes with gcc, so configuring glibc
4687 # with a fresh cross-compiler works.
4688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689 # <limits.h> exists even on freestanding compilers.
4690 # On the NeXT, cc -E runs the code through the compiler's parser,
4691 # not just through cpp. "Syntax error" is here to catch this case.
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #ifdef __STDC__
4699 # include <limits.h>
4700 #else
4701 # include <assert.h>
4702 #endif
4703 Syntax error
4704 _ACEOF
4705 if { (ac_try="$ac_cpp conftest.$ac_ext"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev/null && {
4719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 }; then
4722 :
4723 else
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 # Broken: fails on valid input.
4728 continue
4729 fi
4730
4731 rm -f conftest.err conftest.$ac_ext
4732
4733 # OK, works on sane cases. Now check whether nonexistent headers
4734 # can be detected and how.
4735 cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h. */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <ac_nonexistent.h>
4742 _ACEOF
4743 if { (ac_try="$ac_cpp conftest.$ac_ext"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null && {
4757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 }; then
4760 # Broken: success on invalid input.
4761 continue
4762 else
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 # Passes both tests.
4767 ac_preproc_ok=:
4768 break
4769 fi
4770
4771 rm -f conftest.err conftest.$ac_ext
4772
4773 done
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.err conftest.$ac_ext
4776 if $ac_preproc_ok; then
4777 break
4778 fi
4779
4780 done
4781 ac_cv_prog_CPP=$CPP
4782
4783 fi
4784 CPP=$ac_cv_prog_CPP
4785 else
4786 ac_cv_prog_CPP=$CPP
4787 fi
4788 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4789 $as_echo "$CPP" >&6; }
4790 ac_preproc_ok=false
4791 for ac_c_preproc_warn_flag in '' yes
4792 do
4793 # Use a header file that comes with gcc, so configuring glibc
4794 # with a fresh cross-compiler works.
4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 # <limits.h> exists even on freestanding compilers.
4797 # On the NeXT, cc -E runs the code through the compiler's parser,
4798 # not just through cpp. "Syntax error" is here to catch this case.
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4810 Syntax error
4811 _ACEOF
4812 if { (ac_try="$ac_cpp conftest.$ac_ext"
4813 case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816 esac
4817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4818 $as_echo "$ac_try_echo") >&5
4819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4820 ac_status=$?
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
4823 cat conftest.err >&5
4824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } >/dev/null && {
4826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4828 }; then
4829 :
4830 else
4831 $as_echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 # Broken: fails on valid input.
4835 continue
4836 fi
4837
4838 rm -f conftest.err conftest.$ac_ext
4839
4840 # OK, works on sane cases. Now check whether nonexistent headers
4841 # can be detected and how.
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <ac_nonexistent.h>
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } >/dev/null && {
4864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 }; then
4867 # Broken: success on invalid input.
4868 continue
4869 else
4870 $as_echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 # Passes both tests.
4874 ac_preproc_ok=:
4875 break
4876 fi
4877
4878 rm -f conftest.err conftest.$ac_ext
4879
4880 done
4881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882 rm -f conftest.err conftest.$ac_ext
4883 if $ac_preproc_ok; then
4884 :
4885 else
4886 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4888 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889 See \`config.log' for more details." >&5
4890 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }; }
4893 fi
4894
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
4901
4902 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4903 $as_echo_n "checking for ANSI C header files... " >&6; }
4904 if test "${ac_cv_header_stdc+set}" = set; then
4905 $as_echo_n "(cached) " >&6
4906 else
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #include <stdlib.h>
4914 #include <stdarg.h>
4915 #include <string.h>
4916 #include <float.h>
4917
4918 int
4919 main ()
4920 {
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4928 case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4933 $as_echo "$ac_try_echo") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4944 ac_cv_header_stdc=yes
4945 else
4946 $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ac_cv_header_stdc=no
4950 fi
4951
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953
4954 if test $ac_cv_header_stdc = yes; then
4955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <string.h>
4963
4964 _ACEOF
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "memchr" >/dev/null 2>&1; then
4967 :
4968 else
4969 ac_cv_header_stdc=no
4970 fi
4971 rm -f conftest*
4972
4973 fi
4974
4975 if test $ac_cv_header_stdc = yes; then
4976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #include <stdlib.h>
4984
4985 _ACEOF
4986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987 $EGREP "free" >/dev/null 2>&1; then
4988 :
4989 else
4990 ac_cv_header_stdc=no
4991 fi
4992 rm -f conftest*
4993
4994 fi
4995
4996 if test $ac_cv_header_stdc = yes; then
4997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4998 if test "$cross_compiling" = yes; then
4999 :
5000 else
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <ctype.h>
5008 #include <stdlib.h>
5009 #if ((' ' & 0x0FF) == 0x020)
5010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5012 #else
5013 # define ISLOWER(c) \
5014 (('a' <= (c) && (c) <= 'i') \
5015 || ('j' <= (c) && (c) <= 'r') \
5016 || ('s' <= (c) && (c) <= 'z'))
5017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5018 #endif
5019
5020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5021 int
5022 main ()
5023 {
5024 int i;
5025 for (i = 0; i < 256; i++)
5026 if (XOR (islower (i), ISLOWER (i))
5027 || toupper (i) != TOUPPER (i))
5028 return 2;
5029 return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest$ac_exeext
5033 if { (ac_try="$ac_link"
5034 case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5039 $as_echo "$ac_try_echo") >&5
5040 (eval "$ac_link") 2>&5
5041 ac_status=$?
5042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5044 { (case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5049 $as_echo "$ac_try_echo") >&5
5050 (eval "$ac_try") 2>&5
5051 ac_status=$?
5052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 :
5055 else
5056 $as_echo "$as_me: program exited with status $ac_status" >&5
5057 $as_echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ( exit $ac_status )
5061 ac_cv_header_stdc=no
5062 fi
5063 rm -rf conftest.dSYM
5064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5065 fi
5066
5067
5068 fi
5069 fi
5070 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5071 $as_echo "$ac_cv_header_stdc" >&6; }
5072 if test $ac_cv_header_stdc = yes; then
5073
5074 cat >>confdefs.h <<\_ACEOF
5075 #define STDC_HEADERS 1
5076 _ACEOF
5077
5078 fi
5079
5080 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5091 inttypes.h stdint.h unistd.h
5092 do
5093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5095 $as_echo_n "checking for $ac_header... " >&6; }
5096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5097 $as_echo_n "(cached) " >&6
5098 else
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106
5107 #include <$ac_header>
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (ac_try="$ac_compile"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_compile") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest.$ac_objext; then
5127 eval "$as_ac_Header=yes"
5128 else
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 eval "$as_ac_Header=no"
5133 fi
5134
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 ac_res=`eval 'as_val=${'$as_ac_Header'}
5138 $as_echo "$as_val"'`
5139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5140 $as_echo "$ac_res" >&6; }
5141 as_val=`eval 'as_val=${'$as_ac_Header'}
5142 $as_echo "$as_val"'`
5143 if test "x$as_val" = x""yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5146 _ACEOF
5147
5148 fi
5149
5150 done
5151
5152
5153
5154 for ac_header in dlfcn.h
5155 do
5156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 $as_echo_n "checking for $ac_header... " >&6; }
5160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5161 $as_echo_n "(cached) " >&6
5162 fi
5163 ac_res=`eval 'as_val=${'$as_ac_Header'}
5164 $as_echo "$as_val"'`
5165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5166 $as_echo "$ac_res" >&6; }
5167 else
5168 # Is the header compilable?
5169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5170 $as_echo_n "checking $ac_header usability... " >&6; }
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 $ac_includes_default
5178 #include <$ac_header>
5179 _ACEOF
5180 rm -f conftest.$ac_objext
5181 if { (ac_try="$ac_compile"
5182 case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185 esac
5186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5187 $as_echo "$ac_try_echo") >&5
5188 (eval "$ac_compile") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } && {
5195 test -z "$ac_c_werror_flag" ||
5196 test ! -s conftest.err
5197 } && test -s conftest.$ac_objext; then
5198 ac_header_compiler=yes
5199 else
5200 $as_echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 ac_header_compiler=no
5204 fi
5205
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5208 $as_echo "$ac_header_compiler" >&6; }
5209
5210 # Is the header present?
5211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5212 $as_echo_n "checking $ac_header presence... " >&6; }
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <$ac_header>
5220 _ACEOF
5221 if { (ac_try="$ac_cpp conftest.$ac_ext"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227 $as_echo "$ac_try_echo") >&5
5228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } >/dev/null && {
5235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5236 test ! -s conftest.err
5237 }; then
5238 ac_header_preproc=yes
5239 else
5240 $as_echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 ac_header_preproc=no
5244 fi
5245
5246 rm -f conftest.err conftest.$ac_ext
5247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5248 $as_echo "$ac_header_preproc" >&6; }
5249
5250 # So? What about this header?
5251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5252 yes:no: )
5253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5257 ac_header_preproc=yes
5258 ;;
5259 no:yes:* )
5260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5272 ( cat <<\_ASBOX
5273 ## ------------------------------------ ##
5274 ## Report this to [email protected] ##
5275 ## ------------------------------------ ##
5276 _ASBOX
5277 ) | sed "s/^/$as_me: WARNING: /" >&2
5278 ;;
5279 esac
5280 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 $as_echo_n "checking for $ac_header... " >&6; }
5282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283 $as_echo_n "(cached) " >&6
5284 else
5285 eval "$as_ac_Header=\$ac_header_preproc"
5286 fi
5287 ac_res=`eval 'as_val=${'$as_ac_Header'}
5288 $as_echo "$as_val"'`
5289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5290 $as_echo "$ac_res" >&6; }
5291
5292 fi
5293 as_val=`eval 'as_val=${'$as_ac_Header'}
5294 $as_echo "$as_val"'`
5295 if test "x$as_val" = x""yes; then
5296 cat >>confdefs.h <<_ACEOF
5297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5298 _ACEOF
5299
5300 fi
5301
5302 done
5303
5304 ac_ext=cpp
5305 ac_cpp='$CXXCPP $CPPFLAGS'
5306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5309 if test -z "$CXX"; then
5310 if test -n "$CCC"; then
5311 CXX=$CCC
5312 else
5313 if test -n "$ac_tool_prefix"; then
5314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5315 do
5316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_CXX+set}" = set; then
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$CXX"; then
5324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 CXX=$ac_cv_prog_CXX
5344 if test -n "$CXX"; then
5345 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5346 $as_echo "$CXX" >&6; }
5347 else
5348 { $as_echo "$as_me:$LINENO: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 test -n "$CXX" && break
5354 done
5355 fi
5356 if test -z "$CXX"; then
5357 ac_ct_CXX=$CXX
5358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5359 do
5360 # Extract the first word of "$ac_prog", so it can be a program name with args.
5361 set dummy $ac_prog; ac_word=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$ac_ct_CXX"; then
5368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_ac_ct_CXX="$ac_prog"
5378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5388 if test -n "$ac_ct_CXX"; then
5389 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5390 $as_echo "$ac_ct_CXX" >&6; }
5391 else
5392 { $as_echo "$as_me:$LINENO: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 test -n "$ac_ct_CXX" && break
5398 done
5399
5400 if test "x$ac_ct_CXX" = x; then
5401 CXX="g++"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 CXX=$ac_ct_CXX
5410 fi
5411 fi
5412
5413 fi
5414 fi
5415 # Provide some information about the compiler.
5416 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5417 set X $ac_compile
5418 ac_compiler=$2
5419 { (ac_try="$ac_compiler --version >&5"
5420 case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5425 $as_echo "$ac_try_echo") >&5
5426 (eval "$ac_compiler --version >&5") 2>&5
5427 ac_status=$?
5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }
5430 { (ac_try="$ac_compiler -v >&5"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5436 $as_echo "$ac_try_echo") >&5
5437 (eval "$ac_compiler -v >&5") 2>&5
5438 ac_status=$?
5439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441 { (ac_try="$ac_compiler -V >&5"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5447 $as_echo "$ac_try_echo") >&5
5448 (eval "$ac_compiler -V >&5") 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }
5452
5453 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5454 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464
5465 int
5466 main ()
5467 {
5468 #ifndef __GNUC__
5469 choke me
5470 #endif
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5483 $as_echo "$ac_try_echo") >&5
5484 (eval "$ac_compile") 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_cxx_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
5494 ac_compiler_gnu=yes
5495 else
5496 $as_echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 ac_compiler_gnu=no
5500 fi
5501
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5504
5505 fi
5506 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5508 if test $ac_compiler_gnu = yes; then
5509 GXX=yes
5510 else
5511 GXX=
5512 fi
5513 ac_test_CXXFLAGS=${CXXFLAGS+set}
5514 ac_save_CXXFLAGS=$CXXFLAGS
5515 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5517 if test "${ac_cv_prog_cxx_g+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5521 ac_cxx_werror_flag=yes
5522 ac_cv_prog_cxx_g=no
5523 CXXFLAGS="-g"
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530
5531 int
5532 main ()
5533 {
5534
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
5545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5546 $as_echo "$ac_try_echo") >&5
5547 (eval "$ac_compile") 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && {
5554 test -z "$ac_cxx_werror_flag" ||
5555 test ! -s conftest.err
5556 } && test -s conftest.$ac_objext; then
5557 ac_cv_prog_cxx_g=yes
5558 else
5559 $as_echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 CXXFLAGS=""
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569
5570 int
5571 main ()
5572 {
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5580 case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585 $as_echo "$ac_try_echo") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_cxx_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 :
5597 else
5598 $as_echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5602 CXXFLAGS="-g"
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5625 $as_echo "$ac_try_echo") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_cxx_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_prog_cxx_g=yes
5637 else
5638 $as_echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641
5642 fi
5643
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 fi
5646
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5652 fi
5653 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5654 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5655 if test "$ac_test_CXXFLAGS" = set; then
5656 CXXFLAGS=$ac_save_CXXFLAGS
5657 elif test $ac_cv_prog_cxx_g = yes; then
5658 if test "$GXX" = yes; then
5659 CXXFLAGS="-g -O2"
5660 else
5661 CXXFLAGS="-g"
5662 fi
5663 else
5664 if test "$GXX" = yes; then
5665 CXXFLAGS="-O2"
5666 else
5667 CXXFLAGS=
5668 fi
5669 fi
5670 ac_ext=cpp
5671 ac_cpp='$CXXCPP $CPPFLAGS'
5672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5675
5676 depcc="$CXX" am_compiler_list=
5677
5678 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5679 $as_echo_n "checking dependency style of $depcc... " >&6; }
5680 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5684 # We make a subdir and do the tests there. Otherwise we can end up
5685 # making bogus files that we don't know about and never remove. For
5686 # instance it was reported that on HP-UX the gcc test will end up
5687 # making a dummy file named `D' -- because `-MD' means `put the output
5688 # in D'.
5689 mkdir conftest.dir
5690 # Copy depcomp to subdir because otherwise we won't find it if we're
5691 # using a relative directory.
5692 cp "$am_depcomp" conftest.dir
5693 cd conftest.dir
5694 # We will build objects and dependencies in a subdirectory because
5695 # it helps to detect inapplicable dependency modes. For instance
5696 # both Tru64's cc and ICC support -MD to output dependencies as a
5697 # side effect of compilation, but ICC will put the dependencies in
5698 # the current directory while Tru64 will put them in the object
5699 # directory.
5700 mkdir sub
5701
5702 am_cv_CXX_dependencies_compiler_type=none
5703 if test "$am_compiler_list" = ""; then
5704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5705 fi
5706 for depmode in $am_compiler_list; do
5707 # Setup a source with many dependencies, because some compilers
5708 # like to wrap large dependency lists on column 80 (with \), and
5709 # we should not choose a depcomp mode which is confused by this.
5710 #
5711 # We need to recreate these files for each test, as the compiler may
5712 # overwrite some of them when testing with obscure command lines.
5713 # This happens at least with the AIX C compiler.
5714 : > sub/conftest.c
5715 for i in 1 2 3 4 5 6; do
5716 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5717 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5718 # Solaris 8's {/usr,}/bin/sh.
5719 touch sub/conftst$i.h
5720 done
5721 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5722
5723 case $depmode in
5724 nosideeffect)
5725 # after this tag, mechanisms are not by side-effect, so they'll
5726 # only be used when explicitly requested
5727 if test "x$enable_dependency_tracking" = xyes; then
5728 continue
5729 else
5730 break
5731 fi
5732 ;;
5733 none) break ;;
5734 esac
5735 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5736 # mode. It turns out that the SunPro C++ compiler does not properly
5737 # handle `-M -o', and we need to detect this.
5738 if depmode=$depmode \
5739 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5741 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5742 >/dev/null 2>conftest.err &&
5743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5745 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5747 # icc doesn't choke on unknown options, it will just issue warnings
5748 # or remarks (even with -Werror). So we grep stderr for any message
5749 # that says an option was ignored or not supported.
5750 # When given -MP, icc 7.0 and 7.1 complain thusly:
5751 # icc: Command line warning: ignoring option '-M'; no argument required
5752 # The diagnosis changed in icc 8.0:
5753 # icc: Command line remark: option '-MP' not supported
5754 if (grep 'ignoring option' conftest.err ||
5755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5756 am_cv_CXX_dependencies_compiler_type=$depmode
5757 break
5758 fi
5759 fi
5760 done
5761
5762 cd ..
5763 rm -rf conftest.dir
5764 else
5765 am_cv_CXX_dependencies_compiler_type=none
5766 fi
5767
5768 fi
5769 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5770 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5771 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5772
5773 if
5774 test "x$enable_dependency_tracking" != xno \
5775 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5776 am__fastdepCXX_TRUE=
5777 am__fastdepCXX_FALSE='#'
5778 else
5779 am__fastdepCXX_TRUE='#'
5780 am__fastdepCXX_FALSE=
5781 fi
5782
5783
5784
5785
5786 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5787 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5788 (test "X$CXX" != "Xg++"))) ; then
5789 ac_ext=cpp
5790 ac_cpp='$CXXCPP $CPPFLAGS'
5791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5794 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5795 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5796 if test -z "$CXXCPP"; then
5797 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5798 $as_echo_n "(cached) " >&6
5799 else
5800 # Double quotes because CXXCPP needs to be expanded
5801 for CXXCPP in "$CXX -E" "/lib/cpp"
5802 do
5803 ac_preproc_ok=false
5804 for ac_cxx_preproc_warn_flag in '' yes
5805 do
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 # <limits.h> exists even on freestanding compilers.
5810 # On the NeXT, cc -E runs the code through the compiler's parser,
5811 # not just through cpp. "Syntax error" is here to catch this case.
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #ifdef __STDC__
5819 # include <limits.h>
5820 #else
5821 # include <assert.h>
5822 #endif
5823 Syntax error
5824 _ACEOF
5825 if { (ac_try="$ac_cpp conftest.$ac_ext"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5831 $as_echo "$ac_try_echo") >&5
5832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } >/dev/null && {
5839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 }; then
5842 :
5843 else
5844 $as_echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847 # Broken: fails on valid input.
5848 continue
5849 fi
5850
5851 rm -f conftest.err conftest.$ac_ext
5852
5853 # OK, works on sane cases. Now check whether nonexistent headers
5854 # can be detected and how.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5862 _ACEOF
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869 $as_echo "$ac_try_echo") >&5
5870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev/null && {
5877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5878 test ! -s conftest.err
5879 }; then
5880 # Broken: success on invalid input.
5881 continue
5882 else
5883 $as_echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 # Passes both tests.
5887 ac_preproc_ok=:
5888 break
5889 fi
5890
5891 rm -f conftest.err conftest.$ac_ext
5892
5893 done
5894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5895 rm -f conftest.err conftest.$ac_ext
5896 if $ac_preproc_ok; then
5897 break
5898 fi
5899
5900 done
5901 ac_cv_prog_CXXCPP=$CXXCPP
5902
5903 fi
5904 CXXCPP=$ac_cv_prog_CXXCPP
5905 else
5906 ac_cv_prog_CXXCPP=$CXXCPP
5907 fi
5908 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5909 $as_echo "$CXXCPP" >&6; }
5910 ac_preproc_ok=false
5911 for ac_cxx_preproc_warn_flag in '' yes
5912 do
5913 # Use a header file that comes with gcc, so configuring glibc
5914 # with a fresh cross-compiler works.
5915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 # <limits.h> exists even on freestanding compilers.
5917 # On the NeXT, cc -E runs the code through the compiler's parser,
5918 # not just through cpp. "Syntax error" is here to catch this case.
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #ifdef __STDC__
5926 # include <limits.h>
5927 #else
5928 # include <assert.h>
5929 #endif
5930 Syntax error
5931 _ACEOF
5932 if { (ac_try="$ac_cpp conftest.$ac_ext"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5938 $as_echo "$ac_try_echo") >&5
5939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } >/dev/null && {
5946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5947 test ! -s conftest.err
5948 }; then
5949 :
5950 else
5951 $as_echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 # Broken: fails on valid input.
5955 continue
5956 fi
5957
5958 rm -f conftest.err conftest.$ac_ext
5959
5960 # OK, works on sane cases. Now check whether nonexistent headers
5961 # can be detected and how.
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <ac_nonexistent.h>
5969 _ACEOF
5970 if { (ac_try="$ac_cpp conftest.$ac_ext"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976 $as_echo "$ac_try_echo") >&5
5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null && {
5984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5986 }; then
5987 # Broken: success on invalid input.
5988 continue
5989 else
5990 $as_echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 # Passes both tests.
5994 ac_preproc_ok=:
5995 break
5996 fi
5997
5998 rm -f conftest.err conftest.$ac_ext
5999
6000 done
6001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002 rm -f conftest.err conftest.$ac_ext
6003 if $ac_preproc_ok; then
6004 :
6005 else
6006 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6009 See \`config.log' for more details." >&5
6010 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6011 See \`config.log' for more details." >&2;}
6012 { (exit 1); exit 1; }; }; }
6013 fi
6014
6015 ac_ext=cpp
6016 ac_cpp='$CXXCPP $CPPFLAGS'
6017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6020
6021 fi
6022
6023
6024 ac_ext=f
6025 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6026 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6028 if test -n "$ac_tool_prefix"; then
6029 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
6030 do
6031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_F77+set}" = set; then
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$F77"; then
6039 ac_cv_prog_F77="$F77" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 F77=$ac_cv_prog_F77
6059 if test -n "$F77"; then
6060 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6061 $as_echo "$F77" >&6; }
6062 else
6063 { $as_echo "$as_me:$LINENO: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068 test -n "$F77" && break
6069 done
6070 fi
6071 if test -z "$F77"; then
6072 ac_ct_F77=$F77
6073 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
6074 do
6075 # Extract the first word of "$ac_prog", so it can be a program name with args.
6076 set dummy $ac_prog; ac_word=$2
6077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_F77"; then
6083 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_F77="$ac_prog"
6093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096 done
6097 done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6103 if test -n "$ac_ct_F77"; then
6104 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6105 $as_echo "$ac_ct_F77" >&6; }
6106 else
6107 { $as_echo "$as_me:$LINENO: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112 test -n "$ac_ct_F77" && break
6113 done
6114
6115 if test "x$ac_ct_F77" = x; then
6116 F77=""
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124 F77=$ac_ct_F77
6125 fi
6126 fi
6127
6128
6129 # Provide some information about the compiler.
6130 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6131 set X $ac_compile
6132 ac_compiler=$2
6133 { (ac_try="$ac_compiler --version >&5"
6134 case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6139 $as_echo "$ac_try_echo") >&5
6140 (eval "$ac_compiler --version >&5") 2>&5
6141 ac_status=$?
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }
6144 { (ac_try="$ac_compiler -v >&5"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6150 $as_echo "$ac_try_echo") >&5
6151 (eval "$ac_compiler -v >&5") 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }
6155 { (ac_try="$ac_compiler -V >&5"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_compiler -V >&5") 2>&5
6163 ac_status=$?
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }
6166 rm -f a.out
6167
6168 # If we don't use `.F' as extension, the preprocessor is not run on the
6169 # input file. (Note that this only needs to work for GNU compilers.)
6170 ac_save_ext=$ac_ext
6171 ac_ext=F
6172 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6173 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6174 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6176 else
6177 cat >conftest.$ac_ext <<_ACEOF
6178 program main
6179 #ifndef __GNUC__
6180 choke me
6181 #endif
6182
6183 end
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192 $as_echo "$ac_try_echo") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6194 ac_status=$?
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
6198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_f77_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
6203 ac_compiler_gnu=yes
6204 else
6205 $as_echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 ac_compiler_gnu=no
6209 fi
6210
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6213
6214 fi
6215 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6216 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6217 ac_ext=$ac_save_ext
6218 ac_test_FFLAGS=${FFLAGS+set}
6219 ac_save_FFLAGS=$FFLAGS
6220 FFLAGS=
6221 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6222 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6223 if test "${ac_cv_prog_f77_g+set}" = set; then
6224 $as_echo_n "(cached) " >&6
6225 else
6226 FFLAGS=-g
6227 cat >conftest.$ac_ext <<_ACEOF
6228 program main
6229
6230 end
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6234 case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239 $as_echo "$ac_try_echo") >&5
6240 (eval "$ac_compile") 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_f77_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
6250 ac_cv_prog_f77_g=yes
6251 else
6252 $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 ac_cv_prog_f77_g=no
6256 fi
6257
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260 fi
6261 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6262 $as_echo "$ac_cv_prog_f77_g" >&6; }
6263 if test "$ac_test_FFLAGS" = set; then
6264 FFLAGS=$ac_save_FFLAGS
6265 elif test $ac_cv_prog_f77_g = yes; then
6266 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6267 FFLAGS="-g -O2"
6268 else
6269 FFLAGS="-g"
6270 fi
6271 else
6272 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6273 FFLAGS="-O2"
6274 else
6275 FFLAGS=
6276 fi
6277 fi
6278
6279 if test $ac_compiler_gnu = yes; then
6280 G77=yes
6281 else
6282 G77=
6283 fi
6284 ac_ext=c
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6289
6290
6291
6292 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6293 # find the maximum length of command line arguments
6294 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6295 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6296 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6297 $as_echo_n "(cached) " >&6
6298 else
6299 i=0
6300 teststring="ABCD"
6301
6302 case $build_os in
6303 msdosdjgpp*)
6304 # On DJGPP, this test can blow up pretty badly due to problems in libc
6305 # (any single argument exceeding 2000 bytes causes a buffer overrun
6306 # during glob expansion). Even if it were fixed, the result of this
6307 # check would be larger than it should be.
6308 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6309 ;;
6310
6311 gnu*)
6312 # Under GNU Hurd, this test is not required because there is
6313 # no limit to the length of command line arguments.
6314 # Libtool will interpret -1 as no limit whatsoever
6315 lt_cv_sys_max_cmd_len=-1;
6316 ;;
6317
6318 cygwin* | mingw*)
6319 # On Win9x/ME, this test blows up -- it succeeds, but takes
6320 # about 5 minutes as the teststring grows exponentially.
6321 # Worse, since 9x/ME are not pre-emptively multitasking,
6322 # you end up with a "frozen" computer, even though with patience
6323 # the test eventually succeeds (with a max line length of 256k).
6324 # Instead, let's just punt: use the minimum linelength reported by
6325 # all of the supported platforms: 8192 (on NT/2K/XP).
6326 lt_cv_sys_max_cmd_len=8192;
6327 ;;
6328
6329 amigaos*)
6330 # On AmigaOS with pdksh, this test takes hours, literally.
6331 # So we just punt and use a minimum line length of 8192.
6332 lt_cv_sys_max_cmd_len=8192;
6333 ;;
6334
6335 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6336 # This has been around since 386BSD, at least. Likely further.
6337 if test -x /sbin/sysctl; then
6338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6339 elif test -x /usr/sbin/sysctl; then
6340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6341 else
6342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6343 fi
6344 # And add a safety zone
6345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6347 ;;
6348
6349 interix*)
6350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6351 lt_cv_sys_max_cmd_len=196608
6352 ;;
6353
6354 osf*)
6355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6357 # nice to cause kernel panics so lets avoid the loop below.
6358 # First set a reasonable default.
6359 lt_cv_sys_max_cmd_len=16384
6360 #
6361 if test -x /sbin/sysconfig; then
6362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6363 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6364 esac
6365 fi
6366 ;;
6367 sco3.2v5*)
6368 lt_cv_sys_max_cmd_len=102400
6369 ;;
6370 sysv5* | sco5v6* | sysv4.2uw2*)
6371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6372 if test -n "$kargmax"; then
6373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6374 else
6375 lt_cv_sys_max_cmd_len=32768
6376 fi
6377 ;;
6378 *)
6379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6380 if test -n "$lt_cv_sys_max_cmd_len"; then
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6383 else
6384 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6385 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6386 = "XX$teststring") >/dev/null 2>&1 &&
6387 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6388 lt_cv_sys_max_cmd_len=$new_result &&
6389 test $i != 17 # 1/2 MB should be enough
6390 do
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 teststring=
6395 # Add a significant safety factor because C++ compilers can tack on massive
6396 # amounts of additional arguments before passing them to the linker.
6397 # It appears as though 1/2 is a usable value.
6398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6399 fi
6400 ;;
6401 esac
6402
6403 fi
6404
6405 if test -n $lt_cv_sys_max_cmd_len ; then
6406 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6407 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6408 else
6409 { $as_echo "$as_me:$LINENO: result: none" >&5
6410 $as_echo "none" >&6; }
6411 fi
6412
6413
6414
6415
6416
6417 # Check for command to grab the raw symbol name followed by C symbol from nm.
6418 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6419 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6420 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6422 else
6423
6424 # These are sane defaults that work on at least a few old systems.
6425 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6426
6427 # Character class describing NM global symbol codes.
6428 symcode='[BCDEGRST]'
6429
6430 # Regexp to match symbols that can be accessed directly from C.
6431 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6432
6433 # Transform an extracted symbol line into a proper C declaration
6434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6435
6436 # Transform an extracted symbol line into symbol name and symbol address
6437 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'"
6438
6439 # Define system-specific variables.
6440 case $host_os in
6441 aix*)
6442 symcode='[BCDT]'
6443 ;;
6444 cygwin* | mingw* | pw32*)
6445 symcode='[ABCDGISTW]'
6446 ;;
6447 hpux*) # Its linker distinguishes data from code symbols
6448 if test "$host_cpu" = ia64; then
6449 symcode='[ABCDEGRST]'
6450 fi
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6452 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'"
6453 ;;
6454 linux* | k*bsd*-gnu)
6455 if test "$host_cpu" = ia64; then
6456 symcode='[ABCDGIRSTW]'
6457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6458 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'"
6459 fi
6460 ;;
6461 irix* | nonstopux*)
6462 symcode='[BCDEGRST]'
6463 ;;
6464 osf*)
6465 symcode='[BCDEGQRST]'
6466 ;;
6467 solaris*)
6468 symcode='[BDRT]'
6469 ;;
6470 sco3.2v5*)
6471 symcode='[DT]'
6472 ;;
6473 sysv4.2uw2*)
6474 symcode='[DT]'
6475 ;;
6476 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6477 symcode='[ABDT]'
6478 ;;
6479 sysv4)
6480 symcode='[DFNSTU]'
6481 ;;
6482 esac
6483
6484 # Handle CRLF in mingw tool chain
6485 opt_cr=
6486 case $build_os in
6487 mingw*)
6488 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6489 ;;
6490 esac
6491
6492 # If we're using GNU nm, then use its standard symbol codes.
6493 case `$NM -V 2>&1` in
6494 *GNU* | *'with BFD'*)
6495 symcode='[ABCDGIRSTW]' ;;
6496 esac
6497
6498 # Try without a prefix undercore, then with it.
6499 for ac_symprfx in "" "_"; do
6500
6501 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6502 symxfrm="\\1 $ac_symprfx\\2 \\2"
6503
6504 # Write the raw and C identifiers.
6505 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6506
6507 # Check to see that the pipe works correctly.
6508 pipe_works=no
6509
6510 rm -f conftest*
6511 cat > conftest.$ac_ext <<EOF
6512 #ifdef __cplusplus
6513 extern "C" {
6514 #endif
6515 char nm_test_var;
6516 void nm_test_func(){}
6517 #ifdef __cplusplus
6518 }
6519 #endif
6520 int main(){nm_test_var='a';nm_test_func();return(0);}
6521 EOF
6522
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; then
6528 # Now try to grab the symbols.
6529 nlist=conftest.nm
6530 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && test -s "$nlist"; then
6535 # Try sorting and uniquifying the output.
6536 if sort "$nlist" | uniq > "$nlist"T; then
6537 mv -f "$nlist"T "$nlist"
6538 else
6539 rm -f "$nlist"T
6540 fi
6541
6542 # Make sure that we snagged all the symbols we need.
6543 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6544 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6545 cat <<EOF > conftest.$ac_ext
6546 #ifdef __cplusplus
6547 extern "C" {
6548 #endif
6549
6550 EOF
6551 # Now generate the symbol file.
6552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6553
6554 cat <<EOF >> conftest.$ac_ext
6555 #if defined (__STDC__) && __STDC__
6556 # define lt_ptr_t void *
6557 #else
6558 # define lt_ptr_t char *
6559 # define const
6560 #endif
6561
6562 /* The mapping between symbol names and symbols. */
6563 const struct {
6564 const char *name;
6565 lt_ptr_t address;
6566 }
6567 lt_preloaded_symbols[] =
6568 {
6569 EOF
6570 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6571 cat <<\EOF >> conftest.$ac_ext
6572 {0, (lt_ptr_t) 0}
6573 };
6574
6575 #ifdef __cplusplus
6576 }
6577 #endif
6578 EOF
6579 # Now try linking the two files.
6580 mv conftest.$ac_objext conftstm.$ac_objext
6581 lt_save_LIBS="$LIBS"
6582 lt_save_CFLAGS="$CFLAGS"
6583 LIBS="conftstm.$ac_objext"
6584 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6586 (eval $ac_link) 2>&5
6587 ac_status=$?
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6590 pipe_works=yes
6591 fi
6592 LIBS="$lt_save_LIBS"
6593 CFLAGS="$lt_save_CFLAGS"
6594 else
6595 echo "cannot find nm_test_func in $nlist" >&5
6596 fi
6597 else
6598 echo "cannot find nm_test_var in $nlist" >&5
6599 fi
6600 else
6601 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6602 fi
6603 else
6604 echo "$progname: failed program was:" >&5
6605 cat conftest.$ac_ext >&5
6606 fi
6607 rm -rf conftest* conftst*
6608
6609 # Do not use the global_symbol_pipe unless it works.
6610 if test "$pipe_works" = yes; then
6611 break
6612 else
6613 lt_cv_sys_global_symbol_pipe=
6614 fi
6615 done
6616
6617 fi
6618
6619 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6620 lt_cv_sys_global_symbol_to_cdecl=
6621 fi
6622 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6623 { $as_echo "$as_me:$LINENO: result: failed" >&5
6624 $as_echo "failed" >&6; }
6625 else
6626 { $as_echo "$as_me:$LINENO: result: ok" >&5
6627 $as_echo "ok" >&6; }
6628 fi
6629
6630 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6631 $as_echo_n "checking for objdir... " >&6; }
6632 if test "${lt_cv_objdir+set}" = set; then
6633 $as_echo_n "(cached) " >&6
6634 else
6635 rm -f .libs 2>/dev/null
6636 mkdir .libs 2>/dev/null
6637 if test -d .libs; then
6638 lt_cv_objdir=.libs
6639 else
6640 # MS-DOS does not allow filenames that begin with a dot.
6641 lt_cv_objdir=_libs
6642 fi
6643 rmdir .libs 2>/dev/null
6644 fi
6645 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6646 $as_echo "$lt_cv_objdir" >&6; }
6647 objdir=$lt_cv_objdir
6648
6649
6650
6651
6652
6653 case $host_os in
6654 aix3*)
6655 # AIX sometimes has problems with the GCC collect2 program. For some
6656 # reason, if we set the COLLECT_NAMES environment variable, the problems
6657 # vanish in a puff of smoke.
6658 if test "X${COLLECT_NAMES+set}" != Xset; then
6659 COLLECT_NAMES=
6660 export COLLECT_NAMES
6661 fi
6662 ;;
6663 esac
6664
6665 # Sed substitution that helps us do robust quoting. It backslashifies
6666 # metacharacters that are still active within double-quoted strings.
6667 Xsed='sed -e 1s/^X//'
6668 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6669
6670 # Same as above, but do not quote variable references.
6671 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6672
6673 # Sed substitution to delay expansion of an escaped shell variable in a
6674 # double_quote_subst'ed string.
6675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6676
6677 # Sed substitution to avoid accidental globbing in evaled expressions
6678 no_glob_subst='s/\*/\\\*/g'
6679
6680 # Constants:
6681 rm="rm -f"
6682
6683 # Global variables:
6684 default_ofile=libtool
6685 can_build_shared=yes
6686
6687 # All known linkers require a `.a' archive for static linking (except MSVC,
6688 # which needs '.lib').
6689 libext=a
6690 ltmain="$ac_aux_dir/ltmain.sh"
6691 ofile="$default_ofile"
6692 with_gnu_ld="$lt_cv_prog_gnu_ld"
6693
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}ar; ac_word=$2
6697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_AR+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$AR"; then
6703 ac_cv_prog_AR="$AR" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_AR="${ac_tool_prefix}ar"
6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 AR=$ac_cv_prog_AR
6723 if test -n "$AR"; then
6724 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6725 $as_echo "$AR" >&6; }
6726 else
6727 { $as_echo "$as_me:$LINENO: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731
6732 fi
6733 if test -z "$ac_cv_prog_AR"; then
6734 ac_ct_AR=$AR
6735 # Extract the first word of "ar", so it can be a program name with args.
6736 set dummy ar; ac_word=$2
6737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$ac_ct_AR"; then
6743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_ac_ct_AR="ar"
6753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6763 if test -n "$ac_ct_AR"; then
6764 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6765 $as_echo "$ac_ct_AR" >&6; }
6766 else
6767 { $as_echo "$as_me:$LINENO: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771 if test "x$ac_ct_AR" = x; then
6772 AR="false"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 AR=$ac_ct_AR
6781 fi
6782 else
6783 AR="$ac_cv_prog_AR"
6784 fi
6785
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_RANLIB+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$RANLIB"; then
6795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6817 $as_echo "$RANLIB" >&6; }
6818 else
6819 { $as_echo "$as_me:$LINENO: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826 ac_ct_RANLIB=$RANLIB
6827 # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_RANLIB"; then
6835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_RANLIB="ranlib"
6845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855 if test -n "$ac_ct_RANLIB"; then
6856 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6857 $as_echo "$ac_ct_RANLIB" >&6; }
6858 else
6859 { $as_echo "$as_me:$LINENO: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_RANLIB" = x; then
6864 RANLIB=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 RANLIB=$ac_ct_RANLIB
6873 fi
6874 else
6875 RANLIB="$ac_cv_prog_RANLIB"
6876 fi
6877
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}strip; ac_word=$2
6881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_STRIP+set}" = set; then
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$STRIP"; then
6887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 STRIP=$ac_cv_prog_STRIP
6907 if test -n "$STRIP"; then
6908 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6909 $as_echo "$STRIP" >&6; }
6910 else
6911 { $as_echo "$as_me:$LINENO: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if test -z "$ac_cv_prog_STRIP"; then
6918 ac_ct_STRIP=$STRIP
6919 # Extract the first word of "strip", so it can be a program name with args.
6920 set dummy strip; ac_word=$2
6921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$ac_ct_STRIP"; then
6927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_STRIP="strip"
6937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6947 if test -n "$ac_ct_STRIP"; then
6948 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6949 $as_echo "$ac_ct_STRIP" >&6; }
6950 else
6951 { $as_echo "$as_me:$LINENO: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955 if test "x$ac_ct_STRIP" = x; then
6956 STRIP=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964 STRIP=$ac_ct_STRIP
6965 fi
6966 else
6967 STRIP="$ac_cv_prog_STRIP"
6968 fi
6969
6970
6971 old_CC="$CC"
6972 old_CFLAGS="$CFLAGS"
6973
6974 # Set sane defaults for various variables
6975 test -z "$AR" && AR=ar
6976 test -z "$AR_FLAGS" && AR_FLAGS=cru
6977 test -z "$AS" && AS=as
6978 test -z "$CC" && CC=cc
6979 test -z "$LTCC" && LTCC=$CC
6980 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6981 test -z "$DLLTOOL" && DLLTOOL=dlltool
6982 test -z "$LD" && LD=ld
6983 test -z "$LN_S" && LN_S="ln -s"
6984 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6985 test -z "$NM" && NM=nm
6986 test -z "$SED" && SED=sed
6987 test -z "$OBJDUMP" && OBJDUMP=objdump
6988 test -z "$RANLIB" && RANLIB=:
6989 test -z "$STRIP" && STRIP=:
6990 test -z "$ac_objext" && ac_objext=o
6991
6992 # Determine commands to create old-style static archives.
6993 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6994 old_postinstall_cmds='chmod 644 $oldlib'
6995 old_postuninstall_cmds=
6996
6997 if test -n "$RANLIB"; then
6998 case $host_os in
6999 openbsd*)
7000 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7001 ;;
7002 *)
7003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7004 ;;
7005 esac
7006 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7007 fi
7008
7009 for cc_temp in $compiler""; do
7010 case $cc_temp in
7011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7013 \-*) ;;
7014 *) break;;
7015 esac
7016 done
7017 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7018
7019
7020 # Only perform the check for file, if the check method requires it
7021 case $deplibs_check_method in
7022 file_magic*)
7023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7024 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7025 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7027 $as_echo_n "(cached) " >&6
7028 else
7029 case $MAGIC_CMD in
7030 [\\/*] | ?:[\\/]*)
7031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7032 ;;
7033 *)
7034 lt_save_MAGIC_CMD="$MAGIC_CMD"
7035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7037 for ac_dir in $ac_dummy; do
7038 IFS="$lt_save_ifs"
7039 test -z "$ac_dir" && ac_dir=.
7040 if test -f $ac_dir/${ac_tool_prefix}file; then
7041 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7042 if test -n "$file_magic_test_file"; then
7043 case $deplibs_check_method in
7044 "file_magic "*)
7045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7048 $EGREP "$file_magic_regex" > /dev/null; then
7049 :
7050 else
7051 cat <<EOF 1>&2
7052
7053 *** Warning: the command libtool uses to detect shared libraries,
7054 *** $file_magic_cmd, produces output that libtool cannot recognize.
7055 *** The result is that libtool may fail to recognize shared libraries
7056 *** as such. This will affect the creation of libtool libraries that
7057 *** depend on shared libraries, but programs linked with such libtool
7058 *** libraries will work regardless of this problem. Nevertheless, you
7059 *** may want to report the problem to your system manager and/or to
7060 *** [email protected]
7061
7062 EOF
7063 fi ;;
7064 esac
7065 fi
7066 break
7067 fi
7068 done
7069 IFS="$lt_save_ifs"
7070 MAGIC_CMD="$lt_save_MAGIC_CMD"
7071 ;;
7072 esac
7073 fi
7074
7075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7076 if test -n "$MAGIC_CMD"; then
7077 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7078 $as_echo "$MAGIC_CMD" >&6; }
7079 else
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084 if test -z "$lt_cv_path_MAGIC_CMD"; then
7085 if test -n "$ac_tool_prefix"; then
7086 { $as_echo "$as_me:$LINENO: checking for file" >&5
7087 $as_echo_n "checking for file... " >&6; }
7088 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7089 $as_echo_n "(cached) " >&6
7090 else
7091 case $MAGIC_CMD in
7092 [\\/*] | ?:[\\/]*)
7093 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7094 ;;
7095 *)
7096 lt_save_MAGIC_CMD="$MAGIC_CMD"
7097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7098 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7099 for ac_dir in $ac_dummy; do
7100 IFS="$lt_save_ifs"
7101 test -z "$ac_dir" && ac_dir=.
7102 if test -f $ac_dir/file; then
7103 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7104 if test -n "$file_magic_test_file"; then
7105 case $deplibs_check_method in
7106 "file_magic "*)
7107 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7110 $EGREP "$file_magic_regex" > /dev/null; then
7111 :
7112 else
7113 cat <<EOF 1>&2
7114
7115 *** Warning: the command libtool uses to detect shared libraries,
7116 *** $file_magic_cmd, produces output that libtool cannot recognize.
7117 *** The result is that libtool may fail to recognize shared libraries
7118 *** as such. This will affect the creation of libtool libraries that
7119 *** depend on shared libraries, but programs linked with such libtool
7120 *** libraries will work regardless of this problem. Nevertheless, you
7121 *** may want to report the problem to your system manager and/or to
7122 *** [email protected]
7123
7124 EOF
7125 fi ;;
7126 esac
7127 fi
7128 break
7129 fi
7130 done
7131 IFS="$lt_save_ifs"
7132 MAGIC_CMD="$lt_save_MAGIC_CMD"
7133 ;;
7134 esac
7135 fi
7136
7137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7138 if test -n "$MAGIC_CMD"; then
7139 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7140 $as_echo "$MAGIC_CMD" >&6; }
7141 else
7142 { $as_echo "$as_me:$LINENO: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146 else
7147 MAGIC_CMD=:
7148 fi
7149 fi
7150
7151 fi
7152 ;;
7153 esac
7154
7155
7156 case $host_os in
7157 rhapsody* | darwin*)
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$DSYMUTIL"; then
7167 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
7177 $as_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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7187 if test -n "$DSYMUTIL"; then
7188 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7189 $as_echo "$DSYMUTIL" >&6; }
7190 else
7191 { $as_echo "$as_me:$LINENO: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_DSYMUTIL"; then
7198 ac_ct_DSYMUTIL=$DSYMUTIL
7199 # Extract the first word of "dsymutil", so it can be a program name with args.
7200 set dummy dsymutil; ac_word=$2
7201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7204 $as_echo_n "(cached) " >&6
7205 else
7206 if test -n "$ac_ct_DSYMUTIL"; then
7207 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
7217 $as_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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7227 if test -n "$ac_ct_DSYMUTIL"; then
7228 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7229 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7230 else
7231 { $as_echo "$as_me:$LINENO: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235 if test "x$ac_ct_DSYMUTIL" = x; then
7236 DSYMUTIL=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7243 esac
7244 DSYMUTIL=$ac_ct_DSYMUTIL
7245 fi
7246 else
7247 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7248 fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$NMEDIT"; then
7259 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 NMEDIT=$ac_cv_prog_NMEDIT
7279 if test -n "$NMEDIT"; then
7280 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7281 $as_echo "$NMEDIT" >&6; }
7282 else
7283 { $as_echo "$as_me:$LINENO: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287
7288 fi
7289 if test -z "$ac_cv_prog_NMEDIT"; then
7290 ac_ct_NMEDIT=$NMEDIT
7291 # Extract the first word of "nmedit", so it can be a program name with args.
7292 set dummy nmedit; ac_word=$2
7293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$ac_ct_NMEDIT"; then
7299 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7319 if test -n "$ac_ct_NMEDIT"; then
7320 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7321 $as_echo "$ac_ct_NMEDIT" >&6; }
7322 else
7323 { $as_echo "$as_me:$LINENO: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327 if test "x$ac_ct_NMEDIT" = x; then
7328 NMEDIT=":"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331 yes:)
7332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334 ac_tool_warned=yes ;;
7335 esac
7336 NMEDIT=$ac_ct_NMEDIT
7337 fi
7338 else
7339 NMEDIT="$ac_cv_prog_NMEDIT"
7340 fi
7341
7342
7343 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7344 $as_echo_n "checking for -single_module linker flag... " >&6; }
7345 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7346 $as_echo_n "(cached) " >&6
7347 else
7348 lt_cv_apple_cc_single_mod=no
7349 if test -z "${LT_MULTI_MODULE}"; then
7350 # By default we will add the -single_module flag. You can override
7351 # by either setting the environment variable LT_MULTI_MODULE
7352 # non-empty at configure time, or by adding -multi_module to the
7353 # link flags.
7354 echo "int foo(void){return 1;}" > conftest.c
7355 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7356 -dynamiclib ${wl}-single_module conftest.c
7357 if test -f libconftest.dylib; then
7358 lt_cv_apple_cc_single_mod=yes
7359 rm -rf libconftest.dylib*
7360 fi
7361 rm conftest.c
7362 fi
7363 fi
7364 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7365 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7366 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7367 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7368 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_ld_exported_symbols_list=no
7372 save_LDFLAGS=$LDFLAGS
7373 echo "_main" > conftest.sym
7374 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381
7382 int
7383 main ()
7384 {
7385
7386 ;
7387 return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext conftest$ac_exeext
7391 if { (ac_try="$ac_link"
7392 case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395 esac
7396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7397 $as_echo "$ac_try_echo") >&5
7398 (eval "$ac_link") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest$ac_exeext && {
7408 test "$cross_compiling" = yes ||
7409 $as_test_x conftest$ac_exeext
7410 }; then
7411 lt_cv_ld_exported_symbols_list=yes
7412 else
7413 $as_echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 lt_cv_ld_exported_symbols_list=no
7417 fi
7418
7419 rm -rf conftest.dSYM
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421 conftest$ac_exeext conftest.$ac_ext
7422 LDFLAGS="$save_LDFLAGS"
7423
7424 fi
7425 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7426 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7427 case $host_os in
7428 rhapsody* | darwin1.[0123])
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7430 darwin1.*)
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 darwin*)
7433 # if running on 10.5 or later, the deployment target defaults
7434 # to the OS version, if on x86, and 10.4, the deployment
7435 # target defaults to 10.4. Don't you love it?
7436 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7437 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7438 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7439 10.[012]*)
7440 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7441 10.*)
7442 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7443 esac
7444 ;;
7445 esac
7446 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7447 _lt_dar_single_mod='$single_module'
7448 fi
7449 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7450 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7451 else
7452 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7453 fi
7454 if test "$DSYMUTIL" != ":"; then
7455 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7456 else
7457 _lt_dsymutil=
7458 fi
7459 ;;
7460 esac
7461
7462
7463 enable_dlopen=yes
7464 enable_win32_dll=no
7465
7466 # Check whether --enable-libtool-lock was given.
7467 if test "${enable_libtool_lock+set}" = set; then
7468 enableval=$enable_libtool_lock;
7469 fi
7470
7471 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7472
7473
7474 # Check whether --with-pic was given.
7475 if test "${with_pic+set}" = set; then
7476 withval=$with_pic; pic_mode="$withval"
7477 else
7478 pic_mode=default
7479 fi
7480
7481 test -z "$pic_mode" && pic_mode=default
7482
7483 # Use C for the default configuration in the libtool script
7484 tagname=
7485 lt_save_CC="$CC"
7486 ac_ext=c
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491
7492
7493 # Source file extension for C test sources.
7494 ac_ext=c
7495
7496 # Object file extension for compiled C test sources.
7497 objext=o
7498 objext=$objext
7499
7500 # Code to be used in simple compile tests
7501 lt_simple_compile_test_code="int some_variable = 0;"
7502
7503 # Code to be used in simple link tests
7504 lt_simple_link_test_code='int main(){return(0);}'
7505
7506
7507 # If no C compiler was specified, use CC.
7508 LTCC=${LTCC-"$CC"}
7509
7510 # If no C compiler flags were specified, use CFLAGS.
7511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7512
7513 # Allow CC to be a program name with arguments.
7514 compiler=$CC
7515
7516
7517 # save warnings/boilerplate of simple test code
7518 ac_outfile=conftest.$ac_objext
7519 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7521 _lt_compiler_boilerplate=`cat conftest.err`
7522 $rm conftest*
7523
7524 ac_outfile=conftest.$ac_objext
7525 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527 _lt_linker_boilerplate=`cat conftest.err`
7528 $rm -r conftest*
7529
7530
7531
7532 lt_prog_compiler_no_builtin_flag=
7533
7534 if test "$GCC" = yes; then
7535 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7536
7537
7538 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7539 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7540 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7541 $as_echo_n "(cached) " >&6
7542 else
7543 lt_cv_prog_compiler_rtti_exceptions=no
7544 ac_outfile=conftest.$ac_objext
7545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7546 lt_compiler_flag="-fno-rtti -fno-exceptions"
7547 # Insert the option either (1) after the last *FLAGS variable, or
7548 # (2) before a word containing "conftest.", or (3) at the end.
7549 # Note that $ac_compile itself does not contain backslashes and begins
7550 # with a dollar sign (not a hyphen), so the echo should work correctly.
7551 # The option is referenced via a variable to avoid confusing sed.
7552 lt_compile=`echo "$ac_compile" | $SED \
7553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7555 -e 's:$: $lt_compiler_flag:'`
7556 (eval echo "\"\$as_me:7556: $lt_compile\"" >&5)
7557 (eval "$lt_compile" 2>conftest.err)
7558 ac_status=$?
7559 cat conftest.err >&5
7560 echo "$as_me:7560: \$? = $ac_status" >&5
7561 if (exit $ac_status) && test -s "$ac_outfile"; then
7562 # The compiler can only warn and ignore the option if not recognized
7563 # So say no if there are warnings other than the usual output.
7564 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7567 lt_cv_prog_compiler_rtti_exceptions=yes
7568 fi
7569 fi
7570 $rm conftest*
7571
7572 fi
7573 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7574 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7575
7576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7577 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7578 else
7579 :
7580 fi
7581
7582 fi
7583
7584 lt_prog_compiler_wl=
7585 lt_prog_compiler_pic=
7586 lt_prog_compiler_static=
7587
7588 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7589 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7590
7591 if test "$GCC" = yes; then
7592 lt_prog_compiler_wl='-Wl,'
7593 lt_prog_compiler_static='-static'
7594
7595 case $host_os in
7596 aix*)
7597 # All AIX code is PIC.
7598 if test "$host_cpu" = ia64; then
7599 # AIX 5 now supports IA64 processor
7600 lt_prog_compiler_static='-Bstatic'
7601 fi
7602 ;;
7603
7604 amigaos*)
7605 # FIXME: we need at least 68020 code to build shared libraries, but
7606 # adding the `-m68020' flag to GCC prevents building anything better,
7607 # like `-m68040'.
7608 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7609 ;;
7610
7611 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7612 # PIC is the default for these OSes.
7613 ;;
7614
7615 mingw* | cygwin* | pw32* | os2*)
7616 # This hack is so that the source file can tell whether it is being
7617 # built for inclusion in a dll (and should export symbols for example).
7618 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7619 # (--disable-auto-import) libraries
7620 lt_prog_compiler_pic='-DDLL_EXPORT'
7621 ;;
7622
7623 darwin* | rhapsody*)
7624 # PIC is the default on this platform
7625 # Common symbols not allowed in MH_DYLIB files
7626 lt_prog_compiler_pic='-fno-common'
7627 ;;
7628
7629 interix[3-9]*)
7630 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7631 # Instead, we relocate shared libraries at runtime.
7632 ;;
7633
7634 msdosdjgpp*)
7635 # Just because we use GCC doesn't mean we suddenly get shared libraries
7636 # on systems that don't support them.
7637 lt_prog_compiler_can_build_shared=no
7638 enable_shared=no
7639 ;;
7640
7641 sysv4*MP*)
7642 if test -d /usr/nec; then
7643 lt_prog_compiler_pic=-Kconform_pic
7644 fi
7645 ;;
7646
7647 hpux*)
7648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7649 # not for PA HP-UX.
7650 case $host_cpu in
7651 hppa*64*|ia64*)
7652 # +Z the default
7653 ;;
7654 *)
7655 lt_prog_compiler_pic='-fPIC'
7656 ;;
7657 esac
7658 ;;
7659
7660 *)
7661 lt_prog_compiler_pic='-fPIC'
7662 ;;
7663 esac
7664 else
7665 # PORTME Check for flag to pass linker flags through the system compiler.
7666 case $host_os in
7667 aix*)
7668 lt_prog_compiler_wl='-Wl,'
7669 if test "$host_cpu" = ia64; then
7670 # AIX 5 now supports IA64 processor
7671 lt_prog_compiler_static='-Bstatic'
7672 else
7673 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7674 fi
7675 ;;
7676 darwin*)
7677 # PIC is the default on this platform
7678 # Common symbols not allowed in MH_DYLIB files
7679 case $cc_basename in
7680 xlc*)
7681 lt_prog_compiler_pic='-qnocommon'
7682 lt_prog_compiler_wl='-Wl,'
7683 ;;
7684 esac
7685 ;;
7686
7687 mingw* | cygwin* | pw32* | os2*)
7688 # This hack is so that the source file can tell whether it is being
7689 # built for inclusion in a dll (and should export symbols for example).
7690 lt_prog_compiler_pic='-DDLL_EXPORT'
7691 ;;
7692
7693 hpux9* | hpux10* | hpux11*)
7694 lt_prog_compiler_wl='-Wl,'
7695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7696 # not for PA HP-UX.
7697 case $host_cpu in
7698 hppa*64*|ia64*)
7699 # +Z the default
7700 ;;
7701 *)
7702 lt_prog_compiler_pic='+Z'
7703 ;;
7704 esac
7705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7706 lt_prog_compiler_static='${wl}-a ${wl}archive'
7707 ;;
7708
7709 irix5* | irix6* | nonstopux*)
7710 lt_prog_compiler_wl='-Wl,'
7711 # PIC (with -KPIC) is the default.
7712 lt_prog_compiler_static='-non_shared'
7713 ;;
7714
7715 newsos6)
7716 lt_prog_compiler_pic='-KPIC'
7717 lt_prog_compiler_static='-Bstatic'
7718 ;;
7719
7720 linux* | k*bsd*-gnu)
7721 case $cc_basename in
7722 icc* | ecc*)
7723 lt_prog_compiler_wl='-Wl,'
7724 lt_prog_compiler_pic='-KPIC'
7725 lt_prog_compiler_static='-static'
7726 ;;
7727 pgcc* | pgf77* | pgf90* | pgf95*)
7728 # Portland Group compilers (*not* the Pentium gcc compiler,
7729 # which looks to be a dead project)
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='-fpic'
7732 lt_prog_compiler_static='-Bstatic'
7733 ;;
7734 ccc*)
7735 lt_prog_compiler_wl='-Wl,'
7736 # All Alpha code is PIC.
7737 lt_prog_compiler_static='-non_shared'
7738 ;;
7739 *)
7740 case `$CC -V 2>&1 | sed 5q` in
7741 *Sun\ C*)
7742 # Sun C 5.9
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7745 lt_prog_compiler_wl='-Wl,'
7746 ;;
7747 *Sun\ F*)
7748 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7751 lt_prog_compiler_wl=''
7752 ;;
7753 esac
7754 ;;
7755 esac
7756 ;;
7757
7758 osf3* | osf4* | osf5*)
7759 lt_prog_compiler_wl='-Wl,'
7760 # All OSF/1 code is PIC.
7761 lt_prog_compiler_static='-non_shared'
7762 ;;
7763
7764 rdos*)
7765 lt_prog_compiler_static='-non_shared'
7766 ;;
7767
7768 solaris*)
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-Bstatic'
7771 case $cc_basename in
7772 f77* | f90* | f95*)
7773 lt_prog_compiler_wl='-Qoption ld ';;
7774 *)
7775 lt_prog_compiler_wl='-Wl,';;
7776 esac
7777 ;;
7778
7779 sunos4*)
7780 lt_prog_compiler_wl='-Qoption ld '
7781 lt_prog_compiler_pic='-PIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 ;;
7784
7785 sysv4 | sysv4.2uw2* | sysv4.3*)
7786 lt_prog_compiler_wl='-Wl,'
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 ;;
7790
7791 sysv4*MP*)
7792 if test -d /usr/nec ;then
7793 lt_prog_compiler_pic='-Kconform_pic'
7794 lt_prog_compiler_static='-Bstatic'
7795 fi
7796 ;;
7797
7798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-KPIC'
7801 lt_prog_compiler_static='-Bstatic'
7802 ;;
7803
7804 unicos*)
7805 lt_prog_compiler_wl='-Wl,'
7806 lt_prog_compiler_can_build_shared=no
7807 ;;
7808
7809 uts4*)
7810 lt_prog_compiler_pic='-pic'
7811 lt_prog_compiler_static='-Bstatic'
7812 ;;
7813
7814 *)
7815 lt_prog_compiler_can_build_shared=no
7816 ;;
7817 esac
7818 fi
7819
7820 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7821 $as_echo "$lt_prog_compiler_pic" >&6; }
7822
7823 #
7824 # Check to make sure the PIC flag actually works.
7825 #
7826 if test -n "$lt_prog_compiler_pic"; then
7827
7828 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7829 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7830 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7831 $as_echo_n "(cached) " >&6
7832 else
7833 lt_cv_prog_compiler_pic_works=no
7834 ac_outfile=conftest.$ac_objext
7835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7836 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7837 # Insert the option either (1) after the last *FLAGS variable, or
7838 # (2) before a word containing "conftest.", or (3) at the end.
7839 # Note that $ac_compile itself does not contain backslashes and begins
7840 # with a dollar sign (not a hyphen), so the echo should work correctly.
7841 # The option is referenced via a variable to avoid confusing sed.
7842 lt_compile=`echo "$ac_compile" | $SED \
7843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7845 -e 's:$: $lt_compiler_flag:'`
7846 (eval echo "\"\$as_me:7846: $lt_compile\"" >&5)
7847 (eval "$lt_compile" 2>conftest.err)
7848 ac_status=$?
7849 cat conftest.err >&5
7850 echo "$as_me:7850: \$? = $ac_status" >&5
7851 if (exit $ac_status) && test -s "$ac_outfile"; then
7852 # The compiler can only warn and ignore the option if not recognized
7853 # So say no if there are warnings other than the usual output.
7854 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7856 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7857 lt_cv_prog_compiler_pic_works=yes
7858 fi
7859 fi
7860 $rm conftest*
7861
7862 fi
7863 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7864 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7865
7866 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7867 case $lt_prog_compiler_pic in
7868 "" | " "*) ;;
7869 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7870 esac
7871 else
7872 lt_prog_compiler_pic=
7873 lt_prog_compiler_can_build_shared=no
7874 fi
7875
7876 fi
7877 case $host_os in
7878 # For platforms which do not support PIC, -DPIC is meaningless:
7879 *djgpp*)
7880 lt_prog_compiler_pic=
7881 ;;
7882 *)
7883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7884 ;;
7885 esac
7886
7887 #
7888 # Check to make sure the static flag actually works.
7889 #
7890 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7891 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7892 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7893 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7894 $as_echo_n "(cached) " >&6
7895 else
7896 lt_cv_prog_compiler_static_works=no
7897 save_LDFLAGS="$LDFLAGS"
7898 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7899 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7901 # The linker can only warn and ignore the option if not recognized
7902 # So say no if there are warnings
7903 if test -s conftest.err; then
7904 # Append any errors to the config.log.
7905 cat conftest.err 1>&5
7906 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7908 if diff conftest.exp conftest.er2 >/dev/null; then
7909 lt_cv_prog_compiler_static_works=yes
7910 fi
7911 else
7912 lt_cv_prog_compiler_static_works=yes
7913 fi
7914 fi
7915 $rm -r conftest*
7916 LDFLAGS="$save_LDFLAGS"
7917
7918 fi
7919 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7920 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7921
7922 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7923 :
7924 else
7925 lt_prog_compiler_static=
7926 fi
7927
7928
7929 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7930 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7931 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7933 else
7934 lt_cv_prog_compiler_c_o=no
7935 $rm -r conftest 2>/dev/null
7936 mkdir conftest
7937 cd conftest
7938 mkdir out
7939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7940
7941 lt_compiler_flag="-o out/conftest2.$ac_objext"
7942 # Insert the option either (1) after the last *FLAGS variable, or
7943 # (2) before a word containing "conftest.", or (3) at the end.
7944 # Note that $ac_compile itself does not contain backslashes and begins
7945 # with a dollar sign (not a hyphen), so the echo should work correctly.
7946 lt_compile=`echo "$ac_compile" | $SED \
7947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7949 -e 's:$: $lt_compiler_flag:'`
7950 (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
7951 (eval "$lt_compile" 2>out/conftest.err)
7952 ac_status=$?
7953 cat out/conftest.err >&5
7954 echo "$as_me:7954: \$? = $ac_status" >&5
7955 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7956 then
7957 # The compiler can only warn and ignore the option if not recognized
7958 # So say no if there are warnings
7959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7962 lt_cv_prog_compiler_c_o=yes
7963 fi
7964 fi
7965 chmod u+w . 2>&5
7966 $rm conftest*
7967 # SGI C++ compiler will create directory out/ii_files/ for
7968 # template instantiation
7969 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7970 $rm out/* && rmdir out
7971 cd ..
7972 rmdir conftest
7973 $rm conftest*
7974
7975 fi
7976 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7977 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7978
7979
7980 hard_links="nottested"
7981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7982 # do not overwrite the value of need_locks provided by the user
7983 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7984 $as_echo_n "checking if we can lock with hard links... " >&6; }
7985 hard_links=yes
7986 $rm conftest*
7987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7988 touch conftest.a
7989 ln conftest.a conftest.b 2>&5 || hard_links=no
7990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7991 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7992 $as_echo "$hard_links" >&6; }
7993 if test "$hard_links" = no; then
7994 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7996 need_locks=warn
7997 fi
7998 else
7999 need_locks=no
8000 fi
8001
8002 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8003 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8004
8005 runpath_var=
8006 allow_undefined_flag=
8007 enable_shared_with_static_runtimes=no
8008 archive_cmds=
8009 archive_expsym_cmds=
8010 old_archive_From_new_cmds=
8011 old_archive_from_expsyms_cmds=
8012 export_dynamic_flag_spec=
8013 whole_archive_flag_spec=
8014 thread_safe_flag_spec=
8015 hardcode_libdir_flag_spec=
8016 hardcode_libdir_flag_spec_ld=
8017 hardcode_libdir_separator=
8018 hardcode_direct=no
8019 hardcode_minus_L=no
8020 hardcode_shlibpath_var=unsupported
8021 link_all_deplibs=unknown
8022 hardcode_automatic=no
8023 module_cmds=
8024 module_expsym_cmds=
8025 always_export_symbols=no
8026 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8027 # include_expsyms should be a list of space-separated symbols to be *always*
8028 # included in the symbol list
8029 include_expsyms=
8030 # exclude_expsyms can be an extended regexp of symbols to exclude
8031 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8032 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8033 # as well as any symbol that contains `d'.
8034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8036 # platforms (ab)use it in PIC code, but their linkers get confused if
8037 # the symbol is explicitly referenced. Since portable code cannot
8038 # rely on this symbol name, it's probably fine to never include it in
8039 # preloaded symbol tables.
8040 # Exclude shared library initialization/finalization symbols.
8041 extract_expsyms_cmds=
8042 # Just being paranoid about ensuring that cc_basename is set.
8043 for cc_temp in $compiler""; do
8044 case $cc_temp in
8045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047 \-*) ;;
8048 *) break;;
8049 esac
8050 done
8051 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8052
8053 case $host_os in
8054 cygwin* | mingw* | pw32*)
8055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8056 # When not using gcc, we currently assume that we are using
8057 # Microsoft Visual C++.
8058 if test "$GCC" != yes; then
8059 with_gnu_ld=no
8060 fi
8061 ;;
8062 interix*)
8063 # we just hope/assume this is gcc and not c89 (= MSVC++)
8064 with_gnu_ld=yes
8065 ;;
8066 openbsd*)
8067 with_gnu_ld=no
8068 ;;
8069 esac
8070
8071 ld_shlibs=yes
8072 if test "$with_gnu_ld" = yes; then
8073 # If archive_cmds runs LD, not CC, wlarc should be empty
8074 wlarc='${wl}'
8075
8076 # Set some defaults for GNU ld with shared library support. These
8077 # are reset later if shared libraries are not supported. Putting them
8078 # here allows them to be overridden if necessary.
8079 runpath_var=LD_RUN_PATH
8080 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8081 export_dynamic_flag_spec='${wl}--export-dynamic'
8082 # ancient GNU ld didn't support --whole-archive et. al.
8083 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8084 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8085 else
8086 whole_archive_flag_spec=
8087 fi
8088 supports_anon_versioning=no
8089 case `$LD -v 2>/dev/null` in
8090 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8093 *\ 2.11.*) ;; # other 2.11 versions
8094 *) supports_anon_versioning=yes ;;
8095 esac
8096
8097 # See if GNU ld supports shared libraries.
8098 case $host_os in
8099 aix[3-9]*)
8100 # On AIX/PPC, the GNU linker is very broken
8101 if test "$host_cpu" != ia64; then
8102 ld_shlibs=no
8103 cat <<EOF 1>&2
8104
8105 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8106 *** to be unable to reliably create shared libraries on AIX.
8107 *** Therefore, libtool is disabling shared libraries support. If you
8108 *** really care for shared libraries, you may want to modify your PATH
8109 *** so that a non-GNU linker is found, and then restart.
8110
8111 EOF
8112 fi
8113 ;;
8114
8115 amigaos*)
8116 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)'
8117 hardcode_libdir_flag_spec='-L$libdir'
8118 hardcode_minus_L=yes
8119
8120 # Samuel A. Falvo II <[email protected]> reports
8121 # that the semantics of dynamic libraries on AmigaOS, at least up
8122 # to version 4, is to share data among multiple programs linked
8123 # with the same dynamic library. Since this doesn't match the
8124 # behavior of shared libraries on other platforms, we can't use
8125 # them.
8126 ld_shlibs=no
8127 ;;
8128
8129 beos*)
8130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8131 allow_undefined_flag=unsupported
8132 # Joseph Beckenbach <[email protected]> says some releases of gcc
8133 # support --undefined. This deserves some investigation. FIXME
8134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135 else
8136 ld_shlibs=no
8137 fi
8138 ;;
8139
8140 cygwin* | mingw* | pw32*)
8141 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8142 # as there is no search path for DLLs.
8143 hardcode_libdir_flag_spec='-L$libdir'
8144 allow_undefined_flag=unsupported
8145 always_export_symbols=no
8146 enable_shared_with_static_runtimes=yes
8147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8148
8149 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8151 # If the export-symbols file already is a .def file (1st line
8152 # is EXPORTS), use it as is; otherwise, prepend...
8153 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8154 cp $export_symbols $output_objdir/$soname.def;
8155 else
8156 echo EXPORTS > $output_objdir/$soname.def;
8157 cat $export_symbols >> $output_objdir/$soname.def;
8158 fi~
8159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8160 else
8161 ld_shlibs=no
8162 fi
8163 ;;
8164
8165 interix[3-9]*)
8166 hardcode_direct=no
8167 hardcode_shlibpath_var=no
8168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8169 export_dynamic_flag_spec='${wl}-E'
8170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8171 # Instead, shared libraries are loaded at an image base (0x10000000 by
8172 # default) and relocated if they conflict, which is a slow very memory
8173 # consuming and fragmenting process. To avoid this, we pick a random,
8174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8175 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8177 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'
8178 ;;
8179
8180 gnu* | linux* | k*bsd*-gnu)
8181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8182 tmp_addflag=
8183 case $cc_basename,$host_cpu in
8184 pgcc*) # Portland Group C compiler
8185 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'
8186 tmp_addflag=' $pic_flag'
8187 ;;
8188 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8189 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'
8190 tmp_addflag=' $pic_flag -Mnomain' ;;
8191 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8192 tmp_addflag=' -i_dynamic' ;;
8193 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8194 tmp_addflag=' -i_dynamic -nofor_main' ;;
8195 ifc* | ifort*) # Intel Fortran compiler
8196 tmp_addflag=' -nofor_main' ;;
8197 esac
8198 case `$CC -V 2>&1 | sed 5q` in
8199 *Sun\ C*) # Sun C 5.9
8200 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'
8201 tmp_sharedflag='-G' ;;
8202 *Sun\ F*) # Sun Fortran 8.3
8203 tmp_sharedflag='-G' ;;
8204 *)
8205 tmp_sharedflag='-shared' ;;
8206 esac
8207 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208
8209 if test $supports_anon_versioning = yes; then
8210 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8212 $echo "local: *; };" >> $output_objdir/$libname.ver~
8213 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8214 fi
8215 else
8216 ld_shlibs=no
8217 fi
8218 ;;
8219
8220 netbsd*)
8221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8222 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8223 wlarc=
8224 else
8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8227 fi
8228 ;;
8229
8230 solaris*)
8231 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8232 ld_shlibs=no
8233 cat <<EOF 1>&2
8234
8235 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8236 *** create shared libraries on Solaris systems. Therefore, libtool
8237 *** is disabling shared libraries support. We urge you to upgrade GNU
8238 *** binutils to release 2.9.1 or newer. Another option is to modify
8239 *** your PATH or compiler configuration so that the native linker is
8240 *** used, and then restart.
8241
8242 EOF
8243 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246 else
8247 ld_shlibs=no
8248 fi
8249 ;;
8250
8251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8252 case `$LD -v 2>&1` in
8253 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8254 ld_shlibs=no
8255 cat <<_LT_EOF 1>&2
8256
8257 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8258 *** reliably create shared libraries on SCO systems. Therefore, libtool
8259 *** is disabling shared libraries support. We urge you to upgrade GNU
8260 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8261 *** your PATH or compiler configuration so that the native linker is
8262 *** used, and then restart.
8263
8264 _LT_EOF
8265 ;;
8266 *)
8267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8268 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8271 else
8272 ld_shlibs=no
8273 fi
8274 ;;
8275 esac
8276 ;;
8277
8278 sunos4*)
8279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8280 wlarc=
8281 hardcode_direct=yes
8282 hardcode_shlibpath_var=no
8283 ;;
8284
8285 *)
8286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289 else
8290 ld_shlibs=no
8291 fi
8292 ;;
8293 esac
8294
8295 if test "$ld_shlibs" = no; then
8296 runpath_var=
8297 hardcode_libdir_flag_spec=
8298 export_dynamic_flag_spec=
8299 whole_archive_flag_spec=
8300 fi
8301 else
8302 # PORTME fill in a description of your system's linker (not GNU ld)
8303 case $host_os in
8304 aix3*)
8305 allow_undefined_flag=unsupported
8306 always_export_symbols=yes
8307 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'
8308 # Note: this linker hardcodes the directories in LIBPATH if there
8309 # are no directories specified by -L.
8310 hardcode_minus_L=yes
8311 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8312 # Neither direct hardcoding nor static linking is supported with a
8313 # broken collect2.
8314 hardcode_direct=unsupported
8315 fi
8316 ;;
8317
8318 aix[4-9]*)
8319 if test "$host_cpu" = ia64; then
8320 # On IA64, the linker does run time linking by default, so we don't
8321 # have to do anything special.
8322 aix_use_runtimelinking=no
8323 exp_sym_flag='-Bexport'
8324 no_entry_flag=""
8325 else
8326 # If we're using GNU nm, then we don't want the "-C" option.
8327 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8329 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'
8330 else
8331 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'
8332 fi
8333 aix_use_runtimelinking=no
8334
8335 # Test if we are trying to use run time linking or normal
8336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8337 # need to do runtime linking.
8338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8339 for ld_flag in $LDFLAGS; do
8340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8341 aix_use_runtimelinking=yes
8342 break
8343 fi
8344 done
8345 ;;
8346 esac
8347
8348 exp_sym_flag='-bexport'
8349 no_entry_flag='-bnoentry'
8350 fi
8351
8352 # When large executables or shared objects are built, AIX ld can
8353 # have problems creating the table of contents. If linking a library
8354 # or program results in "error TOC overflow" add -mminimal-toc to
8355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8357
8358 archive_cmds=''
8359 hardcode_direct=yes
8360 hardcode_libdir_separator=':'
8361 link_all_deplibs=yes
8362
8363 if test "$GCC" = yes; then
8364 case $host_os in aix4.[012]|aix4.[012].*)
8365 # We only want to do this on AIX 4.2 and lower, the check
8366 # below for broken collect2 doesn't work under 4.3+
8367 collect2name=`${CC} -print-prog-name=collect2`
8368 if test -f "$collect2name" && \
8369 strings "$collect2name" | grep resolve_lib_name >/dev/null
8370 then
8371 # We have reworked collect2
8372 :
8373 else
8374 # We have old collect2
8375 hardcode_direct=unsupported
8376 # It fails to find uninstalled libraries when the uninstalled
8377 # path is not listed in the libpath. Setting hardcode_minus_L
8378 # to unsupported forces relinking
8379 hardcode_minus_L=yes
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_libdir_separator=
8382 fi
8383 ;;
8384 esac
8385 shared_flag='-shared'
8386 if test "$aix_use_runtimelinking" = yes; then
8387 shared_flag="$shared_flag "'${wl}-G'
8388 fi
8389 else
8390 # not using gcc
8391 if test "$host_cpu" = ia64; then
8392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8393 # chokes on -Wl,-G. The following line is correct:
8394 shared_flag='-G'
8395 else
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag='${wl}-G'
8398 else
8399 shared_flag='${wl}-bM:SRE'
8400 fi
8401 fi
8402 fi
8403
8404 # It seems that -bexpall does not export symbols beginning with
8405 # underscore (_), so it is better to generate a list of symbols to export.
8406 always_export_symbols=yes
8407 if test "$aix_use_runtimelinking" = yes; then
8408 # Warning - without using the other runtime loading flags (-brtl),
8409 # -berok will link without error, but may produce a broken library.
8410 allow_undefined_flag='-berok'
8411 # Determine the default libpath from the value encoded in an empty executable.
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418
8419 int
8420 main ()
8421 {
8422
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_link") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest$ac_exeext && {
8445 test "$cross_compiling" = yes ||
8446 $as_test_x conftest$ac_exeext
8447 }; then
8448
8449 lt_aix_libpath_sed='
8450 /Import File Strings/,/^$/ {
8451 /^0/ {
8452 s/^0 *\(.*\)$/\1/
8453 p
8454 }
8455 }'
8456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8457 # Check for a 64-bit object if we didn't find anything.
8458 if test -z "$aix_libpath"; then
8459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8460 fi
8461 else
8462 $as_echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465
8466 fi
8467
8468 rm -rf conftest.dSYM
8469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470 conftest$ac_exeext conftest.$ac_ext
8471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8472
8473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8474 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"
8475 else
8476 if test "$host_cpu" = ia64; then
8477 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8478 allow_undefined_flag="-z nodefs"
8479 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"
8480 else
8481 # Determine the default libpath from the value encoded in an empty executable.
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488
8489 int
8490 main ()
8491 {
8492
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (ac_try="$ac_link"
8499 case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504 $as_echo "$ac_try_echo") >&5
8505 (eval "$ac_link") 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && {
8512 test -z "$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 } && test -s conftest$ac_exeext && {
8515 test "$cross_compiling" = yes ||
8516 $as_test_x conftest$ac_exeext
8517 }; then
8518
8519 lt_aix_libpath_sed='
8520 /Import File Strings/,/^$/ {
8521 /^0/ {
8522 s/^0 *\(.*\)$/\1/
8523 p
8524 }
8525 }'
8526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8527 # Check for a 64-bit object if we didn't find anything.
8528 if test -z "$aix_libpath"; then
8529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8530 fi
8531 else
8532 $as_echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535
8536 fi
8537
8538 rm -rf conftest.dSYM
8539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540 conftest$ac_exeext conftest.$ac_ext
8541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8542
8543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8544 # Warning - without using the other run time loading flags,
8545 # -berok will link without error, but may produce a broken library.
8546 no_undefined_flag=' ${wl}-bernotok'
8547 allow_undefined_flag=' ${wl}-berok'
8548 # Exported symbols can be pulled into shared objects from archives
8549 whole_archive_flag_spec='$convenience'
8550 archive_cmds_need_lc=yes
8551 # This is similar to how AIX traditionally builds its shared libraries.
8552 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'
8553 fi
8554 fi
8555 ;;
8556
8557 amigaos*)
8558 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)'
8559 hardcode_libdir_flag_spec='-L$libdir'
8560 hardcode_minus_L=yes
8561 # see comment about different semantics on the GNU ld section
8562 ld_shlibs=no
8563 ;;
8564
8565 bsdi[45]*)
8566 export_dynamic_flag_spec=-rdynamic
8567 ;;
8568
8569 cygwin* | mingw* | pw32*)
8570 # When not using gcc, we currently assume that we are using
8571 # Microsoft Visual C++.
8572 # hardcode_libdir_flag_spec is actually meaningless, as there is
8573 # no search path for DLLs.
8574 hardcode_libdir_flag_spec=' '
8575 allow_undefined_flag=unsupported
8576 # Tell ltmain to make .lib files, not .a files.
8577 libext=lib
8578 # Tell ltmain to make .dll files, not .so files.
8579 shrext_cmds=".dll"
8580 # FIXME: Setting linknames here is a bad hack.
8581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8582 # The linker will automatically build a .lib file if we build a DLL.
8583 old_archive_From_new_cmds='true'
8584 # FIXME: Should let the user specify the lib program.
8585 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8586 fix_srcfile_path='`cygpath -w "$srcfile"`'
8587 enable_shared_with_static_runtimes=yes
8588 ;;
8589
8590 darwin* | rhapsody*)
8591 case $host_os in
8592 rhapsody* | darwin1.[012])
8593 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8594 ;;
8595 *) # Darwin 1.3 on
8596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8597 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8598 else
8599 case ${MACOSX_DEPLOYMENT_TARGET} in
8600 10.[012])
8601 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8602 ;;
8603 10.*)
8604 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8605 ;;
8606 esac
8607 fi
8608 ;;
8609 esac
8610 archive_cmds_need_lc=no
8611 hardcode_direct=no
8612 hardcode_automatic=yes
8613 hardcode_shlibpath_var=unsupported
8614 whole_archive_flag_spec=''
8615 link_all_deplibs=yes
8616 if test "$GCC" = yes ; then
8617 output_verbose_link_cmd='echo'
8618 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8619 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8620 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}"
8621 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}"
8622 else
8623 case $cc_basename in
8624 xlc*)
8625 output_verbose_link_cmd='echo'
8626 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8627 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8628 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8629 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}'
8630 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}'
8631 ;;
8632 *)
8633 ld_shlibs=no
8634 ;;
8635 esac
8636 fi
8637 ;;
8638
8639 dgux*)
8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 freebsd1*)
8646 ld_shlibs=no
8647 ;;
8648
8649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8650 # support. Future versions do this automatically, but an explicit c++rt0.o
8651 # does not break anything, and helps significantly (at the cost of a little
8652 # extra space).
8653 freebsd2.2*)
8654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8655 hardcode_libdir_flag_spec='-R$libdir'
8656 hardcode_direct=yes
8657 hardcode_shlibpath_var=no
8658 ;;
8659
8660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8661 freebsd2*)
8662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8663 hardcode_direct=yes
8664 hardcode_minus_L=yes
8665 hardcode_shlibpath_var=no
8666 ;;
8667
8668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8669 freebsd* | dragonfly*)
8670 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8671 hardcode_libdir_flag_spec='-R$libdir'
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8674 ;;
8675
8676 hpux9*)
8677 if test "$GCC" = yes; then
8678 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'
8679 else
8680 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'
8681 fi
8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683 hardcode_libdir_separator=:
8684 hardcode_direct=yes
8685
8686 # hardcode_minus_L: Not really in the search PATH,
8687 # but as the default location of the library.
8688 hardcode_minus_L=yes
8689 export_dynamic_flag_spec='${wl}-E'
8690 ;;
8691
8692 hpux10*)
8693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8695 else
8696 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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 hardcode_direct=yes
8703 export_dynamic_flag_spec='${wl}-E'
8704
8705 # hardcode_minus_L: Not really in the search PATH,
8706 # but as the default location of the library.
8707 hardcode_minus_L=yes
8708 fi
8709 ;;
8710
8711 hpux11*)
8712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8713 case $host_cpu in
8714 hppa*64*)
8715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 ;;
8717 ia64*)
8718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8719 ;;
8720 *)
8721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722 ;;
8723 esac
8724 else
8725 case $host_cpu in
8726 hppa*64*)
8727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728 ;;
8729 ia64*)
8730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8731 ;;
8732 *)
8733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 ;;
8735 esac
8736 fi
8737 if test "$with_gnu_ld" = no; then
8738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739 hardcode_libdir_separator=:
8740
8741 case $host_cpu in
8742 hppa*64*|ia64*)
8743 hardcode_libdir_flag_spec_ld='+b $libdir'
8744 hardcode_direct=no
8745 hardcode_shlibpath_var=no
8746 ;;
8747 *)
8748 hardcode_direct=yes
8749 export_dynamic_flag_spec='${wl}-E'
8750
8751 # hardcode_minus_L: Not really in the search PATH,
8752 # but as the default location of the library.
8753 hardcode_minus_L=yes
8754 ;;
8755 esac
8756 fi
8757 ;;
8758
8759 irix5* | irix6* | nonstopux*)
8760 if test "$GCC" = yes; then
8761 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'
8762 else
8763 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'
8764 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8765 fi
8766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767 hardcode_libdir_separator=:
8768 link_all_deplibs=yes
8769 ;;
8770
8771 netbsd*)
8772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8774 else
8775 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8776 fi
8777 hardcode_libdir_flag_spec='-R$libdir'
8778 hardcode_direct=yes
8779 hardcode_shlibpath_var=no
8780 ;;
8781
8782 newsos6)
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 hardcode_libdir_separator=:
8787 hardcode_shlibpath_var=no
8788 ;;
8789
8790 openbsd*)
8791 if test -f /usr/libexec/ld.so; then
8792 hardcode_direct=yes
8793 hardcode_shlibpath_var=no
8794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8798 export_dynamic_flag_spec='${wl}-E'
8799 else
8800 case $host_os in
8801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_libdir_flag_spec='-R$libdir'
8804 ;;
8805 *)
8806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8808 ;;
8809 esac
8810 fi
8811 else
8812 ld_shlibs=no
8813 fi
8814 ;;
8815
8816 os2*)
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_minus_L=yes
8819 allow_undefined_flag=unsupported
8820 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'
8821 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8822 ;;
8823
8824 osf3*)
8825 if test "$GCC" = yes; then
8826 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8827 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'
8828 else
8829 allow_undefined_flag=' -expect_unresolved \*'
8830 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'
8831 fi
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 hardcode_libdir_separator=:
8834 ;;
8835
8836 osf4* | osf5*) # as osf3* with the addition of -msym flag
8837 if test "$GCC" = yes; then
8838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8839 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'
8840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841 else
8842 allow_undefined_flag=' -expect_unresolved \*'
8843 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'
8844 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8845 $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'
8846
8847 # Both c and cxx compiler support -rpath directly
8848 hardcode_libdir_flag_spec='-rpath $libdir'
8849 fi
8850 hardcode_libdir_separator=:
8851 ;;
8852
8853 solaris*)
8854 no_undefined_flag=' -z text'
8855 if test "$GCC" = yes; then
8856 wlarc='${wl}'
8857 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8859 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8860 else
8861 wlarc=''
8862 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8865 fi
8866 hardcode_libdir_flag_spec='-R$libdir'
8867 hardcode_shlibpath_var=no
8868 case $host_os in
8869 solaris2.[0-5] | solaris2.[0-5].*) ;;
8870 *)
8871 # The compiler driver will combine and reorder linker options,
8872 # but understands `-z linker_flag'. GCC discards it without `$wl',
8873 # but is careful enough not to reorder.
8874 # Supported since Solaris 2.6 (maybe 2.5.1?)
8875 if test "$GCC" = yes; then
8876 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8877 else
8878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8879 fi
8880 ;;
8881 esac
8882 link_all_deplibs=yes
8883 ;;
8884
8885 sunos4*)
8886 if test "x$host_vendor" = xsequent; then
8887 # Use $CC to link under sequent, because it throws in some extra .o
8888 # files that make .init and .fini sections work.
8889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8890 else
8891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8892 fi
8893 hardcode_libdir_flag_spec='-L$libdir'
8894 hardcode_direct=yes
8895 hardcode_minus_L=yes
8896 hardcode_shlibpath_var=no
8897 ;;
8898
8899 sysv4)
8900 case $host_vendor in
8901 sni)
8902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903 hardcode_direct=yes # is this really true???
8904 ;;
8905 siemens)
8906 ## LD is ld it makes a PLAMLIB
8907 ## CC just makes a GrossModule.
8908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8909 reload_cmds='$CC -r -o $output$reload_objs'
8910 hardcode_direct=no
8911 ;;
8912 motorola)
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8915 ;;
8916 esac
8917 runpath_var='LD_RUN_PATH'
8918 hardcode_shlibpath_var=no
8919 ;;
8920
8921 sysv4.3*)
8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_shlibpath_var=no
8924 export_dynamic_flag_spec='-Bexport'
8925 ;;
8926
8927 sysv4*MP*)
8928 if test -d /usr/nec; then
8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930 hardcode_shlibpath_var=no
8931 runpath_var=LD_RUN_PATH
8932 hardcode_runpath_var=yes
8933 ld_shlibs=yes
8934 fi
8935 ;;
8936
8937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8938 no_undefined_flag='${wl}-z,text'
8939 archive_cmds_need_lc=no
8940 hardcode_shlibpath_var=no
8941 runpath_var='LD_RUN_PATH'
8942
8943 if test "$GCC" = yes; then
8944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 else
8947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 fi
8950 ;;
8951
8952 sysv5* | sco3.2v5* | sco5v6*)
8953 # Note: We can NOT use -z defs as we might desire, because we do not
8954 # link with -lc, and that would cause any symbols used from libc to
8955 # always be unresolved, which means just about no library would
8956 # ever link correctly. If we're not using GNU ld we use -z text
8957 # though, which does catch some bad symbols but isn't as heavy-handed
8958 # as -z defs.
8959 no_undefined_flag='${wl}-z,text'
8960 allow_undefined_flag='${wl}-z,nodefs'
8961 archive_cmds_need_lc=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8964 hardcode_libdir_separator=':'
8965 link_all_deplibs=yes
8966 export_dynamic_flag_spec='${wl}-Bexport'
8967 runpath_var='LD_RUN_PATH'
8968
8969 if test "$GCC" = yes; then
8970 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 else
8973 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 fi
8976 ;;
8977
8978 uts4*)
8979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_libdir_flag_spec='-L$libdir'
8981 hardcode_shlibpath_var=no
8982 ;;
8983
8984 *)
8985 ld_shlibs=no
8986 ;;
8987 esac
8988 fi
8989
8990 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8991 $as_echo "$ld_shlibs" >&6; }
8992 test "$ld_shlibs" = no && can_build_shared=no
8993
8994 #
8995 # Do we need to explicitly link libc?
8996 #
8997 case "x$archive_cmds_need_lc" in
8998 x|xyes)
8999 # Assume -lc should be added
9000 archive_cmds_need_lc=yes
9001
9002 if test "$enable_shared" = yes && test "$GCC" = yes; then
9003 case $archive_cmds in
9004 *'~'*)
9005 # FIXME: we may have to deal with multi-command sequences.
9006 ;;
9007 '$CC '*)
9008 # Test whether the compiler implicitly links with -lc since on some
9009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9010 # to ld, don't add -lc before -lgcc.
9011 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9012 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9013 $rm conftest*
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015
9016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9017 (eval $ac_compile) 2>&5
9018 ac_status=$?
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } 2>conftest.err; then
9021 soname=conftest
9022 lib=conftest
9023 libobjs=conftest.$ac_objext
9024 deplibs=
9025 wl=$lt_prog_compiler_wl
9026 pic_flag=$lt_prog_compiler_pic
9027 compiler_flags=-v
9028 linker_flags=-v
9029 verstring=
9030 output_objdir=.
9031 libname=conftest
9032 lt_save_allow_undefined_flag=$allow_undefined_flag
9033 allow_undefined_flag=
9034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9035 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9036 ac_status=$?
9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }
9039 then
9040 archive_cmds_need_lc=no
9041 else
9042 archive_cmds_need_lc=yes
9043 fi
9044 allow_undefined_flag=$lt_save_allow_undefined_flag
9045 else
9046 cat conftest.err 1>&5
9047 fi
9048 $rm conftest*
9049 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9050 $as_echo "$archive_cmds_need_lc" >&6; }
9051 ;;
9052 esac
9053 fi
9054 ;;
9055 esac
9056
9057 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9058 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9059 library_names_spec=
9060 libname_spec='lib$name'
9061 soname_spec=
9062 shrext_cmds=".so"
9063 postinstall_cmds=
9064 postuninstall_cmds=
9065 finish_cmds=
9066 finish_eval=
9067 shlibpath_var=
9068 shlibpath_overrides_runpath=unknown
9069 version_type=none
9070 dynamic_linker="$host_os ld.so"
9071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9072
9073 if test "$GCC" = yes; then
9074 case $host_os in
9075 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9076 *) lt_awk_arg="/^libraries:/" ;;
9077 esac
9078 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9079 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9080 # if the path contains ";" then we assume it to be the separator
9081 # otherwise default to the standard path separator (i.e. ":") - it is
9082 # assumed that no part of a normal pathname contains ";" but that should
9083 # okay in the real world where ";" in dirpaths is itself problematic.
9084 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9085 else
9086 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9087 fi
9088 # Ok, now we have the path, separated by spaces, we can step through it
9089 # and add multilib dir if necessary.
9090 lt_tmp_lt_search_path_spec=
9091 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9092 for lt_sys_path in $lt_search_path_spec; do
9093 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9095 else
9096 test -d "$lt_sys_path" && \
9097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9098 fi
9099 done
9100 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9101 BEGIN {RS=" "; FS="/|\n";} {
9102 lt_foo="";
9103 lt_count=0;
9104 for (lt_i = NF; lt_i > 0; lt_i--) {
9105 if ($lt_i != "" && $lt_i != ".") {
9106 if ($lt_i == "..") {
9107 lt_count++;
9108 } else {
9109 if (lt_count == 0) {
9110 lt_foo="/" $lt_i lt_foo;
9111 } else {
9112 lt_count--;
9113 }
9114 }
9115 }
9116 }
9117 if (lt_foo != "") { lt_freq[lt_foo]++; }
9118 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9119 }'`
9120 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9121 else
9122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9123 fi
9124 need_lib_prefix=unknown
9125 hardcode_into_libs=no
9126
9127 # when you set need_version to no, make sure it does not cause -set_version
9128 # flags to be left without arguments
9129 need_version=unknown
9130
9131 case $host_os in
9132 aix3*)
9133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9135 shlibpath_var=LIBPATH
9136
9137 # AIX 3 has no versioning support, so we append a major version to the name.
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 ;;
9140
9141 aix[4-9]*)
9142 version_type=linux
9143 need_lib_prefix=no
9144 need_version=no
9145 hardcode_into_libs=yes
9146 if test "$host_cpu" = ia64; then
9147 # AIX 5 supports IA64
9148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 else
9151 # With GCC up to 2.95.x, collect2 would create an import file
9152 # for dependence libraries. The import file would start with
9153 # the line `#! .'. This would cause the generated library to
9154 # depend on `.', always an invalid library. This was fixed in
9155 # development snapshots of GCC prior to 3.0.
9156 case $host_os in
9157 aix4 | aix4.[01] | aix4.[01].*)
9158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9159 echo ' yes '
9160 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9161 :
9162 else
9163 can_build_shared=no
9164 fi
9165 ;;
9166 esac
9167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9168 # soname into executable. Probably we can add versioning support to
9169 # collect2, so additional links can be useful in future.
9170 if test "$aix_use_runtimelinking" = yes; then
9171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9172 # instead of lib<name>.a to let people know that these are not
9173 # typical AIX shared libraries.
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 else
9176 # We preserve .a as extension for shared libraries through AIX4.2
9177 # and later when we are not doing run time linking.
9178 library_names_spec='${libname}${release}.a $libname.a'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 fi
9181 shlibpath_var=LIBPATH
9182 fi
9183 ;;
9184
9185 amigaos*)
9186 library_names_spec='$libname.ixlibrary $libname.a'
9187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9188 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'
9189 ;;
9190
9191 beos*)
9192 library_names_spec='${libname}${shared_ext}'
9193 dynamic_linker="$host_os ld.so"
9194 shlibpath_var=LIBRARY_PATH
9195 ;;
9196
9197 bsdi[45]*)
9198 version_type=linux
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9206 # the default ld.so.conf also contains /usr/contrib/lib and
9207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9208 # libtool to hard-code these into programs
9209 ;;
9210
9211 cygwin* | mingw* | pw32*)
9212 version_type=windows
9213 shrext_cmds=".dll"
9214 need_version=no
9215 need_lib_prefix=no
9216
9217 case $GCC,$host_os in
9218 yes,cygwin* | yes,mingw* | yes,pw32*)
9219 library_names_spec='$libname.dll.a'
9220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9221 postinstall_cmds='base_file=`basename \${file}`~
9222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9223 dldir=$destdir/`dirname \$dlpath`~
9224 test -d \$dldir || mkdir -p \$dldir~
9225 $install_prog $dir/$dlname \$dldir/$dlname~
9226 chmod a+x \$dldir/$dlname'
9227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9228 dlpath=$dir/\$dldll~
9229 $rm \$dlpath'
9230 shlibpath_overrides_runpath=yes
9231
9232 case $host_os in
9233 cygwin*)
9234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9236 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9237 ;;
9238 mingw*)
9239 # MinGW DLLs use traditional 'lib' prefix
9240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9241 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9242 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9243 # It is most probably a Windows format PATH printed by
9244 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9245 # path with ; separators, and with drive letters. We can handle the
9246 # drive letters (cygwin fileutils understands them), so leave them,
9247 # especially as we might pass files found there to a mingw objdump,
9248 # which wouldn't understand a cygwinified path. Ahh.
9249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9250 else
9251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9252 fi
9253 ;;
9254 pw32*)
9255 # pw32 DLLs use 'pw' prefix rather than 'lib'
9256 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9257 ;;
9258 esac
9259 ;;
9260
9261 *)
9262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9263 ;;
9264 esac
9265 dynamic_linker='Win32 ld.exe'
9266 # FIXME: first we should search . and the directory the executable is in
9267 shlibpath_var=PATH
9268 ;;
9269
9270 darwin* | rhapsody*)
9271 dynamic_linker="$host_os dyld"
9272 version_type=darwin
9273 need_lib_prefix=no
9274 need_version=no
9275 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9276 soname_spec='${libname}${release}${major}$shared_ext'
9277 shlibpath_overrides_runpath=yes
9278 shlibpath_var=DYLD_LIBRARY_PATH
9279 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9280
9281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9283 ;;
9284
9285 dgux*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9292 ;;
9293
9294 freebsd1*)
9295 dynamic_linker=no
9296 ;;
9297
9298 freebsd* | dragonfly*)
9299 # DragonFly does not have aout. When/if they implement a new
9300 # versioning mechanism, adjust this.
9301 if test -x /usr/bin/objformat; then
9302 objformat=`/usr/bin/objformat`
9303 else
9304 case $host_os in
9305 freebsd[123]*) objformat=aout ;;
9306 *) objformat=elf ;;
9307 esac
9308 fi
9309 version_type=freebsd-$objformat
9310 case $version_type in
9311 freebsd-elf*)
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9313 need_version=no
9314 need_lib_prefix=no
9315 ;;
9316 freebsd-*)
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9318 need_version=yes
9319 ;;
9320 esac
9321 shlibpath_var=LD_LIBRARY_PATH
9322 case $host_os in
9323 freebsd2*)
9324 shlibpath_overrides_runpath=yes
9325 ;;
9326 freebsd3.[01]* | freebsdelf3.[01]*)
9327 shlibpath_overrides_runpath=yes
9328 hardcode_into_libs=yes
9329 ;;
9330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9332 shlibpath_overrides_runpath=no
9333 hardcode_into_libs=yes
9334 ;;
9335 *) # from 4.6 on, and DragonFly
9336 shlibpath_overrides_runpath=yes
9337 hardcode_into_libs=yes
9338 ;;
9339 esac
9340 ;;
9341
9342 gnu*)
9343 version_type=linux
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 hardcode_into_libs=yes
9350 ;;
9351
9352 hpux9* | hpux10* | hpux11*)
9353 # Give a soname corresponding to the major version so that dld.sl refuses to
9354 # link against other versions.
9355 version_type=sunos
9356 need_lib_prefix=no
9357 need_version=no
9358 case $host_cpu in
9359 ia64*)
9360 shrext_cmds='.so'
9361 hardcode_into_libs=yes
9362 dynamic_linker="$host_os dld.so"
9363 shlibpath_var=LD_LIBRARY_PATH
9364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 if test "X$HPUX_IA64_MODE" = X32; then
9368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9369 else
9370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9371 fi
9372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9373 ;;
9374 hppa*64*)
9375 shrext_cmds='.sl'
9376 hardcode_into_libs=yes
9377 dynamic_linker="$host_os dld.sl"
9378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9384 ;;
9385 *)
9386 shrext_cmds='.sl'
9387 dynamic_linker="$host_os dld.sl"
9388 shlibpath_var=SHLIB_PATH
9389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 ;;
9393 esac
9394 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9395 postinstall_cmds='chmod 555 $lib'
9396 ;;
9397
9398 interix[3-9]*)
9399 version_type=linux
9400 need_lib_prefix=no
9401 need_version=no
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=no
9407 hardcode_into_libs=yes
9408 ;;
9409
9410 irix5* | irix6* | nonstopux*)
9411 case $host_os in
9412 nonstopux*) version_type=nonstopux ;;
9413 *)
9414 if test "$lt_cv_prog_gnu_ld" = yes; then
9415 version_type=linux
9416 else
9417 version_type=irix
9418 fi ;;
9419 esac
9420 need_lib_prefix=no
9421 need_version=no
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9424 case $host_os in
9425 irix5* | nonstopux*)
9426 libsuff= shlibsuff=
9427 ;;
9428 *)
9429 case $LD in # libtool.m4 will add one of these switches to LD
9430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9431 libsuff= shlibsuff= libmagic=32-bit;;
9432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9433 libsuff=32 shlibsuff=N32 libmagic=N32;;
9434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9436 *) libsuff= shlibsuff= libmagic=never-match;;
9437 esac
9438 ;;
9439 esac
9440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9441 shlibpath_overrides_runpath=no
9442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9444 hardcode_into_libs=yes
9445 ;;
9446
9447 # No shared lib support for Linux oldld, aout, or coff.
9448 linux*oldld* | linux*aout* | linux*coff*)
9449 dynamic_linker=no
9450 ;;
9451
9452 # This must be Linux ELF.
9453 linux* | k*bsd*-gnu)
9454 version_type=linux
9455 need_lib_prefix=no
9456 need_version=no
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9460 shlibpath_var=LD_LIBRARY_PATH
9461 shlibpath_overrides_runpath=no
9462 # This implies no fast_install, which is unacceptable.
9463 # Some rework will be needed to allow for fast_install
9464 # before this can be enabled.
9465 hardcode_into_libs=yes
9466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9468
9469 # Append ld.so.conf contents to the search path
9470 if test -f /etc/ld.so.conf; then
9471 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' ' '`
9472 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9473 fi
9474
9475 # We used to test for /lib/ld.so.1 and disable shared libraries on
9476 # powerpc, because MkLinux only supported shared libraries with the
9477 # GNU dynamic linker. Since this was broken with cross compilers,
9478 # most powerpc-linux boxes support dynamic linking these days and
9479 # people can always --disable-shared, the test was removed, and we
9480 # assume the GNU/Linux dynamic linker is in use.
9481 dynamic_linker='GNU/Linux ld.so'
9482 ;;
9483
9484 netbsd*)
9485 version_type=sunos
9486 need_lib_prefix=no
9487 need_version=no
9488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9491 dynamic_linker='NetBSD (a.out) ld.so'
9492 else
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 dynamic_linker='NetBSD ld.elf_so'
9496 fi
9497 shlibpath_var=LD_LIBRARY_PATH
9498 shlibpath_overrides_runpath=yes
9499 hardcode_into_libs=yes
9500 ;;
9501
9502 newsos6)
9503 version_type=linux
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 ;;
9508
9509 nto-qnx*)
9510 version_type=linux
9511 need_lib_prefix=no
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=yes
9517 ;;
9518
9519 openbsd*)
9520 version_type=sunos
9521 sys_lib_dlsearch_path_spec="/usr/lib"
9522 need_lib_prefix=no
9523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9524 case $host_os in
9525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9526 *) need_version=no ;;
9527 esac
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9532 case $host_os in
9533 openbsd2.[89] | openbsd2.[89].*)
9534 shlibpath_overrides_runpath=no
9535 ;;
9536 *)
9537 shlibpath_overrides_runpath=yes
9538 ;;
9539 esac
9540 else
9541 shlibpath_overrides_runpath=yes
9542 fi
9543 ;;
9544
9545 os2*)
9546 libname_spec='$name'
9547 shrext_cmds=".dll"
9548 need_lib_prefix=no
9549 library_names_spec='$libname${shared_ext} $libname.a'
9550 dynamic_linker='OS/2 ld.exe'
9551 shlibpath_var=LIBPATH
9552 ;;
9553
9554 osf3* | osf4* | osf5*)
9555 version_type=osf
9556 need_lib_prefix=no
9557 need_version=no
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 shlibpath_var=LD_LIBRARY_PATH
9561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9563 ;;
9564
9565 rdos*)
9566 dynamic_linker=no
9567 ;;
9568
9569 solaris*)
9570 version_type=linux
9571 need_lib_prefix=no
9572 need_version=no
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9578 # ldd complains unless libraries are executable
9579 postinstall_cmds='chmod +x $lib'
9580 ;;
9581
9582 sunos4*)
9583 version_type=sunos
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9588 if test "$with_gnu_ld" = yes; then
9589 need_lib_prefix=no
9590 fi
9591 need_version=yes
9592 ;;
9593
9594 sysv4 | sysv4.3*)
9595 version_type=linux
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 case $host_vendor in
9600 sni)
9601 shlibpath_overrides_runpath=no
9602 need_lib_prefix=no
9603 export_dynamic_flag_spec='${wl}-Blargedynsym'
9604 runpath_var=LD_RUN_PATH
9605 ;;
9606 siemens)
9607 need_lib_prefix=no
9608 ;;
9609 motorola)
9610 need_lib_prefix=no
9611 need_version=no
9612 shlibpath_overrides_runpath=no
9613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9614 ;;
9615 esac
9616 ;;
9617
9618 sysv4*MP*)
9619 if test -d /usr/nec ;then
9620 version_type=linux
9621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9622 soname_spec='$libname${shared_ext}.$major'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 fi
9625 ;;
9626
9627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9628 version_type=freebsd-elf
9629 need_lib_prefix=no
9630 need_version=no
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 hardcode_into_libs=yes
9635 if test "$with_gnu_ld" = yes; then
9636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9637 shlibpath_overrides_runpath=no
9638 else
9639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9640 shlibpath_overrides_runpath=yes
9641 case $host_os in
9642 sco3.2v5*)
9643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9644 ;;
9645 esac
9646 fi
9647 sys_lib_dlsearch_path_spec='/usr/lib'
9648 ;;
9649
9650 uts4*)
9651 version_type=linux
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 ;;
9656
9657 *)
9658 dynamic_linker=no
9659 ;;
9660 esac
9661 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9662 $as_echo "$dynamic_linker" >&6; }
9663 test "$dynamic_linker" = no && can_build_shared=no
9664
9665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9667 else
9668 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9669 fi
9670
9671 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9672 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9673 $as_echo_n "(cached) " >&6
9674 else
9675 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9676 fi
9677
9678 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9679
9680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9681 if test "$GCC" = yes; then
9682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9683 fi
9684
9685 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9686 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9687 hardcode_action=
9688 if test -n "$hardcode_libdir_flag_spec" || \
9689 test -n "$runpath_var" || \
9690 test "X$hardcode_automatic" = "Xyes" ; then
9691
9692 # We can hardcode non-existant directories.
9693 if test "$hardcode_direct" != no &&
9694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9695 # have to relink, otherwise we might link with an installed library
9696 # when we should be linking with a yet-to-be-installed one
9697 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9698 test "$hardcode_minus_L" != no; then
9699 # Linking always hardcodes the temporary library directory.
9700 hardcode_action=relink
9701 else
9702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9703 hardcode_action=immediate
9704 fi
9705 else
9706 # We cannot hardcode anything, or else we can only hardcode existing
9707 # directories.
9708 hardcode_action=unsupported
9709 fi
9710 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9711 $as_echo "$hardcode_action" >&6; }
9712
9713 if test "$hardcode_action" = relink; then
9714 # Fast installation is not supported
9715 enable_fast_install=no
9716 elif test "$shlibpath_overrides_runpath" = yes ||
9717 test "$enable_shared" = no; then
9718 # Fast installation is not necessary
9719 enable_fast_install=needless
9720 fi
9721
9722 striplib=
9723 old_striplib=
9724 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9726 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9727 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9728 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9729 { $as_echo "$as_me:$LINENO: result: yes" >&5
9730 $as_echo "yes" >&6; }
9731 else
9732 # FIXME - insert some real tests, host_os isn't really good enough
9733 case $host_os in
9734 darwin*)
9735 if test -n "$STRIP" ; then
9736 striplib="$STRIP -x"
9737 old_striplib="$STRIP -S"
9738 { $as_echo "$as_me:$LINENO: result: yes" >&5
9739 $as_echo "yes" >&6; }
9740 else
9741 { $as_echo "$as_me:$LINENO: result: no" >&5
9742 $as_echo "no" >&6; }
9743 fi
9744 ;;
9745 *)
9746 { $as_echo "$as_me:$LINENO: result: no" >&5
9747 $as_echo "no" >&6; }
9748 ;;
9749 esac
9750 fi
9751
9752 if test "x$enable_dlopen" != xyes; then
9753 enable_dlopen=unknown
9754 enable_dlopen_self=unknown
9755 enable_dlopen_self_static=unknown
9756 else
9757 lt_cv_dlopen=no
9758 lt_cv_dlopen_libs=
9759
9760 case $host_os in
9761 beos*)
9762 lt_cv_dlopen="load_add_on"
9763 lt_cv_dlopen_libs=
9764 lt_cv_dlopen_self=yes
9765 ;;
9766
9767 mingw* | pw32*)
9768 lt_cv_dlopen="LoadLibrary"
9769 lt_cv_dlopen_libs=
9770 ;;
9771
9772 cygwin*)
9773 lt_cv_dlopen="dlopen"
9774 lt_cv_dlopen_libs=
9775 ;;
9776
9777 darwin*)
9778 # if libdl is installed we need to link against it
9779 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9780 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9782 $as_echo_n "(cached) " >&6
9783 else
9784 ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-ldl $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char dlopen ();
9800 int
9801 main ()
9802 {
9803 return dlopen ();
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815 $as_echo "$ac_try_echo") >&5
9816 (eval "$ac_link") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext && {
9826 test "$cross_compiling" = yes ||
9827 $as_test_x conftest$ac_exeext
9828 }; then
9829 ac_cv_lib_dl_dlopen=yes
9830 else
9831 $as_echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_lib_dl_dlopen=no
9835 fi
9836
9837 rm -rf conftest.dSYM
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9841 fi
9842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9846 else
9847
9848 lt_cv_dlopen="dyld"
9849 lt_cv_dlopen_libs=
9850 lt_cv_dlopen_self=yes
9851
9852 fi
9853
9854 ;;
9855
9856 *)
9857 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9858 $as_echo_n "checking for shl_load... " >&6; }
9859 if test "${ac_cv_func_shl_load+set}" = set; then
9860 $as_echo_n "(cached) " >&6
9861 else
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9870 #define shl_load innocuous_shl_load
9871
9872 /* System header to define __stub macros and hopefully few prototypes,
9873 which can conflict with char shl_load (); below.
9874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9875 <limits.h> exists even on freestanding compilers. */
9876
9877 #ifdef __STDC__
9878 # include <limits.h>
9879 #else
9880 # include <assert.h>
9881 #endif
9882
9883 #undef shl_load
9884
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char shl_load ();
9892 /* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895 #if defined __stub_shl_load || defined __stub___shl_load
9896 choke me
9897 #endif
9898
9899 int
9900 main ()
9901 {
9902 return shl_load ();
9903 ;
9904 return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9909 case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9912 esac
9913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9914 $as_echo "$ac_try_echo") >&5
9915 (eval "$ac_link") 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } && {
9922 test -z "$ac_c_werror_flag" ||
9923 test ! -s conftest.err
9924 } && test -s conftest$ac_exeext && {
9925 test "$cross_compiling" = yes ||
9926 $as_test_x conftest$ac_exeext
9927 }; then
9928 ac_cv_func_shl_load=yes
9929 else
9930 $as_echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933 ac_cv_func_shl_load=no
9934 fi
9935
9936 rm -rf conftest.dSYM
9937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9938 conftest$ac_exeext conftest.$ac_ext
9939 fi
9940 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9941 $as_echo "$ac_cv_func_shl_load" >&6; }
9942 if test "x$ac_cv_func_shl_load" = x""yes; then
9943 lt_cv_dlopen="shl_load"
9944 else
9945 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9946 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9947 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9948 $as_echo_n "(cached) " >&6
9949 else
9950 ac_check_lib_save_LIBS=$LIBS
9951 LIBS="-ldld $LIBS"
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958
9959 /* Override any GCC internal prototype to avoid an error.
9960 Use char because int might match the return type of a GCC
9961 builtin and then its argument prototype would still apply. */
9962 #ifdef __cplusplus
9963 extern "C"
9964 #endif
9965 char shl_load ();
9966 int
9967 main ()
9968 {
9969 return shl_load ();
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9981 $as_echo "$ac_try_echo") >&5
9982 (eval "$ac_link") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest$ac_exeext && {
9992 test "$cross_compiling" = yes ||
9993 $as_test_x conftest$ac_exeext
9994 }; then
9995 ac_cv_lib_dld_shl_load=yes
9996 else
9997 $as_echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 ac_cv_lib_dld_shl_load=no
10001 fi
10002
10003 rm -rf conftest.dSYM
10004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10007 fi
10008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10009 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10010 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10011 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10012 else
10013 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10014 $as_echo_n "checking for dlopen... " >&6; }
10015 if test "${ac_cv_func_dlopen+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define dlopen innocuous_dlopen
10027
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char dlopen (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10032
10033 #ifdef __STDC__
10034 # include <limits.h>
10035 #else
10036 # include <assert.h>
10037 #endif
10038
10039 #undef dlopen
10040
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char dlopen ();
10048 /* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051 #if defined __stub_dlopen || defined __stub___dlopen
10052 choke me
10053 #endif
10054
10055 int
10056 main ()
10057 {
10058 return dlopen ();
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071 (eval "$ac_link") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext && {
10081 test "$cross_compiling" = yes ||
10082 $as_test_x conftest$ac_exeext
10083 }; then
10084 ac_cv_func_dlopen=yes
10085 else
10086 $as_echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_cv_func_dlopen=no
10090 fi
10091
10092 rm -rf conftest.dSYM
10093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094 conftest$ac_exeext conftest.$ac_ext
10095 fi
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10097 $as_echo "$ac_cv_func_dlopen" >&6; }
10098 if test "x$ac_cv_func_dlopen" = x""yes; then
10099 lt_cv_dlopen="dlopen"
10100 else
10101 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10105 else
10106 ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-ldl $LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char dlopen ();
10122 int
10123 main ()
10124 {
10125 return dlopen ();
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (ac_try="$ac_link"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138 (eval "$ac_link") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest$ac_exeext && {
10148 test "$cross_compiling" = yes ||
10149 $as_test_x conftest$ac_exeext
10150 }; then
10151 ac_cv_lib_dl_dlopen=yes
10152 else
10153 $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ac_cv_lib_dl_dlopen=no
10157 fi
10158
10159 rm -rf conftest.dSYM
10160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10166 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10168 else
10169 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10170 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10171 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10172 $as_echo_n "(cached) " >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lsvld $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 char dlopen ();
10190 int
10191 main ()
10192 {
10193 return dlopen ();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203 esac
10204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10205 $as_echo "$ac_try_echo") >&5
10206 (eval "$ac_link") 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && {
10213 test -z "$ac_c_werror_flag" ||
10214 test ! -s conftest.err
10215 } && test -s conftest$ac_exeext && {
10216 test "$cross_compiling" = yes ||
10217 $as_test_x conftest$ac_exeext
10218 }; then
10219 ac_cv_lib_svld_dlopen=yes
10220 else
10221 $as_echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 ac_cv_lib_svld_dlopen=no
10225 fi
10226
10227 rm -rf conftest.dSYM
10228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10231 fi
10232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10233 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10234 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10236 else
10237 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10238 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10239 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10240 $as_echo_n "(cached) " >&6
10241 else
10242 ac_check_lib_save_LIBS=$LIBS
10243 LIBS="-ldld $LIBS"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char dld_link ();
10258 int
10259 main ()
10260 {
10261 return dld_link ();
10262 ;
10263 return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271 esac
10272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273 $as_echo "$ac_try_echo") >&5
10274 (eval "$ac_link") 2>conftest.er1
10275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && {
10281 test -z "$ac_c_werror_flag" ||
10282 test ! -s conftest.err
10283 } && test -s conftest$ac_exeext && {
10284 test "$cross_compiling" = yes ||
10285 $as_test_x conftest$ac_exeext
10286 }; then
10287 ac_cv_lib_dld_dld_link=yes
10288 else
10289 $as_echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 ac_cv_lib_dld_dld_link=no
10293 fi
10294
10295 rm -rf conftest.dSYM
10296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10297 conftest$ac_exeext conftest.$ac_ext
10298 LIBS=$ac_check_lib_save_LIBS
10299 fi
10300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10301 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10302 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10303 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10304 fi
10305
10306
10307 fi
10308
10309
10310 fi
10311
10312
10313 fi
10314
10315
10316 fi
10317
10318
10319 fi
10320
10321 ;;
10322 esac
10323
10324 if test "x$lt_cv_dlopen" != xno; then
10325 enable_dlopen=yes
10326 else
10327 enable_dlopen=no
10328 fi
10329
10330 case $lt_cv_dlopen in
10331 dlopen)
10332 save_CPPFLAGS="$CPPFLAGS"
10333 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10334
10335 save_LDFLAGS="$LDFLAGS"
10336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10337
10338 save_LIBS="$LIBS"
10339 LIBS="$lt_cv_dlopen_libs $LIBS"
10340
10341 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10342 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10343 if test "${lt_cv_dlopen_self+set}" = set; then
10344 $as_echo_n "(cached) " >&6
10345 else
10346 if test "$cross_compiling" = yes; then :
10347 lt_cv_dlopen_self=cross
10348 else
10349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10350 lt_status=$lt_dlunknown
10351 cat > conftest.$ac_ext <<EOF
10352 #line 10352 "configure"
10353 #include "confdefs.h"
10354
10355 #if HAVE_DLFCN_H
10356 #include <dlfcn.h>
10357 #endif
10358
10359 #include <stdio.h>
10360
10361 #ifdef RTLD_GLOBAL
10362 # define LT_DLGLOBAL RTLD_GLOBAL
10363 #else
10364 # ifdef DL_GLOBAL
10365 # define LT_DLGLOBAL DL_GLOBAL
10366 # else
10367 # define LT_DLGLOBAL 0
10368 # endif
10369 #endif
10370
10371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10372 find out it does not work in some platform. */
10373 #ifndef LT_DLLAZY_OR_NOW
10374 # ifdef RTLD_LAZY
10375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10376 # else
10377 # ifdef DL_LAZY
10378 # define LT_DLLAZY_OR_NOW DL_LAZY
10379 # else
10380 # ifdef RTLD_NOW
10381 # define LT_DLLAZY_OR_NOW RTLD_NOW
10382 # else
10383 # ifdef DL_NOW
10384 # define LT_DLLAZY_OR_NOW DL_NOW
10385 # else
10386 # define LT_DLLAZY_OR_NOW 0
10387 # endif
10388 # endif
10389 # endif
10390 # endif
10391 #endif
10392
10393 #ifdef __cplusplus
10394 extern "C" void exit (int);
10395 #endif
10396
10397 void fnord() { int i=42;}
10398 int main ()
10399 {
10400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10401 int status = $lt_dlunknown;
10402
10403 if (self)
10404 {
10405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10407 /* dlclose (self); */
10408 }
10409 else
10410 puts (dlerror ());
10411
10412 exit (status);
10413 }
10414 EOF
10415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416 (eval $ac_link) 2>&5
10417 ac_status=$?
10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420 (./conftest; exit; ) >&5 2>/dev/null
10421 lt_status=$?
10422 case x$lt_status in
10423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10425 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10426 esac
10427 else :
10428 # compilation failed
10429 lt_cv_dlopen_self=no
10430 fi
10431 fi
10432 rm -fr conftest*
10433
10434
10435 fi
10436 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10437 $as_echo "$lt_cv_dlopen_self" >&6; }
10438
10439 if test "x$lt_cv_dlopen_self" = xyes; then
10440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10441 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10442 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10443 if test "${lt_cv_dlopen_self_static+set}" = set; then
10444 $as_echo_n "(cached) " >&6
10445 else
10446 if test "$cross_compiling" = yes; then :
10447 lt_cv_dlopen_self_static=cross
10448 else
10449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450 lt_status=$lt_dlunknown
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10452 "configure"
10453 #include "confdefs.h"
10454
10455 #if HAVE_DLFCN_H
10456 #include <dlfcn.h>
10457 #endif
10458
10459 #include <stdio.h>
10460
10461 #ifdef RTLD_GLOBAL
10462 # define LT_DLGLOBAL RTLD_GLOBAL
10463 #else
10464 # ifdef DL_GLOBAL
10465 # define LT_DLGLOBAL DL_GLOBAL
10466 # else
10467 # define LT_DLGLOBAL 0
10468 # endif
10469 #endif
10470
10471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472 find out it does not work in some platform. */
10473 #ifndef LT_DLLAZY_OR_NOW
10474 # ifdef RTLD_LAZY
10475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10476 # else
10477 # ifdef DL_LAZY
10478 # define LT_DLLAZY_OR_NOW DL_LAZY
10479 # else
10480 # ifdef RTLD_NOW
10481 # define LT_DLLAZY_OR_NOW RTLD_NOW
10482 # else
10483 # ifdef DL_NOW
10484 # define LT_DLLAZY_OR_NOW DL_NOW
10485 # else
10486 # define LT_DLLAZY_OR_NOW 0
10487 # endif
10488 # endif
10489 # endif
10490 # endif
10491 #endif
10492
10493 #ifdef __cplusplus
10494 extern "C" void exit (int);
10495 #endif
10496
10497 void fnord() { int i=42;}
10498 int main ()
10499 {
10500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501 int status = $lt_dlunknown;
10502
10503 if (self)
10504 {
10505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507 /* dlclose (self); */
10508 }
10509 else
10510 puts (dlerror ());
10511
10512 exit (status);
10513 }
10514 EOF
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10521 lt_status=$?
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10526 esac
10527 else :
10528 # compilation failed
10529 lt_cv_dlopen_self_static=no
10530 fi
10531 fi
10532 rm -fr conftest*
10533
10534
10535 fi
10536 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10537 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10538 fi
10539
10540 CPPFLAGS="$save_CPPFLAGS"
10541 LDFLAGS="$save_LDFLAGS"
10542 LIBS="$save_LIBS"
10543 ;;
10544 esac
10545
10546 case $lt_cv_dlopen_self in
10547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10548 *) enable_dlopen_self=unknown ;;
10549 esac
10550
10551 case $lt_cv_dlopen_self_static in
10552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10553 *) enable_dlopen_self_static=unknown ;;
10554 esac
10555 fi
10556
10557
10558 # Report which library types will actually be built
10559 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10560 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10561 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10562 $as_echo "$can_build_shared" >&6; }
10563
10564 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10565 $as_echo_n "checking whether to build shared libraries... " >&6; }
10566 test "$can_build_shared" = "no" && enable_shared=no
10567
10568 # On AIX, shared libraries and static libraries use the same namespace, and
10569 # are all built from PIC.
10570 case $host_os in
10571 aix3*)
10572 test "$enable_shared" = yes && enable_static=no
10573 if test -n "$RANLIB"; then
10574 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10575 postinstall_cmds='$RANLIB $lib'
10576 fi
10577 ;;
10578
10579 aix[4-9]*)
10580 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10581 test "$enable_shared" = yes && enable_static=no
10582 fi
10583 ;;
10584 esac
10585 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10586 $as_echo "$enable_shared" >&6; }
10587
10588 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10589 $as_echo_n "checking whether to build static libraries... " >&6; }
10590 # Make sure either enable_shared or enable_static is yes.
10591 test "$enable_shared" = yes || enable_static=yes
10592 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10593 $as_echo "$enable_static" >&6; }
10594
10595 # The else clause should only fire when bootstrapping the
10596 # libtool distribution, otherwise you forgot to ship ltmain.sh
10597 # with your package, and you will get complaints that there are
10598 # no rules to generate ltmain.sh.
10599 if test -f "$ltmain"; then
10600 # See if we are running on zsh, and set the options which allow our commands through
10601 # without removal of \ escapes.
10602 if test -n "${ZSH_VERSION+set}" ; then
10603 setopt NO_GLOB_SUBST
10604 fi
10605 # Now quote all the things that may contain metacharacters while being
10606 # careful not to overquote the AC_SUBSTed values. We take copies of the
10607 # variables and quote the copies for generation of the libtool script.
10608 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10609 SED SHELL STRIP \
10610 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10611 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10612 deplibs_check_method reload_flag reload_cmds need_locks \
10613 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10614 lt_cv_sys_global_symbol_to_c_name_address \
10615 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10616 old_postinstall_cmds old_postuninstall_cmds \
10617 compiler \
10618 CC \
10619 LD \
10620 lt_prog_compiler_wl \
10621 lt_prog_compiler_pic \
10622 lt_prog_compiler_static \
10623 lt_prog_compiler_no_builtin_flag \
10624 export_dynamic_flag_spec \
10625 thread_safe_flag_spec \
10626 whole_archive_flag_spec \
10627 enable_shared_with_static_runtimes \
10628 old_archive_cmds \
10629 old_archive_from_new_cmds \
10630 predep_objects \
10631 postdep_objects \
10632 predeps \
10633 postdeps \
10634 compiler_lib_search_path \
10635 compiler_lib_search_dirs \
10636 archive_cmds \
10637 archive_expsym_cmds \
10638 postinstall_cmds \
10639 postuninstall_cmds \
10640 old_archive_from_expsyms_cmds \
10641 allow_undefined_flag \
10642 no_undefined_flag \
10643 export_symbols_cmds \
10644 hardcode_libdir_flag_spec \
10645 hardcode_libdir_flag_spec_ld \
10646 hardcode_libdir_separator \
10647 hardcode_automatic \
10648 module_cmds \
10649 module_expsym_cmds \
10650 lt_cv_prog_compiler_c_o \
10651 fix_srcfile_path \
10652 exclude_expsyms \
10653 include_expsyms; do
10654
10655 case $var in
10656 old_archive_cmds | \
10657 old_archive_from_new_cmds | \
10658 archive_cmds | \
10659 archive_expsym_cmds | \
10660 module_cmds | \
10661 module_expsym_cmds | \
10662 old_archive_from_expsyms_cmds | \
10663 export_symbols_cmds | \
10664 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10665 postinstall_cmds | postuninstall_cmds | \
10666 old_postinstall_cmds | old_postuninstall_cmds | \
10667 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10668 # Double-quote double-evaled strings.
10669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10670 ;;
10671 *)
10672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10673 ;;
10674 esac
10675 done
10676
10677 case $lt_echo in
10678 *'\$0 --fallback-echo"')
10679 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10680 ;;
10681 esac
10682
10683 cfgfile="${ofile}T"
10684 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10685 $rm -f "$cfgfile"
10686 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10687 $as_echo "$as_me: creating $ofile" >&6;}
10688
10689 cat <<__EOF__ >> "$cfgfile"
10690 #! $SHELL
10691
10692 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10693 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10695 #
10696 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10697 # Free Software Foundation, Inc.
10698 #
10699 # This file is part of GNU Libtool:
10700 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10701 #
10702 # This program is free software; you can redistribute it and/or modify
10703 # it under the terms of the GNU General Public License as published by
10704 # the Free Software Foundation; either version 2 of the License, or
10705 # (at your option) any later version.
10706 #
10707 # This program is distributed in the hope that it will be useful, but
10708 # WITHOUT ANY WARRANTY; without even the implied warranty of
10709 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10710 # General Public License for more details.
10711 #
10712 # You should have received a copy of the GNU General Public License
10713 # along with this program; if not, write to the Free Software
10714 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10715 #
10716 # As a special exception to the GNU General Public License, if you
10717 # distribute this file as part of a program that contains a
10718 # configuration script generated by Autoconf, you may include it under
10719 # the same distribution terms that you use for the rest of that program.
10720
10721 # A sed program that does not truncate output.
10722 SED=$lt_SED
10723
10724 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10725 Xsed="$SED -e 1s/^X//"
10726
10727 # The HP-UX ksh and POSIX shell print the target directory to stdout
10728 # if CDPATH is set.
10729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10730
10731 # The names of the tagged configurations supported by this script.
10732 available_tags=
10733
10734 # ### BEGIN LIBTOOL CONFIG
10735
10736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10737
10738 # Shell to use when invoking shell scripts.
10739 SHELL=$lt_SHELL
10740
10741 # Whether or not to build shared libraries.
10742 build_libtool_libs=$enable_shared
10743
10744 # Whether or not to build static libraries.
10745 build_old_libs=$enable_static
10746
10747 # Whether or not to add -lc for building shared libraries.
10748 build_libtool_need_lc=$archive_cmds_need_lc
10749
10750 # Whether or not to disallow shared libs when runtime libs are static
10751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10752
10753 # Whether or not to optimize for fast installation.
10754 fast_install=$enable_fast_install
10755
10756 # The host system.
10757 host_alias=$host_alias
10758 host=$host
10759 host_os=$host_os
10760
10761 # The build system.
10762 build_alias=$build_alias
10763 build=$build
10764 build_os=$build_os
10765
10766 # An echo program that does not interpret backslashes.
10767 echo=$lt_echo
10768
10769 # The archiver.
10770 AR=$lt_AR
10771 AR_FLAGS=$lt_AR_FLAGS
10772
10773 # A C compiler.
10774 LTCC=$lt_LTCC
10775
10776 # LTCC compiler flags.
10777 LTCFLAGS=$lt_LTCFLAGS
10778
10779 # A language-specific compiler.
10780 CC=$lt_compiler
10781
10782 # Is the compiler the GNU C compiler?
10783 with_gcc=$GCC
10784
10785 # An ERE matcher.
10786 EGREP=$lt_EGREP
10787
10788 # The linker used to build libraries.
10789 LD=$lt_LD
10790
10791 # Whether we need hard or soft links.
10792 LN_S=$lt_LN_S
10793
10794 # A BSD-compatible nm program.
10795 NM=$lt_NM
10796
10797 # A symbol stripping program
10798 STRIP=$lt_STRIP
10799
10800 # Used to examine libraries when file_magic_cmd begins "file"
10801 MAGIC_CMD=$MAGIC_CMD
10802
10803 # Used on cygwin: DLL creation program.
10804 DLLTOOL="$DLLTOOL"
10805
10806 # Used on cygwin: object dumper.
10807 OBJDUMP="$OBJDUMP"
10808
10809 # Used on cygwin: assembler.
10810 AS="$AS"
10811
10812 # The name of the directory that contains temporary libtool files.
10813 objdir=$objdir
10814
10815 # How to create reloadable object files.
10816 reload_flag=$lt_reload_flag
10817 reload_cmds=$lt_reload_cmds
10818
10819 # How to pass a linker flag through the compiler.
10820 wl=$lt_lt_prog_compiler_wl
10821
10822 # Object file suffix (normally "o").
10823 objext="$ac_objext"
10824
10825 # Old archive suffix (normally "a").
10826 libext="$libext"
10827
10828 # Shared library suffix (normally ".so").
10829 shrext_cmds='$shrext_cmds'
10830
10831 # Executable file suffix (normally "").
10832 exeext="$exeext"
10833
10834 # Additional compiler flags for building library objects.
10835 pic_flag=$lt_lt_prog_compiler_pic
10836 pic_mode=$pic_mode
10837
10838 # What is the maximum length of a command?
10839 max_cmd_len=$lt_cv_sys_max_cmd_len
10840
10841 # Does compiler simultaneously support -c and -o options?
10842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10843
10844 # Must we lock files when doing compilation?
10845 need_locks=$lt_need_locks
10846
10847 # Do we need the lib prefix for modules?
10848 need_lib_prefix=$need_lib_prefix
10849
10850 # Do we need a version for libraries?
10851 need_version=$need_version
10852
10853 # Whether dlopen is supported.
10854 dlopen_support=$enable_dlopen
10855
10856 # Whether dlopen of programs is supported.
10857 dlopen_self=$enable_dlopen_self
10858
10859 # Whether dlopen of statically linked programs is supported.
10860 dlopen_self_static=$enable_dlopen_self_static
10861
10862 # Compiler flag to prevent dynamic linking.
10863 link_static_flag=$lt_lt_prog_compiler_static
10864
10865 # Compiler flag to turn off builtin functions.
10866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10867
10868 # Compiler flag to allow reflexive dlopens.
10869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10870
10871 # Compiler flag to generate shared objects directly from archives.
10872 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10873
10874 # Compiler flag to generate thread-safe objects.
10875 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10876
10877 # Library versioning type.
10878 version_type=$version_type
10879
10880 # Format of library name prefix.
10881 libname_spec=$lt_libname_spec
10882
10883 # List of archive names. First name is the real one, the rest are links.
10884 # The last name is the one that the linker finds with -lNAME.
10885 library_names_spec=$lt_library_names_spec
10886
10887 # The coded name of the library, if different from the real name.
10888 soname_spec=$lt_soname_spec
10889
10890 # Commands used to build and install an old-style archive.
10891 RANLIB=$lt_RANLIB
10892 old_archive_cmds=$lt_old_archive_cmds
10893 old_postinstall_cmds=$lt_old_postinstall_cmds
10894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10895
10896 # Create an old-style archive from a shared archive.
10897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10898
10899 # Create a temporary old-style archive to link instead of a shared archive.
10900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10901
10902 # Commands used to build and install a shared archive.
10903 archive_cmds=$lt_archive_cmds
10904 archive_expsym_cmds=$lt_archive_expsym_cmds
10905 postinstall_cmds=$lt_postinstall_cmds
10906 postuninstall_cmds=$lt_postuninstall_cmds
10907
10908 # Commands used to build a loadable module (assumed same as above if empty)
10909 module_cmds=$lt_module_cmds
10910 module_expsym_cmds=$lt_module_expsym_cmds
10911
10912 # Commands to strip libraries.
10913 old_striplib=$lt_old_striplib
10914 striplib=$lt_striplib
10915
10916 # Dependencies to place before the objects being linked to create a
10917 # shared library.
10918 predep_objects=$lt_predep_objects
10919
10920 # Dependencies to place after the objects being linked to create a
10921 # shared library.
10922 postdep_objects=$lt_postdep_objects
10923
10924 # Dependencies to place before the objects being linked to create a
10925 # shared library.
10926 predeps=$lt_predeps
10927
10928 # Dependencies to place after the objects being linked to create a
10929 # shared library.
10930 postdeps=$lt_postdeps
10931
10932 # The directories searched by this compiler when creating a shared
10933 # library
10934 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10935
10936 # The library search path used internally by the compiler when linking
10937 # a shared library.
10938 compiler_lib_search_path=$lt_compiler_lib_search_path
10939
10940 # Method to check whether dependent libraries are shared objects.
10941 deplibs_check_method=$lt_deplibs_check_method
10942
10943 # Command to use when deplibs_check_method == file_magic.
10944 file_magic_cmd=$lt_file_magic_cmd
10945
10946 # Flag that allows shared libraries with undefined symbols to be built.
10947 allow_undefined_flag=$lt_allow_undefined_flag
10948
10949 # Flag that forces no undefined symbols.
10950 no_undefined_flag=$lt_no_undefined_flag
10951
10952 # Commands used to finish a libtool library installation in a directory.
10953 finish_cmds=$lt_finish_cmds
10954
10955 # Same as above, but a single script fragment to be evaled but not shown.
10956 finish_eval=$lt_finish_eval
10957
10958 # Take the output of nm and produce a listing of raw symbols and C names.
10959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10960
10961 # Transform the output of nm in a proper C declaration
10962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10963
10964 # Transform the output of nm in a C name address pair
10965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10966
10967 # This is the shared library runtime path variable.
10968 runpath_var=$runpath_var
10969
10970 # This is the shared library path variable.
10971 shlibpath_var=$shlibpath_var
10972
10973 # Is shlibpath searched before the hard-coded library search path?
10974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10975
10976 # How to hardcode a shared library path into an executable.
10977 hardcode_action=$hardcode_action
10978
10979 # Whether we should hardcode library paths into libraries.
10980 hardcode_into_libs=$hardcode_into_libs
10981
10982 # Flag to hardcode \$libdir into a binary during linking.
10983 # This must work even if \$libdir does not exist.
10984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10985
10986 # If ld is used when linking, flag to hardcode \$libdir into
10987 # a binary during linking. This must work even if \$libdir does
10988 # not exist.
10989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10990
10991 # Whether we need a single -rpath flag with a separated argument.
10992 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10993
10994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10995 # resulting binary.
10996 hardcode_direct=$hardcode_direct
10997
10998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10999 # resulting binary.
11000 hardcode_minus_L=$hardcode_minus_L
11001
11002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11003 # the resulting binary.
11004 hardcode_shlibpath_var=$hardcode_shlibpath_var
11005
11006 # Set to yes if building a shared library automatically hardcodes DIR into the library
11007 # and all subsequent libraries and executables linked against it.
11008 hardcode_automatic=$hardcode_automatic
11009
11010 # Variables whose values should be saved in libtool wrapper scripts and
11011 # restored at relink time.
11012 variables_saved_for_relink="$variables_saved_for_relink"
11013
11014 # Whether libtool must link a program against all its dependency libraries.
11015 link_all_deplibs=$link_all_deplibs
11016
11017 # Compile-time system search path for libraries
11018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11019
11020 # Run-time system search path for libraries
11021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11022
11023 # Fix the shell variable \$srcfile for the compiler.
11024 fix_srcfile_path=$lt_fix_srcfile_path
11025
11026 # Set to yes if exported symbols are required.
11027 always_export_symbols=$always_export_symbols
11028
11029 # The commands to list exported symbols.
11030 export_symbols_cmds=$lt_export_symbols_cmds
11031
11032 # The commands to extract the exported symbol list from a shared archive.
11033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11034
11035 # Symbols that should not be listed in the preloaded symbols.
11036 exclude_expsyms=$lt_exclude_expsyms
11037
11038 # Symbols that must always be exported.
11039 include_expsyms=$lt_include_expsyms
11040
11041 # ### END LIBTOOL CONFIG
11042
11043 __EOF__
11044
11045
11046 case $host_os in
11047 aix3*)
11048 cat <<\EOF >> "$cfgfile"
11049
11050 # AIX sometimes has problems with the GCC collect2 program. For some
11051 # reason, if we set the COLLECT_NAMES environment variable, the problems
11052 # vanish in a puff of smoke.
11053 if test "X${COLLECT_NAMES+set}" != Xset; then
11054 COLLECT_NAMES=
11055 export COLLECT_NAMES
11056 fi
11057 EOF
11058 ;;
11059 esac
11060
11061 # We use sed instead of cat because bash on DJGPP gets confused if
11062 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11063 # text mode, it properly converts lines to CR/LF. This bash problem
11064 # is reportedly fixed, but why not run on old versions too?
11065 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11066
11067 mv -f "$cfgfile" "$ofile" || \
11068 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11069 chmod +x "$ofile"
11070
11071 else
11072 # If there is no Makefile yet, we rely on a make rule to execute
11073 # `config.status --recheck' to rerun these tests and create the
11074 # libtool script then.
11075 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11076 if test -f "$ltmain_in"; then
11077 test -f Makefile && make "$ltmain"
11078 fi
11079 fi
11080
11081
11082 ac_ext=c
11083 ac_cpp='$CPP $CPPFLAGS'
11084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11087
11088 CC="$lt_save_CC"
11089
11090
11091 # Check whether --with-tags was given.
11092 if test "${with_tags+set}" = set; then
11093 withval=$with_tags; tagnames="$withval"
11094 fi
11095
11096
11097 if test -f "$ltmain" && test -n "$tagnames"; then
11098 if test ! -f "${ofile}"; then
11099 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11100 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11101 fi
11102
11103 if test -z "$LTCC"; then
11104 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11105 if test -z "$LTCC"; then
11106 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11107 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11108 else
11109 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11110 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11111 fi
11112 fi
11113 if test -z "$LTCFLAGS"; then
11114 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11115 fi
11116
11117 # Extract list of available tagged configurations in $ofile.
11118 # Note that this assumes the entire list is on one line.
11119 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11120
11121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11122 for tagname in $tagnames; do
11123 IFS="$lt_save_ifs"
11124 # Check whether tagname contains only valid characters
11125 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11126 "") ;;
11127 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11128 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11129 { (exit 1); exit 1; }; }
11130 ;;
11131 esac
11132
11133 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11134 then
11135 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11136 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11137 { (exit 1); exit 1; }; }
11138 fi
11139
11140 # Update the list of available tags.
11141 if test -n "$tagname"; then
11142 echo appending configuration tag \"$tagname\" to $ofile
11143
11144 case $tagname in
11145 CXX)
11146 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11147 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11148 (test "X$CXX" != "Xg++"))) ; then
11149 ac_ext=cpp
11150 ac_cpp='$CXXCPP $CPPFLAGS'
11151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11154
11155
11156
11157
11158 archive_cmds_need_lc_CXX=no
11159 allow_undefined_flag_CXX=
11160 always_export_symbols_CXX=no
11161 archive_expsym_cmds_CXX=
11162 export_dynamic_flag_spec_CXX=
11163 hardcode_direct_CXX=no
11164 hardcode_libdir_flag_spec_CXX=
11165 hardcode_libdir_flag_spec_ld_CXX=
11166 hardcode_libdir_separator_CXX=
11167 hardcode_minus_L_CXX=no
11168 hardcode_shlibpath_var_CXX=unsupported
11169 hardcode_automatic_CXX=no
11170 module_cmds_CXX=
11171 module_expsym_cmds_CXX=
11172 link_all_deplibs_CXX=unknown
11173 old_archive_cmds_CXX=$old_archive_cmds
11174 no_undefined_flag_CXX=
11175 whole_archive_flag_spec_CXX=
11176 enable_shared_with_static_runtimes_CXX=no
11177
11178 # Dependencies to place before and after the object being linked:
11179 predep_objects_CXX=
11180 postdep_objects_CXX=
11181 predeps_CXX=
11182 postdeps_CXX=
11183 compiler_lib_search_path_CXX=
11184 compiler_lib_search_dirs_CXX=
11185
11186 # Source file extension for C++ test sources.
11187 ac_ext=cpp
11188
11189 # Object file extension for compiled C++ test sources.
11190 objext=o
11191 objext_CXX=$objext
11192
11193 # Code to be used in simple compile tests
11194 lt_simple_compile_test_code="int some_variable = 0;"
11195
11196 # Code to be used in simple link tests
11197 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11198
11199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11200
11201 # If no C compiler was specified, use CC.
11202 LTCC=${LTCC-"$CC"}
11203
11204 # If no C compiler flags were specified, use CFLAGS.
11205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11206
11207 # Allow CC to be a program name with arguments.
11208 compiler=$CC
11209
11210
11211 # save warnings/boilerplate of simple test code
11212 ac_outfile=conftest.$ac_objext
11213 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11214 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11215 _lt_compiler_boilerplate=`cat conftest.err`
11216 $rm conftest*
11217
11218 ac_outfile=conftest.$ac_objext
11219 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11220 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11221 _lt_linker_boilerplate=`cat conftest.err`
11222 $rm -r conftest*
11223
11224
11225 # Allow CC to be a program name with arguments.
11226 lt_save_CC=$CC
11227 lt_save_LD=$LD
11228 lt_save_GCC=$GCC
11229 GCC=$GXX
11230 lt_save_with_gnu_ld=$with_gnu_ld
11231 lt_save_path_LD=$lt_cv_path_LD
11232 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11233 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11234 else
11235 $as_unset lt_cv_prog_gnu_ld
11236 fi
11237 if test -n "${lt_cv_path_LDCXX+set}"; then
11238 lt_cv_path_LD=$lt_cv_path_LDCXX
11239 else
11240 $as_unset lt_cv_path_LD
11241 fi
11242 test -z "${LDCXX+set}" || LD=$LDCXX
11243 CC=${CXX-"c++"}
11244 compiler=$CC
11245 compiler_CXX=$CC
11246 for cc_temp in $compiler""; do
11247 case $cc_temp in
11248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11250 \-*) ;;
11251 *) break;;
11252 esac
11253 done
11254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11255
11256
11257 # We don't want -fno-exception wen compiling C++ code, so set the
11258 # no_builtin_flag separately
11259 if test "$GXX" = yes; then
11260 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11261 else
11262 lt_prog_compiler_no_builtin_flag_CXX=
11263 fi
11264
11265 if test "$GXX" = yes; then
11266 # Set up default GNU C++ configuration
11267
11268
11269 # Check whether --with-gnu-ld was given.
11270 if test "${with_gnu_ld+set}" = set; then
11271 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11272 else
11273 with_gnu_ld=no
11274 fi
11275
11276 ac_prog=ld
11277 if test "$GCC" = yes; then
11278 # Check if gcc -print-prog-name=ld gives a path.
11279 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11280 $as_echo_n "checking for ld used by $CC... " >&6; }
11281 case $host in
11282 *-*-mingw*)
11283 # gcc leaves a trailing carriage return which upsets mingw
11284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11285 *)
11286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11287 esac
11288 case $ac_prog in
11289 # Accept absolute paths.
11290 [\\/]* | ?:[\\/]*)
11291 re_direlt='/[^/][^/]*/\.\./'
11292 # Canonicalize the pathname of ld
11293 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11294 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11295 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11296 done
11297 test -z "$LD" && LD="$ac_prog"
11298 ;;
11299 "")
11300 # If it fails, then pretend we aren't using GCC.
11301 ac_prog=ld
11302 ;;
11303 *)
11304 # If it is relative, then search for the first ld in PATH.
11305 with_gnu_ld=unknown
11306 ;;
11307 esac
11308 elif test "$with_gnu_ld" = yes; then
11309 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11310 $as_echo_n "checking for GNU ld... " >&6; }
11311 else
11312 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11313 $as_echo_n "checking for non-GNU ld... " >&6; }
11314 fi
11315 if test "${lt_cv_path_LD+set}" = set; then
11316 $as_echo_n "(cached) " >&6
11317 else
11318 if test -z "$LD"; then
11319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11320 for ac_dir in $PATH; do
11321 IFS="$lt_save_ifs"
11322 test -z "$ac_dir" && ac_dir=.
11323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11324 lt_cv_path_LD="$ac_dir/$ac_prog"
11325 # Check to see if the program is GNU ld. I'd rather use --version,
11326 # but apparently some variants of GNU ld only accept -v.
11327 # Break only if it was the GNU/non-GNU ld that we prefer.
11328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11329 *GNU* | *'with BFD'*)
11330 test "$with_gnu_ld" != no && break
11331 ;;
11332 *)
11333 test "$with_gnu_ld" != yes && break
11334 ;;
11335 esac
11336 fi
11337 done
11338 IFS="$lt_save_ifs"
11339 else
11340 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11341 fi
11342 fi
11343
11344 LD="$lt_cv_path_LD"
11345 if test -n "$LD"; then
11346 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11347 $as_echo "$LD" >&6; }
11348 else
11349 { $as_echo "$as_me:$LINENO: result: no" >&5
11350 $as_echo "no" >&6; }
11351 fi
11352 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11353 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11354 { (exit 1); exit 1; }; }
11355 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11356 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11357 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11358 $as_echo_n "(cached) " >&6
11359 else
11360 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11361 case `$LD -v 2>&1 </dev/null` in
11362 *GNU* | *'with BFD'*)
11363 lt_cv_prog_gnu_ld=yes
11364 ;;
11365 *)
11366 lt_cv_prog_gnu_ld=no
11367 ;;
11368 esac
11369 fi
11370 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11371 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11372 with_gnu_ld=$lt_cv_prog_gnu_ld
11373
11374
11375
11376 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11377 # archiving commands below assume that GNU ld is being used.
11378 if test "$with_gnu_ld" = yes; then
11379 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380 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'
11381
11382 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11384
11385 # If archive_cmds runs LD, not CC, wlarc should be empty
11386 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11387 # investigate it a little bit more. (MM)
11388 wlarc='${wl}'
11389
11390 # ancient GNU ld didn't support --whole-archive et. al.
11391 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11392 grep 'no-whole-archive' > /dev/null; then
11393 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11394 else
11395 whole_archive_flag_spec_CXX=
11396 fi
11397 else
11398 with_gnu_ld=no
11399 wlarc=
11400
11401 # A generic and very simple default shared library creation
11402 # command for GNU C++ for the case where it uses the native
11403 # linker, instead of GNU ld. If possible, this setting should
11404 # overridden to take advantage of the native linker features on
11405 # the platform it is being used on.
11406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11407 fi
11408
11409 # Commands to make compiler produce verbose output that lists
11410 # what "hidden" libraries, object files and flags are used when
11411 # linking a shared library.
11412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11413
11414 else
11415 GXX=no
11416 with_gnu_ld=no
11417 wlarc=
11418 fi
11419
11420 # PORTME: fill in a description of your system's C++ link characteristics
11421 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11422 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11423 ld_shlibs_CXX=yes
11424 case $host_os in
11425 aix3*)
11426 # FIXME: insert proper C++ library support
11427 ld_shlibs_CXX=no
11428 ;;
11429 aix[4-9]*)
11430 if test "$host_cpu" = ia64; then
11431 # On IA64, the linker does run time linking by default, so we don't
11432 # have to do anything special.
11433 aix_use_runtimelinking=no
11434 exp_sym_flag='-Bexport'
11435 no_entry_flag=""
11436 else
11437 aix_use_runtimelinking=no
11438
11439 # Test if we are trying to use run time linking or normal
11440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11441 # need to do runtime linking.
11442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11443 for ld_flag in $LDFLAGS; do
11444 case $ld_flag in
11445 *-brtl*)
11446 aix_use_runtimelinking=yes
11447 break
11448 ;;
11449 esac
11450 done
11451 ;;
11452 esac
11453
11454 exp_sym_flag='-bexport'
11455 no_entry_flag='-bnoentry'
11456 fi
11457
11458 # When large executables or shared objects are built, AIX ld can
11459 # have problems creating the table of contents. If linking a library
11460 # or program results in "error TOC overflow" add -mminimal-toc to
11461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11463
11464 archive_cmds_CXX=''
11465 hardcode_direct_CXX=yes
11466 hardcode_libdir_separator_CXX=':'
11467 link_all_deplibs_CXX=yes
11468
11469 if test "$GXX" = yes; then
11470 case $host_os in aix4.[012]|aix4.[012].*)
11471 # We only want to do this on AIX 4.2 and lower, the check
11472 # below for broken collect2 doesn't work under 4.3+
11473 collect2name=`${CC} -print-prog-name=collect2`
11474 if test -f "$collect2name" && \
11475 strings "$collect2name" | grep resolve_lib_name >/dev/null
11476 then
11477 # We have reworked collect2
11478 :
11479 else
11480 # We have old collect2
11481 hardcode_direct_CXX=unsupported
11482 # It fails to find uninstalled libraries when the uninstalled
11483 # path is not listed in the libpath. Setting hardcode_minus_L
11484 # to unsupported forces relinking
11485 hardcode_minus_L_CXX=yes
11486 hardcode_libdir_flag_spec_CXX='-L$libdir'
11487 hardcode_libdir_separator_CXX=
11488 fi
11489 ;;
11490 esac
11491 shared_flag='-shared'
11492 if test "$aix_use_runtimelinking" = yes; then
11493 shared_flag="$shared_flag "'${wl}-G'
11494 fi
11495 else
11496 # not using gcc
11497 if test "$host_cpu" = ia64; then
11498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11499 # chokes on -Wl,-G. The following line is correct:
11500 shared_flag='-G'
11501 else
11502 if test "$aix_use_runtimelinking" = yes; then
11503 shared_flag='${wl}-G'
11504 else
11505 shared_flag='${wl}-bM:SRE'
11506 fi
11507 fi
11508 fi
11509
11510 # It seems that -bexpall does not export symbols beginning with
11511 # underscore (_), so it is better to generate a list of symbols to export.
11512 always_export_symbols_CXX=yes
11513 if test "$aix_use_runtimelinking" = yes; then
11514 # Warning - without using the other runtime loading flags (-brtl),
11515 # -berok will link without error, but may produce a broken library.
11516 allow_undefined_flag_CXX='-berok'
11517 # Determine the default libpath from the value encoded in an empty executable.
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524
11525 int
11526 main ()
11527 {
11528
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (ac_try="$ac_link"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11540 $as_echo "$ac_try_echo") >&5
11541 (eval "$ac_link") 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_cxx_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest$ac_exeext && {
11551 test "$cross_compiling" = yes ||
11552 $as_test_x conftest$ac_exeext
11553 }; then
11554
11555 lt_aix_libpath_sed='
11556 /Import File Strings/,/^$/ {
11557 /^0/ {
11558 s/^0 *\(.*\)$/\1/
11559 p
11560 }
11561 }'
11562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11563 # Check for a 64-bit object if we didn't find anything.
11564 if test -z "$aix_libpath"; then
11565 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11566 fi
11567 else
11568 $as_echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571
11572 fi
11573
11574 rm -rf conftest.dSYM
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11578
11579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11580
11581 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"
11582 else
11583 if test "$host_cpu" = ia64; then
11584 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11585 allow_undefined_flag_CXX="-z nodefs"
11586 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"
11587 else
11588 # Determine the default libpath from the value encoded in an empty executable.
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595
11596 int
11597 main ()
11598 {
11599
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (ac_try="$ac_link"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609 esac
11610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611 $as_echo "$ac_try_echo") >&5
11612 (eval "$ac_link") 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } && {
11619 test -z "$ac_cxx_werror_flag" ||
11620 test ! -s conftest.err
11621 } && test -s conftest$ac_exeext && {
11622 test "$cross_compiling" = yes ||
11623 $as_test_x conftest$ac_exeext
11624 }; then
11625
11626 lt_aix_libpath_sed='
11627 /Import File Strings/,/^$/ {
11628 /^0/ {
11629 s/^0 *\(.*\)$/\1/
11630 p
11631 }
11632 }'
11633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11634 # Check for a 64-bit object if we didn't find anything.
11635 if test -z "$aix_libpath"; then
11636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11637 fi
11638 else
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642
11643 fi
11644
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11649
11650 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11651 # Warning - without using the other run time loading flags,
11652 # -berok will link without error, but may produce a broken library.
11653 no_undefined_flag_CXX=' ${wl}-bernotok'
11654 allow_undefined_flag_CXX=' ${wl}-berok'
11655 # Exported symbols can be pulled into shared objects from archives
11656 whole_archive_flag_spec_CXX='$convenience'
11657 archive_cmds_need_lc_CXX=yes
11658 # This is similar to how AIX traditionally builds its shared libraries.
11659 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'
11660 fi
11661 fi
11662 ;;
11663
11664 beos*)
11665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11666 allow_undefined_flag_CXX=unsupported
11667 # Joseph Beckenbach <[email protected]> says some releases of gcc
11668 # support --undefined. This deserves some investigation. FIXME
11669 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11670 else
11671 ld_shlibs_CXX=no
11672 fi
11673 ;;
11674
11675 chorus*)
11676 case $cc_basename in
11677 *)
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11680 ;;
11681 esac
11682 ;;
11683
11684 cygwin* | mingw* | pw32*)
11685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11686 # as there is no search path for DLLs.
11687 hardcode_libdir_flag_spec_CXX='-L$libdir'
11688 allow_undefined_flag_CXX=unsupported
11689 always_export_symbols_CXX=no
11690 enable_shared_with_static_runtimes_CXX=yes
11691
11692 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11693 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'
11694 # If the export-symbols file already is a .def file (1st line
11695 # is EXPORTS), use it as is; otherwise, prepend...
11696 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11697 cp $export_symbols $output_objdir/$soname.def;
11698 else
11699 echo EXPORTS > $output_objdir/$soname.def;
11700 cat $export_symbols >> $output_objdir/$soname.def;
11701 fi~
11702 $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'
11703 else
11704 ld_shlibs_CXX=no
11705 fi
11706 ;;
11707 darwin* | rhapsody*)
11708 archive_cmds_need_lc_CXX=no
11709 hardcode_direct_CXX=no
11710 hardcode_automatic_CXX=yes
11711 hardcode_shlibpath_var_CXX=unsupported
11712 whole_archive_flag_spec_CXX=''
11713 link_all_deplibs_CXX=yes
11714 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11715 if test "$GXX" = yes ; then
11716 output_verbose_link_cmd='echo'
11717 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}"
11718 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11719 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}"
11720 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}"
11721 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11722 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}"
11723 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}"
11724 fi
11725 else
11726 case $cc_basename in
11727 xlc*)
11728 output_verbose_link_cmd='echo'
11729 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'
11730 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11732 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}'
11733 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}'
11734 ;;
11735 *)
11736 ld_shlibs_CXX=no
11737 ;;
11738 esac
11739 fi
11740 ;;
11741
11742 dgux*)
11743 case $cc_basename in
11744 ec++*)
11745 # FIXME: insert proper C++ library support
11746 ld_shlibs_CXX=no
11747 ;;
11748 ghcx*)
11749 # Green Hills C++ Compiler
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 ;;
11753 *)
11754 # FIXME: insert proper C++ library support
11755 ld_shlibs_CXX=no
11756 ;;
11757 esac
11758 ;;
11759 freebsd[12]*)
11760 # C++ shared libraries reported to be fairly broken before switch to ELF
11761 ld_shlibs_CXX=no
11762 ;;
11763 freebsd-elf*)
11764 archive_cmds_need_lc_CXX=no
11765 ;;
11766 freebsd* | dragonfly*)
11767 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11768 # conventions
11769 ld_shlibs_CXX=yes
11770 ;;
11771 gnu*)
11772 ;;
11773 hpux9*)
11774 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11775 hardcode_libdir_separator_CXX=:
11776 export_dynamic_flag_spec_CXX='${wl}-E'
11777 hardcode_direct_CXX=yes
11778 hardcode_minus_L_CXX=yes # Not in the search PATH,
11779 # but as the default
11780 # location of the library.
11781
11782 case $cc_basename in
11783 CC*)
11784 # FIXME: insert proper C++ library support
11785 ld_shlibs_CXX=no
11786 ;;
11787 aCC*)
11788 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'
11789 # Commands to make compiler produce verbose output that lists
11790 # what "hidden" libraries, object files and flags are used when
11791 # linking a shared library.
11792 #
11793 # There doesn't appear to be a way to prevent this compiler from
11794 # explicitly linking system object files so we need to strip them
11795 # from the output so that they don't get included in the library
11796 # dependencies.
11797 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'
11798 ;;
11799 *)
11800 if test "$GXX" = yes; then
11801 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'
11802 else
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 fi
11806 ;;
11807 esac
11808 ;;
11809 hpux10*|hpux11*)
11810 if test $with_gnu_ld = no; then
11811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11812 hardcode_libdir_separator_CXX=:
11813
11814 case $host_cpu in
11815 hppa*64*|ia64*) ;;
11816 *)
11817 export_dynamic_flag_spec_CXX='${wl}-E'
11818 ;;
11819 esac
11820 fi
11821 case $host_cpu in
11822 hppa*64*|ia64*)
11823 hardcode_direct_CXX=no
11824 hardcode_shlibpath_var_CXX=no
11825 ;;
11826 *)
11827 hardcode_direct_CXX=yes
11828 hardcode_minus_L_CXX=yes # Not in the search PATH,
11829 # but as the default
11830 # location of the library.
11831 ;;
11832 esac
11833
11834 case $cc_basename in
11835 CC*)
11836 # FIXME: insert proper C++ library support
11837 ld_shlibs_CXX=no
11838 ;;
11839 aCC*)
11840 case $host_cpu in
11841 hppa*64*)
11842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843 ;;
11844 ia64*)
11845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11846 ;;
11847 *)
11848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11849 ;;
11850 esac
11851 # Commands to make compiler produce verbose output that lists
11852 # what "hidden" libraries, object files and flags are used when
11853 # linking a shared library.
11854 #
11855 # There doesn't appear to be a way to prevent this compiler from
11856 # explicitly linking system object files so we need to strip them
11857 # from the output so that they don't get included in the library
11858 # dependencies.
11859 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'
11860 ;;
11861 *)
11862 if test "$GXX" = yes; then
11863 if test $with_gnu_ld = no; then
11864 case $host_cpu in
11865 hppa*64*)
11866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11867 ;;
11868 ia64*)
11869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870 ;;
11871 *)
11872 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'
11873 ;;
11874 esac
11875 fi
11876 else
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11879 fi
11880 ;;
11881 esac
11882 ;;
11883 interix[3-9]*)
11884 hardcode_direct_CXX=no
11885 hardcode_shlibpath_var_CXX=no
11886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11887 export_dynamic_flag_spec_CXX='${wl}-E'
11888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11889 # Instead, shared libraries are loaded at an image base (0x10000000 by
11890 # default) and relocated if they conflict, which is a slow very memory
11891 # consuming and fragmenting process. To avoid this, we pick a random,
11892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11894 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'
11895 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'
11896 ;;
11897 irix5* | irix6*)
11898 case $cc_basename in
11899 CC*)
11900 # SGI C++
11901 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'
11902
11903 # Archives containing C++ object files must be created using
11904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11905 # necessary to make sure instantiated templates are included
11906 # in the archive.
11907 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11908 ;;
11909 *)
11910 if test "$GXX" = yes; then
11911 if test "$with_gnu_ld" = no; then
11912 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'
11913 else
11914 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'
11915 fi
11916 fi
11917 link_all_deplibs_CXX=yes
11918 ;;
11919 esac
11920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11921 hardcode_libdir_separator_CXX=:
11922 ;;
11923 linux* | k*bsd*-gnu)
11924 case $cc_basename in
11925 KCC*)
11926 # Kuck and Associates, Inc. (KAI) C++ Compiler
11927
11928 # KCC will only create a shared library if the output file
11929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11930 # to its proper name (with version) after linking.
11931 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'
11932 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'
11933 # Commands to make compiler produce verbose output that lists
11934 # what "hidden" libraries, object files and flags are used when
11935 # linking a shared library.
11936 #
11937 # There doesn't appear to be a way to prevent this compiler from
11938 # explicitly linking system object files so we need to strip them
11939 # from the output so that they don't get included in the library
11940 # dependencies.
11941 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'
11942
11943 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11945
11946 # Archives containing C++ object files must be created using
11947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11949 ;;
11950 icpc*)
11951 # Intel C++
11952 with_gnu_ld=yes
11953 # version 8.0 and above of icpc choke on multiply defined symbols
11954 # if we add $predep_objects and $postdep_objects, however 7.1 and
11955 # earlier do not add the objects themselves.
11956 case `$CC -V 2>&1` in
11957 *"Version 7."*)
11958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959 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'
11960 ;;
11961 *) # Version 8.0 or newer
11962 tmp_idyn=
11963 case $host_cpu in
11964 ia64*) tmp_idyn=' -i_dynamic';;
11965 esac
11966 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11967 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'
11968 ;;
11969 esac
11970 archive_cmds_need_lc_CXX=no
11971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11973 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11974 ;;
11975 pgCC* | pgcpp*)
11976 # Portland Group C++ compiler
11977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11978 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'
11979
11980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11982 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'
11983 ;;
11984 cxx*)
11985 # Compaq C++
11986 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11987 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'
11988
11989 runpath_var=LD_RUN_PATH
11990 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11991 hardcode_libdir_separator_CXX=:
11992
11993 # Commands to make compiler produce verbose output that lists
11994 # what "hidden" libraries, object files and flags are used when
11995 # linking a shared library.
11996 #
11997 # There doesn't appear to be a way to prevent this compiler from
11998 # explicitly linking system object files so we need to strip them
11999 # from the output so that they don't get included in the library
12000 # dependencies.
12001 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'
12002 ;;
12003 *)
12004 case `$CC -V 2>&1 | sed 5q` in
12005 *Sun\ C*)
12006 # Sun C++ 5.9
12007 no_undefined_flag_CXX=' -zdefs'
12008 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12009 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'
12010 hardcode_libdir_flag_spec_CXX='-R$libdir'
12011 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'
12012
12013 # Not sure whether something based on
12014 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12015 # would be better.
12016 output_verbose_link_cmd='echo'
12017
12018 # Archives containing C++ object files must be created using
12019 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12020 # necessary to make sure instantiated templates are included
12021 # in the archive.
12022 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12023 ;;
12024 esac
12025 ;;
12026 esac
12027 ;;
12028 lynxos*)
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12031 ;;
12032 m88k*)
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12035 ;;
12036 mvs*)
12037 case $cc_basename in
12038 cxx*)
12039 # FIXME: insert proper C++ library support
12040 ld_shlibs_CXX=no
12041 ;;
12042 *)
12043 # FIXME: insert proper C++ library support
12044 ld_shlibs_CXX=no
12045 ;;
12046 esac
12047 ;;
12048 netbsd*)
12049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12051 wlarc=
12052 hardcode_libdir_flag_spec_CXX='-R$libdir'
12053 hardcode_direct_CXX=yes
12054 hardcode_shlibpath_var_CXX=no
12055 fi
12056 # Workaround some broken pre-1.5 toolchains
12057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12058 ;;
12059 openbsd2*)
12060 # C++ shared libraries are fairly broken
12061 ld_shlibs_CXX=no
12062 ;;
12063 openbsd*)
12064 if test -f /usr/libexec/ld.so; then
12065 hardcode_direct_CXX=yes
12066 hardcode_shlibpath_var_CXX=no
12067 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12068 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12070 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12071 export_dynamic_flag_spec_CXX='${wl}-E'
12072 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12073 fi
12074 output_verbose_link_cmd='echo'
12075 else
12076 ld_shlibs_CXX=no
12077 fi
12078 ;;
12079 osf3*)
12080 case $cc_basename in
12081 KCC*)
12082 # Kuck and Associates, Inc. (KAI) C++ Compiler
12083
12084 # KCC will only create a shared library if the output file
12085 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12086 # to its proper name (with version) after linking.
12087 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'
12088
12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12090 hardcode_libdir_separator_CXX=:
12091
12092 # Archives containing C++ object files must be created using
12093 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12094 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12095
12096 ;;
12097 RCC*)
12098 # Rational C++ 2.4.1
12099 # FIXME: insert proper C++ library support
12100 ld_shlibs_CXX=no
12101 ;;
12102 cxx*)
12103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12104 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'
12105
12106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12107 hardcode_libdir_separator_CXX=:
12108
12109 # Commands to make compiler produce verbose output that lists
12110 # what "hidden" libraries, object files and flags are used when
12111 # linking a shared library.
12112 #
12113 # There doesn't appear to be a way to prevent this compiler from
12114 # explicitly linking system object files so we need to strip them
12115 # from the output so that they don't get included in the library
12116 # dependencies.
12117 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'
12118 ;;
12119 *)
12120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12122 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'
12123
12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12125 hardcode_libdir_separator_CXX=:
12126
12127 # Commands to make compiler produce verbose output that lists
12128 # what "hidden" libraries, object files and flags are used when
12129 # linking a shared library.
12130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12131
12132 else
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 fi
12136 ;;
12137 esac
12138 ;;
12139 osf4* | osf5*)
12140 case $cc_basename in
12141 KCC*)
12142 # Kuck and Associates, Inc. (KAI) C++ Compiler
12143
12144 # KCC will only create a shared library if the output file
12145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12146 # to its proper name (with version) after linking.
12147 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'
12148
12149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12150 hardcode_libdir_separator_CXX=:
12151
12152 # Archives containing C++ object files must be created using
12153 # the KAI C++ compiler.
12154 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12155 ;;
12156 RCC*)
12157 # Rational C++ 2.4.1
12158 # FIXME: insert proper C++ library support
12159 ld_shlibs_CXX=no
12160 ;;
12161 cxx*)
12162 allow_undefined_flag_CXX=' -expect_unresolved \*'
12163 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'
12164 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12165 echo "-hidden">> $lib.exp~
12166 $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~
12167 $rm $lib.exp'
12168
12169 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12170 hardcode_libdir_separator_CXX=:
12171
12172 # Commands to make compiler produce verbose output that lists
12173 # what "hidden" libraries, object files and flags are used when
12174 # linking a shared library.
12175 #
12176 # There doesn't appear to be a way to prevent this compiler from
12177 # explicitly linking system object files so we need to strip them
12178 # from the output so that they don't get included in the library
12179 # dependencies.
12180 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'
12181 ;;
12182 *)
12183 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12184 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12185 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'
12186
12187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12188 hardcode_libdir_separator_CXX=:
12189
12190 # Commands to make compiler produce verbose output that lists
12191 # what "hidden" libraries, object files and flags are used when
12192 # linking a shared library.
12193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12194
12195 else
12196 # FIXME: insert proper C++ library support
12197 ld_shlibs_CXX=no
12198 fi
12199 ;;
12200 esac
12201 ;;
12202 psos*)
12203 # FIXME: insert proper C++ library support
12204 ld_shlibs_CXX=no
12205 ;;
12206 sunos4*)
12207 case $cc_basename in
12208 CC*)
12209 # Sun C++ 4.x
12210 # FIXME: insert proper C++ library support
12211 ld_shlibs_CXX=no
12212 ;;
12213 lcc*)
12214 # Lucid
12215 # FIXME: insert proper C++ library support
12216 ld_shlibs_CXX=no
12217 ;;
12218 *)
12219 # FIXME: insert proper C++ library support
12220 ld_shlibs_CXX=no
12221 ;;
12222 esac
12223 ;;
12224 solaris*)
12225 case $cc_basename in
12226 CC*)
12227 # Sun C++ 4.2, 5.x and Centerline C++
12228 archive_cmds_need_lc_CXX=yes
12229 no_undefined_flag_CXX=' -zdefs'
12230 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12231 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12232 $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'
12233
12234 hardcode_libdir_flag_spec_CXX='-R$libdir'
12235 hardcode_shlibpath_var_CXX=no
12236 case $host_os in
12237 solaris2.[0-5] | solaris2.[0-5].*) ;;
12238 *)
12239 # The compiler driver will combine and reorder linker options,
12240 # but understands `-z linker_flag'.
12241 # Supported since Solaris 2.6 (maybe 2.5.1?)
12242 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12243 ;;
12244 esac
12245 link_all_deplibs_CXX=yes
12246
12247 output_verbose_link_cmd='echo'
12248
12249 # Archives containing C++ object files must be created using
12250 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12251 # necessary to make sure instantiated templates are included
12252 # in the archive.
12253 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12254 ;;
12255 gcx*)
12256 # Green Hills C++ Compiler
12257 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12258
12259 # The C++ compiler must be used to create the archive.
12260 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12261 ;;
12262 *)
12263 # GNU C++ compiler with Solaris linker
12264 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12265 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12266 if $CC --version | grep -v '^2\.7' > /dev/null; then
12267 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12268 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12269 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12270
12271 # Commands to make compiler produce verbose output that lists
12272 # what "hidden" libraries, object files and flags are used when
12273 # linking a shared library.
12274 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12275 else
12276 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12277 # platform.
12278 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12279 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12280 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12281
12282 # Commands to make compiler produce verbose output that lists
12283 # what "hidden" libraries, object files and flags are used when
12284 # linking a shared library.
12285 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12286 fi
12287
12288 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12289 case $host_os in
12290 solaris2.[0-5] | solaris2.[0-5].*) ;;
12291 *)
12292 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12293 ;;
12294 esac
12295 fi
12296 ;;
12297 esac
12298 ;;
12299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12300 no_undefined_flag_CXX='${wl}-z,text'
12301 archive_cmds_need_lc_CXX=no
12302 hardcode_shlibpath_var_CXX=no
12303 runpath_var='LD_RUN_PATH'
12304
12305 case $cc_basename in
12306 CC*)
12307 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12308 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12309 ;;
12310 *)
12311 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 ;;
12314 esac
12315 ;;
12316 sysv5* | sco3.2v5* | sco5v6*)
12317 # Note: We can NOT use -z defs as we might desire, because we do not
12318 # link with -lc, and that would cause any symbols used from libc to
12319 # always be unresolved, which means just about no library would
12320 # ever link correctly. If we're not using GNU ld we use -z text
12321 # though, which does catch some bad symbols but isn't as heavy-handed
12322 # as -z defs.
12323 # For security reasons, it is highly recommended that you always
12324 # use absolute paths for naming shared libraries, and exclude the
12325 # DT_RUNPATH tag from executables and libraries. But doing so
12326 # requires that you compile everything twice, which is a pain.
12327 # So that behaviour is only enabled if SCOABSPATH is set to a
12328 # non-empty value in the environment. Most likely only useful for
12329 # creating official distributions of packages.
12330 # This is a hack until libtool officially supports absolute path
12331 # names for shared libraries.
12332 no_undefined_flag_CXX='${wl}-z,text'
12333 allow_undefined_flag_CXX='${wl}-z,nodefs'
12334 archive_cmds_need_lc_CXX=no
12335 hardcode_shlibpath_var_CXX=no
12336 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12337 hardcode_libdir_separator_CXX=':'
12338 link_all_deplibs_CXX=yes
12339 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12340 runpath_var='LD_RUN_PATH'
12341
12342 case $cc_basename in
12343 CC*)
12344 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12345 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12346 ;;
12347 *)
12348 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12350 ;;
12351 esac
12352 ;;
12353 tandem*)
12354 case $cc_basename in
12355 NCC*)
12356 # NonStop-UX NCC 3.20
12357 # FIXME: insert proper C++ library support
12358 ld_shlibs_CXX=no
12359 ;;
12360 *)
12361 # FIXME: insert proper C++ library support
12362 ld_shlibs_CXX=no
12363 ;;
12364 esac
12365 ;;
12366 vxworks*)
12367 # FIXME: insert proper C++ library support
12368 ld_shlibs_CXX=no
12369 ;;
12370 *)
12371 # FIXME: insert proper C++ library support
12372 ld_shlibs_CXX=no
12373 ;;
12374 esac
12375 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12376 $as_echo "$ld_shlibs_CXX" >&6; }
12377 test "$ld_shlibs_CXX" = no && can_build_shared=no
12378
12379 GCC_CXX="$GXX"
12380 LD_CXX="$LD"
12381
12382 cat > conftest.$ac_ext <<EOF
12383 class Foo
12384 {
12385 public:
12386 Foo (void) { a = 0; }
12387 private:
12388 int a;
12389 };
12390 EOF
12391
12392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393 (eval $ac_compile) 2>&5
12394 ac_status=$?
12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; then
12397 # Parse the compiler output and extract the necessary
12398 # objects, libraries and library flags.
12399
12400 # Sentinel used to keep track of whether or not we are before
12401 # the conftest object file.
12402 pre_test_object_deps_done=no
12403
12404 # The `*' in the case matches for architectures that use `case' in
12405 # $output_verbose_cmd can trigger glob expansion during the loop
12406 # eval without this substitution.
12407 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12408
12409 for p in `eval $output_verbose_link_cmd`; do
12410 case $p in
12411
12412 -L* | -R* | -l*)
12413 # Some compilers place space between "-{L,R}" and the path.
12414 # Remove the space.
12415 if test $p = "-L" \
12416 || test $p = "-R"; then
12417 prev=$p
12418 continue
12419 else
12420 prev=
12421 fi
12422
12423 if test "$pre_test_object_deps_done" = no; then
12424 case $p in
12425 -L* | -R*)
12426 # Internal compiler library paths should come after those
12427 # provided the user. The postdeps already come after the
12428 # user supplied libs so there is no need to process them.
12429 if test -z "$compiler_lib_search_path_CXX"; then
12430 compiler_lib_search_path_CXX="${prev}${p}"
12431 else
12432 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12433 fi
12434 ;;
12435 # The "-l" case would never come before the object being
12436 # linked, so don't bother handling this case.
12437 esac
12438 else
12439 if test -z "$postdeps_CXX"; then
12440 postdeps_CXX="${prev}${p}"
12441 else
12442 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12443 fi
12444 fi
12445 ;;
12446
12447 *.$objext)
12448 # This assumes that the test object file only shows up
12449 # once in the compiler output.
12450 if test "$p" = "conftest.$objext"; then
12451 pre_test_object_deps_done=yes
12452 continue
12453 fi
12454
12455 if test "$pre_test_object_deps_done" = no; then
12456 if test -z "$predep_objects_CXX"; then
12457 predep_objects_CXX="$p"
12458 else
12459 predep_objects_CXX="$predep_objects_CXX $p"
12460 fi
12461 else
12462 if test -z "$postdep_objects_CXX"; then
12463 postdep_objects_CXX="$p"
12464 else
12465 postdep_objects_CXX="$postdep_objects_CXX $p"
12466 fi
12467 fi
12468 ;;
12469
12470 *) ;; # Ignore the rest.
12471
12472 esac
12473 done
12474
12475 # Clean up.
12476 rm -f a.out a.exe
12477 else
12478 echo "libtool.m4: error: problem compiling CXX test program"
12479 fi
12480
12481 $rm -f confest.$objext
12482
12483 compiler_lib_search_dirs_CXX=
12484 if test -n "$compiler_lib_search_path_CXX"; then
12485 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12486 fi
12487
12488 # PORTME: override above test on systems where it is broken
12489 case $host_os in
12490 interix[3-9]*)
12491 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12492 # hack all around it, let's just trust "g++" to DTRT.
12493 predep_objects_CXX=
12494 postdep_objects_CXX=
12495 postdeps_CXX=
12496 ;;
12497
12498 linux*)
12499 case `$CC -V 2>&1 | sed 5q` in
12500 *Sun\ C*)
12501 # Sun C++ 5.9
12502 #
12503 # The more standards-conforming stlport4 library is
12504 # incompatible with the Cstd library. Avoid specifying
12505 # it if it's in CXXFLAGS. Ignore libCrun as
12506 # -library=stlport4 depends on it.
12507 case " $CXX $CXXFLAGS " in
12508 *" -library=stlport4 "*)
12509 solaris_use_stlport4=yes
12510 ;;
12511 esac
12512 if test "$solaris_use_stlport4" != yes; then
12513 postdeps_CXX='-library=Cstd -library=Crun'
12514 fi
12515 ;;
12516 esac
12517 ;;
12518
12519 solaris*)
12520 case $cc_basename in
12521 CC*)
12522 # The more standards-conforming stlport4 library is
12523 # incompatible with the Cstd library. Avoid specifying
12524 # it if it's in CXXFLAGS. Ignore libCrun as
12525 # -library=stlport4 depends on it.
12526 case " $CXX $CXXFLAGS " in
12527 *" -library=stlport4 "*)
12528 solaris_use_stlport4=yes
12529 ;;
12530 esac
12531
12532 # Adding this requires a known-good setup of shared libraries for
12533 # Sun compiler versions before 5.6, else PIC objects from an old
12534 # archive will be linked into the output, leading to subtle bugs.
12535 if test "$solaris_use_stlport4" != yes; then
12536 postdeps_CXX='-library=Cstd -library=Crun'
12537 fi
12538 ;;
12539 esac
12540 ;;
12541 esac
12542
12543 case " $postdeps_CXX " in
12544 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12545 esac
12546
12547 lt_prog_compiler_wl_CXX=
12548 lt_prog_compiler_pic_CXX=
12549 lt_prog_compiler_static_CXX=
12550
12551 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12553
12554 # C++ specific cases for pic, static, wl, etc.
12555 if test "$GXX" = yes; then
12556 lt_prog_compiler_wl_CXX='-Wl,'
12557 lt_prog_compiler_static_CXX='-static'
12558
12559 case $host_os in
12560 aix*)
12561 # All AIX code is PIC.
12562 if test "$host_cpu" = ia64; then
12563 # AIX 5 now supports IA64 processor
12564 lt_prog_compiler_static_CXX='-Bstatic'
12565 fi
12566 ;;
12567 amigaos*)
12568 # FIXME: we need at least 68020 code to build shared libraries, but
12569 # adding the `-m68020' flag to GCC prevents building anything better,
12570 # like `-m68040'.
12571 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12572 ;;
12573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12574 # PIC is the default for these OSes.
12575 ;;
12576 mingw* | cygwin* | os2* | pw32*)
12577 # This hack is so that the source file can tell whether it is being
12578 # built for inclusion in a dll (and should export symbols for example).
12579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12580 # (--disable-auto-import) libraries
12581 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12582 ;;
12583 darwin* | rhapsody*)
12584 # PIC is the default on this platform
12585 # Common symbols not allowed in MH_DYLIB files
12586 lt_prog_compiler_pic_CXX='-fno-common'
12587 ;;
12588 *djgpp*)
12589 # DJGPP does not support shared libraries at all
12590 lt_prog_compiler_pic_CXX=
12591 ;;
12592 interix[3-9]*)
12593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12594 # Instead, we relocate shared libraries at runtime.
12595 ;;
12596 sysv4*MP*)
12597 if test -d /usr/nec; then
12598 lt_prog_compiler_pic_CXX=-Kconform_pic
12599 fi
12600 ;;
12601 hpux*)
12602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12603 # not for PA HP-UX.
12604 case $host_cpu in
12605 hppa*64*|ia64*)
12606 ;;
12607 *)
12608 lt_prog_compiler_pic_CXX='-fPIC'
12609 ;;
12610 esac
12611 ;;
12612 *)
12613 lt_prog_compiler_pic_CXX='-fPIC'
12614 ;;
12615 esac
12616 else
12617 case $host_os in
12618 aix[4-9]*)
12619 # All AIX code is PIC.
12620 if test "$host_cpu" = ia64; then
12621 # AIX 5 now supports IA64 processor
12622 lt_prog_compiler_static_CXX='-Bstatic'
12623 else
12624 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12625 fi
12626 ;;
12627 chorus*)
12628 case $cc_basename in
12629 cxch68*)
12630 # Green Hills C++ Compiler
12631 # _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"
12632 ;;
12633 esac
12634 ;;
12635 darwin*)
12636 # PIC is the default on this platform
12637 # Common symbols not allowed in MH_DYLIB files
12638 case $cc_basename in
12639 xlc*)
12640 lt_prog_compiler_pic_CXX='-qnocommon'
12641 lt_prog_compiler_wl_CXX='-Wl,'
12642 ;;
12643 esac
12644 ;;
12645 dgux*)
12646 case $cc_basename in
12647 ec++*)
12648 lt_prog_compiler_pic_CXX='-KPIC'
12649 ;;
12650 ghcx*)
12651 # Green Hills C++ Compiler
12652 lt_prog_compiler_pic_CXX='-pic'
12653 ;;
12654 *)
12655 ;;
12656 esac
12657 ;;
12658 freebsd* | dragonfly*)
12659 # FreeBSD uses GNU C++
12660 ;;
12661 hpux9* | hpux10* | hpux11*)
12662 case $cc_basename in
12663 CC*)
12664 lt_prog_compiler_wl_CXX='-Wl,'
12665 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12666 if test "$host_cpu" != ia64; then
12667 lt_prog_compiler_pic_CXX='+Z'
12668 fi
12669 ;;
12670 aCC*)
12671 lt_prog_compiler_wl_CXX='-Wl,'
12672 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12673 case $host_cpu in
12674 hppa*64*|ia64*)
12675 # +Z the default
12676 ;;
12677 *)
12678 lt_prog_compiler_pic_CXX='+Z'
12679 ;;
12680 esac
12681 ;;
12682 *)
12683 ;;
12684 esac
12685 ;;
12686 interix*)
12687 # This is c89, which is MS Visual C++ (no shared libs)
12688 # Anyone wants to do a port?
12689 ;;
12690 irix5* | irix6* | nonstopux*)
12691 case $cc_basename in
12692 CC*)
12693 lt_prog_compiler_wl_CXX='-Wl,'
12694 lt_prog_compiler_static_CXX='-non_shared'
12695 # CC pic flag -KPIC is the default.
12696 ;;
12697 *)
12698 ;;
12699 esac
12700 ;;
12701 linux* | k*bsd*-gnu)
12702 case $cc_basename in
12703 KCC*)
12704 # KAI C++ Compiler
12705 lt_prog_compiler_wl_CXX='--backend -Wl,'
12706 lt_prog_compiler_pic_CXX='-fPIC'
12707 ;;
12708 icpc* | ecpc*)
12709 # Intel C++
12710 lt_prog_compiler_wl_CXX='-Wl,'
12711 lt_prog_compiler_pic_CXX='-KPIC'
12712 lt_prog_compiler_static_CXX='-static'
12713 ;;
12714 pgCC* | pgcpp*)
12715 # Portland Group C++ compiler.
12716 lt_prog_compiler_wl_CXX='-Wl,'
12717 lt_prog_compiler_pic_CXX='-fpic'
12718 lt_prog_compiler_static_CXX='-Bstatic'
12719 ;;
12720 cxx*)
12721 # Compaq C++
12722 # Make sure the PIC flag is empty. It appears that all Alpha
12723 # Linux and Compaq Tru64 Unix objects are PIC.
12724 lt_prog_compiler_pic_CXX=
12725 lt_prog_compiler_static_CXX='-non_shared'
12726 ;;
12727 *)
12728 case `$CC -V 2>&1 | sed 5q` in
12729 *Sun\ C*)
12730 # Sun C++ 5.9
12731 lt_prog_compiler_pic_CXX='-KPIC'
12732 lt_prog_compiler_static_CXX='-Bstatic'
12733 lt_prog_compiler_wl_CXX='-Qoption ld '
12734 ;;
12735 esac
12736 ;;
12737 esac
12738 ;;
12739 lynxos*)
12740 ;;
12741 m88k*)
12742 ;;
12743 mvs*)
12744 case $cc_basename in
12745 cxx*)
12746 lt_prog_compiler_pic_CXX='-W c,exportall'
12747 ;;
12748 *)
12749 ;;
12750 esac
12751 ;;
12752 netbsd*)
12753 ;;
12754 osf3* | osf4* | osf5*)
12755 case $cc_basename in
12756 KCC*)
12757 lt_prog_compiler_wl_CXX='--backend -Wl,'
12758 ;;
12759 RCC*)
12760 # Rational C++ 2.4.1
12761 lt_prog_compiler_pic_CXX='-pic'
12762 ;;
12763 cxx*)
12764 # Digital/Compaq C++
12765 lt_prog_compiler_wl_CXX='-Wl,'
12766 # Make sure the PIC flag is empty. It appears that all Alpha
12767 # Linux and Compaq Tru64 Unix objects are PIC.
12768 lt_prog_compiler_pic_CXX=
12769 lt_prog_compiler_static_CXX='-non_shared'
12770 ;;
12771 *)
12772 ;;
12773 esac
12774 ;;
12775 psos*)
12776 ;;
12777 solaris*)
12778 case $cc_basename in
12779 CC*)
12780 # Sun C++ 4.2, 5.x and Centerline C++
12781 lt_prog_compiler_pic_CXX='-KPIC'
12782 lt_prog_compiler_static_CXX='-Bstatic'
12783 lt_prog_compiler_wl_CXX='-Qoption ld '
12784 ;;
12785 gcx*)
12786 # Green Hills C++ Compiler
12787 lt_prog_compiler_pic_CXX='-PIC'
12788 ;;
12789 *)
12790 ;;
12791 esac
12792 ;;
12793 sunos4*)
12794 case $cc_basename in
12795 CC*)
12796 # Sun C++ 4.x
12797 lt_prog_compiler_pic_CXX='-pic'
12798 lt_prog_compiler_static_CXX='-Bstatic'
12799 ;;
12800 lcc*)
12801 # Lucid
12802 lt_prog_compiler_pic_CXX='-pic'
12803 ;;
12804 *)
12805 ;;
12806 esac
12807 ;;
12808 tandem*)
12809 case $cc_basename in
12810 NCC*)
12811 # NonStop-UX NCC 3.20
12812 lt_prog_compiler_pic_CXX='-KPIC'
12813 ;;
12814 *)
12815 ;;
12816 esac
12817 ;;
12818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12819 case $cc_basename in
12820 CC*)
12821 lt_prog_compiler_wl_CXX='-Wl,'
12822 lt_prog_compiler_pic_CXX='-KPIC'
12823 lt_prog_compiler_static_CXX='-Bstatic'
12824 ;;
12825 esac
12826 ;;
12827 vxworks*)
12828 ;;
12829 *)
12830 lt_prog_compiler_can_build_shared_CXX=no
12831 ;;
12832 esac
12833 fi
12834
12835 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12836 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12837
12838 #
12839 # Check to make sure the PIC flag actually works.
12840 #
12841 if test -n "$lt_prog_compiler_pic_CXX"; then
12842
12843 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12844 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12845 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12846 $as_echo_n "(cached) " >&6
12847 else
12848 lt_cv_prog_compiler_pic_works_CXX=no
12849 ac_outfile=conftest.$ac_objext
12850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12851 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12852 # Insert the option either (1) after the last *FLAGS variable, or
12853 # (2) before a word containing "conftest.", or (3) at the end.
12854 # Note that $ac_compile itself does not contain backslashes and begins
12855 # with a dollar sign (not a hyphen), so the echo should work correctly.
12856 # The option is referenced via a variable to avoid confusing sed.
12857 lt_compile=`echo "$ac_compile" | $SED \
12858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12860 -e 's:$: $lt_compiler_flag:'`
12861 (eval echo "\"\$as_me:12861: $lt_compile\"" >&5)
12862 (eval "$lt_compile" 2>conftest.err)
12863 ac_status=$?
12864 cat conftest.err >&5
12865 echo "$as_me:12865: \$? = $ac_status" >&5
12866 if (exit $ac_status) && test -s "$ac_outfile"; then
12867 # The compiler can only warn and ignore the option if not recognized
12868 # So say no if there are warnings other than the usual output.
12869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12872 lt_cv_prog_compiler_pic_works_CXX=yes
12873 fi
12874 fi
12875 $rm conftest*
12876
12877 fi
12878 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12879 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12880
12881 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12882 case $lt_prog_compiler_pic_CXX in
12883 "" | " "*) ;;
12884 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12885 esac
12886 else
12887 lt_prog_compiler_pic_CXX=
12888 lt_prog_compiler_can_build_shared_CXX=no
12889 fi
12890
12891 fi
12892 case $host_os in
12893 # For platforms which do not support PIC, -DPIC is meaningless:
12894 *djgpp*)
12895 lt_prog_compiler_pic_CXX=
12896 ;;
12897 *)
12898 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12899 ;;
12900 esac
12901
12902 #
12903 # Check to make sure the static flag actually works.
12904 #
12905 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12906 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12908 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12909 $as_echo_n "(cached) " >&6
12910 else
12911 lt_cv_prog_compiler_static_works_CXX=no
12912 save_LDFLAGS="$LDFLAGS"
12913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12914 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12916 # The linker can only warn and ignore the option if not recognized
12917 # So say no if there are warnings
12918 if test -s conftest.err; then
12919 # Append any errors to the config.log.
12920 cat conftest.err 1>&5
12921 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12923 if diff conftest.exp conftest.er2 >/dev/null; then
12924 lt_cv_prog_compiler_static_works_CXX=yes
12925 fi
12926 else
12927 lt_cv_prog_compiler_static_works_CXX=yes
12928 fi
12929 fi
12930 $rm -r conftest*
12931 LDFLAGS="$save_LDFLAGS"
12932
12933 fi
12934 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12935 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12936
12937 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12938 :
12939 else
12940 lt_prog_compiler_static_CXX=
12941 fi
12942
12943
12944 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12946 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12947 $as_echo_n "(cached) " >&6
12948 else
12949 lt_cv_prog_compiler_c_o_CXX=no
12950 $rm -r conftest 2>/dev/null
12951 mkdir conftest
12952 cd conftest
12953 mkdir out
12954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12955
12956 lt_compiler_flag="-o out/conftest2.$ac_objext"
12957 # Insert the option either (1) after the last *FLAGS variable, or
12958 # (2) before a word containing "conftest.", or (3) at the end.
12959 # Note that $ac_compile itself does not contain backslashes and begins
12960 # with a dollar sign (not a hyphen), so the echo should work correctly.
12961 lt_compile=`echo "$ac_compile" | $SED \
12962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12964 -e 's:$: $lt_compiler_flag:'`
12965 (eval echo "\"\$as_me:12965: $lt_compile\"" >&5)
12966 (eval "$lt_compile" 2>out/conftest.err)
12967 ac_status=$?
12968 cat out/conftest.err >&5
12969 echo "$as_me:12969: \$? = $ac_status" >&5
12970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12971 then
12972 # The compiler can only warn and ignore the option if not recognized
12973 # So say no if there are warnings
12974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12977 lt_cv_prog_compiler_c_o_CXX=yes
12978 fi
12979 fi
12980 chmod u+w . 2>&5
12981 $rm conftest*
12982 # SGI C++ compiler will create directory out/ii_files/ for
12983 # template instantiation
12984 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12985 $rm out/* && rmdir out
12986 cd ..
12987 rmdir conftest
12988 $rm conftest*
12989
12990 fi
12991 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12992 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12993
12994
12995 hard_links="nottested"
12996 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12997 # do not overwrite the value of need_locks provided by the user
12998 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12999 $as_echo_n "checking if we can lock with hard links... " >&6; }
13000 hard_links=yes
13001 $rm conftest*
13002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13003 touch conftest.a
13004 ln conftest.a conftest.b 2>&5 || hard_links=no
13005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13006 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13007 $as_echo "$hard_links" >&6; }
13008 if test "$hard_links" = no; then
13009 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13010 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13011 need_locks=warn
13012 fi
13013 else
13014 need_locks=no
13015 fi
13016
13017 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13018 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13019
13020 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13021 case $host_os in
13022 aix[4-9]*)
13023 # If we're using GNU nm, then we don't want the "-C" option.
13024 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13025 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13026 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'
13027 else
13028 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'
13029 fi
13030 ;;
13031 pw32*)
13032 export_symbols_cmds_CXX="$ltdll_cmds"
13033 ;;
13034 cygwin* | mingw*)
13035 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'
13036 ;;
13037 *)
13038 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13039 ;;
13040 esac
13041 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13042
13043 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13044 $as_echo "$ld_shlibs_CXX" >&6; }
13045 test "$ld_shlibs_CXX" = no && can_build_shared=no
13046
13047 #
13048 # Do we need to explicitly link libc?
13049 #
13050 case "x$archive_cmds_need_lc_CXX" in
13051 x|xyes)
13052 # Assume -lc should be added
13053 archive_cmds_need_lc_CXX=yes
13054
13055 if test "$enable_shared" = yes && test "$GCC" = yes; then
13056 case $archive_cmds_CXX in
13057 *'~'*)
13058 # FIXME: we may have to deal with multi-command sequences.
13059 ;;
13060 '$CC '*)
13061 # Test whether the compiler implicitly links with -lc since on some
13062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13063 # to ld, don't add -lc before -lgcc.
13064 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13065 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13066 $rm conftest*
13067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070 (eval $ac_compile) 2>&5
13071 ac_status=$?
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } 2>conftest.err; then
13074 soname=conftest
13075 lib=conftest
13076 libobjs=conftest.$ac_objext
13077 deplibs=
13078 wl=$lt_prog_compiler_wl_CXX
13079 pic_flag=$lt_prog_compiler_pic_CXX
13080 compiler_flags=-v
13081 linker_flags=-v
13082 verstring=
13083 output_objdir=.
13084 libname=conftest
13085 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13086 allow_undefined_flag_CXX=
13087 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13088 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13089 ac_status=$?
13090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }
13092 then
13093 archive_cmds_need_lc_CXX=no
13094 else
13095 archive_cmds_need_lc_CXX=yes
13096 fi
13097 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13098 else
13099 cat conftest.err 1>&5
13100 fi
13101 $rm conftest*
13102 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13103 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13104 ;;
13105 esac
13106 fi
13107 ;;
13108 esac
13109
13110 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13111 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13112 library_names_spec=
13113 libname_spec='lib$name'
13114 soname_spec=
13115 shrext_cmds=".so"
13116 postinstall_cmds=
13117 postuninstall_cmds=
13118 finish_cmds=
13119 finish_eval=
13120 shlibpath_var=
13121 shlibpath_overrides_runpath=unknown
13122 version_type=none
13123 dynamic_linker="$host_os ld.so"
13124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13125
13126 need_lib_prefix=unknown
13127 hardcode_into_libs=no
13128
13129 # when you set need_version to no, make sure it does not cause -set_version
13130 # flags to be left without arguments
13131 need_version=unknown
13132
13133 case $host_os in
13134 aix3*)
13135 version_type=linux
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13137 shlibpath_var=LIBPATH
13138
13139 # AIX 3 has no versioning support, so we append a major version to the name.
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 ;;
13142
13143 aix[4-9]*)
13144 version_type=linux
13145 need_lib_prefix=no
13146 need_version=no
13147 hardcode_into_libs=yes
13148 if test "$host_cpu" = ia64; then
13149 # AIX 5 supports IA64
13150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13151 shlibpath_var=LD_LIBRARY_PATH
13152 else
13153 # With GCC up to 2.95.x, collect2 would create an import file
13154 # for dependence libraries. The import file would start with
13155 # the line `#! .'. This would cause the generated library to
13156 # depend on `.', always an invalid library. This was fixed in
13157 # development snapshots of GCC prior to 3.0.
13158 case $host_os in
13159 aix4 | aix4.[01] | aix4.[01].*)
13160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13161 echo ' yes '
13162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13163 :
13164 else
13165 can_build_shared=no
13166 fi
13167 ;;
13168 esac
13169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13170 # soname into executable. Probably we can add versioning support to
13171 # collect2, so additional links can be useful in future.
13172 if test "$aix_use_runtimelinking" = yes; then
13173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13174 # instead of lib<name>.a to let people know that these are not
13175 # typical AIX shared libraries.
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 else
13178 # We preserve .a as extension for shared libraries through AIX4.2
13179 # and later when we are not doing run time linking.
13180 library_names_spec='${libname}${release}.a $libname.a'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 fi
13183 shlibpath_var=LIBPATH
13184 fi
13185 ;;
13186
13187 amigaos*)
13188 library_names_spec='$libname.ixlibrary $libname.a'
13189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13190 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'
13191 ;;
13192
13193 beos*)
13194 library_names_spec='${libname}${shared_ext}'
13195 dynamic_linker="$host_os ld.so"
13196 shlibpath_var=LIBRARY_PATH
13197 ;;
13198
13199 bsdi[45]*)
13200 version_type=linux
13201 need_version=no
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13208 # the default ld.so.conf also contains /usr/contrib/lib and
13209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13210 # libtool to hard-code these into programs
13211 ;;
13212
13213 cygwin* | mingw* | pw32*)
13214 version_type=windows
13215 shrext_cmds=".dll"
13216 need_version=no
13217 need_lib_prefix=no
13218
13219 case $GCC,$host_os in
13220 yes,cygwin* | yes,mingw* | yes,pw32*)
13221 library_names_spec='$libname.dll.a'
13222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13223 postinstall_cmds='base_file=`basename \${file}`~
13224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13225 dldir=$destdir/`dirname \$dlpath`~
13226 test -d \$dldir || mkdir -p \$dldir~
13227 $install_prog $dir/$dlname \$dldir/$dlname~
13228 chmod a+x \$dldir/$dlname'
13229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13230 dlpath=$dir/\$dldll~
13231 $rm \$dlpath'
13232 shlibpath_overrides_runpath=yes
13233
13234 case $host_os in
13235 cygwin*)
13236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13239 ;;
13240 mingw*)
13241 # MinGW DLLs use traditional 'lib' prefix
13242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13244 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13245 # It is most probably a Windows format PATH printed by
13246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13247 # path with ; separators, and with drive letters. We can handle the
13248 # drive letters (cygwin fileutils understands them), so leave them,
13249 # especially as we might pass files found there to a mingw objdump,
13250 # which wouldn't understand a cygwinified path. Ahh.
13251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13252 else
13253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13254 fi
13255 ;;
13256 pw32*)
13257 # pw32 DLLs use 'pw' prefix rather than 'lib'
13258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13259 ;;
13260 esac
13261 ;;
13262
13263 *)
13264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13265 ;;
13266 esac
13267 dynamic_linker='Win32 ld.exe'
13268 # FIXME: first we should search . and the directory the executable is in
13269 shlibpath_var=PATH
13270 ;;
13271
13272 darwin* | rhapsody*)
13273 dynamic_linker="$host_os dyld"
13274 version_type=darwin
13275 need_lib_prefix=no
13276 need_version=no
13277 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13278 soname_spec='${libname}${release}${major}$shared_ext'
13279 shlibpath_overrides_runpath=yes
13280 shlibpath_var=DYLD_LIBRARY_PATH
13281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13282
13283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13284 ;;
13285
13286 dgux*)
13287 version_type=linux
13288 need_lib_prefix=no
13289 need_version=no
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 ;;
13294
13295 freebsd1*)
13296 dynamic_linker=no
13297 ;;
13298
13299 freebsd* | dragonfly*)
13300 # DragonFly does not have aout. When/if they implement a new
13301 # versioning mechanism, adjust this.
13302 if test -x /usr/bin/objformat; then
13303 objformat=`/usr/bin/objformat`
13304 else
13305 case $host_os in
13306 freebsd[123]*) objformat=aout ;;
13307 *) objformat=elf ;;
13308 esac
13309 fi
13310 version_type=freebsd-$objformat
13311 case $version_type in
13312 freebsd-elf*)
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13314 need_version=no
13315 need_lib_prefix=no
13316 ;;
13317 freebsd-*)
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13319 need_version=yes
13320 ;;
13321 esac
13322 shlibpath_var=LD_LIBRARY_PATH
13323 case $host_os in
13324 freebsd2*)
13325 shlibpath_overrides_runpath=yes
13326 ;;
13327 freebsd3.[01]* | freebsdelf3.[01]*)
13328 shlibpath_overrides_runpath=yes
13329 hardcode_into_libs=yes
13330 ;;
13331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13333 shlibpath_overrides_runpath=no
13334 hardcode_into_libs=yes
13335 ;;
13336 *) # from 4.6 on, and DragonFly
13337 shlibpath_overrides_runpath=yes
13338 hardcode_into_libs=yes
13339 ;;
13340 esac
13341 ;;
13342
13343 gnu*)
13344 version_type=linux
13345 need_lib_prefix=no
13346 need_version=no
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13348 soname_spec='${libname}${release}${shared_ext}$major'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 hardcode_into_libs=yes
13351 ;;
13352
13353 hpux9* | hpux10* | hpux11*)
13354 # Give a soname corresponding to the major version so that dld.sl refuses to
13355 # link against other versions.
13356 version_type=sunos
13357 need_lib_prefix=no
13358 need_version=no
13359 case $host_cpu in
13360 ia64*)
13361 shrext_cmds='.so'
13362 hardcode_into_libs=yes
13363 dynamic_linker="$host_os dld.so"
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 if test "X$HPUX_IA64_MODE" = X32; then
13369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13370 else
13371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13372 fi
13373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13374 ;;
13375 hppa*64*)
13376 shrext_cmds='.sl'
13377 hardcode_into_libs=yes
13378 dynamic_linker="$host_os dld.sl"
13379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13385 ;;
13386 *)
13387 shrext_cmds='.sl'
13388 dynamic_linker="$host_os dld.sl"
13389 shlibpath_var=SHLIB_PATH
13390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392 soname_spec='${libname}${release}${shared_ext}$major'
13393 ;;
13394 esac
13395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13396 postinstall_cmds='chmod 555 $lib'
13397 ;;
13398
13399 interix[3-9]*)
13400 version_type=linux
13401 need_lib_prefix=no
13402 need_version=no
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13404 soname_spec='${libname}${release}${shared_ext}$major'
13405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 shlibpath_overrides_runpath=no
13408 hardcode_into_libs=yes
13409 ;;
13410
13411 irix5* | irix6* | nonstopux*)
13412 case $host_os in
13413 nonstopux*) version_type=nonstopux ;;
13414 *)
13415 if test "$lt_cv_prog_gnu_ld" = yes; then
13416 version_type=linux
13417 else
13418 version_type=irix
13419 fi ;;
13420 esac
13421 need_lib_prefix=no
13422 need_version=no
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13425 case $host_os in
13426 irix5* | nonstopux*)
13427 libsuff= shlibsuff=
13428 ;;
13429 *)
13430 case $LD in # libtool.m4 will add one of these switches to LD
13431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13432 libsuff= shlibsuff= libmagic=32-bit;;
13433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13434 libsuff=32 shlibsuff=N32 libmagic=N32;;
13435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13437 *) libsuff= shlibsuff= libmagic=never-match;;
13438 esac
13439 ;;
13440 esac
13441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13442 shlibpath_overrides_runpath=no
13443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13445 hardcode_into_libs=yes
13446 ;;
13447
13448 # No shared lib support for Linux oldld, aout, or coff.
13449 linux*oldld* | linux*aout* | linux*coff*)
13450 dynamic_linker=no
13451 ;;
13452
13453 # This must be Linux ELF.
13454 linux* | k*bsd*-gnu)
13455 version_type=linux
13456 need_lib_prefix=no
13457 need_version=no
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=no
13463 # This implies no fast_install, which is unacceptable.
13464 # Some rework will be needed to allow for fast_install
13465 # before this can be enabled.
13466 hardcode_into_libs=yes
13467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13469
13470 # Append ld.so.conf contents to the search path
13471 if test -f /etc/ld.so.conf; then
13472 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' ' '`
13473 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13474 fi
13475
13476 # We used to test for /lib/ld.so.1 and disable shared libraries on
13477 # powerpc, because MkLinux only supported shared libraries with the
13478 # GNU dynamic linker. Since this was broken with cross compilers,
13479 # most powerpc-linux boxes support dynamic linking these days and
13480 # people can always --disable-shared, the test was removed, and we
13481 # assume the GNU/Linux dynamic linker is in use.
13482 dynamic_linker='GNU/Linux ld.so'
13483 ;;
13484
13485 netbsd*)
13486 version_type=sunos
13487 need_lib_prefix=no
13488 need_version=no
13489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13492 dynamic_linker='NetBSD (a.out) ld.so'
13493 else
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 dynamic_linker='NetBSD ld.elf_so'
13497 fi
13498 shlibpath_var=LD_LIBRARY_PATH
13499 shlibpath_overrides_runpath=yes
13500 hardcode_into_libs=yes
13501 ;;
13502
13503 newsos6)
13504 version_type=linux
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 shlibpath_overrides_runpath=yes
13508 ;;
13509
13510 nto-qnx*)
13511 version_type=linux
13512 need_lib_prefix=no
13513 need_version=no
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13516 shlibpath_var=LD_LIBRARY_PATH
13517 shlibpath_overrides_runpath=yes
13518 ;;
13519
13520 openbsd*)
13521 version_type=sunos
13522 sys_lib_dlsearch_path_spec="/usr/lib"
13523 need_lib_prefix=no
13524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13525 case $host_os in
13526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13527 *) need_version=no ;;
13528 esac
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13533 case $host_os in
13534 openbsd2.[89] | openbsd2.[89].*)
13535 shlibpath_overrides_runpath=no
13536 ;;
13537 *)
13538 shlibpath_overrides_runpath=yes
13539 ;;
13540 esac
13541 else
13542 shlibpath_overrides_runpath=yes
13543 fi
13544 ;;
13545
13546 os2*)
13547 libname_spec='$name'
13548 shrext_cmds=".dll"
13549 need_lib_prefix=no
13550 library_names_spec='$libname${shared_ext} $libname.a'
13551 dynamic_linker='OS/2 ld.exe'
13552 shlibpath_var=LIBPATH
13553 ;;
13554
13555 osf3* | osf4* | osf5*)
13556 version_type=osf
13557 need_lib_prefix=no
13558 need_version=no
13559 soname_spec='${libname}${release}${shared_ext}$major'
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 shlibpath_var=LD_LIBRARY_PATH
13562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13564 ;;
13565
13566 rdos*)
13567 dynamic_linker=no
13568 ;;
13569
13570 solaris*)
13571 version_type=linux
13572 need_lib_prefix=no
13573 need_version=no
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13575 soname_spec='${libname}${release}${shared_ext}$major'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 shlibpath_overrides_runpath=yes
13578 hardcode_into_libs=yes
13579 # ldd complains unless libraries are executable
13580 postinstall_cmds='chmod +x $lib'
13581 ;;
13582
13583 sunos4*)
13584 version_type=sunos
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13587 shlibpath_var=LD_LIBRARY_PATH
13588 shlibpath_overrides_runpath=yes
13589 if test "$with_gnu_ld" = yes; then
13590 need_lib_prefix=no
13591 fi
13592 need_version=yes
13593 ;;
13594
13595 sysv4 | sysv4.3*)
13596 version_type=linux
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598 soname_spec='${libname}${release}${shared_ext}$major'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 case $host_vendor in
13601 sni)
13602 shlibpath_overrides_runpath=no
13603 need_lib_prefix=no
13604 export_dynamic_flag_spec='${wl}-Blargedynsym'
13605 runpath_var=LD_RUN_PATH
13606 ;;
13607 siemens)
13608 need_lib_prefix=no
13609 ;;
13610 motorola)
13611 need_lib_prefix=no
13612 need_version=no
13613 shlibpath_overrides_runpath=no
13614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13615 ;;
13616 esac
13617 ;;
13618
13619 sysv4*MP*)
13620 if test -d /usr/nec ;then
13621 version_type=linux
13622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13623 soname_spec='$libname${shared_ext}.$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 fi
13626 ;;
13627
13628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13629 version_type=freebsd-elf
13630 need_lib_prefix=no
13631 need_version=no
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 hardcode_into_libs=yes
13636 if test "$with_gnu_ld" = yes; then
13637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13638 shlibpath_overrides_runpath=no
13639 else
13640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13641 shlibpath_overrides_runpath=yes
13642 case $host_os in
13643 sco3.2v5*)
13644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13645 ;;
13646 esac
13647 fi
13648 sys_lib_dlsearch_path_spec='/usr/lib'
13649 ;;
13650
13651 uts4*)
13652 version_type=linux
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 ;;
13657
13658 *)
13659 dynamic_linker=no
13660 ;;
13661 esac
13662 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13663 $as_echo "$dynamic_linker" >&6; }
13664 test "$dynamic_linker" = no && can_build_shared=no
13665
13666 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13667 $as_echo_n "(cached) " >&6
13668 else
13669 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13670 fi
13671
13672 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13674 $as_echo_n "(cached) " >&6
13675 else
13676 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13677 fi
13678
13679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13680
13681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13682 if test "$GCC" = yes; then
13683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13684 fi
13685
13686 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13688 hardcode_action_CXX=
13689 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13690 test -n "$runpath_var_CXX" || \
13691 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13692
13693 # We can hardcode non-existant directories.
13694 if test "$hardcode_direct_CXX" != no &&
13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696 # have to relink, otherwise we might link with an installed library
13697 # when we should be linking with a yet-to-be-installed one
13698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13699 test "$hardcode_minus_L_CXX" != no; then
13700 # Linking always hardcodes the temporary library directory.
13701 hardcode_action_CXX=relink
13702 else
13703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704 hardcode_action_CXX=immediate
13705 fi
13706 else
13707 # We cannot hardcode anything, or else we can only hardcode existing
13708 # directories.
13709 hardcode_action_CXX=unsupported
13710 fi
13711 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13712 $as_echo "$hardcode_action_CXX" >&6; }
13713
13714 if test "$hardcode_action_CXX" = relink; then
13715 # Fast installation is not supported
13716 enable_fast_install=no
13717 elif test "$shlibpath_overrides_runpath" = yes ||
13718 test "$enable_shared" = no; then
13719 # Fast installation is not necessary
13720 enable_fast_install=needless
13721 fi
13722
13723
13724 # The else clause should only fire when bootstrapping the
13725 # libtool distribution, otherwise you forgot to ship ltmain.sh
13726 # with your package, and you will get complaints that there are
13727 # no rules to generate ltmain.sh.
13728 if test -f "$ltmain"; then
13729 # See if we are running on zsh, and set the options which allow our commands through
13730 # without removal of \ escapes.
13731 if test -n "${ZSH_VERSION+set}" ; then
13732 setopt NO_GLOB_SUBST
13733 fi
13734 # Now quote all the things that may contain metacharacters while being
13735 # careful not to overquote the AC_SUBSTed values. We take copies of the
13736 # variables and quote the copies for generation of the libtool script.
13737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13738 SED SHELL STRIP \
13739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13741 deplibs_check_method reload_flag reload_cmds need_locks \
13742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13743 lt_cv_sys_global_symbol_to_c_name_address \
13744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13745 old_postinstall_cmds old_postuninstall_cmds \
13746 compiler_CXX \
13747 CC_CXX \
13748 LD_CXX \
13749 lt_prog_compiler_wl_CXX \
13750 lt_prog_compiler_pic_CXX \
13751 lt_prog_compiler_static_CXX \
13752 lt_prog_compiler_no_builtin_flag_CXX \
13753 export_dynamic_flag_spec_CXX \
13754 thread_safe_flag_spec_CXX \
13755 whole_archive_flag_spec_CXX \
13756 enable_shared_with_static_runtimes_CXX \
13757 old_archive_cmds_CXX \
13758 old_archive_from_new_cmds_CXX \
13759 predep_objects_CXX \
13760 postdep_objects_CXX \
13761 predeps_CXX \
13762 postdeps_CXX \
13763 compiler_lib_search_path_CXX \
13764 compiler_lib_search_dirs_CXX \
13765 archive_cmds_CXX \
13766 archive_expsym_cmds_CXX \
13767 postinstall_cmds_CXX \
13768 postuninstall_cmds_CXX \
13769 old_archive_from_expsyms_cmds_CXX \
13770 allow_undefined_flag_CXX \
13771 no_undefined_flag_CXX \
13772 export_symbols_cmds_CXX \
13773 hardcode_libdir_flag_spec_CXX \
13774 hardcode_libdir_flag_spec_ld_CXX \
13775 hardcode_libdir_separator_CXX \
13776 hardcode_automatic_CXX \
13777 module_cmds_CXX \
13778 module_expsym_cmds_CXX \
13779 lt_cv_prog_compiler_c_o_CXX \
13780 fix_srcfile_path_CXX \
13781 exclude_expsyms_CXX \
13782 include_expsyms_CXX; do
13783
13784 case $var in
13785 old_archive_cmds_CXX | \
13786 old_archive_from_new_cmds_CXX | \
13787 archive_cmds_CXX | \
13788 archive_expsym_cmds_CXX | \
13789 module_cmds_CXX | \
13790 module_expsym_cmds_CXX | \
13791 old_archive_from_expsyms_cmds_CXX | \
13792 export_symbols_cmds_CXX | \
13793 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13794 postinstall_cmds | postuninstall_cmds | \
13795 old_postinstall_cmds | old_postuninstall_cmds | \
13796 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13797 # Double-quote double-evaled strings.
13798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13799 ;;
13800 *)
13801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13802 ;;
13803 esac
13804 done
13805
13806 case $lt_echo in
13807 *'\$0 --fallback-echo"')
13808 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13809 ;;
13810 esac
13811
13812 cfgfile="$ofile"
13813
13814 cat <<__EOF__ >> "$cfgfile"
13815 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13816
13817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13818
13819 # Shell to use when invoking shell scripts.
13820 SHELL=$lt_SHELL
13821
13822 # Whether or not to build shared libraries.
13823 build_libtool_libs=$enable_shared
13824
13825 # Whether or not to build static libraries.
13826 build_old_libs=$enable_static
13827
13828 # Whether or not to add -lc for building shared libraries.
13829 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13830
13831 # Whether or not to disallow shared libs when runtime libs are static
13832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13833
13834 # Whether or not to optimize for fast installation.
13835 fast_install=$enable_fast_install
13836
13837 # The host system.
13838 host_alias=$host_alias
13839 host=$host
13840 host_os=$host_os
13841
13842 # The build system.
13843 build_alias=$build_alias
13844 build=$build
13845 build_os=$build_os
13846
13847 # An echo program that does not interpret backslashes.
13848 echo=$lt_echo
13849
13850 # The archiver.
13851 AR=$lt_AR
13852 AR_FLAGS=$lt_AR_FLAGS
13853
13854 # A C compiler.
13855 LTCC=$lt_LTCC
13856
13857 # LTCC compiler flags.
13858 LTCFLAGS=$lt_LTCFLAGS
13859
13860 # A language-specific compiler.
13861 CC=$lt_compiler_CXX
13862
13863 # Is the compiler the GNU C compiler?
13864 with_gcc=$GCC_CXX
13865
13866 # An ERE matcher.
13867 EGREP=$lt_EGREP
13868
13869 # The linker used to build libraries.
13870 LD=$lt_LD_CXX
13871
13872 # Whether we need hard or soft links.
13873 LN_S=$lt_LN_S
13874
13875 # A BSD-compatible nm program.
13876 NM=$lt_NM
13877
13878 # A symbol stripping program
13879 STRIP=$lt_STRIP
13880
13881 # Used to examine libraries when file_magic_cmd begins "file"
13882 MAGIC_CMD=$MAGIC_CMD
13883
13884 # Used on cygwin: DLL creation program.
13885 DLLTOOL="$DLLTOOL"
13886
13887 # Used on cygwin: object dumper.
13888 OBJDUMP="$OBJDUMP"
13889
13890 # Used on cygwin: assembler.
13891 AS="$AS"
13892
13893 # The name of the directory that contains temporary libtool files.
13894 objdir=$objdir
13895
13896 # How to create reloadable object files.
13897 reload_flag=$lt_reload_flag
13898 reload_cmds=$lt_reload_cmds
13899
13900 # How to pass a linker flag through the compiler.
13901 wl=$lt_lt_prog_compiler_wl_CXX
13902
13903 # Object file suffix (normally "o").
13904 objext="$ac_objext"
13905
13906 # Old archive suffix (normally "a").
13907 libext="$libext"
13908
13909 # Shared library suffix (normally ".so").
13910 shrext_cmds='$shrext_cmds'
13911
13912 # Executable file suffix (normally "").
13913 exeext="$exeext"
13914
13915 # Additional compiler flags for building library objects.
13916 pic_flag=$lt_lt_prog_compiler_pic_CXX
13917 pic_mode=$pic_mode
13918
13919 # What is the maximum length of a command?
13920 max_cmd_len=$lt_cv_sys_max_cmd_len
13921
13922 # Does compiler simultaneously support -c and -o options?
13923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13924
13925 # Must we lock files when doing compilation?
13926 need_locks=$lt_need_locks
13927
13928 # Do we need the lib prefix for modules?
13929 need_lib_prefix=$need_lib_prefix
13930
13931 # Do we need a version for libraries?
13932 need_version=$need_version
13933
13934 # Whether dlopen is supported.
13935 dlopen_support=$enable_dlopen
13936
13937 # Whether dlopen of programs is supported.
13938 dlopen_self=$enable_dlopen_self
13939
13940 # Whether dlopen of statically linked programs is supported.
13941 dlopen_self_static=$enable_dlopen_self_static
13942
13943 # Compiler flag to prevent dynamic linking.
13944 link_static_flag=$lt_lt_prog_compiler_static_CXX
13945
13946 # Compiler flag to turn off builtin functions.
13947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13948
13949 # Compiler flag to allow reflexive dlopens.
13950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13951
13952 # Compiler flag to generate shared objects directly from archives.
13953 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13954
13955 # Compiler flag to generate thread-safe objects.
13956 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13957
13958 # Library versioning type.
13959 version_type=$version_type
13960
13961 # Format of library name prefix.
13962 libname_spec=$lt_libname_spec
13963
13964 # List of archive names. First name is the real one, the rest are links.
13965 # The last name is the one that the linker finds with -lNAME.
13966 library_names_spec=$lt_library_names_spec
13967
13968 # The coded name of the library, if different from the real name.
13969 soname_spec=$lt_soname_spec
13970
13971 # Commands used to build and install an old-style archive.
13972 RANLIB=$lt_RANLIB
13973 old_archive_cmds=$lt_old_archive_cmds_CXX
13974 old_postinstall_cmds=$lt_old_postinstall_cmds
13975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13976
13977 # Create an old-style archive from a shared archive.
13978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13979
13980 # Create a temporary old-style archive to link instead of a shared archive.
13981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13982
13983 # Commands used to build and install a shared archive.
13984 archive_cmds=$lt_archive_cmds_CXX
13985 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13986 postinstall_cmds=$lt_postinstall_cmds
13987 postuninstall_cmds=$lt_postuninstall_cmds
13988
13989 # Commands used to build a loadable module (assumed same as above if empty)
13990 module_cmds=$lt_module_cmds_CXX
13991 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13992
13993 # Commands to strip libraries.
13994 old_striplib=$lt_old_striplib
13995 striplib=$lt_striplib
13996
13997 # Dependencies to place before the objects being linked to create a
13998 # shared library.
13999 predep_objects=$lt_predep_objects_CXX
14000
14001 # Dependencies to place after the objects being linked to create a
14002 # shared library.
14003 postdep_objects=$lt_postdep_objects_CXX
14004
14005 # Dependencies to place before the objects being linked to create a
14006 # shared library.
14007 predeps=$lt_predeps_CXX
14008
14009 # Dependencies to place after the objects being linked to create a
14010 # shared library.
14011 postdeps=$lt_postdeps_CXX
14012
14013 # The directories searched by this compiler when creating a shared
14014 # library
14015 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14016
14017 # The library search path used internally by the compiler when linking
14018 # a shared library.
14019 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14020
14021 # Method to check whether dependent libraries are shared objects.
14022 deplibs_check_method=$lt_deplibs_check_method
14023
14024 # Command to use when deplibs_check_method == file_magic.
14025 file_magic_cmd=$lt_file_magic_cmd
14026
14027 # Flag that allows shared libraries with undefined symbols to be built.
14028 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14029
14030 # Flag that forces no undefined symbols.
14031 no_undefined_flag=$lt_no_undefined_flag_CXX
14032
14033 # Commands used to finish a libtool library installation in a directory.
14034 finish_cmds=$lt_finish_cmds
14035
14036 # Same as above, but a single script fragment to be evaled but not shown.
14037 finish_eval=$lt_finish_eval
14038
14039 # Take the output of nm and produce a listing of raw symbols and C names.
14040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14041
14042 # Transform the output of nm in a proper C declaration
14043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14044
14045 # Transform the output of nm in a C name address pair
14046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14047
14048 # This is the shared library runtime path variable.
14049 runpath_var=$runpath_var
14050
14051 # This is the shared library path variable.
14052 shlibpath_var=$shlibpath_var
14053
14054 # Is shlibpath searched before the hard-coded library search path?
14055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14056
14057 # How to hardcode a shared library path into an executable.
14058 hardcode_action=$hardcode_action_CXX
14059
14060 # Whether we should hardcode library paths into libraries.
14061 hardcode_into_libs=$hardcode_into_libs
14062
14063 # Flag to hardcode \$libdir into a binary during linking.
14064 # This must work even if \$libdir does not exist.
14065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14066
14067 # If ld is used when linking, flag to hardcode \$libdir into
14068 # a binary during linking. This must work even if \$libdir does
14069 # not exist.
14070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14071
14072 # Whether we need a single -rpath flag with a separated argument.
14073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14074
14075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14076 # resulting binary.
14077 hardcode_direct=$hardcode_direct_CXX
14078
14079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14080 # resulting binary.
14081 hardcode_minus_L=$hardcode_minus_L_CXX
14082
14083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14084 # the resulting binary.
14085 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14086
14087 # Set to yes if building a shared library automatically hardcodes DIR into the library
14088 # and all subsequent libraries and executables linked against it.
14089 hardcode_automatic=$hardcode_automatic_CXX
14090
14091 # Variables whose values should be saved in libtool wrapper scripts and
14092 # restored at relink time.
14093 variables_saved_for_relink="$variables_saved_for_relink"
14094
14095 # Whether libtool must link a program against all its dependency libraries.
14096 link_all_deplibs=$link_all_deplibs_CXX
14097
14098 # Compile-time system search path for libraries
14099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14100
14101 # Run-time system search path for libraries
14102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14103
14104 # Fix the shell variable \$srcfile for the compiler.
14105 fix_srcfile_path=$lt_fix_srcfile_path
14106
14107 # Set to yes if exported symbols are required.
14108 always_export_symbols=$always_export_symbols_CXX
14109
14110 # The commands to list exported symbols.
14111 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14112
14113 # The commands to extract the exported symbol list from a shared archive.
14114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14115
14116 # Symbols that should not be listed in the preloaded symbols.
14117 exclude_expsyms=$lt_exclude_expsyms_CXX
14118
14119 # Symbols that must always be exported.
14120 include_expsyms=$lt_include_expsyms_CXX
14121
14122 # ### END LIBTOOL TAG CONFIG: $tagname
14123
14124 __EOF__
14125
14126
14127 else
14128 # If there is no Makefile yet, we rely on a make rule to execute
14129 # `config.status --recheck' to rerun these tests and create the
14130 # libtool script then.
14131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14132 if test -f "$ltmain_in"; then
14133 test -f Makefile && make "$ltmain"
14134 fi
14135 fi
14136
14137
14138 ac_ext=c
14139 ac_cpp='$CPP $CPPFLAGS'
14140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14143
14144 CC=$lt_save_CC
14145 LDCXX=$LD
14146 LD=$lt_save_LD
14147 GCC=$lt_save_GCC
14148 with_gnu_ldcxx=$with_gnu_ld
14149 with_gnu_ld=$lt_save_with_gnu_ld
14150 lt_cv_path_LDCXX=$lt_cv_path_LD
14151 lt_cv_path_LD=$lt_save_path_LD
14152 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14153 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14154
14155 else
14156 tagname=""
14157 fi
14158 ;;
14159
14160 F77)
14161 if test -n "$F77" && test "X$F77" != "Xno"; then
14162
14163 ac_ext=f
14164 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14165 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14166 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14167
14168
14169 archive_cmds_need_lc_F77=no
14170 allow_undefined_flag_F77=
14171 always_export_symbols_F77=no
14172 archive_expsym_cmds_F77=
14173 export_dynamic_flag_spec_F77=
14174 hardcode_direct_F77=no
14175 hardcode_libdir_flag_spec_F77=
14176 hardcode_libdir_flag_spec_ld_F77=
14177 hardcode_libdir_separator_F77=
14178 hardcode_minus_L_F77=no
14179 hardcode_automatic_F77=no
14180 module_cmds_F77=
14181 module_expsym_cmds_F77=
14182 link_all_deplibs_F77=unknown
14183 old_archive_cmds_F77=$old_archive_cmds
14184 no_undefined_flag_F77=
14185 whole_archive_flag_spec_F77=
14186 enable_shared_with_static_runtimes_F77=no
14187
14188 # Source file extension for f77 test sources.
14189 ac_ext=f
14190
14191 # Object file extension for compiled f77 test sources.
14192 objext=o
14193 objext_F77=$objext
14194
14195 # Code to be used in simple compile tests
14196 lt_simple_compile_test_code="\
14197 subroutine t
14198 return
14199 end
14200 "
14201
14202 # Code to be used in simple link tests
14203 lt_simple_link_test_code="\
14204 program t
14205 end
14206 "
14207
14208 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14209
14210 # If no C compiler was specified, use CC.
14211 LTCC=${LTCC-"$CC"}
14212
14213 # If no C compiler flags were specified, use CFLAGS.
14214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14215
14216 # Allow CC to be a program name with arguments.
14217 compiler=$CC
14218
14219
14220 # save warnings/boilerplate of simple test code
14221 ac_outfile=conftest.$ac_objext
14222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14224 _lt_compiler_boilerplate=`cat conftest.err`
14225 $rm conftest*
14226
14227 ac_outfile=conftest.$ac_objext
14228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14230 _lt_linker_boilerplate=`cat conftest.err`
14231 $rm -r conftest*
14232
14233
14234 # Allow CC to be a program name with arguments.
14235 lt_save_CC="$CC"
14236 CC=${F77-"f77"}
14237 compiler=$CC
14238 compiler_F77=$CC
14239 for cc_temp in $compiler""; do
14240 case $cc_temp in
14241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14243 \-*) ;;
14244 *) break;;
14245 esac
14246 done
14247 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14248
14249
14250 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14252 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14253 $as_echo "$can_build_shared" >&6; }
14254
14255 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14256 $as_echo_n "checking whether to build shared libraries... " >&6; }
14257 test "$can_build_shared" = "no" && enable_shared=no
14258
14259 # On AIX, shared libraries and static libraries use the same namespace, and
14260 # are all built from PIC.
14261 case $host_os in
14262 aix3*)
14263 test "$enable_shared" = yes && enable_static=no
14264 if test -n "$RANLIB"; then
14265 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14266 postinstall_cmds='$RANLIB $lib'
14267 fi
14268 ;;
14269 aix[4-9]*)
14270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14271 test "$enable_shared" = yes && enable_static=no
14272 fi
14273 ;;
14274 esac
14275 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14276 $as_echo "$enable_shared" >&6; }
14277
14278 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14279 $as_echo_n "checking whether to build static libraries... " >&6; }
14280 # Make sure either enable_shared or enable_static is yes.
14281 test "$enable_shared" = yes || enable_static=yes
14282 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14283 $as_echo "$enable_static" >&6; }
14284
14285 GCC_F77="$G77"
14286 LD_F77="$LD"
14287
14288 lt_prog_compiler_wl_F77=
14289 lt_prog_compiler_pic_F77=
14290 lt_prog_compiler_static_F77=
14291
14292 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14293 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14294
14295 if test "$GCC" = yes; then
14296 lt_prog_compiler_wl_F77='-Wl,'
14297 lt_prog_compiler_static_F77='-static'
14298
14299 case $host_os in
14300 aix*)
14301 # All AIX code is PIC.
14302 if test "$host_cpu" = ia64; then
14303 # AIX 5 now supports IA64 processor
14304 lt_prog_compiler_static_F77='-Bstatic'
14305 fi
14306 ;;
14307
14308 amigaos*)
14309 # FIXME: we need at least 68020 code to build shared libraries, but
14310 # adding the `-m68020' flag to GCC prevents building anything better,
14311 # like `-m68040'.
14312 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14313 ;;
14314
14315 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14316 # PIC is the default for these OSes.
14317 ;;
14318
14319 mingw* | cygwin* | pw32* | os2*)
14320 # This hack is so that the source file can tell whether it is being
14321 # built for inclusion in a dll (and should export symbols for example).
14322 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14323 # (--disable-auto-import) libraries
14324 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14325 ;;
14326
14327 darwin* | rhapsody*)
14328 # PIC is the default on this platform
14329 # Common symbols not allowed in MH_DYLIB files
14330 lt_prog_compiler_pic_F77='-fno-common'
14331 ;;
14332
14333 interix[3-9]*)
14334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14335 # Instead, we relocate shared libraries at runtime.
14336 ;;
14337
14338 msdosdjgpp*)
14339 # Just because we use GCC doesn't mean we suddenly get shared libraries
14340 # on systems that don't support them.
14341 lt_prog_compiler_can_build_shared_F77=no
14342 enable_shared=no
14343 ;;
14344
14345 sysv4*MP*)
14346 if test -d /usr/nec; then
14347 lt_prog_compiler_pic_F77=-Kconform_pic
14348 fi
14349 ;;
14350
14351 hpux*)
14352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14353 # not for PA HP-UX.
14354 case $host_cpu in
14355 hppa*64*|ia64*)
14356 # +Z the default
14357 ;;
14358 *)
14359 lt_prog_compiler_pic_F77='-fPIC'
14360 ;;
14361 esac
14362 ;;
14363
14364 *)
14365 lt_prog_compiler_pic_F77='-fPIC'
14366 ;;
14367 esac
14368 else
14369 # PORTME Check for flag to pass linker flags through the system compiler.
14370 case $host_os in
14371 aix*)
14372 lt_prog_compiler_wl_F77='-Wl,'
14373 if test "$host_cpu" = ia64; then
14374 # AIX 5 now supports IA64 processor
14375 lt_prog_compiler_static_F77='-Bstatic'
14376 else
14377 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14378 fi
14379 ;;
14380 darwin*)
14381 # PIC is the default on this platform
14382 # Common symbols not allowed in MH_DYLIB files
14383 case $cc_basename in
14384 xlc*)
14385 lt_prog_compiler_pic_F77='-qnocommon'
14386 lt_prog_compiler_wl_F77='-Wl,'
14387 ;;
14388 esac
14389 ;;
14390
14391 mingw* | cygwin* | pw32* | os2*)
14392 # This hack is so that the source file can tell whether it is being
14393 # built for inclusion in a dll (and should export symbols for example).
14394 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14395 ;;
14396
14397 hpux9* | hpux10* | hpux11*)
14398 lt_prog_compiler_wl_F77='-Wl,'
14399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14400 # not for PA HP-UX.
14401 case $host_cpu in
14402 hppa*64*|ia64*)
14403 # +Z the default
14404 ;;
14405 *)
14406 lt_prog_compiler_pic_F77='+Z'
14407 ;;
14408 esac
14409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14410 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14411 ;;
14412
14413 irix5* | irix6* | nonstopux*)
14414 lt_prog_compiler_wl_F77='-Wl,'
14415 # PIC (with -KPIC) is the default.
14416 lt_prog_compiler_static_F77='-non_shared'
14417 ;;
14418
14419 newsos6)
14420 lt_prog_compiler_pic_F77='-KPIC'
14421 lt_prog_compiler_static_F77='-Bstatic'
14422 ;;
14423
14424 linux* | k*bsd*-gnu)
14425 case $cc_basename in
14426 icc* | ecc*)
14427 lt_prog_compiler_wl_F77='-Wl,'
14428 lt_prog_compiler_pic_F77='-KPIC'
14429 lt_prog_compiler_static_F77='-static'
14430 ;;
14431 pgcc* | pgf77* | pgf90* | pgf95*)
14432 # Portland Group compilers (*not* the Pentium gcc compiler,
14433 # which looks to be a dead project)
14434 lt_prog_compiler_wl_F77='-Wl,'
14435 lt_prog_compiler_pic_F77='-fpic'
14436 lt_prog_compiler_static_F77='-Bstatic'
14437 ;;
14438 ccc*)
14439 lt_prog_compiler_wl_F77='-Wl,'
14440 # All Alpha code is PIC.
14441 lt_prog_compiler_static_F77='-non_shared'
14442 ;;
14443 *)
14444 case `$CC -V 2>&1 | sed 5q` in
14445 *Sun\ C*)
14446 # Sun C 5.9
14447 lt_prog_compiler_pic_F77='-KPIC'
14448 lt_prog_compiler_static_F77='-Bstatic'
14449 lt_prog_compiler_wl_F77='-Wl,'
14450 ;;
14451 *Sun\ F*)
14452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14453 lt_prog_compiler_pic_F77='-KPIC'
14454 lt_prog_compiler_static_F77='-Bstatic'
14455 lt_prog_compiler_wl_F77=''
14456 ;;
14457 esac
14458 ;;
14459 esac
14460 ;;
14461
14462 osf3* | osf4* | osf5*)
14463 lt_prog_compiler_wl_F77='-Wl,'
14464 # All OSF/1 code is PIC.
14465 lt_prog_compiler_static_F77='-non_shared'
14466 ;;
14467
14468 rdos*)
14469 lt_prog_compiler_static_F77='-non_shared'
14470 ;;
14471
14472 solaris*)
14473 lt_prog_compiler_pic_F77='-KPIC'
14474 lt_prog_compiler_static_F77='-Bstatic'
14475 case $cc_basename in
14476 f77* | f90* | f95*)
14477 lt_prog_compiler_wl_F77='-Qoption ld ';;
14478 *)
14479 lt_prog_compiler_wl_F77='-Wl,';;
14480 esac
14481 ;;
14482
14483 sunos4*)
14484 lt_prog_compiler_wl_F77='-Qoption ld '
14485 lt_prog_compiler_pic_F77='-PIC'
14486 lt_prog_compiler_static_F77='-Bstatic'
14487 ;;
14488
14489 sysv4 | sysv4.2uw2* | sysv4.3*)
14490 lt_prog_compiler_wl_F77='-Wl,'
14491 lt_prog_compiler_pic_F77='-KPIC'
14492 lt_prog_compiler_static_F77='-Bstatic'
14493 ;;
14494
14495 sysv4*MP*)
14496 if test -d /usr/nec ;then
14497 lt_prog_compiler_pic_F77='-Kconform_pic'
14498 lt_prog_compiler_static_F77='-Bstatic'
14499 fi
14500 ;;
14501
14502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14503 lt_prog_compiler_wl_F77='-Wl,'
14504 lt_prog_compiler_pic_F77='-KPIC'
14505 lt_prog_compiler_static_F77='-Bstatic'
14506 ;;
14507
14508 unicos*)
14509 lt_prog_compiler_wl_F77='-Wl,'
14510 lt_prog_compiler_can_build_shared_F77=no
14511 ;;
14512
14513 uts4*)
14514 lt_prog_compiler_pic_F77='-pic'
14515 lt_prog_compiler_static_F77='-Bstatic'
14516 ;;
14517
14518 *)
14519 lt_prog_compiler_can_build_shared_F77=no
14520 ;;
14521 esac
14522 fi
14523
14524 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14525 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14526
14527 #
14528 # Check to make sure the PIC flag actually works.
14529 #
14530 if test -n "$lt_prog_compiler_pic_F77"; then
14531
14532 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14534 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14535 $as_echo_n "(cached) " >&6
14536 else
14537 lt_cv_prog_compiler_pic_works_F77=no
14538 ac_outfile=conftest.$ac_objext
14539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14541 # Insert the option either (1) after the last *FLAGS variable, or
14542 # (2) before a word containing "conftest.", or (3) at the end.
14543 # Note that $ac_compile itself does not contain backslashes and begins
14544 # with a dollar sign (not a hyphen), so the echo should work correctly.
14545 # The option is referenced via a variable to avoid confusing sed.
14546 lt_compile=`echo "$ac_compile" | $SED \
14547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14549 -e 's:$: $lt_compiler_flag:'`
14550 (eval echo "\"\$as_me:14550: $lt_compile\"" >&5)
14551 (eval "$lt_compile" 2>conftest.err)
14552 ac_status=$?
14553 cat conftest.err >&5
14554 echo "$as_me:14554: \$? = $ac_status" >&5
14555 if (exit $ac_status) && test -s "$ac_outfile"; then
14556 # The compiler can only warn and ignore the option if not recognized
14557 # So say no if there are warnings other than the usual output.
14558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14561 lt_cv_prog_compiler_pic_works_F77=yes
14562 fi
14563 fi
14564 $rm conftest*
14565
14566 fi
14567 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14568 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14569
14570 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14571 case $lt_prog_compiler_pic_F77 in
14572 "" | " "*) ;;
14573 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14574 esac
14575 else
14576 lt_prog_compiler_pic_F77=
14577 lt_prog_compiler_can_build_shared_F77=no
14578 fi
14579
14580 fi
14581 case $host_os in
14582 # For platforms which do not support PIC, -DPIC is meaningless:
14583 *djgpp*)
14584 lt_prog_compiler_pic_F77=
14585 ;;
14586 *)
14587 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14588 ;;
14589 esac
14590
14591 #
14592 # Check to make sure the static flag actually works.
14593 #
14594 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14595 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14596 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14597 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14598 $as_echo_n "(cached) " >&6
14599 else
14600 lt_cv_prog_compiler_static_works_F77=no
14601 save_LDFLAGS="$LDFLAGS"
14602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14605 # The linker can only warn and ignore the option if not recognized
14606 # So say no if there are warnings
14607 if test -s conftest.err; then
14608 # Append any errors to the config.log.
14609 cat conftest.err 1>&5
14610 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14612 if diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_cv_prog_compiler_static_works_F77=yes
14614 fi
14615 else
14616 lt_cv_prog_compiler_static_works_F77=yes
14617 fi
14618 fi
14619 $rm -r conftest*
14620 LDFLAGS="$save_LDFLAGS"
14621
14622 fi
14623 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14624 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14625
14626 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14627 :
14628 else
14629 lt_prog_compiler_static_F77=
14630 fi
14631
14632
14633 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14635 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14636 $as_echo_n "(cached) " >&6
14637 else
14638 lt_cv_prog_compiler_c_o_F77=no
14639 $rm -r conftest 2>/dev/null
14640 mkdir conftest
14641 cd conftest
14642 mkdir out
14643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644
14645 lt_compiler_flag="-o out/conftest2.$ac_objext"
14646 # Insert the option either (1) after the last *FLAGS variable, or
14647 # (2) before a word containing "conftest.", or (3) at the end.
14648 # Note that $ac_compile itself does not contain backslashes and begins
14649 # with a dollar sign (not a hyphen), so the echo should work correctly.
14650 lt_compile=`echo "$ac_compile" | $SED \
14651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653 -e 's:$: $lt_compiler_flag:'`
14654 (eval echo "\"\$as_me:14654: $lt_compile\"" >&5)
14655 (eval "$lt_compile" 2>out/conftest.err)
14656 ac_status=$?
14657 cat out/conftest.err >&5
14658 echo "$as_me:14658: \$? = $ac_status" >&5
14659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14660 then
14661 # The compiler can only warn and ignore the option if not recognized
14662 # So say no if there are warnings
14663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14666 lt_cv_prog_compiler_c_o_F77=yes
14667 fi
14668 fi
14669 chmod u+w . 2>&5
14670 $rm conftest*
14671 # SGI C++ compiler will create directory out/ii_files/ for
14672 # template instantiation
14673 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14674 $rm out/* && rmdir out
14675 cd ..
14676 rmdir conftest
14677 $rm conftest*
14678
14679 fi
14680 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14681 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14682
14683
14684 hard_links="nottested"
14685 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14686 # do not overwrite the value of need_locks provided by the user
14687 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14688 $as_echo_n "checking if we can lock with hard links... " >&6; }
14689 hard_links=yes
14690 $rm conftest*
14691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14692 touch conftest.a
14693 ln conftest.a conftest.b 2>&5 || hard_links=no
14694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14695 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14696 $as_echo "$hard_links" >&6; }
14697 if test "$hard_links" = no; then
14698 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14699 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14700 need_locks=warn
14701 fi
14702 else
14703 need_locks=no
14704 fi
14705
14706 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14707 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14708
14709 runpath_var=
14710 allow_undefined_flag_F77=
14711 enable_shared_with_static_runtimes_F77=no
14712 archive_cmds_F77=
14713 archive_expsym_cmds_F77=
14714 old_archive_From_new_cmds_F77=
14715 old_archive_from_expsyms_cmds_F77=
14716 export_dynamic_flag_spec_F77=
14717 whole_archive_flag_spec_F77=
14718 thread_safe_flag_spec_F77=
14719 hardcode_libdir_flag_spec_F77=
14720 hardcode_libdir_flag_spec_ld_F77=
14721 hardcode_libdir_separator_F77=
14722 hardcode_direct_F77=no
14723 hardcode_minus_L_F77=no
14724 hardcode_shlibpath_var_F77=unsupported
14725 link_all_deplibs_F77=unknown
14726 hardcode_automatic_F77=no
14727 module_cmds_F77=
14728 module_expsym_cmds_F77=
14729 always_export_symbols_F77=no
14730 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14731 # include_expsyms should be a list of space-separated symbols to be *always*
14732 # included in the symbol list
14733 include_expsyms_F77=
14734 # exclude_expsyms can be an extended regexp of symbols to exclude
14735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14737 # as well as any symbol that contains `d'.
14738 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14740 # platforms (ab)use it in PIC code, but their linkers get confused if
14741 # the symbol is explicitly referenced. Since portable code cannot
14742 # rely on this symbol name, it's probably fine to never include it in
14743 # preloaded symbol tables.
14744 # Exclude shared library initialization/finalization symbols.
14745 extract_expsyms_cmds=
14746 # Just being paranoid about ensuring that cc_basename is set.
14747 for cc_temp in $compiler""; do
14748 case $cc_temp in
14749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14751 \-*) ;;
14752 *) break;;
14753 esac
14754 done
14755 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14756
14757 case $host_os in
14758 cygwin* | mingw* | pw32*)
14759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14760 # When not using gcc, we currently assume that we are using
14761 # Microsoft Visual C++.
14762 if test "$GCC" != yes; then
14763 with_gnu_ld=no
14764 fi
14765 ;;
14766 interix*)
14767 # we just hope/assume this is gcc and not c89 (= MSVC++)
14768 with_gnu_ld=yes
14769 ;;
14770 openbsd*)
14771 with_gnu_ld=no
14772 ;;
14773 esac
14774
14775 ld_shlibs_F77=yes
14776 if test "$with_gnu_ld" = yes; then
14777 # If archive_cmds runs LD, not CC, wlarc should be empty
14778 wlarc='${wl}'
14779
14780 # Set some defaults for GNU ld with shared library support. These
14781 # are reset later if shared libraries are not supported. Putting them
14782 # here allows them to be overridden if necessary.
14783 runpath_var=LD_RUN_PATH
14784 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14785 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14786 # ancient GNU ld didn't support --whole-archive et. al.
14787 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14788 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14789 else
14790 whole_archive_flag_spec_F77=
14791 fi
14792 supports_anon_versioning=no
14793 case `$LD -v 2>/dev/null` in
14794 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14795 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14796 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14797 *\ 2.11.*) ;; # other 2.11 versions
14798 *) supports_anon_versioning=yes ;;
14799 esac
14800
14801 # See if GNU ld supports shared libraries.
14802 case $host_os in
14803 aix[3-9]*)
14804 # On AIX/PPC, the GNU linker is very broken
14805 if test "$host_cpu" != ia64; then
14806 ld_shlibs_F77=no
14807 cat <<EOF 1>&2
14808
14809 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14810 *** to be unable to reliably create shared libraries on AIX.
14811 *** Therefore, libtool is disabling shared libraries support. If you
14812 *** really care for shared libraries, you may want to modify your PATH
14813 *** so that a non-GNU linker is found, and then restart.
14814
14815 EOF
14816 fi
14817 ;;
14818
14819 amigaos*)
14820 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)'
14821 hardcode_libdir_flag_spec_F77='-L$libdir'
14822 hardcode_minus_L_F77=yes
14823
14824 # Samuel A. Falvo II <[email protected]> reports
14825 # that the semantics of dynamic libraries on AmigaOS, at least up
14826 # to version 4, is to share data among multiple programs linked
14827 # with the same dynamic library. Since this doesn't match the
14828 # behavior of shared libraries on other platforms, we can't use
14829 # them.
14830 ld_shlibs_F77=no
14831 ;;
14832
14833 beos*)
14834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14835 allow_undefined_flag_F77=unsupported
14836 # Joseph Beckenbach <[email protected]> says some releases of gcc
14837 # support --undefined. This deserves some investigation. FIXME
14838 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839 else
14840 ld_shlibs_F77=no
14841 fi
14842 ;;
14843
14844 cygwin* | mingw* | pw32*)
14845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14846 # as there is no search path for DLLs.
14847 hardcode_libdir_flag_spec_F77='-L$libdir'
14848 allow_undefined_flag_F77=unsupported
14849 always_export_symbols_F77=no
14850 enable_shared_with_static_runtimes_F77=yes
14851 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14852
14853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14854 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14855 # If the export-symbols file already is a .def file (1st line
14856 # is EXPORTS), use it as is; otherwise, prepend...
14857 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14858 cp $export_symbols $output_objdir/$soname.def;
14859 else
14860 echo EXPORTS > $output_objdir/$soname.def;
14861 cat $export_symbols >> $output_objdir/$soname.def;
14862 fi~
14863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14864 else
14865 ld_shlibs_F77=no
14866 fi
14867 ;;
14868
14869 interix[3-9]*)
14870 hardcode_direct_F77=no
14871 hardcode_shlibpath_var_F77=no
14872 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14873 export_dynamic_flag_spec_F77='${wl}-E'
14874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14875 # Instead, shared libraries are loaded at an image base (0x10000000 by
14876 # default) and relocated if they conflict, which is a slow very memory
14877 # consuming and fragmenting process. To avoid this, we pick a random,
14878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14880 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'
14881 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'
14882 ;;
14883
14884 gnu* | linux* | k*bsd*-gnu)
14885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14886 tmp_addflag=
14887 case $cc_basename,$host_cpu in
14888 pgcc*) # Portland Group C compiler
14889 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'
14890 tmp_addflag=' $pic_flag'
14891 ;;
14892 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14893 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'
14894 tmp_addflag=' $pic_flag -Mnomain' ;;
14895 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14896 tmp_addflag=' -i_dynamic' ;;
14897 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14898 tmp_addflag=' -i_dynamic -nofor_main' ;;
14899 ifc* | ifort*) # Intel Fortran compiler
14900 tmp_addflag=' -nofor_main' ;;
14901 esac
14902 case `$CC -V 2>&1 | sed 5q` in
14903 *Sun\ C*) # Sun C 5.9
14904 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'
14905 tmp_sharedflag='-G' ;;
14906 *Sun\ F*) # Sun Fortran 8.3
14907 tmp_sharedflag='-G' ;;
14908 *)
14909 tmp_sharedflag='-shared' ;;
14910 esac
14911 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14912
14913 if test $supports_anon_versioning = yes; then
14914 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14916 $echo "local: *; };" >> $output_objdir/$libname.ver~
14917 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14918 fi
14919 else
14920 ld_shlibs_F77=no
14921 fi
14922 ;;
14923
14924 netbsd*)
14925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14926 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14927 wlarc=
14928 else
14929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14931 fi
14932 ;;
14933
14934 solaris*)
14935 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14936 ld_shlibs_F77=no
14937 cat <<EOF 1>&2
14938
14939 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14940 *** create shared libraries on Solaris systems. Therefore, libtool
14941 *** is disabling shared libraries support. We urge you to upgrade GNU
14942 *** binutils to release 2.9.1 or newer. Another option is to modify
14943 *** your PATH or compiler configuration so that the native linker is
14944 *** used, and then restart.
14945
14946 EOF
14947 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14950 else
14951 ld_shlibs_F77=no
14952 fi
14953 ;;
14954
14955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14956 case `$LD -v 2>&1` in
14957 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14958 ld_shlibs_F77=no
14959 cat <<_LT_EOF 1>&2
14960
14961 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14962 *** reliably create shared libraries on SCO systems. Therefore, libtool
14963 *** is disabling shared libraries support. We urge you to upgrade GNU
14964 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14965 *** your PATH or compiler configuration so that the native linker is
14966 *** used, and then restart.
14967
14968 _LT_EOF
14969 ;;
14970 *)
14971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14973 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14974 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14975 else
14976 ld_shlibs_F77=no
14977 fi
14978 ;;
14979 esac
14980 ;;
14981
14982 sunos4*)
14983 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14984 wlarc=
14985 hardcode_direct_F77=yes
14986 hardcode_shlibpath_var_F77=no
14987 ;;
14988
14989 *)
14990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14992 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14993 else
14994 ld_shlibs_F77=no
14995 fi
14996 ;;
14997 esac
14998
14999 if test "$ld_shlibs_F77" = no; then
15000 runpath_var=
15001 hardcode_libdir_flag_spec_F77=
15002 export_dynamic_flag_spec_F77=
15003 whole_archive_flag_spec_F77=
15004 fi
15005 else
15006 # PORTME fill in a description of your system's linker (not GNU ld)
15007 case $host_os in
15008 aix3*)
15009 allow_undefined_flag_F77=unsupported
15010 always_export_symbols_F77=yes
15011 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'
15012 # Note: this linker hardcodes the directories in LIBPATH if there
15013 # are no directories specified by -L.
15014 hardcode_minus_L_F77=yes
15015 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15016 # Neither direct hardcoding nor static linking is supported with a
15017 # broken collect2.
15018 hardcode_direct_F77=unsupported
15019 fi
15020 ;;
15021
15022 aix[4-9]*)
15023 if test "$host_cpu" = ia64; then
15024 # On IA64, the linker does run time linking by default, so we don't
15025 # have to do anything special.
15026 aix_use_runtimelinking=no
15027 exp_sym_flag='-Bexport'
15028 no_entry_flag=""
15029 else
15030 # If we're using GNU nm, then we don't want the "-C" option.
15031 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15032 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15033 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'
15034 else
15035 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'
15036 fi
15037 aix_use_runtimelinking=no
15038
15039 # Test if we are trying to use run time linking or normal
15040 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15041 # need to do runtime linking.
15042 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15043 for ld_flag in $LDFLAGS; do
15044 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15045 aix_use_runtimelinking=yes
15046 break
15047 fi
15048 done
15049 ;;
15050 esac
15051
15052 exp_sym_flag='-bexport'
15053 no_entry_flag='-bnoentry'
15054 fi
15055
15056 # When large executables or shared objects are built, AIX ld can
15057 # have problems creating the table of contents. If linking a library
15058 # or program results in "error TOC overflow" add -mminimal-toc to
15059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15061
15062 archive_cmds_F77=''
15063 hardcode_direct_F77=yes
15064 hardcode_libdir_separator_F77=':'
15065 link_all_deplibs_F77=yes
15066
15067 if test "$GCC" = yes; then
15068 case $host_os in aix4.[012]|aix4.[012].*)
15069 # We only want to do this on AIX 4.2 and lower, the check
15070 # below for broken collect2 doesn't work under 4.3+
15071 collect2name=`${CC} -print-prog-name=collect2`
15072 if test -f "$collect2name" && \
15073 strings "$collect2name" | grep resolve_lib_name >/dev/null
15074 then
15075 # We have reworked collect2
15076 :
15077 else
15078 # We have old collect2
15079 hardcode_direct_F77=unsupported
15080 # It fails to find uninstalled libraries when the uninstalled
15081 # path is not listed in the libpath. Setting hardcode_minus_L
15082 # to unsupported forces relinking
15083 hardcode_minus_L_F77=yes
15084 hardcode_libdir_flag_spec_F77='-L$libdir'
15085 hardcode_libdir_separator_F77=
15086 fi
15087 ;;
15088 esac
15089 shared_flag='-shared'
15090 if test "$aix_use_runtimelinking" = yes; then
15091 shared_flag="$shared_flag "'${wl}-G'
15092 fi
15093 else
15094 # not using gcc
15095 if test "$host_cpu" = ia64; then
15096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15097 # chokes on -Wl,-G. The following line is correct:
15098 shared_flag='-G'
15099 else
15100 if test "$aix_use_runtimelinking" = yes; then
15101 shared_flag='${wl}-G'
15102 else
15103 shared_flag='${wl}-bM:SRE'
15104 fi
15105 fi
15106 fi
15107
15108 # It seems that -bexpall does not export symbols beginning with
15109 # underscore (_), so it is better to generate a list of symbols to export.
15110 always_export_symbols_F77=yes
15111 if test "$aix_use_runtimelinking" = yes; then
15112 # Warning - without using the other runtime loading flags (-brtl),
15113 # -berok will link without error, but may produce a broken library.
15114 allow_undefined_flag_F77='-berok'
15115 # Determine the default libpath from the value encoded in an empty executable.
15116 cat >conftest.$ac_ext <<_ACEOF
15117 program main
15118
15119 end
15120 _ACEOF
15121 rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126 esac
15127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15128 $as_echo "$ac_try_echo") >&5
15129 (eval "$ac_link") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_f77_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext && {
15139 test "$cross_compiling" = yes ||
15140 $as_test_x conftest$ac_exeext
15141 }; 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 $as_echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159
15160 fi
15161
15162 rm -rf conftest.dSYM
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164 conftest$ac_exeext conftest.$ac_ext
15165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15166
15167 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15168 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"
15169 else
15170 if test "$host_cpu" = ia64; then
15171 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15172 allow_undefined_flag_F77="-z nodefs"
15173 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"
15174 else
15175 # Determine the default libpath from the value encoded in an empty executable.
15176 cat >conftest.$ac_ext <<_ACEOF
15177 program main
15178
15179 end
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (ac_try="$ac_link"
15183 case "(($ac_try" in
15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15186 esac
15187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15188 $as_echo "$ac_try_echo") >&5
15189 (eval "$ac_link") 2>conftest.er1
15190 ac_status=$?
15191 grep -v '^ *+' conftest.er1 >conftest.err
15192 rm -f conftest.er1
15193 cat conftest.err >&5
15194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } && {
15196 test -z "$ac_f77_werror_flag" ||
15197 test ! -s conftest.err
15198 } && test -s conftest$ac_exeext && {
15199 test "$cross_compiling" = yes ||
15200 $as_test_x conftest$ac_exeext
15201 }; then
15202
15203 lt_aix_libpath_sed='
15204 /Import File Strings/,/^$/ {
15205 /^0/ {
15206 s/^0 *\(.*\)$/\1/
15207 p
15208 }
15209 }'
15210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15211 # Check for a 64-bit object if we didn't find anything.
15212 if test -z "$aix_libpath"; then
15213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214 fi
15215 else
15216 $as_echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219
15220 fi
15221
15222 rm -rf conftest.dSYM
15223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15224 conftest$ac_exeext conftest.$ac_ext
15225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15226
15227 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15228 # Warning - without using the other run time loading flags,
15229 # -berok will link without error, but may produce a broken library.
15230 no_undefined_flag_F77=' ${wl}-bernotok'
15231 allow_undefined_flag_F77=' ${wl}-berok'
15232 # Exported symbols can be pulled into shared objects from archives
15233 whole_archive_flag_spec_F77='$convenience'
15234 archive_cmds_need_lc_F77=yes
15235 # This is similar to how AIX traditionally builds its shared libraries.
15236 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'
15237 fi
15238 fi
15239 ;;
15240
15241 amigaos*)
15242 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)'
15243 hardcode_libdir_flag_spec_F77='-L$libdir'
15244 hardcode_minus_L_F77=yes
15245 # see comment about different semantics on the GNU ld section
15246 ld_shlibs_F77=no
15247 ;;
15248
15249 bsdi[45]*)
15250 export_dynamic_flag_spec_F77=-rdynamic
15251 ;;
15252
15253 cygwin* | mingw* | pw32*)
15254 # When not using gcc, we currently assume that we are using
15255 # Microsoft Visual C++.
15256 # hardcode_libdir_flag_spec is actually meaningless, as there is
15257 # no search path for DLLs.
15258 hardcode_libdir_flag_spec_F77=' '
15259 allow_undefined_flag_F77=unsupported
15260 # Tell ltmain to make .lib files, not .a files.
15261 libext=lib
15262 # Tell ltmain to make .dll files, not .so files.
15263 shrext_cmds=".dll"
15264 # FIXME: Setting linknames here is a bad hack.
15265 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15266 # The linker will automatically build a .lib file if we build a DLL.
15267 old_archive_From_new_cmds_F77='true'
15268 # FIXME: Should let the user specify the lib program.
15269 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15270 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15271 enable_shared_with_static_runtimes_F77=yes
15272 ;;
15273
15274 darwin* | rhapsody*)
15275 case $host_os in
15276 rhapsody* | darwin1.[012])
15277 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15278 ;;
15279 *) # Darwin 1.3 on
15280 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15281 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15282 else
15283 case ${MACOSX_DEPLOYMENT_TARGET} in
15284 10.[012])
15285 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15286 ;;
15287 10.*)
15288 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15289 ;;
15290 esac
15291 fi
15292 ;;
15293 esac
15294 archive_cmds_need_lc_F77=no
15295 hardcode_direct_F77=no
15296 hardcode_automatic_F77=yes
15297 hardcode_shlibpath_var_F77=unsupported
15298 whole_archive_flag_spec_F77=''
15299 link_all_deplibs_F77=yes
15300 if test "$GCC" = yes ; then
15301 output_verbose_link_cmd='echo'
15302 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}"
15303 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15304 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}"
15305 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}"
15306 else
15307 case $cc_basename in
15308 xlc*)
15309 output_verbose_link_cmd='echo'
15310 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15311 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15312 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15313 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}'
15314 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}'
15315 ;;
15316 *)
15317 ld_shlibs_F77=no
15318 ;;
15319 esac
15320 fi
15321 ;;
15322
15323 dgux*)
15324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_libdir_flag_spec_F77='-L$libdir'
15326 hardcode_shlibpath_var_F77=no
15327 ;;
15328
15329 freebsd1*)
15330 ld_shlibs_F77=no
15331 ;;
15332
15333 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15334 # support. Future versions do this automatically, but an explicit c++rt0.o
15335 # does not break anything, and helps significantly (at the cost of a little
15336 # extra space).
15337 freebsd2.2*)
15338 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15339 hardcode_libdir_flag_spec_F77='-R$libdir'
15340 hardcode_direct_F77=yes
15341 hardcode_shlibpath_var_F77=no
15342 ;;
15343
15344 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15345 freebsd2*)
15346 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15347 hardcode_direct_F77=yes
15348 hardcode_minus_L_F77=yes
15349 hardcode_shlibpath_var_F77=no
15350 ;;
15351
15352 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15353 freebsd* | dragonfly*)
15354 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15355 hardcode_libdir_flag_spec_F77='-R$libdir'
15356 hardcode_direct_F77=yes
15357 hardcode_shlibpath_var_F77=no
15358 ;;
15359
15360 hpux9*)
15361 if test "$GCC" = yes; then
15362 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'
15363 else
15364 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'
15365 fi
15366 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15367 hardcode_libdir_separator_F77=:
15368 hardcode_direct_F77=yes
15369
15370 # hardcode_minus_L: Not really in the search PATH,
15371 # but as the default location of the library.
15372 hardcode_minus_L_F77=yes
15373 export_dynamic_flag_spec_F77='${wl}-E'
15374 ;;
15375
15376 hpux10*)
15377 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15378 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379 else
15380 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15381 fi
15382 if test "$with_gnu_ld" = no; then
15383 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15384 hardcode_libdir_separator_F77=:
15385
15386 hardcode_direct_F77=yes
15387 export_dynamic_flag_spec_F77='${wl}-E'
15388
15389 # hardcode_minus_L: Not really in the search PATH,
15390 # but as the default location of the library.
15391 hardcode_minus_L_F77=yes
15392 fi
15393 ;;
15394
15395 hpux11*)
15396 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15397 case $host_cpu in
15398 hppa*64*)
15399 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15400 ;;
15401 ia64*)
15402 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15403 ;;
15404 *)
15405 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15406 ;;
15407 esac
15408 else
15409 case $host_cpu in
15410 hppa*64*)
15411 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15412 ;;
15413 ia64*)
15414 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15415 ;;
15416 *)
15417 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15418 ;;
15419 esac
15420 fi
15421 if test "$with_gnu_ld" = no; then
15422 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15423 hardcode_libdir_separator_F77=:
15424
15425 case $host_cpu in
15426 hppa*64*|ia64*)
15427 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15428 hardcode_direct_F77=no
15429 hardcode_shlibpath_var_F77=no
15430 ;;
15431 *)
15432 hardcode_direct_F77=yes
15433 export_dynamic_flag_spec_F77='${wl}-E'
15434
15435 # hardcode_minus_L: Not really in the search PATH,
15436 # but as the default location of the library.
15437 hardcode_minus_L_F77=yes
15438 ;;
15439 esac
15440 fi
15441 ;;
15442
15443 irix5* | irix6* | nonstopux*)
15444 if test "$GCC" = yes; then
15445 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'
15446 else
15447 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'
15448 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15449 fi
15450 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15451 hardcode_libdir_separator_F77=:
15452 link_all_deplibs_F77=yes
15453 ;;
15454
15455 netbsd*)
15456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15457 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15458 else
15459 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15460 fi
15461 hardcode_libdir_flag_spec_F77='-R$libdir'
15462 hardcode_direct_F77=yes
15463 hardcode_shlibpath_var_F77=no
15464 ;;
15465
15466 newsos6)
15467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15468 hardcode_direct_F77=yes
15469 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15470 hardcode_libdir_separator_F77=:
15471 hardcode_shlibpath_var_F77=no
15472 ;;
15473
15474 openbsd*)
15475 if test -f /usr/libexec/ld.so; then
15476 hardcode_direct_F77=yes
15477 hardcode_shlibpath_var_F77=no
15478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15479 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15481 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15482 export_dynamic_flag_spec_F77='${wl}-E'
15483 else
15484 case $host_os in
15485 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15486 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_libdir_flag_spec_F77='-R$libdir'
15488 ;;
15489 *)
15490 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15492 ;;
15493 esac
15494 fi
15495 else
15496 ld_shlibs_F77=no
15497 fi
15498 ;;
15499
15500 os2*)
15501 hardcode_libdir_flag_spec_F77='-L$libdir'
15502 hardcode_minus_L_F77=yes
15503 allow_undefined_flag_F77=unsupported
15504 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'
15505 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15506 ;;
15507
15508 osf3*)
15509 if test "$GCC" = yes; then
15510 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15511 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'
15512 else
15513 allow_undefined_flag_F77=' -expect_unresolved \*'
15514 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'
15515 fi
15516 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15517 hardcode_libdir_separator_F77=:
15518 ;;
15519
15520 osf4* | osf5*) # as osf3* with the addition of -msym flag
15521 if test "$GCC" = yes; then
15522 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15523 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'
15524 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15525 else
15526 allow_undefined_flag_F77=' -expect_unresolved \*'
15527 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'
15528 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~
15529 $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'
15530
15531 # Both c and cxx compiler support -rpath directly
15532 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15533 fi
15534 hardcode_libdir_separator_F77=:
15535 ;;
15536
15537 solaris*)
15538 no_undefined_flag_F77=' -z text'
15539 if test "$GCC" = yes; then
15540 wlarc='${wl}'
15541 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15543 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15544 else
15545 wlarc=''
15546 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15549 fi
15550 hardcode_libdir_flag_spec_F77='-R$libdir'
15551 hardcode_shlibpath_var_F77=no
15552 case $host_os in
15553 solaris2.[0-5] | solaris2.[0-5].*) ;;
15554 *)
15555 # The compiler driver will combine and reorder linker options,
15556 # but understands `-z linker_flag'. GCC discards it without `$wl',
15557 # but is careful enough not to reorder.
15558 # Supported since Solaris 2.6 (maybe 2.5.1?)
15559 if test "$GCC" = yes; then
15560 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15561 else
15562 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15563 fi
15564 ;;
15565 esac
15566 link_all_deplibs_F77=yes
15567 ;;
15568
15569 sunos4*)
15570 if test "x$host_vendor" = xsequent; then
15571 # Use $CC to link under sequent, because it throws in some extra .o
15572 # files that make .init and .fini sections work.
15573 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15574 else
15575 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15576 fi
15577 hardcode_libdir_flag_spec_F77='-L$libdir'
15578 hardcode_direct_F77=yes
15579 hardcode_minus_L_F77=yes
15580 hardcode_shlibpath_var_F77=no
15581 ;;
15582
15583 sysv4)
15584 case $host_vendor in
15585 sni)
15586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_direct_F77=yes # is this really true???
15588 ;;
15589 siemens)
15590 ## LD is ld it makes a PLAMLIB
15591 ## CC just makes a GrossModule.
15592 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15593 reload_cmds_F77='$CC -r -o $output$reload_objs'
15594 hardcode_direct_F77=no
15595 ;;
15596 motorola)
15597 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15599 ;;
15600 esac
15601 runpath_var='LD_RUN_PATH'
15602 hardcode_shlibpath_var_F77=no
15603 ;;
15604
15605 sysv4.3*)
15606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607 hardcode_shlibpath_var_F77=no
15608 export_dynamic_flag_spec_F77='-Bexport'
15609 ;;
15610
15611 sysv4*MP*)
15612 if test -d /usr/nec; then
15613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_shlibpath_var_F77=no
15615 runpath_var=LD_RUN_PATH
15616 hardcode_runpath_var=yes
15617 ld_shlibs_F77=yes
15618 fi
15619 ;;
15620
15621 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15622 no_undefined_flag_F77='${wl}-z,text'
15623 archive_cmds_need_lc_F77=no
15624 hardcode_shlibpath_var_F77=no
15625 runpath_var='LD_RUN_PATH'
15626
15627 if test "$GCC" = yes; then
15628 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 else
15631 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 fi
15634 ;;
15635
15636 sysv5* | sco3.2v5* | sco5v6*)
15637 # Note: We can NOT use -z defs as we might desire, because we do not
15638 # link with -lc, and that would cause any symbols used from libc to
15639 # always be unresolved, which means just about no library would
15640 # ever link correctly. If we're not using GNU ld we use -z text
15641 # though, which does catch some bad symbols but isn't as heavy-handed
15642 # as -z defs.
15643 no_undefined_flag_F77='${wl}-z,text'
15644 allow_undefined_flag_F77='${wl}-z,nodefs'
15645 archive_cmds_need_lc_F77=no
15646 hardcode_shlibpath_var_F77=no
15647 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15648 hardcode_libdir_separator_F77=':'
15649 link_all_deplibs_F77=yes
15650 export_dynamic_flag_spec_F77='${wl}-Bexport'
15651 runpath_var='LD_RUN_PATH'
15652
15653 if test "$GCC" = yes; then
15654 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656 else
15657 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15658 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659 fi
15660 ;;
15661
15662 uts4*)
15663 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15664 hardcode_libdir_flag_spec_F77='-L$libdir'
15665 hardcode_shlibpath_var_F77=no
15666 ;;
15667
15668 *)
15669 ld_shlibs_F77=no
15670 ;;
15671 esac
15672 fi
15673
15674 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15675 $as_echo "$ld_shlibs_F77" >&6; }
15676 test "$ld_shlibs_F77" = no && can_build_shared=no
15677
15678 #
15679 # Do we need to explicitly link libc?
15680 #
15681 case "x$archive_cmds_need_lc_F77" in
15682 x|xyes)
15683 # Assume -lc should be added
15684 archive_cmds_need_lc_F77=yes
15685
15686 if test "$enable_shared" = yes && test "$GCC" = yes; then
15687 case $archive_cmds_F77 in
15688 *'~'*)
15689 # FIXME: we may have to deal with multi-command sequences.
15690 ;;
15691 '$CC '*)
15692 # Test whether the compiler implicitly links with -lc since on some
15693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15694 # to ld, don't add -lc before -lgcc.
15695 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15697 $rm conftest*
15698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15699
15700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15701 (eval $ac_compile) 2>&5
15702 ac_status=$?
15703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } 2>conftest.err; then
15705 soname=conftest
15706 lib=conftest
15707 libobjs=conftest.$ac_objext
15708 deplibs=
15709 wl=$lt_prog_compiler_wl_F77
15710 pic_flag=$lt_prog_compiler_pic_F77
15711 compiler_flags=-v
15712 linker_flags=-v
15713 verstring=
15714 output_objdir=.
15715 libname=conftest
15716 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15717 allow_undefined_flag_F77=
15718 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15719 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15720 ac_status=$?
15721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }
15723 then
15724 archive_cmds_need_lc_F77=no
15725 else
15726 archive_cmds_need_lc_F77=yes
15727 fi
15728 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15729 else
15730 cat conftest.err 1>&5
15731 fi
15732 $rm conftest*
15733 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15734 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15735 ;;
15736 esac
15737 fi
15738 ;;
15739 esac
15740
15741 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15742 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15743 library_names_spec=
15744 libname_spec='lib$name'
15745 soname_spec=
15746 shrext_cmds=".so"
15747 postinstall_cmds=
15748 postuninstall_cmds=
15749 finish_cmds=
15750 finish_eval=
15751 shlibpath_var=
15752 shlibpath_overrides_runpath=unknown
15753 version_type=none
15754 dynamic_linker="$host_os ld.so"
15755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15756
15757 need_lib_prefix=unknown
15758 hardcode_into_libs=no
15759
15760 # when you set need_version to no, make sure it does not cause -set_version
15761 # flags to be left without arguments
15762 need_version=unknown
15763
15764 case $host_os in
15765 aix3*)
15766 version_type=linux
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15768 shlibpath_var=LIBPATH
15769
15770 # AIX 3 has no versioning support, so we append a major version to the name.
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 ;;
15773
15774 aix[4-9]*)
15775 version_type=linux
15776 need_lib_prefix=no
15777 need_version=no
15778 hardcode_into_libs=yes
15779 if test "$host_cpu" = ia64; then
15780 # AIX 5 supports IA64
15781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15782 shlibpath_var=LD_LIBRARY_PATH
15783 else
15784 # With GCC up to 2.95.x, collect2 would create an import file
15785 # for dependence libraries. The import file would start with
15786 # the line `#! .'. This would cause the generated library to
15787 # depend on `.', always an invalid library. This was fixed in
15788 # development snapshots of GCC prior to 3.0.
15789 case $host_os in
15790 aix4 | aix4.[01] | aix4.[01].*)
15791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15792 echo ' yes '
15793 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15794 :
15795 else
15796 can_build_shared=no
15797 fi
15798 ;;
15799 esac
15800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15801 # soname into executable. Probably we can add versioning support to
15802 # collect2, so additional links can be useful in future.
15803 if test "$aix_use_runtimelinking" = yes; then
15804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15805 # instead of lib<name>.a to let people know that these are not
15806 # typical AIX shared libraries.
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 else
15809 # We preserve .a as extension for shared libraries through AIX4.2
15810 # and later when we are not doing run time linking.
15811 library_names_spec='${libname}${release}.a $libname.a'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 fi
15814 shlibpath_var=LIBPATH
15815 fi
15816 ;;
15817
15818 amigaos*)
15819 library_names_spec='$libname.ixlibrary $libname.a'
15820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15821 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'
15822 ;;
15823
15824 beos*)
15825 library_names_spec='${libname}${shared_ext}'
15826 dynamic_linker="$host_os ld.so"
15827 shlibpath_var=LIBRARY_PATH
15828 ;;
15829
15830 bsdi[45]*)
15831 version_type=linux
15832 need_version=no
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15839 # the default ld.so.conf also contains /usr/contrib/lib and
15840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15841 # libtool to hard-code these into programs
15842 ;;
15843
15844 cygwin* | mingw* | pw32*)
15845 version_type=windows
15846 shrext_cmds=".dll"
15847 need_version=no
15848 need_lib_prefix=no
15849
15850 case $GCC,$host_os in
15851 yes,cygwin* | yes,mingw* | yes,pw32*)
15852 library_names_spec='$libname.dll.a'
15853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15854 postinstall_cmds='base_file=`basename \${file}`~
15855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15856 dldir=$destdir/`dirname \$dlpath`~
15857 test -d \$dldir || mkdir -p \$dldir~
15858 $install_prog $dir/$dlname \$dldir/$dlname~
15859 chmod a+x \$dldir/$dlname'
15860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15861 dlpath=$dir/\$dldll~
15862 $rm \$dlpath'
15863 shlibpath_overrides_runpath=yes
15864
15865 case $host_os in
15866 cygwin*)
15867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15869 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15870 ;;
15871 mingw*)
15872 # MinGW DLLs use traditional 'lib' prefix
15873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15874 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15875 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15876 # It is most probably a Windows format PATH printed by
15877 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15878 # path with ; separators, and with drive letters. We can handle the
15879 # drive letters (cygwin fileutils understands them), so leave them,
15880 # especially as we might pass files found there to a mingw objdump,
15881 # which wouldn't understand a cygwinified path. Ahh.
15882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15883 else
15884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15885 fi
15886 ;;
15887 pw32*)
15888 # pw32 DLLs use 'pw' prefix rather than 'lib'
15889 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15890 ;;
15891 esac
15892 ;;
15893
15894 *)
15895 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15896 ;;
15897 esac
15898 dynamic_linker='Win32 ld.exe'
15899 # FIXME: first we should search . and the directory the executable is in
15900 shlibpath_var=PATH
15901 ;;
15902
15903 darwin* | rhapsody*)
15904 dynamic_linker="$host_os dyld"
15905 version_type=darwin
15906 need_lib_prefix=no
15907 need_version=no
15908 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15909 soname_spec='${libname}${release}${major}$shared_ext'
15910 shlibpath_overrides_runpath=yes
15911 shlibpath_var=DYLD_LIBRARY_PATH
15912 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15913
15914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15915 ;;
15916
15917 dgux*)
15918 version_type=linux
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 ;;
15925
15926 freebsd1*)
15927 dynamic_linker=no
15928 ;;
15929
15930 freebsd* | dragonfly*)
15931 # DragonFly does not have aout. When/if they implement a new
15932 # versioning mechanism, adjust this.
15933 if test -x /usr/bin/objformat; then
15934 objformat=`/usr/bin/objformat`
15935 else
15936 case $host_os in
15937 freebsd[123]*) objformat=aout ;;
15938 *) objformat=elf ;;
15939 esac
15940 fi
15941 version_type=freebsd-$objformat
15942 case $version_type in
15943 freebsd-elf*)
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15945 need_version=no
15946 need_lib_prefix=no
15947 ;;
15948 freebsd-*)
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15950 need_version=yes
15951 ;;
15952 esac
15953 shlibpath_var=LD_LIBRARY_PATH
15954 case $host_os in
15955 freebsd2*)
15956 shlibpath_overrides_runpath=yes
15957 ;;
15958 freebsd3.[01]* | freebsdelf3.[01]*)
15959 shlibpath_overrides_runpath=yes
15960 hardcode_into_libs=yes
15961 ;;
15962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15964 shlibpath_overrides_runpath=no
15965 hardcode_into_libs=yes
15966 ;;
15967 *) # from 4.6 on, and DragonFly
15968 shlibpath_overrides_runpath=yes
15969 hardcode_into_libs=yes
15970 ;;
15971 esac
15972 ;;
15973
15974 gnu*)
15975 version_type=linux
15976 need_lib_prefix=no
15977 need_version=no
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 hardcode_into_libs=yes
15982 ;;
15983
15984 hpux9* | hpux10* | hpux11*)
15985 # Give a soname corresponding to the major version so that dld.sl refuses to
15986 # link against other versions.
15987 version_type=sunos
15988 need_lib_prefix=no
15989 need_version=no
15990 case $host_cpu in
15991 ia64*)
15992 shrext_cmds='.so'
15993 hardcode_into_libs=yes
15994 dynamic_linker="$host_os dld.so"
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 if test "X$HPUX_IA64_MODE" = X32; then
16000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16001 else
16002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16003 fi
16004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16005 ;;
16006 hppa*64*)
16007 shrext_cmds='.sl'
16008 hardcode_into_libs=yes
16009 dynamic_linker="$host_os dld.sl"
16010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16016 ;;
16017 *)
16018 shrext_cmds='.sl'
16019 dynamic_linker="$host_os dld.sl"
16020 shlibpath_var=SHLIB_PATH
16021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 ;;
16025 esac
16026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16027 postinstall_cmds='chmod 555 $lib'
16028 ;;
16029
16030 interix[3-9]*)
16031 version_type=linux
16032 need_lib_prefix=no
16033 need_version=no
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=no
16039 hardcode_into_libs=yes
16040 ;;
16041
16042 irix5* | irix6* | nonstopux*)
16043 case $host_os in
16044 nonstopux*) version_type=nonstopux ;;
16045 *)
16046 if test "$lt_cv_prog_gnu_ld" = yes; then
16047 version_type=linux
16048 else
16049 version_type=irix
16050 fi ;;
16051 esac
16052 need_lib_prefix=no
16053 need_version=no
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16056 case $host_os in
16057 irix5* | nonstopux*)
16058 libsuff= shlibsuff=
16059 ;;
16060 *)
16061 case $LD in # libtool.m4 will add one of these switches to LD
16062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16063 libsuff= shlibsuff= libmagic=32-bit;;
16064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16065 libsuff=32 shlibsuff=N32 libmagic=N32;;
16066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16068 *) libsuff= shlibsuff= libmagic=never-match;;
16069 esac
16070 ;;
16071 esac
16072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16073 shlibpath_overrides_runpath=no
16074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16076 hardcode_into_libs=yes
16077 ;;
16078
16079 # No shared lib support for Linux oldld, aout, or coff.
16080 linux*oldld* | linux*aout* | linux*coff*)
16081 dynamic_linker=no
16082 ;;
16083
16084 # This must be Linux ELF.
16085 linux* | k*bsd*-gnu)
16086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16092 shlibpath_var=LD_LIBRARY_PATH
16093 shlibpath_overrides_runpath=no
16094 # This implies no fast_install, which is unacceptable.
16095 # Some rework will be needed to allow for fast_install
16096 # before this can be enabled.
16097 hardcode_into_libs=yes
16098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16100
16101 # Append ld.so.conf contents to the search path
16102 if test -f /etc/ld.so.conf; then
16103 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' ' '`
16104 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16105 fi
16106
16107 # We used to test for /lib/ld.so.1 and disable shared libraries on
16108 # powerpc, because MkLinux only supported shared libraries with the
16109 # GNU dynamic linker. Since this was broken with cross compilers,
16110 # most powerpc-linux boxes support dynamic linking these days and
16111 # people can always --disable-shared, the test was removed, and we
16112 # assume the GNU/Linux dynamic linker is in use.
16113 dynamic_linker='GNU/Linux ld.so'
16114 ;;
16115
16116 netbsd*)
16117 version_type=sunos
16118 need_lib_prefix=no
16119 need_version=no
16120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16123 dynamic_linker='NetBSD (a.out) ld.so'
16124 else
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16126 soname_spec='${libname}${release}${shared_ext}$major'
16127 dynamic_linker='NetBSD ld.elf_so'
16128 fi
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=yes
16131 hardcode_into_libs=yes
16132 ;;
16133
16134 newsos6)
16135 version_type=linux
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 shlibpath_overrides_runpath=yes
16139 ;;
16140
16141 nto-qnx*)
16142 version_type=linux
16143 need_lib_prefix=no
16144 need_version=no
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 ;;
16150
16151 openbsd*)
16152 version_type=sunos
16153 sys_lib_dlsearch_path_spec="/usr/lib"
16154 need_lib_prefix=no
16155 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16156 case $host_os in
16157 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16158 *) need_version=no ;;
16159 esac
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16164 case $host_os in
16165 openbsd2.[89] | openbsd2.[89].*)
16166 shlibpath_overrides_runpath=no
16167 ;;
16168 *)
16169 shlibpath_overrides_runpath=yes
16170 ;;
16171 esac
16172 else
16173 shlibpath_overrides_runpath=yes
16174 fi
16175 ;;
16176
16177 os2*)
16178 libname_spec='$name'
16179 shrext_cmds=".dll"
16180 need_lib_prefix=no
16181 library_names_spec='$libname${shared_ext} $libname.a'
16182 dynamic_linker='OS/2 ld.exe'
16183 shlibpath_var=LIBPATH
16184 ;;
16185
16186 osf3* | osf4* | osf5*)
16187 version_type=osf
16188 need_lib_prefix=no
16189 need_version=no
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16194 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16195 ;;
16196
16197 rdos*)
16198 dynamic_linker=no
16199 ;;
16200
16201 solaris*)
16202 version_type=linux
16203 need_lib_prefix=no
16204 need_version=no
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 shlibpath_overrides_runpath=yes
16209 hardcode_into_libs=yes
16210 # ldd complains unless libraries are executable
16211 postinstall_cmds='chmod +x $lib'
16212 ;;
16213
16214 sunos4*)
16215 version_type=sunos
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16217 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes
16220 if test "$with_gnu_ld" = yes; then
16221 need_lib_prefix=no
16222 fi
16223 need_version=yes
16224 ;;
16225
16226 sysv4 | sysv4.3*)
16227 version_type=linux
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 shlibpath_var=LD_LIBRARY_PATH
16231 case $host_vendor in
16232 sni)
16233 shlibpath_overrides_runpath=no
16234 need_lib_prefix=no
16235 export_dynamic_flag_spec='${wl}-Blargedynsym'
16236 runpath_var=LD_RUN_PATH
16237 ;;
16238 siemens)
16239 need_lib_prefix=no
16240 ;;
16241 motorola)
16242 need_lib_prefix=no
16243 need_version=no
16244 shlibpath_overrides_runpath=no
16245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16246 ;;
16247 esac
16248 ;;
16249
16250 sysv4*MP*)
16251 if test -d /usr/nec ;then
16252 version_type=linux
16253 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16254 soname_spec='$libname${shared_ext}.$major'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 fi
16257 ;;
16258
16259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16260 version_type=freebsd-elf
16261 need_lib_prefix=no
16262 need_version=no
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 hardcode_into_libs=yes
16267 if test "$with_gnu_ld" = yes; then
16268 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16269 shlibpath_overrides_runpath=no
16270 else
16271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16272 shlibpath_overrides_runpath=yes
16273 case $host_os in
16274 sco3.2v5*)
16275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16276 ;;
16277 esac
16278 fi
16279 sys_lib_dlsearch_path_spec='/usr/lib'
16280 ;;
16281
16282 uts4*)
16283 version_type=linux
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 ;;
16288
16289 *)
16290 dynamic_linker=no
16291 ;;
16292 esac
16293 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16294 $as_echo "$dynamic_linker" >&6; }
16295 test "$dynamic_linker" = no && can_build_shared=no
16296
16297 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16298 $as_echo_n "(cached) " >&6
16299 else
16300 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16301 fi
16302
16303 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16304 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16305 $as_echo_n "(cached) " >&6
16306 else
16307 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16308 fi
16309
16310 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16311
16312 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16313 if test "$GCC" = yes; then
16314 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16315 fi
16316
16317 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16319 hardcode_action_F77=
16320 if test -n "$hardcode_libdir_flag_spec_F77" || \
16321 test -n "$runpath_var_F77" || \
16322 test "X$hardcode_automatic_F77" = "Xyes" ; then
16323
16324 # We can hardcode non-existant directories.
16325 if test "$hardcode_direct_F77" != no &&
16326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16327 # have to relink, otherwise we might link with an installed library
16328 # when we should be linking with a yet-to-be-installed one
16329 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16330 test "$hardcode_minus_L_F77" != no; then
16331 # Linking always hardcodes the temporary library directory.
16332 hardcode_action_F77=relink
16333 else
16334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16335 hardcode_action_F77=immediate
16336 fi
16337 else
16338 # We cannot hardcode anything, or else we can only hardcode existing
16339 # directories.
16340 hardcode_action_F77=unsupported
16341 fi
16342 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16343 $as_echo "$hardcode_action_F77" >&6; }
16344
16345 if test "$hardcode_action_F77" = relink; then
16346 # Fast installation is not supported
16347 enable_fast_install=no
16348 elif test "$shlibpath_overrides_runpath" = yes ||
16349 test "$enable_shared" = no; then
16350 # Fast installation is not necessary
16351 enable_fast_install=needless
16352 fi
16353
16354
16355 # The else clause should only fire when bootstrapping the
16356 # libtool distribution, otherwise you forgot to ship ltmain.sh
16357 # with your package, and you will get complaints that there are
16358 # no rules to generate ltmain.sh.
16359 if test -f "$ltmain"; then
16360 # See if we are running on zsh, and set the options which allow our commands through
16361 # without removal of \ escapes.
16362 if test -n "${ZSH_VERSION+set}" ; then
16363 setopt NO_GLOB_SUBST
16364 fi
16365 # Now quote all the things that may contain metacharacters while being
16366 # careful not to overquote the AC_SUBSTed values. We take copies of the
16367 # variables and quote the copies for generation of the libtool script.
16368 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16369 SED SHELL STRIP \
16370 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16371 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16372 deplibs_check_method reload_flag reload_cmds need_locks \
16373 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16374 lt_cv_sys_global_symbol_to_c_name_address \
16375 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16376 old_postinstall_cmds old_postuninstall_cmds \
16377 compiler_F77 \
16378 CC_F77 \
16379 LD_F77 \
16380 lt_prog_compiler_wl_F77 \
16381 lt_prog_compiler_pic_F77 \
16382 lt_prog_compiler_static_F77 \
16383 lt_prog_compiler_no_builtin_flag_F77 \
16384 export_dynamic_flag_spec_F77 \
16385 thread_safe_flag_spec_F77 \
16386 whole_archive_flag_spec_F77 \
16387 enable_shared_with_static_runtimes_F77 \
16388 old_archive_cmds_F77 \
16389 old_archive_from_new_cmds_F77 \
16390 predep_objects_F77 \
16391 postdep_objects_F77 \
16392 predeps_F77 \
16393 postdeps_F77 \
16394 compiler_lib_search_path_F77 \
16395 compiler_lib_search_dirs_F77 \
16396 archive_cmds_F77 \
16397 archive_expsym_cmds_F77 \
16398 postinstall_cmds_F77 \
16399 postuninstall_cmds_F77 \
16400 old_archive_from_expsyms_cmds_F77 \
16401 allow_undefined_flag_F77 \
16402 no_undefined_flag_F77 \
16403 export_symbols_cmds_F77 \
16404 hardcode_libdir_flag_spec_F77 \
16405 hardcode_libdir_flag_spec_ld_F77 \
16406 hardcode_libdir_separator_F77 \
16407 hardcode_automatic_F77 \
16408 module_cmds_F77 \
16409 module_expsym_cmds_F77 \
16410 lt_cv_prog_compiler_c_o_F77 \
16411 fix_srcfile_path_F77 \
16412 exclude_expsyms_F77 \
16413 include_expsyms_F77; do
16414
16415 case $var in
16416 old_archive_cmds_F77 | \
16417 old_archive_from_new_cmds_F77 | \
16418 archive_cmds_F77 | \
16419 archive_expsym_cmds_F77 | \
16420 module_cmds_F77 | \
16421 module_expsym_cmds_F77 | \
16422 old_archive_from_expsyms_cmds_F77 | \
16423 export_symbols_cmds_F77 | \
16424 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16425 postinstall_cmds | postuninstall_cmds | \
16426 old_postinstall_cmds | old_postuninstall_cmds | \
16427 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16428 # Double-quote double-evaled strings.
16429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16430 ;;
16431 *)
16432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16433 ;;
16434 esac
16435 done
16436
16437 case $lt_echo in
16438 *'\$0 --fallback-echo"')
16439 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16440 ;;
16441 esac
16442
16443 cfgfile="$ofile"
16444
16445 cat <<__EOF__ >> "$cfgfile"
16446 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16447
16448 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16449
16450 # Shell to use when invoking shell scripts.
16451 SHELL=$lt_SHELL
16452
16453 # Whether or not to build shared libraries.
16454 build_libtool_libs=$enable_shared
16455
16456 # Whether or not to build static libraries.
16457 build_old_libs=$enable_static
16458
16459 # Whether or not to add -lc for building shared libraries.
16460 build_libtool_need_lc=$archive_cmds_need_lc_F77
16461
16462 # Whether or not to disallow shared libs when runtime libs are static
16463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16464
16465 # Whether or not to optimize for fast installation.
16466 fast_install=$enable_fast_install
16467
16468 # The host system.
16469 host_alias=$host_alias
16470 host=$host
16471 host_os=$host_os
16472
16473 # The build system.
16474 build_alias=$build_alias
16475 build=$build
16476 build_os=$build_os
16477
16478 # An echo program that does not interpret backslashes.
16479 echo=$lt_echo
16480
16481 # The archiver.
16482 AR=$lt_AR
16483 AR_FLAGS=$lt_AR_FLAGS
16484
16485 # A C compiler.
16486 LTCC=$lt_LTCC
16487
16488 # LTCC compiler flags.
16489 LTCFLAGS=$lt_LTCFLAGS
16490
16491 # A language-specific compiler.
16492 CC=$lt_compiler_F77
16493
16494 # Is the compiler the GNU C compiler?
16495 with_gcc=$GCC_F77
16496
16497 # An ERE matcher.
16498 EGREP=$lt_EGREP
16499
16500 # The linker used to build libraries.
16501 LD=$lt_LD_F77
16502
16503 # Whether we need hard or soft links.
16504 LN_S=$lt_LN_S
16505
16506 # A BSD-compatible nm program.
16507 NM=$lt_NM
16508
16509 # A symbol stripping program
16510 STRIP=$lt_STRIP
16511
16512 # Used to examine libraries when file_magic_cmd begins "file"
16513 MAGIC_CMD=$MAGIC_CMD
16514
16515 # Used on cygwin: DLL creation program.
16516 DLLTOOL="$DLLTOOL"
16517
16518 # Used on cygwin: object dumper.
16519 OBJDUMP="$OBJDUMP"
16520
16521 # Used on cygwin: assembler.
16522 AS="$AS"
16523
16524 # The name of the directory that contains temporary libtool files.
16525 objdir=$objdir
16526
16527 # How to create reloadable object files.
16528 reload_flag=$lt_reload_flag
16529 reload_cmds=$lt_reload_cmds
16530
16531 # How to pass a linker flag through the compiler.
16532 wl=$lt_lt_prog_compiler_wl_F77
16533
16534 # Object file suffix (normally "o").
16535 objext="$ac_objext"
16536
16537 # Old archive suffix (normally "a").
16538 libext="$libext"
16539
16540 # Shared library suffix (normally ".so").
16541 shrext_cmds='$shrext_cmds'
16542
16543 # Executable file suffix (normally "").
16544 exeext="$exeext"
16545
16546 # Additional compiler flags for building library objects.
16547 pic_flag=$lt_lt_prog_compiler_pic_F77
16548 pic_mode=$pic_mode
16549
16550 # What is the maximum length of a command?
16551 max_cmd_len=$lt_cv_sys_max_cmd_len
16552
16553 # Does compiler simultaneously support -c and -o options?
16554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16555
16556 # Must we lock files when doing compilation?
16557 need_locks=$lt_need_locks
16558
16559 # Do we need the lib prefix for modules?
16560 need_lib_prefix=$need_lib_prefix
16561
16562 # Do we need a version for libraries?
16563 need_version=$need_version
16564
16565 # Whether dlopen is supported.
16566 dlopen_support=$enable_dlopen
16567
16568 # Whether dlopen of programs is supported.
16569 dlopen_self=$enable_dlopen_self
16570
16571 # Whether dlopen of statically linked programs is supported.
16572 dlopen_self_static=$enable_dlopen_self_static
16573
16574 # Compiler flag to prevent dynamic linking.
16575 link_static_flag=$lt_lt_prog_compiler_static_F77
16576
16577 # Compiler flag to turn off builtin functions.
16578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16579
16580 # Compiler flag to allow reflexive dlopens.
16581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16582
16583 # Compiler flag to generate shared objects directly from archives.
16584 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16585
16586 # Compiler flag to generate thread-safe objects.
16587 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16588
16589 # Library versioning type.
16590 version_type=$version_type
16591
16592 # Format of library name prefix.
16593 libname_spec=$lt_libname_spec
16594
16595 # List of archive names. First name is the real one, the rest are links.
16596 # The last name is the one that the linker finds with -lNAME.
16597 library_names_spec=$lt_library_names_spec
16598
16599 # The coded name of the library, if different from the real name.
16600 soname_spec=$lt_soname_spec
16601
16602 # Commands used to build and install an old-style archive.
16603 RANLIB=$lt_RANLIB
16604 old_archive_cmds=$lt_old_archive_cmds_F77
16605 old_postinstall_cmds=$lt_old_postinstall_cmds
16606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16607
16608 # Create an old-style archive from a shared archive.
16609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16610
16611 # Create a temporary old-style archive to link instead of a shared archive.
16612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16613
16614 # Commands used to build and install a shared archive.
16615 archive_cmds=$lt_archive_cmds_F77
16616 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16617 postinstall_cmds=$lt_postinstall_cmds
16618 postuninstall_cmds=$lt_postuninstall_cmds
16619
16620 # Commands used to build a loadable module (assumed same as above if empty)
16621 module_cmds=$lt_module_cmds_F77
16622 module_expsym_cmds=$lt_module_expsym_cmds_F77
16623
16624 # Commands to strip libraries.
16625 old_striplib=$lt_old_striplib
16626 striplib=$lt_striplib
16627
16628 # Dependencies to place before the objects being linked to create a
16629 # shared library.
16630 predep_objects=$lt_predep_objects_F77
16631
16632 # Dependencies to place after the objects being linked to create a
16633 # shared library.
16634 postdep_objects=$lt_postdep_objects_F77
16635
16636 # Dependencies to place before the objects being linked to create a
16637 # shared library.
16638 predeps=$lt_predeps_F77
16639
16640 # Dependencies to place after the objects being linked to create a
16641 # shared library.
16642 postdeps=$lt_postdeps_F77
16643
16644 # The directories searched by this compiler when creating a shared
16645 # library
16646 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16647
16648 # The library search path used internally by the compiler when linking
16649 # a shared library.
16650 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16651
16652 # Method to check whether dependent libraries are shared objects.
16653 deplibs_check_method=$lt_deplibs_check_method
16654
16655 # Command to use when deplibs_check_method == file_magic.
16656 file_magic_cmd=$lt_file_magic_cmd
16657
16658 # Flag that allows shared libraries with undefined symbols to be built.
16659 allow_undefined_flag=$lt_allow_undefined_flag_F77
16660
16661 # Flag that forces no undefined symbols.
16662 no_undefined_flag=$lt_no_undefined_flag_F77
16663
16664 # Commands used to finish a libtool library installation in a directory.
16665 finish_cmds=$lt_finish_cmds
16666
16667 # Same as above, but a single script fragment to be evaled but not shown.
16668 finish_eval=$lt_finish_eval
16669
16670 # Take the output of nm and produce a listing of raw symbols and C names.
16671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16672
16673 # Transform the output of nm in a proper C declaration
16674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16675
16676 # Transform the output of nm in a C name address pair
16677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16678
16679 # This is the shared library runtime path variable.
16680 runpath_var=$runpath_var
16681
16682 # This is the shared library path variable.
16683 shlibpath_var=$shlibpath_var
16684
16685 # Is shlibpath searched before the hard-coded library search path?
16686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16687
16688 # How to hardcode a shared library path into an executable.
16689 hardcode_action=$hardcode_action_F77
16690
16691 # Whether we should hardcode library paths into libraries.
16692 hardcode_into_libs=$hardcode_into_libs
16693
16694 # Flag to hardcode \$libdir into a binary during linking.
16695 # This must work even if \$libdir does not exist.
16696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16697
16698 # If ld is used when linking, flag to hardcode \$libdir into
16699 # a binary during linking. This must work even if \$libdir does
16700 # not exist.
16701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16702
16703 # Whether we need a single -rpath flag with a separated argument.
16704 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16705
16706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16707 # resulting binary.
16708 hardcode_direct=$hardcode_direct_F77
16709
16710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16711 # resulting binary.
16712 hardcode_minus_L=$hardcode_minus_L_F77
16713
16714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16715 # the resulting binary.
16716 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16717
16718 # Set to yes if building a shared library automatically hardcodes DIR into the library
16719 # and all subsequent libraries and executables linked against it.
16720 hardcode_automatic=$hardcode_automatic_F77
16721
16722 # Variables whose values should be saved in libtool wrapper scripts and
16723 # restored at relink time.
16724 variables_saved_for_relink="$variables_saved_for_relink"
16725
16726 # Whether libtool must link a program against all its dependency libraries.
16727 link_all_deplibs=$link_all_deplibs_F77
16728
16729 # Compile-time system search path for libraries
16730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16731
16732 # Run-time system search path for libraries
16733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16734
16735 # Fix the shell variable \$srcfile for the compiler.
16736 fix_srcfile_path=$lt_fix_srcfile_path
16737
16738 # Set to yes if exported symbols are required.
16739 always_export_symbols=$always_export_symbols_F77
16740
16741 # The commands to list exported symbols.
16742 export_symbols_cmds=$lt_export_symbols_cmds_F77
16743
16744 # The commands to extract the exported symbol list from a shared archive.
16745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16746
16747 # Symbols that should not be listed in the preloaded symbols.
16748 exclude_expsyms=$lt_exclude_expsyms_F77
16749
16750 # Symbols that must always be exported.
16751 include_expsyms=$lt_include_expsyms_F77
16752
16753 # ### END LIBTOOL TAG CONFIG: $tagname
16754
16755 __EOF__
16756
16757
16758 else
16759 # If there is no Makefile yet, we rely on a make rule to execute
16760 # `config.status --recheck' to rerun these tests and create the
16761 # libtool script then.
16762 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16763 if test -f "$ltmain_in"; then
16764 test -f Makefile && make "$ltmain"
16765 fi
16766 fi
16767
16768
16769 ac_ext=c
16770 ac_cpp='$CPP $CPPFLAGS'
16771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16774
16775 CC="$lt_save_CC"
16776
16777 else
16778 tagname=""
16779 fi
16780 ;;
16781
16782 GCJ)
16783 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16784
16785
16786 # Source file extension for Java test sources.
16787 ac_ext=java
16788
16789 # Object file extension for compiled Java test sources.
16790 objext=o
16791 objext_GCJ=$objext
16792
16793 # Code to be used in simple compile tests
16794 lt_simple_compile_test_code="class foo {}"
16795
16796 # Code to be used in simple link tests
16797 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16798
16799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16800
16801 # If no C compiler was specified, use CC.
16802 LTCC=${LTCC-"$CC"}
16803
16804 # If no C compiler flags were specified, use CFLAGS.
16805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16806
16807 # Allow CC to be a program name with arguments.
16808 compiler=$CC
16809
16810
16811 # save warnings/boilerplate of simple test code
16812 ac_outfile=conftest.$ac_objext
16813 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16815 _lt_compiler_boilerplate=`cat conftest.err`
16816 $rm conftest*
16817
16818 ac_outfile=conftest.$ac_objext
16819 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16821 _lt_linker_boilerplate=`cat conftest.err`
16822 $rm -r conftest*
16823
16824
16825 # Allow CC to be a program name with arguments.
16826 lt_save_CC="$CC"
16827 CC=${GCJ-"gcj"}
16828 compiler=$CC
16829 compiler_GCJ=$CC
16830 for cc_temp in $compiler""; do
16831 case $cc_temp in
16832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16834 \-*) ;;
16835 *) break;;
16836 esac
16837 done
16838 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16839
16840
16841 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16842 archive_cmds_need_lc_GCJ=no
16843
16844 old_archive_cmds_GCJ=$old_archive_cmds
16845
16846
16847 lt_prog_compiler_no_builtin_flag_GCJ=
16848
16849 if test "$GCC" = yes; then
16850 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16851
16852
16853 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16854 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16855 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16856 $as_echo_n "(cached) " >&6
16857 else
16858 lt_cv_prog_compiler_rtti_exceptions=no
16859 ac_outfile=conftest.$ac_objext
16860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16861 lt_compiler_flag="-fno-rtti -fno-exceptions"
16862 # Insert the option either (1) after the last *FLAGS variable, or
16863 # (2) before a word containing "conftest.", or (3) at the end.
16864 # Note that $ac_compile itself does not contain backslashes and begins
16865 # with a dollar sign (not a hyphen), so the echo should work correctly.
16866 # The option is referenced via a variable to avoid confusing sed.
16867 lt_compile=`echo "$ac_compile" | $SED \
16868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16870 -e 's:$: $lt_compiler_flag:'`
16871 (eval echo "\"\$as_me:16871: $lt_compile\"" >&5)
16872 (eval "$lt_compile" 2>conftest.err)
16873 ac_status=$?
16874 cat conftest.err >&5
16875 echo "$as_me:16875: \$? = $ac_status" >&5
16876 if (exit $ac_status) && test -s "$ac_outfile"; then
16877 # The compiler can only warn and ignore the option if not recognized
16878 # So say no if there are warnings other than the usual output.
16879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16882 lt_cv_prog_compiler_rtti_exceptions=yes
16883 fi
16884 fi
16885 $rm conftest*
16886
16887 fi
16888 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16889 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16890
16891 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16892 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16893 else
16894 :
16895 fi
16896
16897 fi
16898
16899 lt_prog_compiler_wl_GCJ=
16900 lt_prog_compiler_pic_GCJ=
16901 lt_prog_compiler_static_GCJ=
16902
16903 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16905
16906 if test "$GCC" = yes; then
16907 lt_prog_compiler_wl_GCJ='-Wl,'
16908 lt_prog_compiler_static_GCJ='-static'
16909
16910 case $host_os in
16911 aix*)
16912 # All AIX code is PIC.
16913 if test "$host_cpu" = ia64; then
16914 # AIX 5 now supports IA64 processor
16915 lt_prog_compiler_static_GCJ='-Bstatic'
16916 fi
16917 ;;
16918
16919 amigaos*)
16920 # FIXME: we need at least 68020 code to build shared libraries, but
16921 # adding the `-m68020' flag to GCC prevents building anything better,
16922 # like `-m68040'.
16923 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16924 ;;
16925
16926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16927 # PIC is the default for these OSes.
16928 ;;
16929
16930 mingw* | cygwin* | pw32* | os2*)
16931 # This hack is so that the source file can tell whether it is being
16932 # built for inclusion in a dll (and should export symbols for example).
16933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16934 # (--disable-auto-import) libraries
16935
16936 ;;
16937
16938 darwin* | rhapsody*)
16939 # PIC is the default on this platform
16940 # Common symbols not allowed in MH_DYLIB files
16941 lt_prog_compiler_pic_GCJ='-fno-common'
16942 ;;
16943
16944 interix[3-9]*)
16945 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16946 # Instead, we relocate shared libraries at runtime.
16947 ;;
16948
16949 msdosdjgpp*)
16950 # Just because we use GCC doesn't mean we suddenly get shared libraries
16951 # on systems that don't support them.
16952 lt_prog_compiler_can_build_shared_GCJ=no
16953 enable_shared=no
16954 ;;
16955
16956 sysv4*MP*)
16957 if test -d /usr/nec; then
16958 lt_prog_compiler_pic_GCJ=-Kconform_pic
16959 fi
16960 ;;
16961
16962 hpux*)
16963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16964 # not for PA HP-UX.
16965 case $host_cpu in
16966 hppa*64*|ia64*)
16967 # +Z the default
16968 ;;
16969 *)
16970 lt_prog_compiler_pic_GCJ='-fPIC'
16971 ;;
16972 esac
16973 ;;
16974
16975 *)
16976 lt_prog_compiler_pic_GCJ='-fPIC'
16977 ;;
16978 esac
16979 else
16980 # PORTME Check for flag to pass linker flags through the system compiler.
16981 case $host_os in
16982 aix*)
16983 lt_prog_compiler_wl_GCJ='-Wl,'
16984 if test "$host_cpu" = ia64; then
16985 # AIX 5 now supports IA64 processor
16986 lt_prog_compiler_static_GCJ='-Bstatic'
16987 else
16988 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16989 fi
16990 ;;
16991 darwin*)
16992 # PIC is the default on this platform
16993 # Common symbols not allowed in MH_DYLIB files
16994 case $cc_basename in
16995 xlc*)
16996 lt_prog_compiler_pic_GCJ='-qnocommon'
16997 lt_prog_compiler_wl_GCJ='-Wl,'
16998 ;;
16999 esac
17000 ;;
17001
17002 mingw* | cygwin* | pw32* | os2*)
17003 # This hack is so that the source file can tell whether it is being
17004 # built for inclusion in a dll (and should export symbols for example).
17005
17006 ;;
17007
17008 hpux9* | hpux10* | hpux11*)
17009 lt_prog_compiler_wl_GCJ='-Wl,'
17010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17011 # not for PA HP-UX.
17012 case $host_cpu in
17013 hppa*64*|ia64*)
17014 # +Z the default
17015 ;;
17016 *)
17017 lt_prog_compiler_pic_GCJ='+Z'
17018 ;;
17019 esac
17020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17021 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17022 ;;
17023
17024 irix5* | irix6* | nonstopux*)
17025 lt_prog_compiler_wl_GCJ='-Wl,'
17026 # PIC (with -KPIC) is the default.
17027 lt_prog_compiler_static_GCJ='-non_shared'
17028 ;;
17029
17030 newsos6)
17031 lt_prog_compiler_pic_GCJ='-KPIC'
17032 lt_prog_compiler_static_GCJ='-Bstatic'
17033 ;;
17034
17035 linux* | k*bsd*-gnu)
17036 case $cc_basename in
17037 icc* | ecc*)
17038 lt_prog_compiler_wl_GCJ='-Wl,'
17039 lt_prog_compiler_pic_GCJ='-KPIC'
17040 lt_prog_compiler_static_GCJ='-static'
17041 ;;
17042 pgcc* | pgf77* | pgf90* | pgf95*)
17043 # Portland Group compilers (*not* the Pentium gcc compiler,
17044 # which looks to be a dead project)
17045 lt_prog_compiler_wl_GCJ='-Wl,'
17046 lt_prog_compiler_pic_GCJ='-fpic'
17047 lt_prog_compiler_static_GCJ='-Bstatic'
17048 ;;
17049 ccc*)
17050 lt_prog_compiler_wl_GCJ='-Wl,'
17051 # All Alpha code is PIC.
17052 lt_prog_compiler_static_GCJ='-non_shared'
17053 ;;
17054 *)
17055 case `$CC -V 2>&1 | sed 5q` in
17056 *Sun\ C*)
17057 # Sun C 5.9
17058 lt_prog_compiler_pic_GCJ='-KPIC'
17059 lt_prog_compiler_static_GCJ='-Bstatic'
17060 lt_prog_compiler_wl_GCJ='-Wl,'
17061 ;;
17062 *Sun\ F*)
17063 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17064 lt_prog_compiler_pic_GCJ='-KPIC'
17065 lt_prog_compiler_static_GCJ='-Bstatic'
17066 lt_prog_compiler_wl_GCJ=''
17067 ;;
17068 esac
17069 ;;
17070 esac
17071 ;;
17072
17073 osf3* | osf4* | osf5*)
17074 lt_prog_compiler_wl_GCJ='-Wl,'
17075 # All OSF/1 code is PIC.
17076 lt_prog_compiler_static_GCJ='-non_shared'
17077 ;;
17078
17079 rdos*)
17080 lt_prog_compiler_static_GCJ='-non_shared'
17081 ;;
17082
17083 solaris*)
17084 lt_prog_compiler_pic_GCJ='-KPIC'
17085 lt_prog_compiler_static_GCJ='-Bstatic'
17086 case $cc_basename in
17087 f77* | f90* | f95*)
17088 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17089 *)
17090 lt_prog_compiler_wl_GCJ='-Wl,';;
17091 esac
17092 ;;
17093
17094 sunos4*)
17095 lt_prog_compiler_wl_GCJ='-Qoption ld '
17096 lt_prog_compiler_pic_GCJ='-PIC'
17097 lt_prog_compiler_static_GCJ='-Bstatic'
17098 ;;
17099
17100 sysv4 | sysv4.2uw2* | sysv4.3*)
17101 lt_prog_compiler_wl_GCJ='-Wl,'
17102 lt_prog_compiler_pic_GCJ='-KPIC'
17103 lt_prog_compiler_static_GCJ='-Bstatic'
17104 ;;
17105
17106 sysv4*MP*)
17107 if test -d /usr/nec ;then
17108 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17109 lt_prog_compiler_static_GCJ='-Bstatic'
17110 fi
17111 ;;
17112
17113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17114 lt_prog_compiler_wl_GCJ='-Wl,'
17115 lt_prog_compiler_pic_GCJ='-KPIC'
17116 lt_prog_compiler_static_GCJ='-Bstatic'
17117 ;;
17118
17119 unicos*)
17120 lt_prog_compiler_wl_GCJ='-Wl,'
17121 lt_prog_compiler_can_build_shared_GCJ=no
17122 ;;
17123
17124 uts4*)
17125 lt_prog_compiler_pic_GCJ='-pic'
17126 lt_prog_compiler_static_GCJ='-Bstatic'
17127 ;;
17128
17129 *)
17130 lt_prog_compiler_can_build_shared_GCJ=no
17131 ;;
17132 esac
17133 fi
17134
17135 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17136 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17137
17138 #
17139 # Check to make sure the PIC flag actually works.
17140 #
17141 if test -n "$lt_prog_compiler_pic_GCJ"; then
17142
17143 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17145 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17146 $as_echo_n "(cached) " >&6
17147 else
17148 lt_cv_prog_compiler_pic_works_GCJ=no
17149 ac_outfile=conftest.$ac_objext
17150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17151 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17152 # Insert the option either (1) after the last *FLAGS variable, or
17153 # (2) before a word containing "conftest.", or (3) at the end.
17154 # Note that $ac_compile itself does not contain backslashes and begins
17155 # with a dollar sign (not a hyphen), so the echo should work correctly.
17156 # The option is referenced via a variable to avoid confusing sed.
17157 lt_compile=`echo "$ac_compile" | $SED \
17158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17160 -e 's:$: $lt_compiler_flag:'`
17161 (eval echo "\"\$as_me:17161: $lt_compile\"" >&5)
17162 (eval "$lt_compile" 2>conftest.err)
17163 ac_status=$?
17164 cat conftest.err >&5
17165 echo "$as_me:17165: \$? = $ac_status" >&5
17166 if (exit $ac_status) && test -s "$ac_outfile"; then
17167 # The compiler can only warn and ignore the option if not recognized
17168 # So say no if there are warnings other than the usual output.
17169 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17172 lt_cv_prog_compiler_pic_works_GCJ=yes
17173 fi
17174 fi
17175 $rm conftest*
17176
17177 fi
17178 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17179 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17180
17181 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17182 case $lt_prog_compiler_pic_GCJ in
17183 "" | " "*) ;;
17184 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17185 esac
17186 else
17187 lt_prog_compiler_pic_GCJ=
17188 lt_prog_compiler_can_build_shared_GCJ=no
17189 fi
17190
17191 fi
17192 case $host_os in
17193 # For platforms which do not support PIC, -DPIC is meaningless:
17194 *djgpp*)
17195 lt_prog_compiler_pic_GCJ=
17196 ;;
17197 *)
17198 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17199 ;;
17200 esac
17201
17202 #
17203 # Check to make sure the static flag actually works.
17204 #
17205 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17206 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17207 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17208 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17209 $as_echo_n "(cached) " >&6
17210 else
17211 lt_cv_prog_compiler_static_works_GCJ=no
17212 save_LDFLAGS="$LDFLAGS"
17213 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17216 # The linker can only warn and ignore the option if not recognized
17217 # So say no if there are warnings
17218 if test -s conftest.err; then
17219 # Append any errors to the config.log.
17220 cat conftest.err 1>&5
17221 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17223 if diff conftest.exp conftest.er2 >/dev/null; then
17224 lt_cv_prog_compiler_static_works_GCJ=yes
17225 fi
17226 else
17227 lt_cv_prog_compiler_static_works_GCJ=yes
17228 fi
17229 fi
17230 $rm -r conftest*
17231 LDFLAGS="$save_LDFLAGS"
17232
17233 fi
17234 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17235 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17236
17237 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17238 :
17239 else
17240 lt_prog_compiler_static_GCJ=
17241 fi
17242
17243
17244 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17245 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17246 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17247 $as_echo_n "(cached) " >&6
17248 else
17249 lt_cv_prog_compiler_c_o_GCJ=no
17250 $rm -r conftest 2>/dev/null
17251 mkdir conftest
17252 cd conftest
17253 mkdir out
17254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17255
17256 lt_compiler_flag="-o out/conftest2.$ac_objext"
17257 # Insert the option either (1) after the last *FLAGS variable, or
17258 # (2) before a word containing "conftest.", or (3) at the end.
17259 # Note that $ac_compile itself does not contain backslashes and begins
17260 # with a dollar sign (not a hyphen), so the echo should work correctly.
17261 lt_compile=`echo "$ac_compile" | $SED \
17262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17264 -e 's:$: $lt_compiler_flag:'`
17265 (eval echo "\"\$as_me:17265: $lt_compile\"" >&5)
17266 (eval "$lt_compile" 2>out/conftest.err)
17267 ac_status=$?
17268 cat out/conftest.err >&5
17269 echo "$as_me:17269: \$? = $ac_status" >&5
17270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17271 then
17272 # The compiler can only warn and ignore the option if not recognized
17273 # So say no if there are warnings
17274 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17277 lt_cv_prog_compiler_c_o_GCJ=yes
17278 fi
17279 fi
17280 chmod u+w . 2>&5
17281 $rm conftest*
17282 # SGI C++ compiler will create directory out/ii_files/ for
17283 # template instantiation
17284 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17285 $rm out/* && rmdir out
17286 cd ..
17287 rmdir conftest
17288 $rm conftest*
17289
17290 fi
17291 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17292 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17293
17294
17295 hard_links="nottested"
17296 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17297 # do not overwrite the value of need_locks provided by the user
17298 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17299 $as_echo_n "checking if we can lock with hard links... " >&6; }
17300 hard_links=yes
17301 $rm conftest*
17302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17303 touch conftest.a
17304 ln conftest.a conftest.b 2>&5 || hard_links=no
17305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17306 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17307 $as_echo "$hard_links" >&6; }
17308 if test "$hard_links" = no; then
17309 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17310 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17311 need_locks=warn
17312 fi
17313 else
17314 need_locks=no
17315 fi
17316
17317 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17318 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17319
17320 runpath_var=
17321 allow_undefined_flag_GCJ=
17322 enable_shared_with_static_runtimes_GCJ=no
17323 archive_cmds_GCJ=
17324 archive_expsym_cmds_GCJ=
17325 old_archive_From_new_cmds_GCJ=
17326 old_archive_from_expsyms_cmds_GCJ=
17327 export_dynamic_flag_spec_GCJ=
17328 whole_archive_flag_spec_GCJ=
17329 thread_safe_flag_spec_GCJ=
17330 hardcode_libdir_flag_spec_GCJ=
17331 hardcode_libdir_flag_spec_ld_GCJ=
17332 hardcode_libdir_separator_GCJ=
17333 hardcode_direct_GCJ=no
17334 hardcode_minus_L_GCJ=no
17335 hardcode_shlibpath_var_GCJ=unsupported
17336 link_all_deplibs_GCJ=unknown
17337 hardcode_automatic_GCJ=no
17338 module_cmds_GCJ=
17339 module_expsym_cmds_GCJ=
17340 always_export_symbols_GCJ=no
17341 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17342 # include_expsyms should be a list of space-separated symbols to be *always*
17343 # included in the symbol list
17344 include_expsyms_GCJ=
17345 # exclude_expsyms can be an extended regexp of symbols to exclude
17346 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17347 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17348 # as well as any symbol that contains `d'.
17349 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17350 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17351 # platforms (ab)use it in PIC code, but their linkers get confused if
17352 # the symbol is explicitly referenced. Since portable code cannot
17353 # rely on this symbol name, it's probably fine to never include it in
17354 # preloaded symbol tables.
17355 # Exclude shared library initialization/finalization symbols.
17356 extract_expsyms_cmds=
17357 # Just being paranoid about ensuring that cc_basename is set.
17358 for cc_temp in $compiler""; do
17359 case $cc_temp in
17360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17362 \-*) ;;
17363 *) break;;
17364 esac
17365 done
17366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17367
17368 case $host_os in
17369 cygwin* | mingw* | pw32*)
17370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17371 # When not using gcc, we currently assume that we are using
17372 # Microsoft Visual C++.
17373 if test "$GCC" != yes; then
17374 with_gnu_ld=no
17375 fi
17376 ;;
17377 interix*)
17378 # we just hope/assume this is gcc and not c89 (= MSVC++)
17379 with_gnu_ld=yes
17380 ;;
17381 openbsd*)
17382 with_gnu_ld=no
17383 ;;
17384 esac
17385
17386 ld_shlibs_GCJ=yes
17387 if test "$with_gnu_ld" = yes; then
17388 # If archive_cmds runs LD, not CC, wlarc should be empty
17389 wlarc='${wl}'
17390
17391 # Set some defaults for GNU ld with shared library support. These
17392 # are reset later if shared libraries are not supported. Putting them
17393 # here allows them to be overridden if necessary.
17394 runpath_var=LD_RUN_PATH
17395 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17396 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17397 # ancient GNU ld didn't support --whole-archive et. al.
17398 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17399 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17400 else
17401 whole_archive_flag_spec_GCJ=
17402 fi
17403 supports_anon_versioning=no
17404 case `$LD -v 2>/dev/null` in
17405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17408 *\ 2.11.*) ;; # other 2.11 versions
17409 *) supports_anon_versioning=yes ;;
17410 esac
17411
17412 # See if GNU ld supports shared libraries.
17413 case $host_os in
17414 aix[3-9]*)
17415 # On AIX/PPC, the GNU linker is very broken
17416 if test "$host_cpu" != ia64; then
17417 ld_shlibs_GCJ=no
17418 cat <<EOF 1>&2
17419
17420 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17421 *** to be unable to reliably create shared libraries on AIX.
17422 *** Therefore, libtool is disabling shared libraries support. If you
17423 *** really care for shared libraries, you may want to modify your PATH
17424 *** so that a non-GNU linker is found, and then restart.
17425
17426 EOF
17427 fi
17428 ;;
17429
17430 amigaos*)
17431 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)'
17432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17433 hardcode_minus_L_GCJ=yes
17434
17435 # Samuel A. Falvo II <[email protected]> reports
17436 # that the semantics of dynamic libraries on AmigaOS, at least up
17437 # to version 4, is to share data among multiple programs linked
17438 # with the same dynamic library. Since this doesn't match the
17439 # behavior of shared libraries on other platforms, we can't use
17440 # them.
17441 ld_shlibs_GCJ=no
17442 ;;
17443
17444 beos*)
17445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17446 allow_undefined_flag_GCJ=unsupported
17447 # Joseph Beckenbach <[email protected]> says some releases of gcc
17448 # support --undefined. This deserves some investigation. FIXME
17449 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17450 else
17451 ld_shlibs_GCJ=no
17452 fi
17453 ;;
17454
17455 cygwin* | mingw* | pw32*)
17456 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17457 # as there is no search path for DLLs.
17458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17459 allow_undefined_flag_GCJ=unsupported
17460 always_export_symbols_GCJ=no
17461 enable_shared_with_static_runtimes_GCJ=yes
17462 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17463
17464 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17466 # If the export-symbols file already is a .def file (1st line
17467 # is EXPORTS), use it as is; otherwise, prepend...
17468 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17469 cp $export_symbols $output_objdir/$soname.def;
17470 else
17471 echo EXPORTS > $output_objdir/$soname.def;
17472 cat $export_symbols >> $output_objdir/$soname.def;
17473 fi~
17474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17475 else
17476 ld_shlibs_GCJ=no
17477 fi
17478 ;;
17479
17480 interix[3-9]*)
17481 hardcode_direct_GCJ=no
17482 hardcode_shlibpath_var_GCJ=no
17483 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17484 export_dynamic_flag_spec_GCJ='${wl}-E'
17485 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17486 # Instead, shared libraries are loaded at an image base (0x10000000 by
17487 # default) and relocated if they conflict, which is a slow very memory
17488 # consuming and fragmenting process. To avoid this, we pick a random,
17489 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17490 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17491 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'
17492 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'
17493 ;;
17494
17495 gnu* | linux* | k*bsd*-gnu)
17496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17497 tmp_addflag=
17498 case $cc_basename,$host_cpu in
17499 pgcc*) # Portland Group C compiler
17500 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'
17501 tmp_addflag=' $pic_flag'
17502 ;;
17503 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17504 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'
17505 tmp_addflag=' $pic_flag -Mnomain' ;;
17506 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17507 tmp_addflag=' -i_dynamic' ;;
17508 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17509 tmp_addflag=' -i_dynamic -nofor_main' ;;
17510 ifc* | ifort*) # Intel Fortran compiler
17511 tmp_addflag=' -nofor_main' ;;
17512 esac
17513 case `$CC -V 2>&1 | sed 5q` in
17514 *Sun\ C*) # Sun C 5.9
17515 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'
17516 tmp_sharedflag='-G' ;;
17517 *Sun\ F*) # Sun Fortran 8.3
17518 tmp_sharedflag='-G' ;;
17519 *)
17520 tmp_sharedflag='-shared' ;;
17521 esac
17522 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17523
17524 if test $supports_anon_versioning = yes; then
17525 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17527 $echo "local: *; };" >> $output_objdir/$libname.ver~
17528 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17529 fi
17530 else
17531 ld_shlibs_GCJ=no
17532 fi
17533 ;;
17534
17535 netbsd*)
17536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17537 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17538 wlarc=
17539 else
17540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17542 fi
17543 ;;
17544
17545 solaris*)
17546 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17547 ld_shlibs_GCJ=no
17548 cat <<EOF 1>&2
17549
17550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17551 *** create shared libraries on Solaris systems. Therefore, libtool
17552 *** is disabling shared libraries support. We urge you to upgrade GNU
17553 *** binutils to release 2.9.1 or newer. Another option is to modify
17554 *** your PATH or compiler configuration so that the native linker is
17555 *** used, and then restart.
17556
17557 EOF
17558 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17561 else
17562 ld_shlibs_GCJ=no
17563 fi
17564 ;;
17565
17566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17567 case `$LD -v 2>&1` in
17568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17569 ld_shlibs_GCJ=no
17570 cat <<_LT_EOF 1>&2
17571
17572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17573 *** reliably create shared libraries on SCO systems. Therefore, libtool
17574 *** is disabling shared libraries support. We urge you to upgrade GNU
17575 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17576 *** your PATH or compiler configuration so that the native linker is
17577 *** used, and then restart.
17578
17579 _LT_EOF
17580 ;;
17581 *)
17582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17583 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17585 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17586 else
17587 ld_shlibs_GCJ=no
17588 fi
17589 ;;
17590 esac
17591 ;;
17592
17593 sunos4*)
17594 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17595 wlarc=
17596 hardcode_direct_GCJ=yes
17597 hardcode_shlibpath_var_GCJ=no
17598 ;;
17599
17600 *)
17601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17603 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17604 else
17605 ld_shlibs_GCJ=no
17606 fi
17607 ;;
17608 esac
17609
17610 if test "$ld_shlibs_GCJ" = no; then
17611 runpath_var=
17612 hardcode_libdir_flag_spec_GCJ=
17613 export_dynamic_flag_spec_GCJ=
17614 whole_archive_flag_spec_GCJ=
17615 fi
17616 else
17617 # PORTME fill in a description of your system's linker (not GNU ld)
17618 case $host_os in
17619 aix3*)
17620 allow_undefined_flag_GCJ=unsupported
17621 always_export_symbols_GCJ=yes
17622 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'
17623 # Note: this linker hardcodes the directories in LIBPATH if there
17624 # are no directories specified by -L.
17625 hardcode_minus_L_GCJ=yes
17626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17627 # Neither direct hardcoding nor static linking is supported with a
17628 # broken collect2.
17629 hardcode_direct_GCJ=unsupported
17630 fi
17631 ;;
17632
17633 aix[4-9]*)
17634 if test "$host_cpu" = ia64; then
17635 # On IA64, the linker does run time linking by default, so we don't
17636 # have to do anything special.
17637 aix_use_runtimelinking=no
17638 exp_sym_flag='-Bexport'
17639 no_entry_flag=""
17640 else
17641 # If we're using GNU nm, then we don't want the "-C" option.
17642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17643 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17644 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'
17645 else
17646 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'
17647 fi
17648 aix_use_runtimelinking=no
17649
17650 # Test if we are trying to use run time linking or normal
17651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17652 # need to do runtime linking.
17653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17654 for ld_flag in $LDFLAGS; do
17655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17656 aix_use_runtimelinking=yes
17657 break
17658 fi
17659 done
17660 ;;
17661 esac
17662
17663 exp_sym_flag='-bexport'
17664 no_entry_flag='-bnoentry'
17665 fi
17666
17667 # When large executables or shared objects are built, AIX ld can
17668 # have problems creating the table of contents. If linking a library
17669 # or program results in "error TOC overflow" add -mminimal-toc to
17670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17672
17673 archive_cmds_GCJ=''
17674 hardcode_direct_GCJ=yes
17675 hardcode_libdir_separator_GCJ=':'
17676 link_all_deplibs_GCJ=yes
17677
17678 if test "$GCC" = yes; then
17679 case $host_os in aix4.[012]|aix4.[012].*)
17680 # We only want to do this on AIX 4.2 and lower, the check
17681 # below for broken collect2 doesn't work under 4.3+
17682 collect2name=`${CC} -print-prog-name=collect2`
17683 if test -f "$collect2name" && \
17684 strings "$collect2name" | grep resolve_lib_name >/dev/null
17685 then
17686 # We have reworked collect2
17687 :
17688 else
17689 # We have old collect2
17690 hardcode_direct_GCJ=unsupported
17691 # It fails to find uninstalled libraries when the uninstalled
17692 # path is not listed in the libpath. Setting hardcode_minus_L
17693 # to unsupported forces relinking
17694 hardcode_minus_L_GCJ=yes
17695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17696 hardcode_libdir_separator_GCJ=
17697 fi
17698 ;;
17699 esac
17700 shared_flag='-shared'
17701 if test "$aix_use_runtimelinking" = yes; then
17702 shared_flag="$shared_flag "'${wl}-G'
17703 fi
17704 else
17705 # not using gcc
17706 if test "$host_cpu" = ia64; then
17707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17708 # chokes on -Wl,-G. The following line is correct:
17709 shared_flag='-G'
17710 else
17711 if test "$aix_use_runtimelinking" = yes; then
17712 shared_flag='${wl}-G'
17713 else
17714 shared_flag='${wl}-bM:SRE'
17715 fi
17716 fi
17717 fi
17718
17719 # It seems that -bexpall does not export symbols beginning with
17720 # underscore (_), so it is better to generate a list of symbols to export.
17721 always_export_symbols_GCJ=yes
17722 if test "$aix_use_runtimelinking" = yes; then
17723 # Warning - without using the other runtime loading flags (-brtl),
17724 # -berok will link without error, but may produce a broken library.
17725 allow_undefined_flag_GCJ='-berok'
17726 # Determine the default libpath from the value encoded in an empty executable.
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733
17734 int
17735 main ()
17736 {
17737
17738 ;
17739 return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (ac_try="$ac_link"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17747 esac
17748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17749 $as_echo "$ac_try_echo") >&5
17750 (eval "$ac_link") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest$ac_exeext && {
17760 test "$cross_compiling" = yes ||
17761 $as_test_x conftest$ac_exeext
17762 }; then
17763
17764 lt_aix_libpath_sed='
17765 /Import File Strings/,/^$/ {
17766 /^0/ {
17767 s/^0 *\(.*\)$/\1/
17768 p
17769 }
17770 }'
17771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17772 # Check for a 64-bit object if we didn't find anything.
17773 if test -z "$aix_libpath"; then
17774 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17775 fi
17776 else
17777 $as_echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780
17781 fi
17782
17783 rm -rf conftest.dSYM
17784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17785 conftest$ac_exeext conftest.$ac_ext
17786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17787
17788 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17789 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"
17790 else
17791 if test "$host_cpu" = ia64; then
17792 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17793 allow_undefined_flag_GCJ="-z nodefs"
17794 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"
17795 else
17796 # Determine the default libpath from the value encoded in an empty executable.
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h. */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803
17804 int
17805 main ()
17806 {
17807
17808 ;
17809 return 0;
17810 }
17811 _ACEOF
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817 esac
17818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17819 $as_echo "$ac_try_echo") >&5
17820 (eval "$ac_link") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest$ac_exeext && {
17830 test "$cross_compiling" = yes ||
17831 $as_test_x conftest$ac_exeext
17832 }; then
17833
17834 lt_aix_libpath_sed='
17835 /Import File Strings/,/^$/ {
17836 /^0/ {
17837 s/^0 *\(.*\)$/\1/
17838 p
17839 }
17840 }'
17841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17842 # Check for a 64-bit object if we didn't find anything.
17843 if test -z "$aix_libpath"; then
17844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17845 fi
17846 else
17847 $as_echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850
17851 fi
17852
17853 rm -rf conftest.dSYM
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17857
17858 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17859 # Warning - without using the other run time loading flags,
17860 # -berok will link without error, but may produce a broken library.
17861 no_undefined_flag_GCJ=' ${wl}-bernotok'
17862 allow_undefined_flag_GCJ=' ${wl}-berok'
17863 # Exported symbols can be pulled into shared objects from archives
17864 whole_archive_flag_spec_GCJ='$convenience'
17865 archive_cmds_need_lc_GCJ=yes
17866 # This is similar to how AIX traditionally builds its shared libraries.
17867 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'
17868 fi
17869 fi
17870 ;;
17871
17872 amigaos*)
17873 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)'
17874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17875 hardcode_minus_L_GCJ=yes
17876 # see comment about different semantics on the GNU ld section
17877 ld_shlibs_GCJ=no
17878 ;;
17879
17880 bsdi[45]*)
17881 export_dynamic_flag_spec_GCJ=-rdynamic
17882 ;;
17883
17884 cygwin* | mingw* | pw32*)
17885 # When not using gcc, we currently assume that we are using
17886 # Microsoft Visual C++.
17887 # hardcode_libdir_flag_spec is actually meaningless, as there is
17888 # no search path for DLLs.
17889 hardcode_libdir_flag_spec_GCJ=' '
17890 allow_undefined_flag_GCJ=unsupported
17891 # Tell ltmain to make .lib files, not .a files.
17892 libext=lib
17893 # Tell ltmain to make .dll files, not .so files.
17894 shrext_cmds=".dll"
17895 # FIXME: Setting linknames here is a bad hack.
17896 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17897 # The linker will automatically build a .lib file if we build a DLL.
17898 old_archive_From_new_cmds_GCJ='true'
17899 # FIXME: Should let the user specify the lib program.
17900 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17901 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17902 enable_shared_with_static_runtimes_GCJ=yes
17903 ;;
17904
17905 darwin* | rhapsody*)
17906 case $host_os in
17907 rhapsody* | darwin1.[012])
17908 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17909 ;;
17910 *) # Darwin 1.3 on
17911 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17912 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17913 else
17914 case ${MACOSX_DEPLOYMENT_TARGET} in
17915 10.[012])
17916 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17917 ;;
17918 10.*)
17919 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17920 ;;
17921 esac
17922 fi
17923 ;;
17924 esac
17925 archive_cmds_need_lc_GCJ=no
17926 hardcode_direct_GCJ=no
17927 hardcode_automatic_GCJ=yes
17928 hardcode_shlibpath_var_GCJ=unsupported
17929 whole_archive_flag_spec_GCJ=''
17930 link_all_deplibs_GCJ=yes
17931 if test "$GCC" = yes ; then
17932 output_verbose_link_cmd='echo'
17933 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}"
17934 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17935 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}"
17936 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}"
17937 else
17938 case $cc_basename in
17939 xlc*)
17940 output_verbose_link_cmd='echo'
17941 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17942 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17943 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17944 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}'
17945 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}'
17946 ;;
17947 *)
17948 ld_shlibs_GCJ=no
17949 ;;
17950 esac
17951 fi
17952 ;;
17953
17954 dgux*)
17955 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957 hardcode_shlibpath_var_GCJ=no
17958 ;;
17959
17960 freebsd1*)
17961 ld_shlibs_GCJ=no
17962 ;;
17963
17964 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17965 # support. Future versions do this automatically, but an explicit c++rt0.o
17966 # does not break anything, and helps significantly (at the cost of a little
17967 # extra space).
17968 freebsd2.2*)
17969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971 hardcode_direct_GCJ=yes
17972 hardcode_shlibpath_var_GCJ=no
17973 ;;
17974
17975 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17976 freebsd2*)
17977 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17978 hardcode_direct_GCJ=yes
17979 hardcode_minus_L_GCJ=yes
17980 hardcode_shlibpath_var_GCJ=no
17981 ;;
17982
17983 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17984 freebsd* | dragonfly*)
17985 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17986 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17987 hardcode_direct_GCJ=yes
17988 hardcode_shlibpath_var_GCJ=no
17989 ;;
17990
17991 hpux9*)
17992 if test "$GCC" = yes; then
17993 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'
17994 else
17995 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'
17996 fi
17997 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17998 hardcode_libdir_separator_GCJ=:
17999 hardcode_direct_GCJ=yes
18000
18001 # hardcode_minus_L: Not really in the search PATH,
18002 # but as the default location of the library.
18003 hardcode_minus_L_GCJ=yes
18004 export_dynamic_flag_spec_GCJ='${wl}-E'
18005 ;;
18006
18007 hpux10*)
18008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18009 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18010 else
18011 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18012 fi
18013 if test "$with_gnu_ld" = no; then
18014 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18015 hardcode_libdir_separator_GCJ=:
18016
18017 hardcode_direct_GCJ=yes
18018 export_dynamic_flag_spec_GCJ='${wl}-E'
18019
18020 # hardcode_minus_L: Not really in the search PATH,
18021 # but as the default location of the library.
18022 hardcode_minus_L_GCJ=yes
18023 fi
18024 ;;
18025
18026 hpux11*)
18027 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18028 case $host_cpu in
18029 hppa*64*)
18030 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18031 ;;
18032 ia64*)
18033 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18034 ;;
18035 *)
18036 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18037 ;;
18038 esac
18039 else
18040 case $host_cpu in
18041 hppa*64*)
18042 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 ;;
18044 ia64*)
18045 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18046 ;;
18047 *)
18048 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18049 ;;
18050 esac
18051 fi
18052 if test "$with_gnu_ld" = no; then
18053 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18054 hardcode_libdir_separator_GCJ=:
18055
18056 case $host_cpu in
18057 hppa*64*|ia64*)
18058 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18059 hardcode_direct_GCJ=no
18060 hardcode_shlibpath_var_GCJ=no
18061 ;;
18062 *)
18063 hardcode_direct_GCJ=yes
18064 export_dynamic_flag_spec_GCJ='${wl}-E'
18065
18066 # hardcode_minus_L: Not really in the search PATH,
18067 # but as the default location of the library.
18068 hardcode_minus_L_GCJ=yes
18069 ;;
18070 esac
18071 fi
18072 ;;
18073
18074 irix5* | irix6* | nonstopux*)
18075 if test "$GCC" = yes; then
18076 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'
18077 else
18078 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'
18079 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18080 fi
18081 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18082 hardcode_libdir_separator_GCJ=:
18083 link_all_deplibs_GCJ=yes
18084 ;;
18085
18086 netbsd*)
18087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18088 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18089 else
18090 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18091 fi
18092 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18093 hardcode_direct_GCJ=yes
18094 hardcode_shlibpath_var_GCJ=no
18095 ;;
18096
18097 newsos6)
18098 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18099 hardcode_direct_GCJ=yes
18100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18101 hardcode_libdir_separator_GCJ=:
18102 hardcode_shlibpath_var_GCJ=no
18103 ;;
18104
18105 openbsd*)
18106 if test -f /usr/libexec/ld.so; then
18107 hardcode_direct_GCJ=yes
18108 hardcode_shlibpath_var_GCJ=no
18109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18110 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18111 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18113 export_dynamic_flag_spec_GCJ='${wl}-E'
18114 else
18115 case $host_os in
18116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18117 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18118 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18119 ;;
18120 *)
18121 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18123 ;;
18124 esac
18125 fi
18126 else
18127 ld_shlibs_GCJ=no
18128 fi
18129 ;;
18130
18131 os2*)
18132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133 hardcode_minus_L_GCJ=yes
18134 allow_undefined_flag_GCJ=unsupported
18135 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'
18136 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18137 ;;
18138
18139 osf3*)
18140 if test "$GCC" = yes; then
18141 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18142 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'
18143 else
18144 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18145 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'
18146 fi
18147 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18148 hardcode_libdir_separator_GCJ=:
18149 ;;
18150
18151 osf4* | osf5*) # as osf3* with the addition of -msym flag
18152 if test "$GCC" = yes; then
18153 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18154 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'
18155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18156 else
18157 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18158 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'
18159 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~
18160 $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'
18161
18162 # Both c and cxx compiler support -rpath directly
18163 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18164 fi
18165 hardcode_libdir_separator_GCJ=:
18166 ;;
18167
18168 solaris*)
18169 no_undefined_flag_GCJ=' -z text'
18170 if test "$GCC" = yes; then
18171 wlarc='${wl}'
18172 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18173 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18174 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18175 else
18176 wlarc=''
18177 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18178 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18180 fi
18181 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18182 hardcode_shlibpath_var_GCJ=no
18183 case $host_os in
18184 solaris2.[0-5] | solaris2.[0-5].*) ;;
18185 *)
18186 # The compiler driver will combine and reorder linker options,
18187 # but understands `-z linker_flag'. GCC discards it without `$wl',
18188 # but is careful enough not to reorder.
18189 # Supported since Solaris 2.6 (maybe 2.5.1?)
18190 if test "$GCC" = yes; then
18191 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18192 else
18193 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18194 fi
18195 ;;
18196 esac
18197 link_all_deplibs_GCJ=yes
18198 ;;
18199
18200 sunos4*)
18201 if test "x$host_vendor" = xsequent; then
18202 # Use $CC to link under sequent, because it throws in some extra .o
18203 # files that make .init and .fini sections work.
18204 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18205 else
18206 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18207 fi
18208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18209 hardcode_direct_GCJ=yes
18210 hardcode_minus_L_GCJ=yes
18211 hardcode_shlibpath_var_GCJ=no
18212 ;;
18213
18214 sysv4)
18215 case $host_vendor in
18216 sni)
18217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18218 hardcode_direct_GCJ=yes # is this really true???
18219 ;;
18220 siemens)
18221 ## LD is ld it makes a PLAMLIB
18222 ## CC just makes a GrossModule.
18223 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18224 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18225 hardcode_direct_GCJ=no
18226 ;;
18227 motorola)
18228 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18230 ;;
18231 esac
18232 runpath_var='LD_RUN_PATH'
18233 hardcode_shlibpath_var_GCJ=no
18234 ;;
18235
18236 sysv4.3*)
18237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18238 hardcode_shlibpath_var_GCJ=no
18239 export_dynamic_flag_spec_GCJ='-Bexport'
18240 ;;
18241
18242 sysv4*MP*)
18243 if test -d /usr/nec; then
18244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245 hardcode_shlibpath_var_GCJ=no
18246 runpath_var=LD_RUN_PATH
18247 hardcode_runpath_var=yes
18248 ld_shlibs_GCJ=yes
18249 fi
18250 ;;
18251
18252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18253 no_undefined_flag_GCJ='${wl}-z,text'
18254 archive_cmds_need_lc_GCJ=no
18255 hardcode_shlibpath_var_GCJ=no
18256 runpath_var='LD_RUN_PATH'
18257
18258 if test "$GCC" = yes; then
18259 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18260 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18261 else
18262 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18263 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18264 fi
18265 ;;
18266
18267 sysv5* | sco3.2v5* | sco5v6*)
18268 # Note: We can NOT use -z defs as we might desire, because we do not
18269 # link with -lc, and that would cause any symbols used from libc to
18270 # always be unresolved, which means just about no library would
18271 # ever link correctly. If we're not using GNU ld we use -z text
18272 # though, which does catch some bad symbols but isn't as heavy-handed
18273 # as -z defs.
18274 no_undefined_flag_GCJ='${wl}-z,text'
18275 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18276 archive_cmds_need_lc_GCJ=no
18277 hardcode_shlibpath_var_GCJ=no
18278 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18279 hardcode_libdir_separator_GCJ=':'
18280 link_all_deplibs_GCJ=yes
18281 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18282 runpath_var='LD_RUN_PATH'
18283
18284 if test "$GCC" = yes; then
18285 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18286 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18287 else
18288 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290 fi
18291 ;;
18292
18293 uts4*)
18294 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18296 hardcode_shlibpath_var_GCJ=no
18297 ;;
18298
18299 *)
18300 ld_shlibs_GCJ=no
18301 ;;
18302 esac
18303 fi
18304
18305 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18306 $as_echo "$ld_shlibs_GCJ" >&6; }
18307 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18308
18309 #
18310 # Do we need to explicitly link libc?
18311 #
18312 case "x$archive_cmds_need_lc_GCJ" in
18313 x|xyes)
18314 # Assume -lc should be added
18315 archive_cmds_need_lc_GCJ=yes
18316
18317 if test "$enable_shared" = yes && test "$GCC" = yes; then
18318 case $archive_cmds_GCJ in
18319 *'~'*)
18320 # FIXME: we may have to deal with multi-command sequences.
18321 ;;
18322 '$CC '*)
18323 # Test whether the compiler implicitly links with -lc since on some
18324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18325 # to ld, don't add -lc before -lgcc.
18326 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18327 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18328 $rm conftest*
18329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18330
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>&5
18333 ac_status=$?
18334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } 2>conftest.err; then
18336 soname=conftest
18337 lib=conftest
18338 libobjs=conftest.$ac_objext
18339 deplibs=
18340 wl=$lt_prog_compiler_wl_GCJ
18341 pic_flag=$lt_prog_compiler_pic_GCJ
18342 compiler_flags=-v
18343 linker_flags=-v
18344 verstring=
18345 output_objdir=.
18346 libname=conftest
18347 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18348 allow_undefined_flag_GCJ=
18349 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18350 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18351 ac_status=$?
18352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }
18354 then
18355 archive_cmds_need_lc_GCJ=no
18356 else
18357 archive_cmds_need_lc_GCJ=yes
18358 fi
18359 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18360 else
18361 cat conftest.err 1>&5
18362 fi
18363 $rm conftest*
18364 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18365 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18366 ;;
18367 esac
18368 fi
18369 ;;
18370 esac
18371
18372 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18374 library_names_spec=
18375 libname_spec='lib$name'
18376 soname_spec=
18377 shrext_cmds=".so"
18378 postinstall_cmds=
18379 postuninstall_cmds=
18380 finish_cmds=
18381 finish_eval=
18382 shlibpath_var=
18383 shlibpath_overrides_runpath=unknown
18384 version_type=none
18385 dynamic_linker="$host_os ld.so"
18386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18387
18388 need_lib_prefix=unknown
18389 hardcode_into_libs=no
18390
18391 # when you set need_version to no, make sure it does not cause -set_version
18392 # flags to be left without arguments
18393 need_version=unknown
18394
18395 case $host_os in
18396 aix3*)
18397 version_type=linux
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18399 shlibpath_var=LIBPATH
18400
18401 # AIX 3 has no versioning support, so we append a major version to the name.
18402 soname_spec='${libname}${release}${shared_ext}$major'
18403 ;;
18404
18405 aix[4-9]*)
18406 version_type=linux
18407 need_lib_prefix=no
18408 need_version=no
18409 hardcode_into_libs=yes
18410 if test "$host_cpu" = ia64; then
18411 # AIX 5 supports IA64
18412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 else
18415 # With GCC up to 2.95.x, collect2 would create an import file
18416 # for dependence libraries. The import file would start with
18417 # the line `#! .'. This would cause the generated library to
18418 # depend on `.', always an invalid library. This was fixed in
18419 # development snapshots of GCC prior to 3.0.
18420 case $host_os in
18421 aix4 | aix4.[01] | aix4.[01].*)
18422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18423 echo ' yes '
18424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18425 :
18426 else
18427 can_build_shared=no
18428 fi
18429 ;;
18430 esac
18431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18432 # soname into executable. Probably we can add versioning support to
18433 # collect2, so additional links can be useful in future.
18434 if test "$aix_use_runtimelinking" = yes; then
18435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18436 # instead of lib<name>.a to let people know that these are not
18437 # typical AIX shared libraries.
18438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18439 else
18440 # We preserve .a as extension for shared libraries through AIX4.2
18441 # and later when we are not doing run time linking.
18442 library_names_spec='${libname}${release}.a $libname.a'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18444 fi
18445 shlibpath_var=LIBPATH
18446 fi
18447 ;;
18448
18449 amigaos*)
18450 library_names_spec='$libname.ixlibrary $libname.a'
18451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18452 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'
18453 ;;
18454
18455 beos*)
18456 library_names_spec='${libname}${shared_ext}'
18457 dynamic_linker="$host_os ld.so"
18458 shlibpath_var=LIBRARY_PATH
18459 ;;
18460
18461 bsdi[45]*)
18462 version_type=linux
18463 need_version=no
18464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465 soname_spec='${libname}${release}${shared_ext}$major'
18466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18470 # the default ld.so.conf also contains /usr/contrib/lib and
18471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18472 # libtool to hard-code these into programs
18473 ;;
18474
18475 cygwin* | mingw* | pw32*)
18476 version_type=windows
18477 shrext_cmds=".dll"
18478 need_version=no
18479 need_lib_prefix=no
18480
18481 case $GCC,$host_os in
18482 yes,cygwin* | yes,mingw* | yes,pw32*)
18483 library_names_spec='$libname.dll.a'
18484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18485 postinstall_cmds='base_file=`basename \${file}`~
18486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18487 dldir=$destdir/`dirname \$dlpath`~
18488 test -d \$dldir || mkdir -p \$dldir~
18489 $install_prog $dir/$dlname \$dldir/$dlname~
18490 chmod a+x \$dldir/$dlname'
18491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18492 dlpath=$dir/\$dldll~
18493 $rm \$dlpath'
18494 shlibpath_overrides_runpath=yes
18495
18496 case $host_os in
18497 cygwin*)
18498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18500 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18501 ;;
18502 mingw*)
18503 # MinGW DLLs use traditional 'lib' prefix
18504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18505 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18506 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18507 # It is most probably a Windows format PATH printed by
18508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18509 # path with ; separators, and with drive letters. We can handle the
18510 # drive letters (cygwin fileutils understands them), so leave them,
18511 # especially as we might pass files found there to a mingw objdump,
18512 # which wouldn't understand a cygwinified path. Ahh.
18513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18514 else
18515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18516 fi
18517 ;;
18518 pw32*)
18519 # pw32 DLLs use 'pw' prefix rather than 'lib'
18520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18521 ;;
18522 esac
18523 ;;
18524
18525 *)
18526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18527 ;;
18528 esac
18529 dynamic_linker='Win32 ld.exe'
18530 # FIXME: first we should search . and the directory the executable is in
18531 shlibpath_var=PATH
18532 ;;
18533
18534 darwin* | rhapsody*)
18535 dynamic_linker="$host_os dyld"
18536 version_type=darwin
18537 need_lib_prefix=no
18538 need_version=no
18539 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18540 soname_spec='${libname}${release}${major}$shared_ext'
18541 shlibpath_overrides_runpath=yes
18542 shlibpath_var=DYLD_LIBRARY_PATH
18543 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18544
18545 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18546 ;;
18547
18548 dgux*)
18549 version_type=linux
18550 need_lib_prefix=no
18551 need_version=no
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18553 soname_spec='${libname}${release}${shared_ext}$major'
18554 shlibpath_var=LD_LIBRARY_PATH
18555 ;;
18556
18557 freebsd1*)
18558 dynamic_linker=no
18559 ;;
18560
18561 freebsd* | dragonfly*)
18562 # DragonFly does not have aout. When/if they implement a new
18563 # versioning mechanism, adjust this.
18564 if test -x /usr/bin/objformat; then
18565 objformat=`/usr/bin/objformat`
18566 else
18567 case $host_os in
18568 freebsd[123]*) objformat=aout ;;
18569 *) objformat=elf ;;
18570 esac
18571 fi
18572 version_type=freebsd-$objformat
18573 case $version_type in
18574 freebsd-elf*)
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18576 need_version=no
18577 need_lib_prefix=no
18578 ;;
18579 freebsd-*)
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18581 need_version=yes
18582 ;;
18583 esac
18584 shlibpath_var=LD_LIBRARY_PATH
18585 case $host_os in
18586 freebsd2*)
18587 shlibpath_overrides_runpath=yes
18588 ;;
18589 freebsd3.[01]* | freebsdelf3.[01]*)
18590 shlibpath_overrides_runpath=yes
18591 hardcode_into_libs=yes
18592 ;;
18593 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18594 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18595 shlibpath_overrides_runpath=no
18596 hardcode_into_libs=yes
18597 ;;
18598 *) # from 4.6 on, and DragonFly
18599 shlibpath_overrides_runpath=yes
18600 hardcode_into_libs=yes
18601 ;;
18602 esac
18603 ;;
18604
18605 gnu*)
18606 version_type=linux
18607 need_lib_prefix=no
18608 need_version=no
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 shlibpath_var=LD_LIBRARY_PATH
18612 hardcode_into_libs=yes
18613 ;;
18614
18615 hpux9* | hpux10* | hpux11*)
18616 # Give a soname corresponding to the major version so that dld.sl refuses to
18617 # link against other versions.
18618 version_type=sunos
18619 need_lib_prefix=no
18620 need_version=no
18621 case $host_cpu in
18622 ia64*)
18623 shrext_cmds='.so'
18624 hardcode_into_libs=yes
18625 dynamic_linker="$host_os dld.so"
18626 shlibpath_var=LD_LIBRARY_PATH
18627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 if test "X$HPUX_IA64_MODE" = X32; then
18631 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18632 else
18633 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18634 fi
18635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18636 ;;
18637 hppa*64*)
18638 shrext_cmds='.sl'
18639 hardcode_into_libs=yes
18640 dynamic_linker="$host_os dld.sl"
18641 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18644 soname_spec='${libname}${release}${shared_ext}$major'
18645 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18647 ;;
18648 *)
18649 shrext_cmds='.sl'
18650 dynamic_linker="$host_os dld.sl"
18651 shlibpath_var=SHLIB_PATH
18652 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 ;;
18656 esac
18657 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18658 postinstall_cmds='chmod 555 $lib'
18659 ;;
18660
18661 interix[3-9]*)
18662 version_type=linux
18663 need_lib_prefix=no
18664 need_version=no
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18666 soname_spec='${libname}${release}${shared_ext}$major'
18667 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=no
18670 hardcode_into_libs=yes
18671 ;;
18672
18673 irix5* | irix6* | nonstopux*)
18674 case $host_os in
18675 nonstopux*) version_type=nonstopux ;;
18676 *)
18677 if test "$lt_cv_prog_gnu_ld" = yes; then
18678 version_type=linux
18679 else
18680 version_type=irix
18681 fi ;;
18682 esac
18683 need_lib_prefix=no
18684 need_version=no
18685 soname_spec='${libname}${release}${shared_ext}$major'
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18687 case $host_os in
18688 irix5* | nonstopux*)
18689 libsuff= shlibsuff=
18690 ;;
18691 *)
18692 case $LD in # libtool.m4 will add one of these switches to LD
18693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18694 libsuff= shlibsuff= libmagic=32-bit;;
18695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18696 libsuff=32 shlibsuff=N32 libmagic=N32;;
18697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18699 *) libsuff= shlibsuff= libmagic=never-match;;
18700 esac
18701 ;;
18702 esac
18703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18704 shlibpath_overrides_runpath=no
18705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18707 hardcode_into_libs=yes
18708 ;;
18709
18710 # No shared lib support for Linux oldld, aout, or coff.
18711 linux*oldld* | linux*aout* | linux*coff*)
18712 dynamic_linker=no
18713 ;;
18714
18715 # This must be Linux ELF.
18716 linux* | k*bsd*-gnu)
18717 version_type=linux
18718 need_lib_prefix=no
18719 need_version=no
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 soname_spec='${libname}${release}${shared_ext}$major'
18722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=no
18725 # This implies no fast_install, which is unacceptable.
18726 # Some rework will be needed to allow for fast_install
18727 # before this can be enabled.
18728 hardcode_into_libs=yes
18729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18731
18732 # Append ld.so.conf contents to the search path
18733 if test -f /etc/ld.so.conf; then
18734 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' ' '`
18735 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18736 fi
18737
18738 # We used to test for /lib/ld.so.1 and disable shared libraries on
18739 # powerpc, because MkLinux only supported shared libraries with the
18740 # GNU dynamic linker. Since this was broken with cross compilers,
18741 # most powerpc-linux boxes support dynamic linking these days and
18742 # people can always --disable-shared, the test was removed, and we
18743 # assume the GNU/Linux dynamic linker is in use.
18744 dynamic_linker='GNU/Linux ld.so'
18745 ;;
18746
18747 netbsd*)
18748 version_type=sunos
18749 need_lib_prefix=no
18750 need_version=no
18751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18754 dynamic_linker='NetBSD (a.out) ld.so'
18755 else
18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18757 soname_spec='${libname}${release}${shared_ext}$major'
18758 dynamic_linker='NetBSD ld.elf_so'
18759 fi
18760 shlibpath_var=LD_LIBRARY_PATH
18761 shlibpath_overrides_runpath=yes
18762 hardcode_into_libs=yes
18763 ;;
18764
18765 newsos6)
18766 version_type=linux
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 shlibpath_overrides_runpath=yes
18770 ;;
18771
18772 nto-qnx*)
18773 version_type=linux
18774 need_lib_prefix=no
18775 need_version=no
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 soname_spec='${libname}${release}${shared_ext}$major'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=yes
18780 ;;
18781
18782 openbsd*)
18783 version_type=sunos
18784 sys_lib_dlsearch_path_spec="/usr/lib"
18785 need_lib_prefix=no
18786 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18787 case $host_os in
18788 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18789 *) need_version=no ;;
18790 esac
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18793 shlibpath_var=LD_LIBRARY_PATH
18794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18795 case $host_os in
18796 openbsd2.[89] | openbsd2.[89].*)
18797 shlibpath_overrides_runpath=no
18798 ;;
18799 *)
18800 shlibpath_overrides_runpath=yes
18801 ;;
18802 esac
18803 else
18804 shlibpath_overrides_runpath=yes
18805 fi
18806 ;;
18807
18808 os2*)
18809 libname_spec='$name'
18810 shrext_cmds=".dll"
18811 need_lib_prefix=no
18812 library_names_spec='$libname${shared_ext} $libname.a'
18813 dynamic_linker='OS/2 ld.exe'
18814 shlibpath_var=LIBPATH
18815 ;;
18816
18817 osf3* | osf4* | osf5*)
18818 version_type=osf
18819 need_lib_prefix=no
18820 need_version=no
18821 soname_spec='${libname}${release}${shared_ext}$major'
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18826 ;;
18827
18828 rdos*)
18829 dynamic_linker=no
18830 ;;
18831
18832 solaris*)
18833 version_type=linux
18834 need_lib_prefix=no
18835 need_version=no
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18839 shlibpath_overrides_runpath=yes
18840 hardcode_into_libs=yes
18841 # ldd complains unless libraries are executable
18842 postinstall_cmds='chmod +x $lib'
18843 ;;
18844
18845 sunos4*)
18846 version_type=sunos
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 shlibpath_overrides_runpath=yes
18851 if test "$with_gnu_ld" = yes; then
18852 need_lib_prefix=no
18853 fi
18854 need_version=yes
18855 ;;
18856
18857 sysv4 | sysv4.3*)
18858 version_type=linux
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18860 soname_spec='${libname}${release}${shared_ext}$major'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 case $host_vendor in
18863 sni)
18864 shlibpath_overrides_runpath=no
18865 need_lib_prefix=no
18866 export_dynamic_flag_spec='${wl}-Blargedynsym'
18867 runpath_var=LD_RUN_PATH
18868 ;;
18869 siemens)
18870 need_lib_prefix=no
18871 ;;
18872 motorola)
18873 need_lib_prefix=no
18874 need_version=no
18875 shlibpath_overrides_runpath=no
18876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18877 ;;
18878 esac
18879 ;;
18880
18881 sysv4*MP*)
18882 if test -d /usr/nec ;then
18883 version_type=linux
18884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18885 soname_spec='$libname${shared_ext}.$major'
18886 shlibpath_var=LD_LIBRARY_PATH
18887 fi
18888 ;;
18889
18890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18891 version_type=freebsd-elf
18892 need_lib_prefix=no
18893 need_version=no
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18895 soname_spec='${libname}${release}${shared_ext}$major'
18896 shlibpath_var=LD_LIBRARY_PATH
18897 hardcode_into_libs=yes
18898 if test "$with_gnu_ld" = yes; then
18899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18900 shlibpath_overrides_runpath=no
18901 else
18902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18903 shlibpath_overrides_runpath=yes
18904 case $host_os in
18905 sco3.2v5*)
18906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18907 ;;
18908 esac
18909 fi
18910 sys_lib_dlsearch_path_spec='/usr/lib'
18911 ;;
18912
18913 uts4*)
18914 version_type=linux
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916 soname_spec='${libname}${release}${shared_ext}$major'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 ;;
18919
18920 *)
18921 dynamic_linker=no
18922 ;;
18923 esac
18924 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18925 $as_echo "$dynamic_linker" >&6; }
18926 test "$dynamic_linker" = no && can_build_shared=no
18927
18928 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18929 $as_echo_n "(cached) " >&6
18930 else
18931 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18932 fi
18933
18934 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18935 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18936 $as_echo_n "(cached) " >&6
18937 else
18938 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18939 fi
18940
18941 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18942
18943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18944 if test "$GCC" = yes; then
18945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18946 fi
18947
18948 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18949 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18950 hardcode_action_GCJ=
18951 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18952 test -n "$runpath_var_GCJ" || \
18953 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18954
18955 # We can hardcode non-existant directories.
18956 if test "$hardcode_direct_GCJ" != no &&
18957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18958 # have to relink, otherwise we might link with an installed library
18959 # when we should be linking with a yet-to-be-installed one
18960 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18961 test "$hardcode_minus_L_GCJ" != no; then
18962 # Linking always hardcodes the temporary library directory.
18963 hardcode_action_GCJ=relink
18964 else
18965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18966 hardcode_action_GCJ=immediate
18967 fi
18968 else
18969 # We cannot hardcode anything, or else we can only hardcode existing
18970 # directories.
18971 hardcode_action_GCJ=unsupported
18972 fi
18973 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18974 $as_echo "$hardcode_action_GCJ" >&6; }
18975
18976 if test "$hardcode_action_GCJ" = relink; then
18977 # Fast installation is not supported
18978 enable_fast_install=no
18979 elif test "$shlibpath_overrides_runpath" = yes ||
18980 test "$enable_shared" = no; then
18981 # Fast installation is not necessary
18982 enable_fast_install=needless
18983 fi
18984
18985
18986 # The else clause should only fire when bootstrapping the
18987 # libtool distribution, otherwise you forgot to ship ltmain.sh
18988 # with your package, and you will get complaints that there are
18989 # no rules to generate ltmain.sh.
18990 if test -f "$ltmain"; then
18991 # See if we are running on zsh, and set the options which allow our commands through
18992 # without removal of \ escapes.
18993 if test -n "${ZSH_VERSION+set}" ; then
18994 setopt NO_GLOB_SUBST
18995 fi
18996 # Now quote all the things that may contain metacharacters while being
18997 # careful not to overquote the AC_SUBSTed values. We take copies of the
18998 # variables and quote the copies for generation of the libtool script.
18999 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19000 SED SHELL STRIP \
19001 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19002 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19003 deplibs_check_method reload_flag reload_cmds need_locks \
19004 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19005 lt_cv_sys_global_symbol_to_c_name_address \
19006 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19007 old_postinstall_cmds old_postuninstall_cmds \
19008 compiler_GCJ \
19009 CC_GCJ \
19010 LD_GCJ \
19011 lt_prog_compiler_wl_GCJ \
19012 lt_prog_compiler_pic_GCJ \
19013 lt_prog_compiler_static_GCJ \
19014 lt_prog_compiler_no_builtin_flag_GCJ \
19015 export_dynamic_flag_spec_GCJ \
19016 thread_safe_flag_spec_GCJ \
19017 whole_archive_flag_spec_GCJ \
19018 enable_shared_with_static_runtimes_GCJ \
19019 old_archive_cmds_GCJ \
19020 old_archive_from_new_cmds_GCJ \
19021 predep_objects_GCJ \
19022 postdep_objects_GCJ \
19023 predeps_GCJ \
19024 postdeps_GCJ \
19025 compiler_lib_search_path_GCJ \
19026 compiler_lib_search_dirs_GCJ \
19027 archive_cmds_GCJ \
19028 archive_expsym_cmds_GCJ \
19029 postinstall_cmds_GCJ \
19030 postuninstall_cmds_GCJ \
19031 old_archive_from_expsyms_cmds_GCJ \
19032 allow_undefined_flag_GCJ \
19033 no_undefined_flag_GCJ \
19034 export_symbols_cmds_GCJ \
19035 hardcode_libdir_flag_spec_GCJ \
19036 hardcode_libdir_flag_spec_ld_GCJ \
19037 hardcode_libdir_separator_GCJ \
19038 hardcode_automatic_GCJ \
19039 module_cmds_GCJ \
19040 module_expsym_cmds_GCJ \
19041 lt_cv_prog_compiler_c_o_GCJ \
19042 fix_srcfile_path_GCJ \
19043 exclude_expsyms_GCJ \
19044 include_expsyms_GCJ; do
19045
19046 case $var in
19047 old_archive_cmds_GCJ | \
19048 old_archive_from_new_cmds_GCJ | \
19049 archive_cmds_GCJ | \
19050 archive_expsym_cmds_GCJ | \
19051 module_cmds_GCJ | \
19052 module_expsym_cmds_GCJ | \
19053 old_archive_from_expsyms_cmds_GCJ | \
19054 export_symbols_cmds_GCJ | \
19055 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19056 postinstall_cmds | postuninstall_cmds | \
19057 old_postinstall_cmds | old_postuninstall_cmds | \
19058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19059 # Double-quote double-evaled strings.
19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19061 ;;
19062 *)
19063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19064 ;;
19065 esac
19066 done
19067
19068 case $lt_echo in
19069 *'\$0 --fallback-echo"')
19070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19071 ;;
19072 esac
19073
19074 cfgfile="$ofile"
19075
19076 cat <<__EOF__ >> "$cfgfile"
19077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19078
19079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19080
19081 # Shell to use when invoking shell scripts.
19082 SHELL=$lt_SHELL
19083
19084 # Whether or not to build shared libraries.
19085 build_libtool_libs=$enable_shared
19086
19087 # Whether or not to build static libraries.
19088 build_old_libs=$enable_static
19089
19090 # Whether or not to add -lc for building shared libraries.
19091 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19092
19093 # Whether or not to disallow shared libs when runtime libs are static
19094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19095
19096 # Whether or not to optimize for fast installation.
19097 fast_install=$enable_fast_install
19098
19099 # The host system.
19100 host_alias=$host_alias
19101 host=$host
19102 host_os=$host_os
19103
19104 # The build system.
19105 build_alias=$build_alias
19106 build=$build
19107 build_os=$build_os
19108
19109 # An echo program that does not interpret backslashes.
19110 echo=$lt_echo
19111
19112 # The archiver.
19113 AR=$lt_AR
19114 AR_FLAGS=$lt_AR_FLAGS
19115
19116 # A C compiler.
19117 LTCC=$lt_LTCC
19118
19119 # LTCC compiler flags.
19120 LTCFLAGS=$lt_LTCFLAGS
19121
19122 # A language-specific compiler.
19123 CC=$lt_compiler_GCJ
19124
19125 # Is the compiler the GNU C compiler?
19126 with_gcc=$GCC_GCJ
19127
19128 # An ERE matcher.
19129 EGREP=$lt_EGREP
19130
19131 # The linker used to build libraries.
19132 LD=$lt_LD_GCJ
19133
19134 # Whether we need hard or soft links.
19135 LN_S=$lt_LN_S
19136
19137 # A BSD-compatible nm program.
19138 NM=$lt_NM
19139
19140 # A symbol stripping program
19141 STRIP=$lt_STRIP
19142
19143 # Used to examine libraries when file_magic_cmd begins "file"
19144 MAGIC_CMD=$MAGIC_CMD
19145
19146 # Used on cygwin: DLL creation program.
19147 DLLTOOL="$DLLTOOL"
19148
19149 # Used on cygwin: object dumper.
19150 OBJDUMP="$OBJDUMP"
19151
19152 # Used on cygwin: assembler.
19153 AS="$AS"
19154
19155 # The name of the directory that contains temporary libtool files.
19156 objdir=$objdir
19157
19158 # How to create reloadable object files.
19159 reload_flag=$lt_reload_flag
19160 reload_cmds=$lt_reload_cmds
19161
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl_GCJ
19164
19165 # Object file suffix (normally "o").
19166 objext="$ac_objext"
19167
19168 # Old archive suffix (normally "a").
19169 libext="$libext"
19170
19171 # Shared library suffix (normally ".so").
19172 shrext_cmds='$shrext_cmds'
19173
19174 # Executable file suffix (normally "").
19175 exeext="$exeext"
19176
19177 # Additional compiler flags for building library objects.
19178 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19179 pic_mode=$pic_mode
19180
19181 # What is the maximum length of a command?
19182 max_cmd_len=$lt_cv_sys_max_cmd_len
19183
19184 # Does compiler simultaneously support -c and -o options?
19185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19186
19187 # Must we lock files when doing compilation?
19188 need_locks=$lt_need_locks
19189
19190 # Do we need the lib prefix for modules?
19191 need_lib_prefix=$need_lib_prefix
19192
19193 # Do we need a version for libraries?
19194 need_version=$need_version
19195
19196 # Whether dlopen is supported.
19197 dlopen_support=$enable_dlopen
19198
19199 # Whether dlopen of programs is supported.
19200 dlopen_self=$enable_dlopen_self
19201
19202 # Whether dlopen of statically linked programs is supported.
19203 dlopen_self_static=$enable_dlopen_self_static
19204
19205 # Compiler flag to prevent dynamic linking.
19206 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19207
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19210
19211 # Compiler flag to allow reflexive dlopens.
19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19213
19214 # Compiler flag to generate shared objects directly from archives.
19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19216
19217 # Compiler flag to generate thread-safe objects.
19218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19219
19220 # Library versioning type.
19221 version_type=$version_type
19222
19223 # Format of library name prefix.
19224 libname_spec=$lt_libname_spec
19225
19226 # List of archive names. First name is the real one, the rest are links.
19227 # The last name is the one that the linker finds with -lNAME.
19228 library_names_spec=$lt_library_names_spec
19229
19230 # The coded name of the library, if different from the real name.
19231 soname_spec=$lt_soname_spec
19232
19233 # Commands used to build and install an old-style archive.
19234 RANLIB=$lt_RANLIB
19235 old_archive_cmds=$lt_old_archive_cmds_GCJ
19236 old_postinstall_cmds=$lt_old_postinstall_cmds
19237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19238
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19241
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19244
19245 # Commands used to build and install a shared archive.
19246 archive_cmds=$lt_archive_cmds_GCJ
19247 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19248 postinstall_cmds=$lt_postinstall_cmds
19249 postuninstall_cmds=$lt_postuninstall_cmds
19250
19251 # Commands used to build a loadable module (assumed same as above if empty)
19252 module_cmds=$lt_module_cmds_GCJ
19253 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19254
19255 # Commands to strip libraries.
19256 old_striplib=$lt_old_striplib
19257 striplib=$lt_striplib
19258
19259 # Dependencies to place before the objects being linked to create a
19260 # shared library.
19261 predep_objects=$lt_predep_objects_GCJ
19262
19263 # Dependencies to place after the objects being linked to create a
19264 # shared library.
19265 postdep_objects=$lt_postdep_objects_GCJ
19266
19267 # Dependencies to place before the objects being linked to create a
19268 # shared library.
19269 predeps=$lt_predeps_GCJ
19270
19271 # Dependencies to place after the objects being linked to create a
19272 # shared library.
19273 postdeps=$lt_postdeps_GCJ
19274
19275 # The directories searched by this compiler when creating a shared
19276 # library
19277 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19278
19279 # The library search path used internally by the compiler when linking
19280 # a shared library.
19281 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19282
19283 # Method to check whether dependent libraries are shared objects.
19284 deplibs_check_method=$lt_deplibs_check_method
19285
19286 # Command to use when deplibs_check_method == file_magic.
19287 file_magic_cmd=$lt_file_magic_cmd
19288
19289 # Flag that allows shared libraries with undefined symbols to be built.
19290 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19291
19292 # Flag that forces no undefined symbols.
19293 no_undefined_flag=$lt_no_undefined_flag_GCJ
19294
19295 # Commands used to finish a libtool library installation in a directory.
19296 finish_cmds=$lt_finish_cmds
19297
19298 # Same as above, but a single script fragment to be evaled but not shown.
19299 finish_eval=$lt_finish_eval
19300
19301 # Take the output of nm and produce a listing of raw symbols and C names.
19302 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19303
19304 # Transform the output of nm in a proper C declaration
19305 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19306
19307 # Transform the output of nm in a C name address pair
19308 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19309
19310 # This is the shared library runtime path variable.
19311 runpath_var=$runpath_var
19312
19313 # This is the shared library path variable.
19314 shlibpath_var=$shlibpath_var
19315
19316 # Is shlibpath searched before the hard-coded library search path?
19317 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19318
19319 # How to hardcode a shared library path into an executable.
19320 hardcode_action=$hardcode_action_GCJ
19321
19322 # Whether we should hardcode library paths into libraries.
19323 hardcode_into_libs=$hardcode_into_libs
19324
19325 # Flag to hardcode \$libdir into a binary during linking.
19326 # This must work even if \$libdir does not exist.
19327 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19328
19329 # If ld is used when linking, flag to hardcode \$libdir into
19330 # a binary during linking. This must work even if \$libdir does
19331 # not exist.
19332 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19333
19334 # Whether we need a single -rpath flag with a separated argument.
19335 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19336
19337 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19338 # resulting binary.
19339 hardcode_direct=$hardcode_direct_GCJ
19340
19341 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19342 # resulting binary.
19343 hardcode_minus_L=$hardcode_minus_L_GCJ
19344
19345 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19346 # the resulting binary.
19347 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19348
19349 # Set to yes if building a shared library automatically hardcodes DIR into the library
19350 # and all subsequent libraries and executables linked against it.
19351 hardcode_automatic=$hardcode_automatic_GCJ
19352
19353 # Variables whose values should be saved in libtool wrapper scripts and
19354 # restored at relink time.
19355 variables_saved_for_relink="$variables_saved_for_relink"
19356
19357 # Whether libtool must link a program against all its dependency libraries.
19358 link_all_deplibs=$link_all_deplibs_GCJ
19359
19360 # Compile-time system search path for libraries
19361 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19362
19363 # Run-time system search path for libraries
19364 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19365
19366 # Fix the shell variable \$srcfile for the compiler.
19367 fix_srcfile_path=$lt_fix_srcfile_path
19368
19369 # Set to yes if exported symbols are required.
19370 always_export_symbols=$always_export_symbols_GCJ
19371
19372 # The commands to list exported symbols.
19373 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19374
19375 # The commands to extract the exported symbol list from a shared archive.
19376 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19377
19378 # Symbols that should not be listed in the preloaded symbols.
19379 exclude_expsyms=$lt_exclude_expsyms_GCJ
19380
19381 # Symbols that must always be exported.
19382 include_expsyms=$lt_include_expsyms_GCJ
19383
19384 # ### END LIBTOOL TAG CONFIG: $tagname
19385
19386 __EOF__
19387
19388
19389 else
19390 # If there is no Makefile yet, we rely on a make rule to execute
19391 # `config.status --recheck' to rerun these tests and create the
19392 # libtool script then.
19393 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19394 if test -f "$ltmain_in"; then
19395 test -f Makefile && make "$ltmain"
19396 fi
19397 fi
19398
19399
19400 ac_ext=c
19401 ac_cpp='$CPP $CPPFLAGS'
19402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19405
19406 CC="$lt_save_CC"
19407
19408 else
19409 tagname=""
19410 fi
19411 ;;
19412
19413 RC)
19414
19415
19416 # Source file extension for RC test sources.
19417 ac_ext=rc
19418
19419 # Object file extension for compiled RC test sources.
19420 objext=o
19421 objext_RC=$objext
19422
19423 # Code to be used in simple compile tests
19424 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19425
19426 # Code to be used in simple link tests
19427 lt_simple_link_test_code="$lt_simple_compile_test_code"
19428
19429 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19430
19431 # If no C compiler was specified, use CC.
19432 LTCC=${LTCC-"$CC"}
19433
19434 # If no C compiler flags were specified, use CFLAGS.
19435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19436
19437 # Allow CC to be a program name with arguments.
19438 compiler=$CC
19439
19440
19441 # save warnings/boilerplate of simple test code
19442 ac_outfile=conftest.$ac_objext
19443 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19444 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19445 _lt_compiler_boilerplate=`cat conftest.err`
19446 $rm conftest*
19447
19448 ac_outfile=conftest.$ac_objext
19449 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19450 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19451 _lt_linker_boilerplate=`cat conftest.err`
19452 $rm -r conftest*
19453
19454
19455 # Allow CC to be a program name with arguments.
19456 lt_save_CC="$CC"
19457 CC=${RC-"windres"}
19458 compiler=$CC
19459 compiler_RC=$CC
19460 for cc_temp in $compiler""; do
19461 case $cc_temp in
19462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19464 \-*) ;;
19465 *) break;;
19466 esac
19467 done
19468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19469
19470 lt_cv_prog_compiler_c_o_RC=yes
19471
19472 # The else clause should only fire when bootstrapping the
19473 # libtool distribution, otherwise you forgot to ship ltmain.sh
19474 # with your package, and you will get complaints that there are
19475 # no rules to generate ltmain.sh.
19476 if test -f "$ltmain"; then
19477 # See if we are running on zsh, and set the options which allow our commands through
19478 # without removal of \ escapes.
19479 if test -n "${ZSH_VERSION+set}" ; then
19480 setopt NO_GLOB_SUBST
19481 fi
19482 # Now quote all the things that may contain metacharacters while being
19483 # careful not to overquote the AC_SUBSTed values. We take copies of the
19484 # variables and quote the copies for generation of the libtool script.
19485 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19486 SED SHELL STRIP \
19487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19489 deplibs_check_method reload_flag reload_cmds need_locks \
19490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19491 lt_cv_sys_global_symbol_to_c_name_address \
19492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19493 old_postinstall_cmds old_postuninstall_cmds \
19494 compiler_RC \
19495 CC_RC \
19496 LD_RC \
19497 lt_prog_compiler_wl_RC \
19498 lt_prog_compiler_pic_RC \
19499 lt_prog_compiler_static_RC \
19500 lt_prog_compiler_no_builtin_flag_RC \
19501 export_dynamic_flag_spec_RC \
19502 thread_safe_flag_spec_RC \
19503 whole_archive_flag_spec_RC \
19504 enable_shared_with_static_runtimes_RC \
19505 old_archive_cmds_RC \
19506 old_archive_from_new_cmds_RC \
19507 predep_objects_RC \
19508 postdep_objects_RC \
19509 predeps_RC \
19510 postdeps_RC \
19511 compiler_lib_search_path_RC \
19512 compiler_lib_search_dirs_RC \
19513 archive_cmds_RC \
19514 archive_expsym_cmds_RC \
19515 postinstall_cmds_RC \
19516 postuninstall_cmds_RC \
19517 old_archive_from_expsyms_cmds_RC \
19518 allow_undefined_flag_RC \
19519 no_undefined_flag_RC \
19520 export_symbols_cmds_RC \
19521 hardcode_libdir_flag_spec_RC \
19522 hardcode_libdir_flag_spec_ld_RC \
19523 hardcode_libdir_separator_RC \
19524 hardcode_automatic_RC \
19525 module_cmds_RC \
19526 module_expsym_cmds_RC \
19527 lt_cv_prog_compiler_c_o_RC \
19528 fix_srcfile_path_RC \
19529 exclude_expsyms_RC \
19530 include_expsyms_RC; do
19531
19532 case $var in
19533 old_archive_cmds_RC | \
19534 old_archive_from_new_cmds_RC | \
19535 archive_cmds_RC | \
19536 archive_expsym_cmds_RC | \
19537 module_cmds_RC | \
19538 module_expsym_cmds_RC | \
19539 old_archive_from_expsyms_cmds_RC | \
19540 export_symbols_cmds_RC | \
19541 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19542 postinstall_cmds | postuninstall_cmds | \
19543 old_postinstall_cmds | old_postuninstall_cmds | \
19544 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19545 # Double-quote double-evaled strings.
19546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19547 ;;
19548 *)
19549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19550 ;;
19551 esac
19552 done
19553
19554 case $lt_echo in
19555 *'\$0 --fallback-echo"')
19556 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19557 ;;
19558 esac
19559
19560 cfgfile="$ofile"
19561
19562 cat <<__EOF__ >> "$cfgfile"
19563 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19564
19565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19566
19567 # Shell to use when invoking shell scripts.
19568 SHELL=$lt_SHELL
19569
19570 # Whether or not to build shared libraries.
19571 build_libtool_libs=$enable_shared
19572
19573 # Whether or not to build static libraries.
19574 build_old_libs=$enable_static
19575
19576 # Whether or not to add -lc for building shared libraries.
19577 build_libtool_need_lc=$archive_cmds_need_lc_RC
19578
19579 # Whether or not to disallow shared libs when runtime libs are static
19580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19581
19582 # Whether or not to optimize for fast installation.
19583 fast_install=$enable_fast_install
19584
19585 # The host system.
19586 host_alias=$host_alias
19587 host=$host
19588 host_os=$host_os
19589
19590 # The build system.
19591 build_alias=$build_alias
19592 build=$build
19593 build_os=$build_os
19594
19595 # An echo program that does not interpret backslashes.
19596 echo=$lt_echo
19597
19598 # The archiver.
19599 AR=$lt_AR
19600 AR_FLAGS=$lt_AR_FLAGS
19601
19602 # A C compiler.
19603 LTCC=$lt_LTCC
19604
19605 # LTCC compiler flags.
19606 LTCFLAGS=$lt_LTCFLAGS
19607
19608 # A language-specific compiler.
19609 CC=$lt_compiler_RC
19610
19611 # Is the compiler the GNU C compiler?
19612 with_gcc=$GCC_RC
19613
19614 # An ERE matcher.
19615 EGREP=$lt_EGREP
19616
19617 # The linker used to build libraries.
19618 LD=$lt_LD_RC
19619
19620 # Whether we need hard or soft links.
19621 LN_S=$lt_LN_S
19622
19623 # A BSD-compatible nm program.
19624 NM=$lt_NM
19625
19626 # A symbol stripping program
19627 STRIP=$lt_STRIP
19628
19629 # Used to examine libraries when file_magic_cmd begins "file"
19630 MAGIC_CMD=$MAGIC_CMD
19631
19632 # Used on cygwin: DLL creation program.
19633 DLLTOOL="$DLLTOOL"
19634
19635 # Used on cygwin: object dumper.
19636 OBJDUMP="$OBJDUMP"
19637
19638 # Used on cygwin: assembler.
19639 AS="$AS"
19640
19641 # The name of the directory that contains temporary libtool files.
19642 objdir=$objdir
19643
19644 # How to create reloadable object files.
19645 reload_flag=$lt_reload_flag
19646 reload_cmds=$lt_reload_cmds
19647
19648 # How to pass a linker flag through the compiler.
19649 wl=$lt_lt_prog_compiler_wl_RC
19650
19651 # Object file suffix (normally "o").
19652 objext="$ac_objext"
19653
19654 # Old archive suffix (normally "a").
19655 libext="$libext"
19656
19657 # Shared library suffix (normally ".so").
19658 shrext_cmds='$shrext_cmds'
19659
19660 # Executable file suffix (normally "").
19661 exeext="$exeext"
19662
19663 # Additional compiler flags for building library objects.
19664 pic_flag=$lt_lt_prog_compiler_pic_RC
19665 pic_mode=$pic_mode
19666
19667 # What is the maximum length of a command?
19668 max_cmd_len=$lt_cv_sys_max_cmd_len
19669
19670 # Does compiler simultaneously support -c and -o options?
19671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19672
19673 # Must we lock files when doing compilation?
19674 need_locks=$lt_need_locks
19675
19676 # Do we need the lib prefix for modules?
19677 need_lib_prefix=$need_lib_prefix
19678
19679 # Do we need a version for libraries?
19680 need_version=$need_version
19681
19682 # Whether dlopen is supported.
19683 dlopen_support=$enable_dlopen
19684
19685 # Whether dlopen of programs is supported.
19686 dlopen_self=$enable_dlopen_self
19687
19688 # Whether dlopen of statically linked programs is supported.
19689 dlopen_self_static=$enable_dlopen_self_static
19690
19691 # Compiler flag to prevent dynamic linking.
19692 link_static_flag=$lt_lt_prog_compiler_static_RC
19693
19694 # Compiler flag to turn off builtin functions.
19695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19696
19697 # Compiler flag to allow reflexive dlopens.
19698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19699
19700 # Compiler flag to generate shared objects directly from archives.
19701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19702
19703 # Compiler flag to generate thread-safe objects.
19704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19705
19706 # Library versioning type.
19707 version_type=$version_type
19708
19709 # Format of library name prefix.
19710 libname_spec=$lt_libname_spec
19711
19712 # List of archive names. First name is the real one, the rest are links.
19713 # The last name is the one that the linker finds with -lNAME.
19714 library_names_spec=$lt_library_names_spec
19715
19716 # The coded name of the library, if different from the real name.
19717 soname_spec=$lt_soname_spec
19718
19719 # Commands used to build and install an old-style archive.
19720 RANLIB=$lt_RANLIB
19721 old_archive_cmds=$lt_old_archive_cmds_RC
19722 old_postinstall_cmds=$lt_old_postinstall_cmds
19723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19724
19725 # Create an old-style archive from a shared archive.
19726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19727
19728 # Create a temporary old-style archive to link instead of a shared archive.
19729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19730
19731 # Commands used to build and install a shared archive.
19732 archive_cmds=$lt_archive_cmds_RC
19733 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19734 postinstall_cmds=$lt_postinstall_cmds
19735 postuninstall_cmds=$lt_postuninstall_cmds
19736
19737 # Commands used to build a loadable module (assumed same as above if empty)
19738 module_cmds=$lt_module_cmds_RC
19739 module_expsym_cmds=$lt_module_expsym_cmds_RC
19740
19741 # Commands to strip libraries.
19742 old_striplib=$lt_old_striplib
19743 striplib=$lt_striplib
19744
19745 # Dependencies to place before the objects being linked to create a
19746 # shared library.
19747 predep_objects=$lt_predep_objects_RC
19748
19749 # Dependencies to place after the objects being linked to create a
19750 # shared library.
19751 postdep_objects=$lt_postdep_objects_RC
19752
19753 # Dependencies to place before the objects being linked to create a
19754 # shared library.
19755 predeps=$lt_predeps_RC
19756
19757 # Dependencies to place after the objects being linked to create a
19758 # shared library.
19759 postdeps=$lt_postdeps_RC
19760
19761 # The directories searched by this compiler when creating a shared
19762 # library
19763 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19764
19765 # The library search path used internally by the compiler when linking
19766 # a shared library.
19767 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19768
19769 # Method to check whether dependent libraries are shared objects.
19770 deplibs_check_method=$lt_deplibs_check_method
19771
19772 # Command to use when deplibs_check_method == file_magic.
19773 file_magic_cmd=$lt_file_magic_cmd
19774
19775 # Flag that allows shared libraries with undefined symbols to be built.
19776 allow_undefined_flag=$lt_allow_undefined_flag_RC
19777
19778 # Flag that forces no undefined symbols.
19779 no_undefined_flag=$lt_no_undefined_flag_RC
19780
19781 # Commands used to finish a libtool library installation in a directory.
19782 finish_cmds=$lt_finish_cmds
19783
19784 # Same as above, but a single script fragment to be evaled but not shown.
19785 finish_eval=$lt_finish_eval
19786
19787 # Take the output of nm and produce a listing of raw symbols and C names.
19788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19789
19790 # Transform the output of nm in a proper C declaration
19791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19792
19793 # Transform the output of nm in a C name address pair
19794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19795
19796 # This is the shared library runtime path variable.
19797 runpath_var=$runpath_var
19798
19799 # This is the shared library path variable.
19800 shlibpath_var=$shlibpath_var
19801
19802 # Is shlibpath searched before the hard-coded library search path?
19803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19804
19805 # How to hardcode a shared library path into an executable.
19806 hardcode_action=$hardcode_action_RC
19807
19808 # Whether we should hardcode library paths into libraries.
19809 hardcode_into_libs=$hardcode_into_libs
19810
19811 # Flag to hardcode \$libdir into a binary during linking.
19812 # This must work even if \$libdir does not exist.
19813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19814
19815 # If ld is used when linking, flag to hardcode \$libdir into
19816 # a binary during linking. This must work even if \$libdir does
19817 # not exist.
19818 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19819
19820 # Whether we need a single -rpath flag with a separated argument.
19821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19822
19823 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19824 # resulting binary.
19825 hardcode_direct=$hardcode_direct_RC
19826
19827 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19828 # resulting binary.
19829 hardcode_minus_L=$hardcode_minus_L_RC
19830
19831 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19832 # the resulting binary.
19833 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19834
19835 # Set to yes if building a shared library automatically hardcodes DIR into the library
19836 # and all subsequent libraries and executables linked against it.
19837 hardcode_automatic=$hardcode_automatic_RC
19838
19839 # Variables whose values should be saved in libtool wrapper scripts and
19840 # restored at relink time.
19841 variables_saved_for_relink="$variables_saved_for_relink"
19842
19843 # Whether libtool must link a program against all its dependency libraries.
19844 link_all_deplibs=$link_all_deplibs_RC
19845
19846 # Compile-time system search path for libraries
19847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19848
19849 # Run-time system search path for libraries
19850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19851
19852 # Fix the shell variable \$srcfile for the compiler.
19853 fix_srcfile_path=$lt_fix_srcfile_path
19854
19855 # Set to yes if exported symbols are required.
19856 always_export_symbols=$always_export_symbols_RC
19857
19858 # The commands to list exported symbols.
19859 export_symbols_cmds=$lt_export_symbols_cmds_RC
19860
19861 # The commands to extract the exported symbol list from a shared archive.
19862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19863
19864 # Symbols that should not be listed in the preloaded symbols.
19865 exclude_expsyms=$lt_exclude_expsyms_RC
19866
19867 # Symbols that must always be exported.
19868 include_expsyms=$lt_include_expsyms_RC
19869
19870 # ### END LIBTOOL TAG CONFIG: $tagname
19871
19872 __EOF__
19873
19874
19875 else
19876 # If there is no Makefile yet, we rely on a make rule to execute
19877 # `config.status --recheck' to rerun these tests and create the
19878 # libtool script then.
19879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19880 if test -f "$ltmain_in"; then
19881 test -f Makefile && make "$ltmain"
19882 fi
19883 fi
19884
19885
19886 ac_ext=c
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892 CC="$lt_save_CC"
19893
19894 ;;
19895
19896 *)
19897 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19898 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19899 { (exit 1); exit 1; }; }
19900 ;;
19901 esac
19902
19903 # Append the new tag name to the list of available tags.
19904 if test -n "$tagname" ; then
19905 available_tags="$available_tags $tagname"
19906 fi
19907 fi
19908 done
19909 IFS="$lt_save_ifs"
19910
19911 # Now substitute the updated list of available tags.
19912 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19913 mv "${ofile}T" "$ofile"
19914 chmod +x "$ofile"
19915 else
19916 rm -f "${ofile}T"
19917 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19918 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19919 { (exit 1); exit 1; }; }
19920 fi
19921 fi
19922
19923
19924
19925 # This can be used to rebuild libtool when needed
19926 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19927
19928 # Always use our own libtool.
19929 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19930
19931 # Prevent multiple expansion
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19953 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19954 if test "${ac_cv_c_const+set}" = set; then
19955 $as_echo_n "(cached) " >&6
19956 else
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h. */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963
19964 int
19965 main ()
19966 {
19967 /* FIXME: Include the comments suggested by Paul. */
19968 #ifndef __cplusplus
19969 /* Ultrix mips cc rejects this. */
19970 typedef int charset[2];
19971 const charset cs;
19972 /* SunOS 4.1.1 cc rejects this. */
19973 char const *const *pcpcc;
19974 char **ppc;
19975 /* NEC SVR4.0.2 mips cc rejects this. */
19976 struct point {int x, y;};
19977 static struct point const zero = {0,0};
19978 /* AIX XL C 1.02.0.0 rejects this.
19979 It does not let you subtract one const X* pointer from another in
19980 an arm of an if-expression whose if-part is not a constant
19981 expression */
19982 const char *g = "string";
19983 pcpcc = &g + (g ? g-g : 0);
19984 /* HPUX 7.0 cc rejects these. */
19985 ++pcpcc;
19986 ppc = (char**) pcpcc;
19987 pcpcc = (char const *const *) ppc;
19988 { /* SCO 3.2v4 cc rejects this. */
19989 char *t;
19990 char const *s = 0 ? (char *) 0 : (char const *) 0;
19991
19992 *t++ = 0;
19993 if (s) return 0;
19994 }
19995 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19996 int x[] = {25, 17};
19997 const int *foo = &x[0];
19998 ++foo;
19999 }
20000 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20001 typedef const int *iptr;
20002 iptr p = 0;
20003 ++p;
20004 }
20005 { /* AIX XL C 1.02.0.0 rejects this saying
20006 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20007 struct s { int j; const int *ap[3]; };
20008 struct s *b; b->j = 5;
20009 }
20010 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20011 const int foo = 10;
20012 if (!foo) return 0;
20013 }
20014 return !cs[0] && !zero.x;
20015 #endif
20016
20017 ;
20018 return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (ac_try="$ac_compile"
20023 case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20026 esac
20027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20028 $as_echo "$ac_try_echo") >&5
20029 (eval "$ac_compile") 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } && {
20036 test -z "$ac_c_werror_flag" ||
20037 test ! -s conftest.err
20038 } && test -s conftest.$ac_objext; then
20039 ac_cv_c_const=yes
20040 else
20041 $as_echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ac_cv_c_const=no
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048 fi
20049 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20050 $as_echo "$ac_cv_c_const" >&6; }
20051 if test $ac_cv_c_const = no; then
20052
20053 cat >>confdefs.h <<\_ACEOF
20054 #define const /**/
20055 _ACEOF
20056
20057 fi
20058
20059
20060
20061
20062
20063
20064 ac_header_dirent=no
20065 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20066 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20067 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20068 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20070 $as_echo_n "(cached) " >&6
20071 else
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <sys/types.h>
20079 #include <$ac_hdr>
20080
20081 int
20082 main ()
20083 {
20084 if ((DIR *) 0)
20085 return 0;
20086 ;
20087 return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20097 $as_echo "$ac_try_echo") >&5
20098 (eval "$ac_compile") 2>conftest.er1
20099 ac_status=$?
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
20103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } && {
20105 test -z "$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20107 } && test -s conftest.$ac_objext; then
20108 eval "$as_ac_Header=yes"
20109 else
20110 $as_echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113 eval "$as_ac_Header=no"
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 fi
20118 ac_res=`eval 'as_val=${'$as_ac_Header'}
20119 $as_echo "$as_val"'`
20120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20121 $as_echo "$ac_res" >&6; }
20122 as_val=`eval 'as_val=${'$as_ac_Header'}
20123 $as_echo "$as_val"'`
20124 if test "x$as_val" = x""yes; then
20125 cat >>confdefs.h <<_ACEOF
20126 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20127 _ACEOF
20128
20129 ac_header_dirent=$ac_hdr; break
20130 fi
20131
20132 done
20133 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20134 if test $ac_header_dirent = dirent.h; then
20135 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
20136 $as_echo_n "checking for library containing opendir... " >&6; }
20137 if test "${ac_cv_search_opendir+set}" = set; then
20138 $as_echo_n "(cached) " >&6
20139 else
20140 ac_func_search_save_LIBS=$LIBS
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147
20148 /* Override any GCC internal prototype to avoid an error.
20149 Use char because int might match the return type of a GCC
20150 builtin and then its argument prototype would still apply. */
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char opendir ();
20155 int
20156 main ()
20157 {
20158 return opendir ();
20159 ;
20160 return 0;
20161 }
20162 _ACEOF
20163 for ac_lib in '' dir; do
20164 if test -z "$ac_lib"; then
20165 ac_res="none required"
20166 else
20167 ac_res=-l$ac_lib
20168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20169 fi
20170 rm -f conftest.$ac_objext conftest$ac_exeext
20171 if { (ac_try="$ac_link"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175 esac
20176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20177 $as_echo "$ac_try_echo") >&5
20178 (eval "$ac_link") 2>conftest.er1
20179 ac_status=$?
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
20183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && {
20185 test -z "$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 } && test -s conftest$ac_exeext && {
20188 test "$cross_compiling" = yes ||
20189 $as_test_x conftest$ac_exeext
20190 }; then
20191 ac_cv_search_opendir=$ac_res
20192 else
20193 $as_echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196
20197 fi
20198
20199 rm -rf conftest.dSYM
20200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20201 conftest$ac_exeext
20202 if test "${ac_cv_search_opendir+set}" = set; then
20203 break
20204 fi
20205 done
20206 if test "${ac_cv_search_opendir+set}" = set; then
20207 :
20208 else
20209 ac_cv_search_opendir=no
20210 fi
20211 rm conftest.$ac_ext
20212 LIBS=$ac_func_search_save_LIBS
20213 fi
20214 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20215 $as_echo "$ac_cv_search_opendir" >&6; }
20216 ac_res=$ac_cv_search_opendir
20217 if test "$ac_res" != no; then
20218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20219
20220 fi
20221
20222 else
20223 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
20224 $as_echo_n "checking for library containing opendir... " >&6; }
20225 if test "${ac_cv_search_opendir+set}" = set; then
20226 $as_echo_n "(cached) " >&6
20227 else
20228 ac_func_search_save_LIBS=$LIBS
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 char opendir ();
20243 int
20244 main ()
20245 {
20246 return opendir ();
20247 ;
20248 return 0;
20249 }
20250 _ACEOF
20251 for ac_lib in '' x; do
20252 if test -z "$ac_lib"; then
20253 ac_res="none required"
20254 else
20255 ac_res=-l$ac_lib
20256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20257 fi
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20265 $as_echo "$ac_try_echo") >&5
20266 (eval "$ac_link") 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext && {
20276 test "$cross_compiling" = yes ||
20277 $as_test_x conftest$ac_exeext
20278 }; then
20279 ac_cv_search_opendir=$ac_res
20280 else
20281 $as_echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284
20285 fi
20286
20287 rm -rf conftest.dSYM
20288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20289 conftest$ac_exeext
20290 if test "${ac_cv_search_opendir+set}" = set; then
20291 break
20292 fi
20293 done
20294 if test "${ac_cv_search_opendir+set}" = set; then
20295 :
20296 else
20297 ac_cv_search_opendir=no
20298 fi
20299 rm conftest.$ac_ext
20300 LIBS=$ac_func_search_save_LIBS
20301 fi
20302 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20303 $as_echo "$ac_cv_search_opendir" >&6; }
20304 ac_res=$ac_cv_search_opendir
20305 if test "$ac_res" != no; then
20306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20307
20308 fi
20309
20310 fi
20311
20312 # Check whether --enable-ltdl-install was given.
20313 if test "${enable_ltdl_install+set}" = set; then
20314 enableval=$enable_ltdl_install;
20315 fi
20316
20317
20318 if test x"${enable_ltdl_install-no}" != xno; then
20319 INSTALL_LTDL_TRUE=
20320 INSTALL_LTDL_FALSE='#'
20321 else
20322 INSTALL_LTDL_TRUE='#'
20323 INSTALL_LTDL_FALSE=
20324 fi
20325
20326 if test x"${enable_ltdl_convenience-no}" != xno; then
20327 CONVENIENCE_LTDL_TRUE=
20328 CONVENIENCE_LTDL_FALSE='#'
20329 else
20330 CONVENIENCE_LTDL_TRUE='#'
20331 CONVENIENCE_LTDL_FALSE=
20332 fi
20333
20334
20335
20336 { $as_echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20337 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
20338 if test "${libltdl_cv_shlibext+set}" = set; then
20339 $as_echo_n "(cached) " >&6
20340 else
20341
20342 module=yes
20343 eval libltdl_cv_shlibext=$shrext_cmds
20344
20345 fi
20346 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20347 $as_echo "$libltdl_cv_shlibext" >&6; }
20348 if test -n "$libltdl_cv_shlibext"; then
20349
20350 cat >>confdefs.h <<_ACEOF
20351 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20352 _ACEOF
20353
20354 fi
20355
20356
20357 { $as_echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20358 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
20359 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20360 $as_echo_n "(cached) " >&6
20361 else
20362 libltdl_cv_shlibpath_var="$shlibpath_var"
20363 fi
20364 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20365 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
20366 if test -n "$libltdl_cv_shlibpath_var"; then
20367
20368 cat >>confdefs.h <<_ACEOF
20369 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20370 _ACEOF
20371
20372 fi
20373
20374
20375 { $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
20376 $as_echo_n "checking for the default library search path... " >&6; }
20377 if test "${libltdl_cv_sys_search_path+set}" = set; then
20378 $as_echo_n "(cached) " >&6
20379 else
20380 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20381 fi
20382 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20383 $as_echo "$libltdl_cv_sys_search_path" >&6; }
20384 if test -n "$libltdl_cv_sys_search_path"; then
20385 sys_search_path=
20386 for dir in $libltdl_cv_sys_search_path; do
20387 if test -z "$sys_search_path"; then
20388 sys_search_path="$dir"
20389 else
20390 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20391 fi
20392 done
20393
20394 cat >>confdefs.h <<_ACEOF
20395 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20396 _ACEOF
20397
20398 fi
20399
20400 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
20401 $as_echo_n "checking for objdir... " >&6; }
20402 if test "${libltdl_cv_objdir+set}" = set; then
20403 $as_echo_n "(cached) " >&6
20404 else
20405 libltdl_cv_objdir="$objdir"
20406 if test -n "$objdir"; then
20407 :
20408 else
20409 rm -f .libs 2>/dev/null
20410 mkdir .libs 2>/dev/null
20411 if test -d .libs; then
20412 libltdl_cv_objdir=.libs
20413 else
20414 # MS-DOS does not allow filenames that begin with a dot.
20415 libltdl_cv_objdir=_libs
20416 fi
20417 rmdir .libs 2>/dev/null
20418 fi
20419
20420 fi
20421 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20422 $as_echo "$libltdl_cv_objdir" >&6; }
20423
20424 cat >>confdefs.h <<_ACEOF
20425 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20426 _ACEOF
20427
20428
20429
20430 { $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20431 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20432 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20433 $as_echo_n "(cached) " >&6
20434 else
20435 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20436 libltdl_cv_preloaded_symbols=yes
20437 else
20438 libltdl_cv_preloaded_symbols=no
20439 fi
20440
20441 fi
20442 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20443 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20444 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20445
20446 cat >>confdefs.h <<\_ACEOF
20447 #define HAVE_PRELOADED_SYMBOLS 1
20448 _ACEOF
20449
20450 fi
20451
20452 LIBADD_DL=
20453
20454 ac_ext=c
20455 ac_cpp='$CPP $CPPFLAGS'
20456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20459
20460
20461 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
20462 $as_echo_n "checking for shl_load... " >&6; }
20463 if test "${ac_cv_func_shl_load+set}" = set; then
20464 $as_echo_n "(cached) " >&6
20465 else
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20474 #define shl_load innocuous_shl_load
20475
20476 /* System header to define __stub macros and hopefully few prototypes,
20477 which can conflict with char shl_load (); below.
20478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20479 <limits.h> exists even on freestanding compilers. */
20480
20481 #ifdef __STDC__
20482 # include <limits.h>
20483 #else
20484 # include <assert.h>
20485 #endif
20486
20487 #undef shl_load
20488
20489 /* Override any GCC internal prototype to avoid an error.
20490 Use char because int might match the return type of a GCC
20491 builtin and then its argument prototype would still apply. */
20492 #ifdef __cplusplus
20493 extern "C"
20494 #endif
20495 char shl_load ();
20496 /* The GNU C library defines this for functions which it implements
20497 to always fail with ENOSYS. Some functions are actually named
20498 something starting with __ and the normal name is an alias. */
20499 #if defined __stub_shl_load || defined __stub___shl_load
20500 choke me
20501 #endif
20502
20503 int
20504 main ()
20505 {
20506 return shl_load ();
20507 ;
20508 return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext conftest$ac_exeext
20512 if { (ac_try="$ac_link"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20516 esac
20517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20518 $as_echo "$ac_try_echo") >&5
20519 (eval "$ac_link") 2>conftest.er1
20520 ac_status=$?
20521 grep -v '^ *+' conftest.er1 >conftest.err
20522 rm -f conftest.er1
20523 cat conftest.err >&5
20524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } && {
20526 test -z "$ac_c_werror_flag" ||
20527 test ! -s conftest.err
20528 } && test -s conftest$ac_exeext && {
20529 test "$cross_compiling" = yes ||
20530 $as_test_x conftest$ac_exeext
20531 }; then
20532 ac_cv_func_shl_load=yes
20533 else
20534 $as_echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_func_shl_load=no
20538 fi
20539
20540 rm -rf conftest.dSYM
20541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20542 conftest$ac_exeext conftest.$ac_ext
20543 fi
20544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20545 $as_echo "$ac_cv_func_shl_load" >&6; }
20546 if test "x$ac_cv_func_shl_load" = x""yes; then
20547
20548 cat >>confdefs.h <<\_ACEOF
20549 #define HAVE_SHL_LOAD 1
20550 _ACEOF
20551
20552 else
20553 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20554 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20555 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20556 $as_echo_n "(cached) " >&6
20557 else
20558 ac_check_lib_save_LIBS=$LIBS
20559 LIBS="-ldld $LIBS"
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h. */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566
20567 /* Override any GCC internal prototype to avoid an error.
20568 Use char because int might match the return type of a GCC
20569 builtin and then its argument prototype would still apply. */
20570 #ifdef __cplusplus
20571 extern "C"
20572 #endif
20573 char shl_load ();
20574 int
20575 main ()
20576 {
20577 return shl_load ();
20578 ;
20579 return 0;
20580 }
20581 _ACEOF
20582 rm -f conftest.$ac_objext conftest$ac_exeext
20583 if { (ac_try="$ac_link"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587 esac
20588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20589 $as_echo "$ac_try_echo") >&5
20590 (eval "$ac_link") 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest$ac_exeext && {
20600 test "$cross_compiling" = yes ||
20601 $as_test_x conftest$ac_exeext
20602 }; then
20603 ac_cv_lib_dld_shl_load=yes
20604 else
20605 $as_echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_lib_dld_shl_load=no
20609 fi
20610
20611 rm -rf conftest.dSYM
20612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20613 conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20615 fi
20616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20617 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20618 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_SHL_LOAD 1
20622 _ACEOF
20623
20624 LIBADD_DL="$LIBADD_DL -ldld"
20625 else
20626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20629 $as_echo_n "(cached) " >&6
20630 else
20631 ac_check_lib_save_LIBS=$LIBS
20632 LIBS="-ldl $LIBS"
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h. */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639
20640 /* Override any GCC internal prototype to avoid an error.
20641 Use char because int might match the return type of a GCC
20642 builtin and then its argument prototype would still apply. */
20643 #ifdef __cplusplus
20644 extern "C"
20645 #endif
20646 char dlopen ();
20647 int
20648 main ()
20649 {
20650 return dlopen ();
20651 ;
20652 return 0;
20653 }
20654 _ACEOF
20655 rm -f conftest.$ac_objext conftest$ac_exeext
20656 if { (ac_try="$ac_link"
20657 case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20660 esac
20661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20662 $as_echo "$ac_try_echo") >&5
20663 (eval "$ac_link") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext && {
20673 test "$cross_compiling" = yes ||
20674 $as_test_x conftest$ac_exeext
20675 }; then
20676 ac_cv_lib_dl_dlopen=yes
20677 else
20678 $as_echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 ac_cv_lib_dl_dlopen=no
20682 fi
20683
20684 rm -rf conftest.dSYM
20685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20686 conftest$ac_exeext conftest.$ac_ext
20687 LIBS=$ac_check_lib_save_LIBS
20688 fi
20689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
20692
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_LIBDL 1
20695 _ACEOF
20696
20697 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20698 else
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #if HAVE_DLFCN_H
20706 # include <dlfcn.h>
20707 #endif
20708
20709 int
20710 main ()
20711 {
20712 dlopen(0, 0);
20713 ;
20714 return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext conftest$ac_exeext
20718 if { (ac_try="$ac_link"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722 esac
20723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20724 $as_echo "$ac_try_echo") >&5
20725 (eval "$ac_link") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest$ac_exeext && {
20735 test "$cross_compiling" = yes ||
20736 $as_test_x conftest$ac_exeext
20737 }; then
20738
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_LIBDL 1
20741 _ACEOF
20742 libltdl_cv_func_dlopen="yes"
20743 else
20744 $as_echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20749 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20750 $as_echo_n "(cached) " >&6
20751 else
20752 ac_check_lib_save_LIBS=$LIBS
20753 LIBS="-lsvld $LIBS"
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760
20761 /* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 char dlopen ();
20768 int
20769 main ()
20770 {
20771 return dlopen ();
20772 ;
20773 return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest.$ac_objext conftest$ac_exeext
20777 if { (ac_try="$ac_link"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781 esac
20782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20783 $as_echo "$ac_try_echo") >&5
20784 (eval "$ac_link") 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && {
20791 test -z "$ac_c_werror_flag" ||
20792 test ! -s conftest.err
20793 } && test -s conftest$ac_exeext && {
20794 test "$cross_compiling" = yes ||
20795 $as_test_x conftest$ac_exeext
20796 }; then
20797 ac_cv_lib_svld_dlopen=yes
20798 else
20799 $as_echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802 ac_cv_lib_svld_dlopen=no
20803 fi
20804
20805 rm -rf conftest.dSYM
20806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20809 fi
20810 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20811 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20812 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
20813
20814 cat >>confdefs.h <<\_ACEOF
20815 #define HAVE_LIBDL 1
20816 _ACEOF
20817
20818 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20819 else
20820 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20821 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20823 $as_echo_n "(cached) " >&6
20824 else
20825 ac_check_lib_save_LIBS=$LIBS
20826 LIBS="-ldld $LIBS"
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h. */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833
20834 /* Override any GCC internal prototype to avoid an error.
20835 Use char because int might match the return type of a GCC
20836 builtin and then its argument prototype would still apply. */
20837 #ifdef __cplusplus
20838 extern "C"
20839 #endif
20840 char dld_link ();
20841 int
20842 main ()
20843 {
20844 return dld_link ();
20845 ;
20846 return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext conftest$ac_exeext
20850 if { (ac_try="$ac_link"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854 esac
20855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856 $as_echo "$ac_try_echo") >&5
20857 (eval "$ac_link") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest$ac_exeext && {
20867 test "$cross_compiling" = yes ||
20868 $as_test_x conftest$ac_exeext
20869 }; then
20870 ac_cv_lib_dld_dld_link=yes
20871 else
20872 $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_cv_lib_dld_dld_link=no
20876 fi
20877
20878 rm -rf conftest.dSYM
20879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20880 conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20882 fi
20883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20885 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
20886
20887 cat >>confdefs.h <<\_ACEOF
20888 #define HAVE_DLD 1
20889 _ACEOF
20890
20891 LIBADD_DL="$LIBADD_DL -ldld"
20892 else
20893 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20894 $as_echo_n "checking for _dyld_func_lookup... " >&6; }
20895 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20896 $as_echo_n "(cached) " >&6
20897 else
20898 cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h. */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20906 #define _dyld_func_lookup innocuous__dyld_func_lookup
20907
20908 /* System header to define __stub macros and hopefully few prototypes,
20909 which can conflict with char _dyld_func_lookup (); below.
20910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20911 <limits.h> exists even on freestanding compilers. */
20912
20913 #ifdef __STDC__
20914 # include <limits.h>
20915 #else
20916 # include <assert.h>
20917 #endif
20918
20919 #undef _dyld_func_lookup
20920
20921 /* Override any GCC internal prototype to avoid an error.
20922 Use char because int might match the return type of a GCC
20923 builtin and then its argument prototype would still apply. */
20924 #ifdef __cplusplus
20925 extern "C"
20926 #endif
20927 char _dyld_func_lookup ();
20928 /* The GNU C library defines this for functions which it implements
20929 to always fail with ENOSYS. Some functions are actually named
20930 something starting with __ and the normal name is an alias. */
20931 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20932 choke me
20933 #endif
20934
20935 int
20936 main ()
20937 {
20938 return _dyld_func_lookup ();
20939 ;
20940 return 0;
20941 }
20942 _ACEOF
20943 rm -f conftest.$ac_objext conftest$ac_exeext
20944 if { (ac_try="$ac_link"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20950 $as_echo "$ac_try_echo") >&5
20951 (eval "$ac_link") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } && {
20958 test -z "$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 } && test -s conftest$ac_exeext && {
20961 test "$cross_compiling" = yes ||
20962 $as_test_x conftest$ac_exeext
20963 }; then
20964 ac_cv_func__dyld_func_lookup=yes
20965 else
20966 $as_echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 ac_cv_func__dyld_func_lookup=no
20970 fi
20971
20972 rm -rf conftest.dSYM
20973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20974 conftest$ac_exeext conftest.$ac_ext
20975 fi
20976 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20977 $as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
20978 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
20979
20980 cat >>confdefs.h <<\_ACEOF
20981 #define HAVE_DYLD 1
20982 _ACEOF
20983
20984 fi
20985
20986
20987 fi
20988
20989
20990 fi
20991
20992
20993 fi
20994
20995 rm -rf conftest.dSYM
20996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20997 conftest$ac_exeext conftest.$ac_ext
20998
20999 fi
21000
21001
21002 fi
21003
21004
21005 fi
21006
21007
21008 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21009 then
21010 lt_save_LIBS="$LIBS"
21011 LIBS="$LIBS $LIBADD_DL"
21012
21013 for ac_func in dlerror
21014 do
21015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21017 $as_echo_n "checking for $ac_func... " >&6; }
21018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21019 $as_echo_n "(cached) " >&6
21020 else
21021 cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h. */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21029 #define $ac_func innocuous_$ac_func
21030
21031 /* System header to define __stub macros and hopefully few prototypes,
21032 which can conflict with char $ac_func (); below.
21033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21034 <limits.h> exists even on freestanding compilers. */
21035
21036 #ifdef __STDC__
21037 # include <limits.h>
21038 #else
21039 # include <assert.h>
21040 #endif
21041
21042 #undef $ac_func
21043
21044 /* Override any GCC internal prototype to avoid an error.
21045 Use char because int might match the return type of a GCC
21046 builtin and then its argument prototype would still apply. */
21047 #ifdef __cplusplus
21048 extern "C"
21049 #endif
21050 char $ac_func ();
21051 /* The GNU C library defines this for functions which it implements
21052 to always fail with ENOSYS. Some functions are actually named
21053 something starting with __ and the normal name is an alias. */
21054 #if defined __stub_$ac_func || defined __stub___$ac_func
21055 choke me
21056 #endif
21057
21058 int
21059 main ()
21060 {
21061 return $ac_func ();
21062 ;
21063 return 0;
21064 }
21065 _ACEOF
21066 rm -f conftest.$ac_objext conftest$ac_exeext
21067 if { (ac_try="$ac_link"
21068 case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21071 esac
21072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21073 $as_echo "$ac_try_echo") >&5
21074 (eval "$ac_link") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest$ac_exeext && {
21084 test "$cross_compiling" = yes ||
21085 $as_test_x conftest$ac_exeext
21086 }; then
21087 eval "$as_ac_var=yes"
21088 else
21089 $as_echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 eval "$as_ac_var=no"
21093 fi
21094
21095 rm -rf conftest.dSYM
21096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21097 conftest$ac_exeext conftest.$ac_ext
21098 fi
21099 ac_res=`eval 'as_val=${'$as_ac_var'}
21100 $as_echo "$as_val"'`
21101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21102 $as_echo "$ac_res" >&6; }
21103 as_val=`eval 'as_val=${'$as_ac_var'}
21104 $as_echo "$as_val"'`
21105 if test "x$as_val" = x""yes; then
21106 cat >>confdefs.h <<_ACEOF
21107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21108 _ACEOF
21109
21110 fi
21111 done
21112
21113 LIBS="$lt_save_LIBS"
21114 fi
21115 ac_ext=c
21116 ac_cpp='$CPP $CPPFLAGS'
21117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21120
21121
21122
21123 { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21124 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
21125 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21126 $as_echo_n "(cached) " >&6
21127 else
21128 ac_cv_sys_symbol_underscore=no
21129 cat > conftest.$ac_ext <<EOF
21130 void nm_test_func(){}
21131 int main(){nm_test_func;return 0;}
21132 EOF
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134 (eval $ac_compile) 2>&5
21135 ac_status=$?
21136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; then
21138 # Now try to grab the symbols.
21139 ac_nlist=conftest.nm
21140 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21141 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21142 ac_status=$?
21143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && test -s "$ac_nlist"; then
21145 # See whether the symbols have a leading underscore.
21146 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21147 ac_cv_sys_symbol_underscore=yes
21148 else
21149 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21150 :
21151 else
21152 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21153 fi
21154 fi
21155 else
21156 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21157 fi
21158 else
21159 echo "configure: failed program was:" >&5
21160 cat conftest.c >&5
21161 fi
21162 rm -rf conftest*
21163
21164 fi
21165 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21166 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
21167
21168
21169 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21170 if test x"$libltdl_cv_func_dlopen" = xyes ||
21171 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21172 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21173 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
21174 if test "${libltdl_cv_need_uscore+set}" = set; then
21175 $as_echo_n "(cached) " >&6
21176 else
21177 libltdl_cv_need_uscore=unknown
21178 save_LIBS="$LIBS"
21179 LIBS="$LIBS $LIBADD_DL"
21180 if test "$cross_compiling" = yes; then :
21181 libltdl_cv_need_uscore=cross
21182 else
21183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21184 lt_status=$lt_dlunknown
21185 cat > conftest.$ac_ext <<EOF
21186 #line 21186 "configure"
21187 #include "confdefs.h"
21188
21189 #if HAVE_DLFCN_H
21190 #include <dlfcn.h>
21191 #endif
21192
21193 #include <stdio.h>
21194
21195 #ifdef RTLD_GLOBAL
21196 # define LT_DLGLOBAL RTLD_GLOBAL
21197 #else
21198 # ifdef DL_GLOBAL
21199 # define LT_DLGLOBAL DL_GLOBAL
21200 # else
21201 # define LT_DLGLOBAL 0
21202 # endif
21203 #endif
21204
21205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21206 find out it does not work in some platform. */
21207 #ifndef LT_DLLAZY_OR_NOW
21208 # ifdef RTLD_LAZY
21209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21210 # else
21211 # ifdef DL_LAZY
21212 # define LT_DLLAZY_OR_NOW DL_LAZY
21213 # else
21214 # ifdef RTLD_NOW
21215 # define LT_DLLAZY_OR_NOW RTLD_NOW
21216 # else
21217 # ifdef DL_NOW
21218 # define LT_DLLAZY_OR_NOW DL_NOW
21219 # else
21220 # define LT_DLLAZY_OR_NOW 0
21221 # endif
21222 # endif
21223 # endif
21224 # endif
21225 #endif
21226
21227 #ifdef __cplusplus
21228 extern "C" void exit (int);
21229 #endif
21230
21231 void fnord() { int i=42;}
21232 int main ()
21233 {
21234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21235 int status = $lt_dlunknown;
21236
21237 if (self)
21238 {
21239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21240 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21241 /* dlclose (self); */
21242 }
21243 else
21244 puts (dlerror ());
21245
21246 exit (status);
21247 }
21248 EOF
21249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21250 (eval $ac_link) 2>&5
21251 ac_status=$?
21252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21254 (./conftest; exit; ) >&5 2>/dev/null
21255 lt_status=$?
21256 case x$lt_status in
21257 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21258 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21259 x$lt_dlunknown|x*) ;;
21260 esac
21261 else :
21262 # compilation failed
21263
21264 fi
21265 fi
21266 rm -fr conftest*
21267
21268 LIBS="$save_LIBS"
21269
21270 fi
21271 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21272 $as_echo "$libltdl_cv_need_uscore" >&6; }
21273 fi
21274 fi
21275
21276 if test x"$libltdl_cv_need_uscore" = xyes; then
21277
21278 cat >>confdefs.h <<\_ACEOF
21279 #define NEED_USCORE 1
21280 _ACEOF
21281
21282 fi
21283
21284
21285 { $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21286 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
21287 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21288 $as_echo_n "(cached) " >&6
21289 else
21290 # PORTME does your system automatically load deplibs for dlopen?
21291 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21292 # For now, we just catch OSes we know something about -- in the
21293 # future, we'll try test this programmatically.
21294 libltdl_cv_sys_dlopen_deplibs=unknown
21295 case "$host_os" in
21296 aix3*|aix4.1.*|aix4.2.*)
21297 # Unknown whether this is true for these versions of AIX, but
21298 # we want this `case' here to explicitly catch those versions.
21299 libltdl_cv_sys_dlopen_deplibs=unknown
21300 ;;
21301 aix[4-9]*)
21302 libltdl_cv_sys_dlopen_deplibs=yes
21303 ;;
21304 darwin*)
21305 # Assuming the user has installed a libdl from somewhere, this is true
21306 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21307 libltdl_cv_sys_dlopen_deplibs=yes
21308 ;;
21309 freebsd* | dragonfly*)
21310 libltdl_cv_sys_dlopen_deplibs=yes
21311 ;;
21312 gnu* | linux* | k*bsd*-gnu)
21313 # GNU and its variants, using gnu ld.so (Glibc)
21314 libltdl_cv_sys_dlopen_deplibs=yes
21315 ;;
21316 hpux10*|hpux11*)
21317 libltdl_cv_sys_dlopen_deplibs=yes
21318 ;;
21319 interix*)
21320 libltdl_cv_sys_dlopen_deplibs=yes
21321 ;;
21322 irix[12345]*|irix6.[01]*)
21323 # Catch all versions of IRIX before 6.2, and indicate that we don't
21324 # know how it worked for any of those versions.
21325 libltdl_cv_sys_dlopen_deplibs=unknown
21326 ;;
21327 irix*)
21328 # The case above catches anything before 6.2, and it's known that
21329 # at 6.2 and later dlopen does load deplibs.
21330 libltdl_cv_sys_dlopen_deplibs=yes
21331 ;;
21332 netbsd*)
21333 libltdl_cv_sys_dlopen_deplibs=yes
21334 ;;
21335 openbsd*)
21336 libltdl_cv_sys_dlopen_deplibs=yes
21337 ;;
21338 osf[1234]*)
21339 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21340 # it did *not* use an RPATH in a shared library to find objects the
21341 # library depends on, so we explictly say `no'.
21342 libltdl_cv_sys_dlopen_deplibs=no
21343 ;;
21344 osf5.0|osf5.0a|osf5.1)
21345 # dlopen *does* load deplibs and with the right loader patch applied
21346 # it even uses RPATH in a shared library to search for shared objects
21347 # that the library depends on, but there's no easy way to know if that
21348 # patch is installed. Since this is the case, all we can really
21349 # say is unknown -- it depends on the patch being installed. If
21350 # it is, this changes to `yes'. Without it, it would be `no'.
21351 libltdl_cv_sys_dlopen_deplibs=unknown
21352 ;;
21353 osf*)
21354 # the two cases above should catch all versions of osf <= 5.1. Read
21355 # the comments above for what we know about them.
21356 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21357 # is used to find them so we can finally say `yes'.
21358 libltdl_cv_sys_dlopen_deplibs=yes
21359 ;;
21360 solaris*)
21361 libltdl_cv_sys_dlopen_deplibs=yes
21362 ;;
21363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21364 libltdl_cv_sys_dlopen_deplibs=yes
21365 ;;
21366 esac
21367
21368 fi
21369 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21370 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
21371 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21372
21373 cat >>confdefs.h <<\_ACEOF
21374 #define LTDL_DLOPEN_DEPLIBS 1
21375 _ACEOF
21376
21377 fi
21378
21379
21380 for ac_header in argz.h
21381 do
21382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 $as_echo_n "checking for $ac_header... " >&6; }
21386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21387 $as_echo_n "(cached) " >&6
21388 fi
21389 ac_res=`eval 'as_val=${'$as_ac_Header'}
21390 $as_echo "$as_val"'`
21391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21392 $as_echo "$ac_res" >&6; }
21393 else
21394 # Is the header compilable?
21395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21396 $as_echo_n "checking $ac_header usability... " >&6; }
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21404 #include <$ac_header>
21405 _ACEOF
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413 $as_echo "$ac_try_echo") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 ac_header_compiler=yes
21425 else
21426 $as_echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 ac_header_compiler=no
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21434 $as_echo "$ac_header_compiler" >&6; }
21435
21436 # Is the header present?
21437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21438 $as_echo_n "checking $ac_header presence... " >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <$ac_header>
21446 _ACEOF
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21451 esac
21452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21453 $as_echo "$ac_try_echo") >&5
21454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } >/dev/null && {
21461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 }; then
21464 ac_header_preproc=yes
21465 else
21466 $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469 ac_header_preproc=no
21470 fi
21471
21472 rm -f conftest.err conftest.$ac_ext
21473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21474 $as_echo "$ac_header_preproc" >&6; }
21475
21476 # So? What about this header?
21477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21478 yes:no: )
21479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21483 ac_header_preproc=yes
21484 ;;
21485 no:yes:* )
21486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21489 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21493 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21498 ( cat <<\_ASBOX
21499 ## ------------------------------------ ##
21500 ## Report this to [email protected] ##
21501 ## ------------------------------------ ##
21502 _ASBOX
21503 ) | sed "s/^/$as_me: WARNING: /" >&2
21504 ;;
21505 esac
21506 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21507 $as_echo_n "checking for $ac_header... " >&6; }
21508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21509 $as_echo_n "(cached) " >&6
21510 else
21511 eval "$as_ac_Header=\$ac_header_preproc"
21512 fi
21513 ac_res=`eval 'as_val=${'$as_ac_Header'}
21514 $as_echo "$as_val"'`
21515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21516 $as_echo "$ac_res" >&6; }
21517
21518 fi
21519 as_val=`eval 'as_val=${'$as_ac_Header'}
21520 $as_echo "$as_val"'`
21521 if test "x$as_val" = x""yes; then
21522 cat >>confdefs.h <<_ACEOF
21523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21524 _ACEOF
21525
21526 fi
21527
21528 done
21529
21530
21531 { $as_echo "$as_me:$LINENO: checking for error_t" >&5
21532 $as_echo_n "checking for error_t... " >&6; }
21533 if test "${ac_cv_type_error_t+set}" = set; then
21534 $as_echo_n "(cached) " >&6
21535 else
21536 ac_cv_type_error_t=no
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h. */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 #if HAVE_ARGZ_H
21544 # include <argz.h>
21545 #endif
21546
21547 int
21548 main ()
21549 {
21550 if (sizeof (error_t))
21551 return 0;
21552 ;
21553 return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21563 $as_echo "$ac_try_echo") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest.$ac_objext; then
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #if HAVE_ARGZ_H
21581 # include <argz.h>
21582 #endif
21583
21584 int
21585 main ()
21586 {
21587 if (sizeof ((error_t)))
21588 return 0;
21589 ;
21590 return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21598 esac
21599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21600 $as_echo "$ac_try_echo") >&5
21601 (eval "$ac_compile") 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } && {
21608 test -z "$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 } && test -s conftest.$ac_objext; then
21611 :
21612 else
21613 $as_echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ac_cv_type_error_t=yes
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 else
21621 $as_echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624
21625 fi
21626
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 fi
21629 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21630 $as_echo "$ac_cv_type_error_t" >&6; }
21631 if test "x$ac_cv_type_error_t" = x""yes; then
21632
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_ERROR_T 1
21635 _ACEOF
21636
21637
21638 else
21639
21640 cat >>confdefs.h <<\_ACEOF
21641 #define error_t int
21642 _ACEOF
21643
21644 fi
21645
21646
21647
21648
21649
21650
21651
21652 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21653 do
21654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21656 $as_echo_n "checking for $ac_func... " >&6; }
21657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21658 $as_echo_n "(cached) " >&6
21659 else
21660 cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h. */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21668 #define $ac_func innocuous_$ac_func
21669
21670 /* System header to define __stub macros and hopefully few prototypes,
21671 which can conflict with char $ac_func (); below.
21672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21673 <limits.h> exists even on freestanding compilers. */
21674
21675 #ifdef __STDC__
21676 # include <limits.h>
21677 #else
21678 # include <assert.h>
21679 #endif
21680
21681 #undef $ac_func
21682
21683 /* Override any GCC internal prototype to avoid an error.
21684 Use char because int might match the return type of a GCC
21685 builtin and then its argument prototype would still apply. */
21686 #ifdef __cplusplus
21687 extern "C"
21688 #endif
21689 char $ac_func ();
21690 /* The GNU C library defines this for functions which it implements
21691 to always fail with ENOSYS. Some functions are actually named
21692 something starting with __ and the normal name is an alias. */
21693 #if defined __stub_$ac_func || defined __stub___$ac_func
21694 choke me
21695 #endif
21696
21697 int
21698 main ()
21699 {
21700 return $ac_func ();
21701 ;
21702 return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest.$ac_objext conftest$ac_exeext
21706 if { (ac_try="$ac_link"
21707 case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21710 esac
21711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21712 $as_echo "$ac_try_echo") >&5
21713 (eval "$ac_link") 2>conftest.er1
21714 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
21718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest$ac_exeext && {
21723 test "$cross_compiling" = yes ||
21724 $as_test_x conftest$ac_exeext
21725 }; then
21726 eval "$as_ac_var=yes"
21727 else
21728 $as_echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731 eval "$as_ac_var=no"
21732 fi
21733
21734 rm -rf conftest.dSYM
21735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21736 conftest$ac_exeext conftest.$ac_ext
21737 fi
21738 ac_res=`eval 'as_val=${'$as_ac_var'}
21739 $as_echo "$as_val"'`
21740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21741 $as_echo "$ac_res" >&6; }
21742 as_val=`eval 'as_val=${'$as_ac_var'}
21743 $as_echo "$as_val"'`
21744 if test "x$as_val" = x""yes; then
21745 cat >>confdefs.h <<_ACEOF
21746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21747 _ACEOF
21748
21749 fi
21750 done
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21780 stdio.h unistd.h
21781 do
21782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 $as_echo_n "checking for $ac_header... " >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787 $as_echo_n "(cached) " >&6
21788 fi
21789 ac_res=`eval 'as_val=${'$as_ac_Header'}
21790 $as_echo "$as_val"'`
21791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21792 $as_echo "$ac_res" >&6; }
21793 else
21794 # Is the header compilable?
21795 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21796 $as_echo_n "checking $ac_header usability... " >&6; }
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 $ac_includes_default
21804 #include <$ac_header>
21805 _ACEOF
21806 rm -f conftest.$ac_objext
21807 if { (ac_try="$ac_compile"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811 esac
21812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21813 $as_echo "$ac_try_echo") >&5
21814 (eval "$ac_compile") 2>conftest.er1
21815 ac_status=$?
21816 grep -v '^ *+' conftest.er1 >conftest.err
21817 rm -f conftest.er1
21818 cat conftest.err >&5
21819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } && {
21821 test -z "$ac_c_werror_flag" ||
21822 test ! -s conftest.err
21823 } && test -s conftest.$ac_objext; then
21824 ac_header_compiler=yes
21825 else
21826 $as_echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829 ac_header_compiler=no
21830 fi
21831
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21834 $as_echo "$ac_header_compiler" >&6; }
21835
21836 # Is the header present?
21837 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21838 $as_echo_n "checking $ac_header presence... " >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include <$ac_header>
21846 _ACEOF
21847 if { (ac_try="$ac_cpp conftest.$ac_ext"
21848 case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851 esac
21852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21853 $as_echo "$ac_try_echo") >&5
21854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } >/dev/null && {
21861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 }; then
21864 ac_header_preproc=yes
21865 else
21866 $as_echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869 ac_header_preproc=no
21870 fi
21871
21872 rm -f conftest.err conftest.$ac_ext
21873 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21874 $as_echo "$ac_header_preproc" >&6; }
21875
21876 # So? What about this header?
21877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21878 yes:no: )
21879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21880 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21883 ac_header_preproc=yes
21884 ;;
21885 no:yes:* )
21886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21887 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21889 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21891 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21893 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21897 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21898 ( cat <<\_ASBOX
21899 ## ------------------------------------ ##
21900 ## Report this to [email protected] ##
21901 ## ------------------------------------ ##
21902 _ASBOX
21903 ) | sed "s/^/$as_me: WARNING: /" >&2
21904 ;;
21905 esac
21906 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21907 $as_echo_n "checking for $ac_header... " >&6; }
21908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21909 $as_echo_n "(cached) " >&6
21910 else
21911 eval "$as_ac_Header=\$ac_header_preproc"
21912 fi
21913 ac_res=`eval 'as_val=${'$as_ac_Header'}
21914 $as_echo "$as_val"'`
21915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21916 $as_echo "$ac_res" >&6; }
21917
21918 fi
21919 as_val=`eval 'as_val=${'$as_ac_Header'}
21920 $as_echo "$as_val"'`
21921 if test "x$as_val" = x""yes; then
21922 cat >>confdefs.h <<_ACEOF
21923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21924 _ACEOF
21925
21926 fi
21927
21928 done
21929
21930
21931
21932
21933
21934 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21935 do
21936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21939 $as_echo_n "checking for $ac_header... " >&6; }
21940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21941 $as_echo_n "(cached) " >&6
21942 fi
21943 ac_res=`eval 'as_val=${'$as_ac_Header'}
21944 $as_echo "$as_val"'`
21945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21946 $as_echo "$ac_res" >&6; }
21947 else
21948 # Is the header compilable?
21949 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21950 $as_echo_n "checking $ac_header usability... " >&6; }
21951 cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h. */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 $ac_includes_default
21958 #include <$ac_header>
21959 _ACEOF
21960 rm -f conftest.$ac_objext
21961 if { (ac_try="$ac_compile"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21967 $as_echo "$ac_try_echo") >&5
21968 (eval "$ac_compile") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } && {
21975 test -z "$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21977 } && test -s conftest.$ac_objext; then
21978 ac_header_compiler=yes
21979 else
21980 $as_echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983 ac_header_compiler=no
21984 fi
21985
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21988 $as_echo "$ac_header_compiler" >&6; }
21989
21990 # Is the header present?
21991 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21992 $as_echo_n "checking $ac_header presence... " >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 #include <$ac_header>
22000 _ACEOF
22001 if { (ac_try="$ac_cpp conftest.$ac_ext"
22002 case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005 esac
22006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22007 $as_echo "$ac_try_echo") >&5
22008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22009 ac_status=$?
22010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
22013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } >/dev/null && {
22015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 }; then
22018 ac_header_preproc=yes
22019 else
22020 $as_echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023 ac_header_preproc=no
22024 fi
22025
22026 rm -f conftest.err conftest.$ac_ext
22027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22028 $as_echo "$ac_header_preproc" >&6; }
22029
22030 # So? What about this header?
22031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22032 yes:no: )
22033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22034 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22037 ac_header_preproc=yes
22038 ;;
22039 no:yes:* )
22040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22041 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22043 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22045 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22047 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22051 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22052 ( cat <<\_ASBOX
22053 ## ------------------------------------ ##
22054 ## Report this to [email protected] ##
22055 ## ------------------------------------ ##
22056 _ASBOX
22057 ) | sed "s/^/$as_me: WARNING: /" >&2
22058 ;;
22059 esac
22060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22061 $as_echo_n "checking for $ac_header... " >&6; }
22062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22063 $as_echo_n "(cached) " >&6
22064 else
22065 eval "$as_ac_Header=\$ac_header_preproc"
22066 fi
22067 ac_res=`eval 'as_val=${'$as_ac_Header'}
22068 $as_echo "$as_val"'`
22069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22070 $as_echo "$ac_res" >&6; }
22071
22072 fi
22073 as_val=`eval 'as_val=${'$as_ac_Header'}
22074 $as_echo "$as_val"'`
22075 if test "x$as_val" = x""yes; then
22076 cat >>confdefs.h <<_ACEOF
22077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22078 _ACEOF
22079
22080 fi
22081
22082 done
22083
22084
22085
22086 for ac_header in string.h strings.h
22087 do
22088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22091 $as_echo_n "checking for $ac_header... " >&6; }
22092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093 $as_echo_n "(cached) " >&6
22094 fi
22095 ac_res=`eval 'as_val=${'$as_ac_Header'}
22096 $as_echo "$as_val"'`
22097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 else
22100 # Is the header compilable?
22101 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22102 $as_echo_n "checking $ac_header usability... " >&6; }
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h. */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 $ac_includes_default
22110 #include <$ac_header>
22111 _ACEOF
22112 rm -f conftest.$ac_objext
22113 if { (ac_try="$ac_compile"
22114 case "(($ac_try" in
22115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116 *) ac_try_echo=$ac_try;;
22117 esac
22118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22119 $as_echo "$ac_try_echo") >&5
22120 (eval "$ac_compile") 2>conftest.er1
22121 ac_status=$?
22122 grep -v '^ *+' conftest.er1 >conftest.err
22123 rm -f conftest.er1
22124 cat conftest.err >&5
22125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest.$ac_objext; then
22130 ac_header_compiler=yes
22131 else
22132 $as_echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22134
22135 ac_header_compiler=no
22136 fi
22137
22138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22140 $as_echo "$ac_header_compiler" >&6; }
22141
22142 # Is the header present?
22143 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22144 $as_echo_n "checking $ac_header presence... " >&6; }
22145 cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h. */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 #include <$ac_header>
22152 _ACEOF
22153 if { (ac_try="$ac_cpp conftest.$ac_ext"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22157 esac
22158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22159 $as_echo "$ac_try_echo") >&5
22160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } >/dev/null && {
22167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 }; then
22170 ac_header_preproc=yes
22171 else
22172 $as_echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22174
22175 ac_header_preproc=no
22176 fi
22177
22178 rm -f conftest.err conftest.$ac_ext
22179 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22180 $as_echo "$ac_header_preproc" >&6; }
22181
22182 # So? What about this header?
22183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22184 yes:no: )
22185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22186 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22188 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22189 ac_header_preproc=yes
22190 ;;
22191 no:yes:* )
22192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22193 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22195 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22197 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22199 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22203 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22204 ( cat <<\_ASBOX
22205 ## ------------------------------------ ##
22206 ## Report this to [email protected] ##
22207 ## ------------------------------------ ##
22208 _ASBOX
22209 ) | sed "s/^/$as_me: WARNING: /" >&2
22210 ;;
22211 esac
22212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22213 $as_echo_n "checking for $ac_header... " >&6; }
22214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22215 $as_echo_n "(cached) " >&6
22216 else
22217 eval "$as_ac_Header=\$ac_header_preproc"
22218 fi
22219 ac_res=`eval 'as_val=${'$as_ac_Header'}
22220 $as_echo "$as_val"'`
22221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22222 $as_echo "$ac_res" >&6; }
22223
22224 fi
22225 as_val=`eval 'as_val=${'$as_ac_Header'}
22226 $as_echo "$as_val"'`
22227 if test "x$as_val" = x""yes; then
22228 cat >>confdefs.h <<_ACEOF
22229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22230 _ACEOF
22231 break
22232 fi
22233
22234 done
22235
22236
22237
22238
22239 for ac_func in strchr index
22240 do
22241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22242 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22243 $as_echo_n "checking for $ac_func... " >&6; }
22244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22245 $as_echo_n "(cached) " >&6
22246 else
22247 cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22255 #define $ac_func innocuous_$ac_func
22256
22257 /* System header to define __stub macros and hopefully few prototypes,
22258 which can conflict with char $ac_func (); below.
22259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22260 <limits.h> exists even on freestanding compilers. */
22261
22262 #ifdef __STDC__
22263 # include <limits.h>
22264 #else
22265 # include <assert.h>
22266 #endif
22267
22268 #undef $ac_func
22269
22270 /* Override any GCC internal prototype to avoid an error.
22271 Use char because int might match the return type of a GCC
22272 builtin and then its argument prototype would still apply. */
22273 #ifdef __cplusplus
22274 extern "C"
22275 #endif
22276 char $ac_func ();
22277 /* The GNU C library defines this for functions which it implements
22278 to always fail with ENOSYS. Some functions are actually named
22279 something starting with __ and the normal name is an alias. */
22280 #if defined __stub_$ac_func || defined __stub___$ac_func
22281 choke me
22282 #endif
22283
22284 int
22285 main ()
22286 {
22287 return $ac_func ();
22288 ;
22289 return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22312 }; then
22313 eval "$as_ac_var=yes"
22314 else
22315 $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 eval "$as_ac_var=no"
22319 fi
22320
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22324 fi
22325 ac_res=`eval 'as_val=${'$as_ac_var'}
22326 $as_echo "$as_val"'`
22327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22328 $as_echo "$ac_res" >&6; }
22329 as_val=`eval 'as_val=${'$as_ac_var'}
22330 $as_echo "$as_val"'`
22331 if test "x$as_val" = x""yes; then
22332 cat >>confdefs.h <<_ACEOF
22333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22334 _ACEOF
22335 break
22336 fi
22337 done
22338
22339
22340
22341 for ac_func in strrchr rindex
22342 do
22343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22345 $as_echo_n "checking for $ac_func... " >&6; }
22346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22347 $as_echo_n "(cached) " >&6
22348 else
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22357 #define $ac_func innocuous_$ac_func
22358
22359 /* System header to define __stub macros and hopefully few prototypes,
22360 which can conflict with char $ac_func (); below.
22361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22362 <limits.h> exists even on freestanding compilers. */
22363
22364 #ifdef __STDC__
22365 # include <limits.h>
22366 #else
22367 # include <assert.h>
22368 #endif
22369
22370 #undef $ac_func
22371
22372 /* Override any GCC internal prototype to avoid an error.
22373 Use char because int might match the return type of a GCC
22374 builtin and then its argument prototype would still apply. */
22375 #ifdef __cplusplus
22376 extern "C"
22377 #endif
22378 char $ac_func ();
22379 /* The GNU C library defines this for functions which it implements
22380 to always fail with ENOSYS. Some functions are actually named
22381 something starting with __ and the normal name is an alias. */
22382 #if defined __stub_$ac_func || defined __stub___$ac_func
22383 choke me
22384 #endif
22385
22386 int
22387 main ()
22388 {
22389 return $ac_func ();
22390 ;
22391 return 0;
22392 }
22393 _ACEOF
22394 rm -f conftest.$ac_objext conftest$ac_exeext
22395 if { (ac_try="$ac_link"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22399 esac
22400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22401 $as_echo "$ac_try_echo") >&5
22402 (eval "$ac_link") 2>conftest.er1
22403 ac_status=$?
22404 grep -v '^ *+' conftest.er1 >conftest.err
22405 rm -f conftest.er1
22406 cat conftest.err >&5
22407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest$ac_exeext && {
22412 test "$cross_compiling" = yes ||
22413 $as_test_x conftest$ac_exeext
22414 }; then
22415 eval "$as_ac_var=yes"
22416 else
22417 $as_echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420 eval "$as_ac_var=no"
22421 fi
22422
22423 rm -rf conftest.dSYM
22424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22425 conftest$ac_exeext conftest.$ac_ext
22426 fi
22427 ac_res=`eval 'as_val=${'$as_ac_var'}
22428 $as_echo "$as_val"'`
22429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22430 $as_echo "$ac_res" >&6; }
22431 as_val=`eval 'as_val=${'$as_ac_var'}
22432 $as_echo "$as_val"'`
22433 if test "x$as_val" = x""yes; then
22434 cat >>confdefs.h <<_ACEOF
22435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22436 _ACEOF
22437 break
22438 fi
22439 done
22440
22441
22442
22443 for ac_func in memcpy bcopy
22444 do
22445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22447 $as_echo_n "checking for $ac_func... " >&6; }
22448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22449 $as_echo_n "(cached) " >&6
22450 else
22451 cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h. */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22459 #define $ac_func innocuous_$ac_func
22460
22461 /* System header to define __stub macros and hopefully few prototypes,
22462 which can conflict with char $ac_func (); below.
22463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22464 <limits.h> exists even on freestanding compilers. */
22465
22466 #ifdef __STDC__
22467 # include <limits.h>
22468 #else
22469 # include <assert.h>
22470 #endif
22471
22472 #undef $ac_func
22473
22474 /* Override any GCC internal prototype to avoid an error.
22475 Use char because int might match the return type of a GCC
22476 builtin and then its argument prototype would still apply. */
22477 #ifdef __cplusplus
22478 extern "C"
22479 #endif
22480 char $ac_func ();
22481 /* The GNU C library defines this for functions which it implements
22482 to always fail with ENOSYS. Some functions are actually named
22483 something starting with __ and the normal name is an alias. */
22484 #if defined __stub_$ac_func || defined __stub___$ac_func
22485 choke me
22486 #endif
22487
22488 int
22489 main ()
22490 {
22491 return $ac_func ();
22492 ;
22493 return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501 esac
22502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22503 $as_echo "$ac_try_echo") >&5
22504 (eval "$ac_link") 2>conftest.er1
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest$ac_exeext && {
22514 test "$cross_compiling" = yes ||
22515 $as_test_x conftest$ac_exeext
22516 }; then
22517 eval "$as_ac_var=yes"
22518 else
22519 $as_echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22521
22522 eval "$as_ac_var=no"
22523 fi
22524
22525 rm -rf conftest.dSYM
22526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22527 conftest$ac_exeext conftest.$ac_ext
22528 fi
22529 ac_res=`eval 'as_val=${'$as_ac_var'}
22530 $as_echo "$as_val"'`
22531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22532 $as_echo "$ac_res" >&6; }
22533 as_val=`eval 'as_val=${'$as_ac_var'}
22534 $as_echo "$as_val"'`
22535 if test "x$as_val" = x""yes; then
22536 cat >>confdefs.h <<_ACEOF
22537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22538 _ACEOF
22539 break
22540 fi
22541 done
22542
22543
22544
22545 for ac_func in memmove strcmp
22546 do
22547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22548 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22549 $as_echo_n "checking for $ac_func... " >&6; }
22550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22551 $as_echo_n "(cached) " >&6
22552 else
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22561 #define $ac_func innocuous_$ac_func
22562
22563 /* System header to define __stub macros and hopefully few prototypes,
22564 which can conflict with char $ac_func (); below.
22565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22566 <limits.h> exists even on freestanding compilers. */
22567
22568 #ifdef __STDC__
22569 # include <limits.h>
22570 #else
22571 # include <assert.h>
22572 #endif
22573
22574 #undef $ac_func
22575
22576 /* Override any GCC internal prototype to avoid an error.
22577 Use char because int might match the return type of a GCC
22578 builtin and then its argument prototype would still apply. */
22579 #ifdef __cplusplus
22580 extern "C"
22581 #endif
22582 char $ac_func ();
22583 /* The GNU C library defines this for functions which it implements
22584 to always fail with ENOSYS. Some functions are actually named
22585 something starting with __ and the normal name is an alias. */
22586 #if defined __stub_$ac_func || defined __stub___$ac_func
22587 choke me
22588 #endif
22589
22590 int
22591 main ()
22592 {
22593 return $ac_func ();
22594 ;
22595 return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest.$ac_objext conftest$ac_exeext
22599 if { (ac_try="$ac_link"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22603 esac
22604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22605 $as_echo "$ac_try_echo") >&5
22606 (eval "$ac_link") 2>conftest.er1
22607 ac_status=$?
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
22611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && {
22613 test -z "$ac_c_werror_flag" ||
22614 test ! -s conftest.err
22615 } && test -s conftest$ac_exeext && {
22616 test "$cross_compiling" = yes ||
22617 $as_test_x conftest$ac_exeext
22618 }; then
22619 eval "$as_ac_var=yes"
22620 else
22621 $as_echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624 eval "$as_ac_var=no"
22625 fi
22626
22627 rm -rf conftest.dSYM
22628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22629 conftest$ac_exeext conftest.$ac_ext
22630 fi
22631 ac_res=`eval 'as_val=${'$as_ac_var'}
22632 $as_echo "$as_val"'`
22633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22634 $as_echo "$ac_res" >&6; }
22635 as_val=`eval 'as_val=${'$as_ac_var'}
22636 $as_echo "$as_val"'`
22637 if test "x$as_val" = x""yes; then
22638 cat >>confdefs.h <<_ACEOF
22639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22640 _ACEOF
22641
22642 fi
22643 done
22644
22645
22646
22647
22648 for ac_func in closedir opendir readdir
22649 do
22650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22652 $as_echo_n "checking for $ac_func... " >&6; }
22653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22654 $as_echo_n "(cached) " >&6
22655 else
22656 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h. */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22664 #define $ac_func innocuous_$ac_func
22665
22666 /* System header to define __stub macros and hopefully few prototypes,
22667 which can conflict with char $ac_func (); below.
22668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22669 <limits.h> exists even on freestanding compilers. */
22670
22671 #ifdef __STDC__
22672 # include <limits.h>
22673 #else
22674 # include <assert.h>
22675 #endif
22676
22677 #undef $ac_func
22678
22679 /* Override any GCC internal prototype to avoid an error.
22680 Use char because int might match the return type of a GCC
22681 builtin and then its argument prototype would still apply. */
22682 #ifdef __cplusplus
22683 extern "C"
22684 #endif
22685 char $ac_func ();
22686 /* The GNU C library defines this for functions which it implements
22687 to always fail with ENOSYS. Some functions are actually named
22688 something starting with __ and the normal name is an alias. */
22689 #if defined __stub_$ac_func || defined __stub___$ac_func
22690 choke me
22691 #endif
22692
22693 int
22694 main ()
22695 {
22696 return $ac_func ();
22697 ;
22698 return 0;
22699 }
22700 _ACEOF
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (ac_try="$ac_link"
22703 case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706 esac
22707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22708 $as_echo "$ac_try_echo") >&5
22709 (eval "$ac_link") 2>conftest.er1
22710 ac_status=$?
22711 grep -v '^ *+' conftest.er1 >conftest.err
22712 rm -f conftest.er1
22713 cat conftest.err >&5
22714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } && {
22716 test -z "$ac_c_werror_flag" ||
22717 test ! -s conftest.err
22718 } && test -s conftest$ac_exeext && {
22719 test "$cross_compiling" = yes ||
22720 $as_test_x conftest$ac_exeext
22721 }; then
22722 eval "$as_ac_var=yes"
22723 else
22724 $as_echo "$as_me: failed program was:" >&5
22725 sed 's/^/| /' conftest.$ac_ext >&5
22726
22727 eval "$as_ac_var=no"
22728 fi
22729
22730 rm -rf conftest.dSYM
22731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22732 conftest$ac_exeext conftest.$ac_ext
22733 fi
22734 ac_res=`eval 'as_val=${'$as_ac_var'}
22735 $as_echo "$as_val"'`
22736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22737 $as_echo "$ac_res" >&6; }
22738 as_val=`eval 'as_val=${'$as_ac_var'}
22739 $as_echo "$as_val"'`
22740 if test "x$as_val" = x""yes; then
22741 cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22743 _ACEOF
22744
22745 fi
22746 done
22747
22748
22749
22750
22751 # Checks for programs.
22752 ac_ext=cpp
22753 ac_cpp='$CXXCPP $CPPFLAGS'
22754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22757 if test -z "$CXX"; then
22758 if test -n "$CCC"; then
22759 CXX=$CCC
22760 else
22761 if test -n "$ac_tool_prefix"; then
22762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22763 do
22764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22767 $as_echo_n "checking for $ac_word... " >&6; }
22768 if test "${ac_cv_prog_CXX+set}" = set; then
22769 $as_echo_n "(cached) " >&6
22770 else
22771 if test -n "$CXX"; then
22772 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22773 else
22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 for as_dir in $PATH
22776 do
22777 IFS=$as_save_IFS
22778 test -z "$as_dir" && as_dir=.
22779 for ac_exec_ext in '' $ac_executable_extensions; do
22780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22781 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22783 break 2
22784 fi
22785 done
22786 done
22787 IFS=$as_save_IFS
22788
22789 fi
22790 fi
22791 CXX=$ac_cv_prog_CXX
22792 if test -n "$CXX"; then
22793 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
22794 $as_echo "$CXX" >&6; }
22795 else
22796 { $as_echo "$as_me:$LINENO: result: no" >&5
22797 $as_echo "no" >&6; }
22798 fi
22799
22800
22801 test -n "$CXX" && break
22802 done
22803 fi
22804 if test -z "$CXX"; then
22805 ac_ct_CXX=$CXX
22806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22807 do
22808 # Extract the first word of "$ac_prog", so it can be a program name with args.
22809 set dummy $ac_prog; ac_word=$2
22810 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22811 $as_echo_n "checking for $ac_word... " >&6; }
22812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
22813 $as_echo_n "(cached) " >&6
22814 else
22815 if test -n "$ac_ct_CXX"; then
22816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22817 else
22818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22819 for as_dir in $PATH
22820 do
22821 IFS=$as_save_IFS
22822 test -z "$as_dir" && as_dir=.
22823 for ac_exec_ext in '' $ac_executable_extensions; do
22824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22825 ac_cv_prog_ac_ct_CXX="$ac_prog"
22826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22827 break 2
22828 fi
22829 done
22830 done
22831 IFS=$as_save_IFS
22832
22833 fi
22834 fi
22835 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22836 if test -n "$ac_ct_CXX"; then
22837 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
22838 $as_echo "$ac_ct_CXX" >&6; }
22839 else
22840 { $as_echo "$as_me:$LINENO: result: no" >&5
22841 $as_echo "no" >&6; }
22842 fi
22843
22844
22845 test -n "$ac_ct_CXX" && break
22846 done
22847
22848 if test "x$ac_ct_CXX" = x; then
22849 CXX="g++"
22850 else
22851 case $cross_compiling:$ac_tool_warned in
22852 yes:)
22853 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22855 ac_tool_warned=yes ;;
22856 esac
22857 CXX=$ac_ct_CXX
22858 fi
22859 fi
22860
22861 fi
22862 fi
22863 # Provide some information about the compiler.
22864 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
22865 set X $ac_compile
22866 ac_compiler=$2
22867 { (ac_try="$ac_compiler --version >&5"
22868 case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22871 esac
22872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22873 $as_echo "$ac_try_echo") >&5
22874 (eval "$ac_compiler --version >&5") 2>&5
22875 ac_status=$?
22876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); }
22878 { (ac_try="$ac_compiler -v >&5"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22882 esac
22883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22884 $as_echo "$ac_try_echo") >&5
22885 (eval "$ac_compiler -v >&5") 2>&5
22886 ac_status=$?
22887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }
22889 { (ac_try="$ac_compiler -V >&5"
22890 case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22893 esac
22894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22895 $as_echo "$ac_try_echo") >&5
22896 (eval "$ac_compiler -V >&5") 2>&5
22897 ac_status=$?
22898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }
22900
22901 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
22902 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22903 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
22904 $as_echo_n "(cached) " >&6
22905 else
22906 cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h. */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912
22913 int
22914 main ()
22915 {
22916 #ifndef __GNUC__
22917 choke me
22918 #endif
22919
22920 ;
22921 return 0;
22922 }
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932 (eval "$ac_compile") 2>conftest.er1
22933 ac_status=$?
22934 grep -v '^ *+' conftest.er1 >conftest.err
22935 rm -f conftest.er1
22936 cat conftest.err >&5
22937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_cxx_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest.$ac_objext; then
22942 ac_compiler_gnu=yes
22943 else
22944 $as_echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22946
22947 ac_compiler_gnu=no
22948 fi
22949
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22952
22953 fi
22954 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
22955 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22956 if test $ac_compiler_gnu = yes; then
22957 GXX=yes
22958 else
22959 GXX=
22960 fi
22961 ac_test_CXXFLAGS=${CXXFLAGS+set}
22962 ac_save_CXXFLAGS=$CXXFLAGS
22963 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
22964 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
22965 if test "${ac_cv_prog_cxx_g+set}" = set; then
22966 $as_echo_n "(cached) " >&6
22967 else
22968 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22969 ac_cxx_werror_flag=yes
22970 ac_cv_prog_cxx_g=no
22971 CXXFLAGS="-g"
22972 cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h. */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22978
22979 int
22980 main ()
22981 {
22982
22983 ;
22984 return 0;
22985 }
22986 _ACEOF
22987 rm -f conftest.$ac_objext
22988 if { (ac_try="$ac_compile"
22989 case "(($ac_try" in
22990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22991 *) ac_try_echo=$ac_try;;
22992 esac
22993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22994 $as_echo "$ac_try_echo") >&5
22995 (eval "$ac_compile") 2>conftest.er1
22996 ac_status=$?
22997 grep -v '^ *+' conftest.er1 >conftest.err
22998 rm -f conftest.er1
22999 cat conftest.err >&5
23000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } && {
23002 test -z "$ac_cxx_werror_flag" ||
23003 test ! -s conftest.err
23004 } && test -s conftest.$ac_objext; then
23005 ac_cv_prog_cxx_g=yes
23006 else
23007 $as_echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010 CXXFLAGS=""
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h. */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23017
23018 int
23019 main ()
23020 {
23021
23022 ;
23023 return 0;
23024 }
23025 _ACEOF
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23031 esac
23032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23033 $as_echo "$ac_try_echo") >&5
23034 (eval "$ac_compile") 2>conftest.er1
23035 ac_status=$?
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
23039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } && {
23041 test -z "$ac_cxx_werror_flag" ||
23042 test ! -s conftest.err
23043 } && test -s conftest.$ac_objext; then
23044 :
23045 else
23046 $as_echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23050 CXXFLAGS="-g"
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057
23058 int
23059 main ()
23060 {
23061
23062 ;
23063 return 0;
23064 }
23065 _ACEOF
23066 rm -f conftest.$ac_objext
23067 if { (ac_try="$ac_compile"
23068 case "(($ac_try" in
23069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070 *) ac_try_echo=$ac_try;;
23071 esac
23072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23073 $as_echo "$ac_try_echo") >&5
23074 (eval "$ac_compile") 2>conftest.er1
23075 ac_status=$?
23076 grep -v '^ *+' conftest.er1 >conftest.err
23077 rm -f conftest.er1
23078 cat conftest.err >&5
23079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_cxx_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest.$ac_objext; then
23084 ac_cv_prog_cxx_g=yes
23085 else
23086 $as_echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089
23090 fi
23091
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 fi
23094
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 fi
23097
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23100 fi
23101 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
23102 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23103 if test "$ac_test_CXXFLAGS" = set; then
23104 CXXFLAGS=$ac_save_CXXFLAGS
23105 elif test $ac_cv_prog_cxx_g = yes; then
23106 if test "$GXX" = yes; then
23107 CXXFLAGS="-g -O2"
23108 else
23109 CXXFLAGS="-g"
23110 fi
23111 else
23112 if test "$GXX" = yes; then
23113 CXXFLAGS="-O2"
23114 else
23115 CXXFLAGS=
23116 fi
23117 fi
23118 ac_ext=c
23119 ac_cpp='$CPP $CPPFLAGS'
23120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23123
23124 depcc="$CXX" am_compiler_list=
23125
23126 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
23127 $as_echo_n "checking dependency style of $depcc... " >&6; }
23128 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
23129 $as_echo_n "(cached) " >&6
23130 else
23131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23132 # We make a subdir and do the tests there. Otherwise we can end up
23133 # making bogus files that we don't know about and never remove. For
23134 # instance it was reported that on HP-UX the gcc test will end up
23135 # making a dummy file named `D' -- because `-MD' means `put the output
23136 # in D'.
23137 mkdir conftest.dir
23138 # Copy depcomp to subdir because otherwise we won't find it if we're
23139 # using a relative directory.
23140 cp "$am_depcomp" conftest.dir
23141 cd conftest.dir
23142 # We will build objects and dependencies in a subdirectory because
23143 # it helps to detect inapplicable dependency modes. For instance
23144 # both Tru64's cc and ICC support -MD to output dependencies as a
23145 # side effect of compilation, but ICC will put the dependencies in
23146 # the current directory while Tru64 will put them in the object
23147 # directory.
23148 mkdir sub
23149
23150 am_cv_CXX_dependencies_compiler_type=none
23151 if test "$am_compiler_list" = ""; then
23152 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23153 fi
23154 for depmode in $am_compiler_list; do
23155 # Setup a source with many dependencies, because some compilers
23156 # like to wrap large dependency lists on column 80 (with \), and
23157 # we should not choose a depcomp mode which is confused by this.
23158 #
23159 # We need to recreate these files for each test, as the compiler may
23160 # overwrite some of them when testing with obscure command lines.
23161 # This happens at least with the AIX C compiler.
23162 : > sub/conftest.c
23163 for i in 1 2 3 4 5 6; do
23164 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23165 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23166 # Solaris 8's {/usr,}/bin/sh.
23167 touch sub/conftst$i.h
23168 done
23169 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23170
23171 case $depmode in
23172 nosideeffect)
23173 # after this tag, mechanisms are not by side-effect, so they'll
23174 # only be used when explicitly requested
23175 if test "x$enable_dependency_tracking" = xyes; then
23176 continue
23177 else
23178 break
23179 fi
23180 ;;
23181 none) break ;;
23182 esac
23183 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23184 # mode. It turns out that the SunPro C++ compiler does not properly
23185 # handle `-M -o', and we need to detect this.
23186 if depmode=$depmode \
23187 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23189 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23190 >/dev/null 2>conftest.err &&
23191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23193 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23195 # icc doesn't choke on unknown options, it will just issue warnings
23196 # or remarks (even with -Werror). So we grep stderr for any message
23197 # that says an option was ignored or not supported.
23198 # When given -MP, icc 7.0 and 7.1 complain thusly:
23199 # icc: Command line warning: ignoring option '-M'; no argument required
23200 # The diagnosis changed in icc 8.0:
23201 # icc: Command line remark: option '-MP' not supported
23202 if (grep 'ignoring option' conftest.err ||
23203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23204 am_cv_CXX_dependencies_compiler_type=$depmode
23205 break
23206 fi
23207 fi
23208 done
23209
23210 cd ..
23211 rm -rf conftest.dir
23212 else
23213 am_cv_CXX_dependencies_compiler_type=none
23214 fi
23215
23216 fi
23217 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
23218 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23219 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23220
23221 if
23222 test "x$enable_dependency_tracking" != xno \
23223 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23224 am__fastdepCXX_TRUE=
23225 am__fastdepCXX_FALSE='#'
23226 else
23227 am__fastdepCXX_TRUE='#'
23228 am__fastdepCXX_FALSE=
23229 fi
23230
23231
23232 ac_ext=c
23233 ac_cpp='$CPP $CPPFLAGS'
23234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23237 if test -n "$ac_tool_prefix"; then
23238 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
23239 set dummy ${ac_tool_prefix}gcc; ac_word=$2
23240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23241 $as_echo_n "checking for $ac_word... " >&6; }
23242 if test "${ac_cv_prog_CC+set}" = set; then
23243 $as_echo_n "(cached) " >&6
23244 else
23245 if test -n "$CC"; then
23246 ac_cv_prog_CC="$CC" # Let the user override the test.
23247 else
23248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23249 for as_dir in $PATH
23250 do
23251 IFS=$as_save_IFS
23252 test -z "$as_dir" && as_dir=.
23253 for ac_exec_ext in '' $ac_executable_extensions; do
23254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23255 ac_cv_prog_CC="${ac_tool_prefix}gcc"
23256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23257 break 2
23258 fi
23259 done
23260 done
23261 IFS=$as_save_IFS
23262
23263 fi
23264 fi
23265 CC=$ac_cv_prog_CC
23266 if test -n "$CC"; then
23267 { $as_echo "$as_me:$LINENO: result: $CC" >&5
23268 $as_echo "$CC" >&6; }
23269 else
23270 { $as_echo "$as_me:$LINENO: result: no" >&5
23271 $as_echo "no" >&6; }
23272 fi
23273
23274
23275 fi
23276 if test -z "$ac_cv_prog_CC"; then
23277 ac_ct_CC=$CC
23278 # Extract the first word of "gcc", so it can be a program name with args.
23279 set dummy gcc; ac_word=$2
23280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23281 $as_echo_n "checking for $ac_word... " >&6; }
23282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
23283 $as_echo_n "(cached) " >&6
23284 else
23285 if test -n "$ac_ct_CC"; then
23286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23287 else
23288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23289 for as_dir in $PATH
23290 do
23291 IFS=$as_save_IFS
23292 test -z "$as_dir" && as_dir=.
23293 for ac_exec_ext in '' $ac_executable_extensions; do
23294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23295 ac_cv_prog_ac_ct_CC="gcc"
23296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23297 break 2
23298 fi
23299 done
23300 done
23301 IFS=$as_save_IFS
23302
23303 fi
23304 fi
23305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
23306 if test -n "$ac_ct_CC"; then
23307 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
23308 $as_echo "$ac_ct_CC" >&6; }
23309 else
23310 { $as_echo "$as_me:$LINENO: result: no" >&5
23311 $as_echo "no" >&6; }
23312 fi
23313
23314 if test "x$ac_ct_CC" = x; then
23315 CC=""
23316 else
23317 case $cross_compiling:$ac_tool_warned in
23318 yes:)
23319 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23321 ac_tool_warned=yes ;;
23322 esac
23323 CC=$ac_ct_CC
23324 fi
23325 else
23326 CC="$ac_cv_prog_CC"
23327 fi
23328
23329 if test -z "$CC"; then
23330 if test -n "$ac_tool_prefix"; then
23331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
23332 set dummy ${ac_tool_prefix}cc; ac_word=$2
23333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23334 $as_echo_n "checking for $ac_word... " >&6; }
23335 if test "${ac_cv_prog_CC+set}" = set; then
23336 $as_echo_n "(cached) " >&6
23337 else
23338 if test -n "$CC"; then
23339 ac_cv_prog_CC="$CC" # Let the user override the test.
23340 else
23341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342 for as_dir in $PATH
23343 do
23344 IFS=$as_save_IFS
23345 test -z "$as_dir" && as_dir=.
23346 for ac_exec_ext in '' $ac_executable_extensions; do
23347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23348 ac_cv_prog_CC="${ac_tool_prefix}cc"
23349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23350 break 2
23351 fi
23352 done
23353 done
23354 IFS=$as_save_IFS
23355
23356 fi
23357 fi
23358 CC=$ac_cv_prog_CC
23359 if test -n "$CC"; then
23360 { $as_echo "$as_me:$LINENO: result: $CC" >&5
23361 $as_echo "$CC" >&6; }
23362 else
23363 { $as_echo "$as_me:$LINENO: result: no" >&5
23364 $as_echo "no" >&6; }
23365 fi
23366
23367
23368 fi
23369 fi
23370 if test -z "$CC"; then
23371 # Extract the first word of "cc", so it can be a program name with args.
23372 set dummy cc; ac_word=$2
23373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23374 $as_echo_n "checking for $ac_word... " >&6; }
23375 if test "${ac_cv_prog_CC+set}" = set; then
23376 $as_echo_n "(cached) " >&6
23377 else
23378 if test -n "$CC"; then
23379 ac_cv_prog_CC="$CC" # Let the user override the test.
23380 else
23381 ac_prog_rejected=no
23382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23383 for as_dir in $PATH
23384 do
23385 IFS=$as_save_IFS
23386 test -z "$as_dir" && as_dir=.
23387 for ac_exec_ext in '' $ac_executable_extensions; do
23388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
23390 ac_prog_rejected=yes
23391 continue
23392 fi
23393 ac_cv_prog_CC="cc"
23394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23395 break 2
23396 fi
23397 done
23398 done
23399 IFS=$as_save_IFS
23400
23401 if test $ac_prog_rejected = yes; then
23402 # We found a bogon in the path, so make sure we never use it.
23403 set dummy $ac_cv_prog_CC
23404 shift
23405 if test $# != 0; then
23406 # We chose a different compiler from the bogus one.
23407 # However, it has the same basename, so the bogon will be chosen
23408 # first if we set CC to just the basename; use the full file name.
23409 shift
23410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
23411 fi
23412 fi
23413 fi
23414 fi
23415 CC=$ac_cv_prog_CC
23416 if test -n "$CC"; then
23417 { $as_echo "$as_me:$LINENO: result: $CC" >&5
23418 $as_echo "$CC" >&6; }
23419 else
23420 { $as_echo "$as_me:$LINENO: result: no" >&5
23421 $as_echo "no" >&6; }
23422 fi
23423
23424
23425 fi
23426 if test -z "$CC"; then
23427 if test -n "$ac_tool_prefix"; then
23428 for ac_prog in cl.exe
23429 do
23430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23433 $as_echo_n "checking for $ac_word... " >&6; }
23434 if test "${ac_cv_prog_CC+set}" = set; then
23435 $as_echo_n "(cached) " >&6
23436 else
23437 if test -n "$CC"; then
23438 ac_cv_prog_CC="$CC" # Let the user override the test.
23439 else
23440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23441 for as_dir in $PATH
23442 do
23443 IFS=$as_save_IFS
23444 test -z "$as_dir" && as_dir=.
23445 for ac_exec_ext in '' $ac_executable_extensions; do
23446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
23448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23449 break 2
23450 fi
23451 done
23452 done
23453 IFS=$as_save_IFS
23454
23455 fi
23456 fi
23457 CC=$ac_cv_prog_CC
23458 if test -n "$CC"; then
23459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
23460 $as_echo "$CC" >&6; }
23461 else
23462 { $as_echo "$as_me:$LINENO: result: no" >&5
23463 $as_echo "no" >&6; }
23464 fi
23465
23466
23467 test -n "$CC" && break
23468 done
23469 fi
23470 if test -z "$CC"; then
23471 ac_ct_CC=$CC
23472 for ac_prog in cl.exe
23473 do
23474 # Extract the first word of "$ac_prog", so it can be a program name with args.
23475 set dummy $ac_prog; ac_word=$2
23476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23477 $as_echo_n "checking for $ac_word... " >&6; }
23478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
23479 $as_echo_n "(cached) " >&6
23480 else
23481 if test -n "$ac_ct_CC"; then
23482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23483 else
23484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23485 for as_dir in $PATH
23486 do
23487 IFS=$as_save_IFS
23488 test -z "$as_dir" && as_dir=.
23489 for ac_exec_ext in '' $ac_executable_extensions; do
23490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23491 ac_cv_prog_ac_ct_CC="$ac_prog"
23492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23493 break 2
23494 fi
23495 done
23496 done
23497 IFS=$as_save_IFS
23498
23499 fi
23500 fi
23501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
23502 if test -n "$ac_ct_CC"; then
23503 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
23504 $as_echo "$ac_ct_CC" >&6; }
23505 else
23506 { $as_echo "$as_me:$LINENO: result: no" >&5
23507 $as_echo "no" >&6; }
23508 fi
23509
23510
23511 test -n "$ac_ct_CC" && break
23512 done
23513
23514 if test "x$ac_ct_CC" = x; then
23515 CC=""
23516 else
23517 case $cross_compiling:$ac_tool_warned in
23518 yes:)
23519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23521 ac_tool_warned=yes ;;
23522 esac
23523 CC=$ac_ct_CC
23524 fi
23525 fi
23526
23527 fi
23528
23529
23530 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23532 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
23533 See \`config.log' for more details." >&5
23534 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
23535 See \`config.log' for more details." >&2;}
23536 { (exit 1); exit 1; }; }; }
23537
23538 # Provide some information about the compiler.
23539 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
23540 set X $ac_compile
23541 ac_compiler=$2
23542 { (ac_try="$ac_compiler --version >&5"
23543 case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23546 esac
23547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23548 $as_echo "$ac_try_echo") >&5
23549 (eval "$ac_compiler --version >&5") 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }
23553 { (ac_try="$ac_compiler -v >&5"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23559 $as_echo "$ac_try_echo") >&5
23560 (eval "$ac_compiler -v >&5") 2>&5
23561 ac_status=$?
23562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }
23564 { (ac_try="$ac_compiler -V >&5"
23565 case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23568 esac
23569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23570 $as_echo "$ac_try_echo") >&5
23571 (eval "$ac_compiler -V >&5") 2>&5
23572 ac_status=$?
23573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }
23575
23576 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
23577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
23578 if test "${ac_cv_c_compiler_gnu+set}" = set; then
23579 $as_echo_n "(cached) " >&6
23580 else
23581 cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h. */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23587
23588 int
23589 main ()
23590 {
23591 #ifndef __GNUC__
23592 choke me
23593 #endif
23594
23595 ;
23596 return 0;
23597 }
23598 _ACEOF
23599 rm -f conftest.$ac_objext
23600 if { (ac_try="$ac_compile"
23601 case "(($ac_try" in
23602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603 *) ac_try_echo=$ac_try;;
23604 esac
23605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23606 $as_echo "$ac_try_echo") >&5
23607 (eval "$ac_compile") 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && {
23614 test -z "$ac_c_werror_flag" ||
23615 test ! -s conftest.err
23616 } && test -s conftest.$ac_objext; then
23617 ac_compiler_gnu=yes
23618 else
23619 $as_echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622 ac_compiler_gnu=no
23623 fi
23624
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
23627
23628 fi
23629 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
23630 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
23631 if test $ac_compiler_gnu = yes; then
23632 GCC=yes
23633 else
23634 GCC=
23635 fi
23636 ac_test_CFLAGS=${CFLAGS+set}
23637 ac_save_CFLAGS=$CFLAGS
23638 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
23639 $as_echo_n "checking whether $CC accepts -g... " >&6; }
23640 if test "${ac_cv_prog_cc_g+set}" = set; then
23641 $as_echo_n "(cached) " >&6
23642 else
23643 ac_save_c_werror_flag=$ac_c_werror_flag
23644 ac_c_werror_flag=yes
23645 ac_cv_prog_cc_g=no
23646 CFLAGS="-g"
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h. */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653
23654 int
23655 main ()
23656 {
23657
23658 ;
23659 return 0;
23660 }
23661 _ACEOF
23662 rm -f conftest.$ac_objext
23663 if { (ac_try="$ac_compile"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23667 esac
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670 (eval "$ac_compile") 2>conftest.er1
23671 ac_status=$?
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
23675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest.$ac_objext; then
23680 ac_cv_prog_cc_g=yes
23681 else
23682 $as_echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685 CFLAGS=""
23686 cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h. */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692
23693 int
23694 main ()
23695 {
23696
23697 ;
23698 return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23706 esac
23707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709 (eval "$ac_compile") 2>conftest.er1
23710 ac_status=$?
23711 grep -v '^ *+' conftest.er1 >conftest.err
23712 rm -f conftest.er1
23713 cat conftest.err >&5
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } && {
23716 test -z "$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 } && test -s conftest.$ac_objext; then
23719 :
23720 else
23721 $as_echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23723
23724 ac_c_werror_flag=$ac_save_c_werror_flag
23725 CFLAGS="-g"
23726 cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h. */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h. */
23732
23733 int
23734 main ()
23735 {
23736
23737 ;
23738 return 0;
23739 }
23740 _ACEOF
23741 rm -f conftest.$ac_objext
23742 if { (ac_try="$ac_compile"
23743 case "(($ac_try" in
23744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745 *) ac_try_echo=$ac_try;;
23746 esac
23747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23748 $as_echo "$ac_try_echo") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 ac_cv_prog_cc_g=yes
23760 else
23761 $as_echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764
23765 fi
23766
23767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768 fi
23769
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774 ac_c_werror_flag=$ac_save_c_werror_flag
23775 fi
23776 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
23777 $as_echo "$ac_cv_prog_cc_g" >&6; }
23778 if test "$ac_test_CFLAGS" = set; then
23779 CFLAGS=$ac_save_CFLAGS
23780 elif test $ac_cv_prog_cc_g = yes; then
23781 if test "$GCC" = yes; then
23782 CFLAGS="-g -O2"
23783 else
23784 CFLAGS="-g"
23785 fi
23786 else
23787 if test "$GCC" = yes; then
23788 CFLAGS="-O2"
23789 else
23790 CFLAGS=
23791 fi
23792 fi
23793 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
23794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
23795 if test "${ac_cv_prog_cc_c89+set}" = set; then
23796 $as_echo_n "(cached) " >&6
23797 else
23798 ac_cv_prog_cc_c89=no
23799 ac_save_CC=$CC
23800 cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h. */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23806 #include <stdarg.h>
23807 #include <stdio.h>
23808 #include <sys/types.h>
23809 #include <sys/stat.h>
23810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
23811 struct buf { int x; };
23812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
23813 static char *e (p, i)
23814 char **p;
23815 int i;
23816 {
23817 return p[i];
23818 }
23819 static char *f (char * (*g) (char **, int), char **p, ...)
23820 {
23821 char *s;
23822 va_list v;
23823 va_start (v,p);
23824 s = g (p, va_arg (v,int));
23825 va_end (v);
23826 return s;
23827 }
23828
23829 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
23830 function prototypes and stuff, but not '\xHH' hex character constants.
23831 These don't provoke an error unfortunately, instead are silently treated
23832 as 'x'. The following induces an error, until -std is added to get
23833 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
23834 array size at least. It's necessary to write '\x00'==0 to get something
23835 that's true only with -std. */
23836 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
23837
23838 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
23839 inside strings and character constants. */
23840 #define FOO(x) 'x'
23841 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
23842
23843 int test (int i, double x);
23844 struct s1 {int (*f) (int a);};
23845 struct s2 {int (*f) (double a);};
23846 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
23847 int argc;
23848 char **argv;
23849 int
23850 main ()
23851 {
23852 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
23853 ;
23854 return 0;
23855 }
23856 _ACEOF
23857 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
23858 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
23859 do
23860 CC="$ac_save_CC $ac_arg"
23861 rm -f conftest.$ac_objext
23862 if { (ac_try="$ac_compile"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866 esac
23867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23868 $as_echo "$ac_try_echo") >&5
23869 (eval "$ac_compile") 2>conftest.er1
23870 ac_status=$?
23871 grep -v '^ *+' conftest.er1 >conftest.err
23872 rm -f conftest.er1
23873 cat conftest.err >&5
23874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } && {
23876 test -z "$ac_c_werror_flag" ||
23877 test ! -s conftest.err
23878 } && test -s conftest.$ac_objext; then
23879 ac_cv_prog_cc_c89=$ac_arg
23880 else
23881 $as_echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23883
23884
23885 fi
23886
23887 rm -f core conftest.err conftest.$ac_objext
23888 test "x$ac_cv_prog_cc_c89" != "xno" && break
23889 done
23890 rm -f conftest.$ac_ext
23891 CC=$ac_save_CC
23892
23893 fi
23894 # AC_CACHE_VAL
23895 case "x$ac_cv_prog_cc_c89" in
23896 x)
23897 { $as_echo "$as_me:$LINENO: result: none needed" >&5
23898 $as_echo "none needed" >&6; } ;;
23899 xno)
23900 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
23901 $as_echo "unsupported" >&6; } ;;
23902 *)
23903 CC="$CC $ac_cv_prog_cc_c89"
23904 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
23905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
23906 esac
23907
23908
23909 ac_ext=c
23910 ac_cpp='$CPP $CPPFLAGS'
23911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23914
23915 depcc="$CC" am_compiler_list=
23916
23917 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
23918 $as_echo_n "checking dependency style of $depcc... " >&6; }
23919 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
23920 $as_echo_n "(cached) " >&6
23921 else
23922 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23923 # We make a subdir and do the tests there. Otherwise we can end up
23924 # making bogus files that we don't know about and never remove. For
23925 # instance it was reported that on HP-UX the gcc test will end up
23926 # making a dummy file named `D' -- because `-MD' means `put the output
23927 # in D'.
23928 mkdir conftest.dir
23929 # Copy depcomp to subdir because otherwise we won't find it if we're
23930 # using a relative directory.
23931 cp "$am_depcomp" conftest.dir
23932 cd conftest.dir
23933 # We will build objects and dependencies in a subdirectory because
23934 # it helps to detect inapplicable dependency modes. For instance
23935 # both Tru64's cc and ICC support -MD to output dependencies as a
23936 # side effect of compilation, but ICC will put the dependencies in
23937 # the current directory while Tru64 will put them in the object
23938 # directory.
23939 mkdir sub
23940
23941 am_cv_CC_dependencies_compiler_type=none
23942 if test "$am_compiler_list" = ""; then
23943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23944 fi
23945 for depmode in $am_compiler_list; do
23946 # Setup a source with many dependencies, because some compilers
23947 # like to wrap large dependency lists on column 80 (with \), and
23948 # we should not choose a depcomp mode which is confused by this.
23949 #
23950 # We need to recreate these files for each test, as the compiler may
23951 # overwrite some of them when testing with obscure command lines.
23952 # This happens at least with the AIX C compiler.
23953 : > sub/conftest.c
23954 for i in 1 2 3 4 5 6; do
23955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23957 # Solaris 8's {/usr,}/bin/sh.
23958 touch sub/conftst$i.h
23959 done
23960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23961
23962 case $depmode in
23963 nosideeffect)
23964 # after this tag, mechanisms are not by side-effect, so they'll
23965 # only be used when explicitly requested
23966 if test "x$enable_dependency_tracking" = xyes; then
23967 continue
23968 else
23969 break
23970 fi
23971 ;;
23972 none) break ;;
23973 esac
23974 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23975 # mode. It turns out that the SunPro C++ compiler does not properly
23976 # handle `-M -o', and we need to detect this.
23977 if depmode=$depmode \
23978 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23979 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23980 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23981 >/dev/null 2>conftest.err &&
23982 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23983 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23984 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23985 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23986 # icc doesn't choke on unknown options, it will just issue warnings
23987 # or remarks (even with -Werror). So we grep stderr for any message
23988 # that says an option was ignored or not supported.
23989 # When given -MP, icc 7.0 and 7.1 complain thusly:
23990 # icc: Command line warning: ignoring option '-M'; no argument required
23991 # The diagnosis changed in icc 8.0:
23992 # icc: Command line remark: option '-MP' not supported
23993 if (grep 'ignoring option' conftest.err ||
23994 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23995 am_cv_CC_dependencies_compiler_type=$depmode
23996 break
23997 fi
23998 fi
23999 done
24000
24001 cd ..
24002 rm -rf conftest.dir
24003 else
24004 am_cv_CC_dependencies_compiler_type=none
24005 fi
24006
24007 fi
24008 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
24009 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
24010 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
24011
24012 if
24013 test "x$enable_dependency_tracking" != xno \
24014 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
24015 am__fastdepCC_TRUE=
24016 am__fastdepCC_FALSE='#'
24017 else
24018 am__fastdepCC_TRUE='#'
24019 am__fastdepCC_FALSE=
24020 fi
24021
24022
24023 ac_ext=cpp
24024 ac_cpp='$CXXCPP $CPPFLAGS'
24025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24028
24029
24030 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24031 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24032 if test "${ac_cv_c_const+set}" = set; then
24033 $as_echo_n "(cached) " >&6
24034 else
24035 cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h. */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041
24042 int
24043 main ()
24044 {
24045 /* FIXME: Include the comments suggested by Paul. */
24046 #ifndef __cplusplus
24047 /* Ultrix mips cc rejects this. */
24048 typedef int charset[2];
24049 const charset cs;
24050 /* SunOS 4.1.1 cc rejects this. */
24051 char const *const *pcpcc;
24052 char **ppc;
24053 /* NEC SVR4.0.2 mips cc rejects this. */
24054 struct point {int x, y;};
24055 static struct point const zero = {0,0};
24056 /* AIX XL C 1.02.0.0 rejects this.
24057 It does not let you subtract one const X* pointer from another in
24058 an arm of an if-expression whose if-part is not a constant
24059 expression */
24060 const char *g = "string";
24061 pcpcc = &g + (g ? g-g : 0);
24062 /* HPUX 7.0 cc rejects these. */
24063 ++pcpcc;
24064 ppc = (char**) pcpcc;
24065 pcpcc = (char const *const *) ppc;
24066 { /* SCO 3.2v4 cc rejects this. */
24067 char *t;
24068 char const *s = 0 ? (char *) 0 : (char const *) 0;
24069
24070 *t++ = 0;
24071 if (s) return 0;
24072 }
24073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24074 int x[] = {25, 17};
24075 const int *foo = &x[0];
24076 ++foo;
24077 }
24078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24079 typedef const int *iptr;
24080 iptr p = 0;
24081 ++p;
24082 }
24083 { /* AIX XL C 1.02.0.0 rejects this saying
24084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24085 struct s { int j; const int *ap[3]; };
24086 struct s *b; b->j = 5;
24087 }
24088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24089 const int foo = 10;
24090 if (!foo) return 0;
24091 }
24092 return !cs[0] && !zero.x;
24093 #endif
24094
24095 ;
24096 return 0;
24097 }
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24104 esac
24105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24106 $as_echo "$ac_try_echo") >&5
24107 (eval "$ac_compile") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_cxx_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest.$ac_objext; then
24117 ac_cv_c_const=yes
24118 else
24119 $as_echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_cv_c_const=no
24123 fi
24124
24125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24126 fi
24127 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24128 $as_echo "$ac_cv_c_const" >&6; }
24129 if test $ac_cv_c_const = no; then
24130
24131 cat >>confdefs.h <<\_ACEOF
24132 #define const /**/
24133 _ACEOF
24134
24135 fi
24136
24137 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24138 $as_echo_n "checking for size_t... " >&6; }
24139 if test "${ac_cv_type_size_t+set}" = set; then
24140 $as_echo_n "(cached) " >&6
24141 else
24142 ac_cv_type_size_t=no
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h. */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 $ac_includes_default
24150 int
24151 main ()
24152 {
24153 if (sizeof (size_t))
24154 return 0;
24155 ;
24156 return 0;
24157 }
24158 _ACEOF
24159 rm -f conftest.$ac_objext
24160 if { (ac_try="$ac_compile"
24161 case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24164 esac
24165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24166 $as_echo "$ac_try_echo") >&5
24167 (eval "$ac_compile") 2>conftest.er1
24168 ac_status=$?
24169 grep -v '^ *+' conftest.er1 >conftest.err
24170 rm -f conftest.er1
24171 cat conftest.err >&5
24172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } && {
24174 test -z "$ac_cxx_werror_flag" ||
24175 test ! -s conftest.err
24176 } && test -s conftest.$ac_objext; then
24177 cat >conftest.$ac_ext <<_ACEOF
24178 /* confdefs.h. */
24179 _ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h. */
24183 $ac_includes_default
24184 int
24185 main ()
24186 {
24187 if (sizeof ((size_t)))
24188 return 0;
24189 ;
24190 return 0;
24191 }
24192 _ACEOF
24193 rm -f conftest.$ac_objext
24194 if { (ac_try="$ac_compile"
24195 case "(($ac_try" in
24196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24197 *) ac_try_echo=$ac_try;;
24198 esac
24199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24200 $as_echo "$ac_try_echo") >&5
24201 (eval "$ac_compile") 2>conftest.er1
24202 ac_status=$?
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
24206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && {
24208 test -z "$ac_cxx_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest.$ac_objext; then
24211 :
24212 else
24213 $as_echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.$ac_ext >&5
24215
24216 ac_cv_type_size_t=yes
24217 fi
24218
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220 else
24221 $as_echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224
24225 fi
24226
24227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 fi
24229 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24230 $as_echo "$ac_cv_type_size_t" >&6; }
24231 if test "x$ac_cv_type_size_t" = x""yes; then
24232 :
24233 else
24234
24235 cat >>confdefs.h <<_ACEOF
24236 #define size_t unsigned int
24237 _ACEOF
24238
24239 fi
24240
24241
24242 # Checks for libraries.
24243
24244 SCIM_VERSION=1.4.0
24245 M17N_VERSION=1.2.0
24246
24247
24248
24249 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24250 if test -n "$ac_tool_prefix"; then
24251 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24252 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24254 $as_echo_n "checking for $ac_word... " >&6; }
24255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24256 $as_echo_n "(cached) " >&6
24257 else
24258 case $PKG_CONFIG in
24259 [\\/]* | ?:[\\/]*)
24260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24261 ;;
24262 *)
24263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24264 for as_dir in $PATH
24265 do
24266 IFS=$as_save_IFS
24267 test -z "$as_dir" && as_dir=.
24268 for ac_exec_ext in '' $ac_executable_extensions; do
24269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24272 break 2
24273 fi
24274 done
24275 done
24276 IFS=$as_save_IFS
24277
24278 ;;
24279 esac
24280 fi
24281 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24282 if test -n "$PKG_CONFIG"; then
24283 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24284 $as_echo "$PKG_CONFIG" >&6; }
24285 else
24286 { $as_echo "$as_me:$LINENO: result: no" >&5
24287 $as_echo "no" >&6; }
24288 fi
24289
24290
24291 fi
24292 if test -z "$ac_cv_path_PKG_CONFIG"; then
24293 ac_pt_PKG_CONFIG=$PKG_CONFIG
24294 # Extract the first word of "pkg-config", so it can be a program name with args.
24295 set dummy pkg-config; ac_word=$2
24296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24297 $as_echo_n "checking for $ac_word... " >&6; }
24298 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
24299 $as_echo_n "(cached) " >&6
24300 else
24301 case $ac_pt_PKG_CONFIG in
24302 [\\/]* | ?:[\\/]*)
24303 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24304 ;;
24305 *)
24306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24307 for as_dir in $PATH
24308 do
24309 IFS=$as_save_IFS
24310 test -z "$as_dir" && as_dir=.
24311 for ac_exec_ext in '' $ac_executable_extensions; do
24312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24313 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24315 break 2
24316 fi
24317 done
24318 done
24319 IFS=$as_save_IFS
24320
24321 ;;
24322 esac
24323 fi
24324 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24325 if test -n "$ac_pt_PKG_CONFIG"; then
24326 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
24327 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24328 else
24329 { $as_echo "$as_me:$LINENO: result: no" >&5
24330 $as_echo "no" >&6; }
24331 fi
24332
24333 if test "x$ac_pt_PKG_CONFIG" = x; then
24334 PKG_CONFIG=""
24335 else
24336 case $cross_compiling:$ac_tool_warned in
24337 yes:)
24338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24340 ac_tool_warned=yes ;;
24341 esac
24342 PKG_CONFIG=$ac_pt_PKG_CONFIG
24343 fi
24344 else
24345 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24346 fi
24347
24348 fi
24349 if test -n "$PKG_CONFIG"; then
24350 _pkg_min_version=0.9.0
24351 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24352 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24353 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24354 { $as_echo "$as_me:$LINENO: result: yes" >&5
24355 $as_echo "yes" >&6; }
24356 else
24357 { $as_echo "$as_me:$LINENO: result: no" >&5
24358 $as_echo "no" >&6; }
24359 PKG_CONFIG=""
24360 fi
24361
24362 fi
24363
24364 pkg_failed=no
24365 { $as_echo "$as_me:$LINENO: checking for SCIM" >&5
24366 $as_echo_n "checking for SCIM... " >&6; }
24367
24368 if test -n "$SCIM_CFLAGS"; then
24369 pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
24370 elif test -n "$PKG_CONFIG"; then
24371 if test -n "$PKG_CONFIG" && \
24372 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
24373 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; then
24377 pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
24378 else
24379 pkg_failed=yes
24380 fi
24381 else
24382 pkg_failed=untried
24383 fi
24384 if test -n "$SCIM_LIBS"; then
24385 pkg_cv_SCIM_LIBS="$SCIM_LIBS"
24386 elif test -n "$PKG_CONFIG"; then
24387 if test -n "$PKG_CONFIG" && \
24388 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
24389 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
24390 ac_status=$?
24391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; then
24393 pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
24394 else
24395 pkg_failed=yes
24396 fi
24397 else
24398 pkg_failed=untried
24399 fi
24400
24401
24402
24403 if test $pkg_failed = yes; then
24404
24405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24406 _pkg_short_errors_supported=yes
24407 else
24408 _pkg_short_errors_supported=no
24409 fi
24410 if test $_pkg_short_errors_supported = yes; then
24411 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "scim >= $SCIM_VERSION" 2>&1`
24412 else
24413 SCIM_PKG_ERRORS=`$PKG_CONFIG --print-errors "scim >= $SCIM_VERSION" 2>&1`
24414 fi
24415 # Put the nasty error message in config.log where it belongs
24416 echo "$SCIM_PKG_ERRORS" >&5
24417
24418 { { $as_echo "$as_me:$LINENO: error: Package requirements (scim >= $SCIM_VERSION) were not met:
24419
24420 $SCIM_PKG_ERRORS
24421
24422 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24423 installed software in a non-standard prefix.
24424
24425 Alternatively, you may set the environment variables SCIM_CFLAGS
24426 and SCIM_LIBS to avoid the need to call pkg-config.
24427 See the pkg-config man page for more details.
24428 " >&5
24429 $as_echo "$as_me: error: Package requirements (scim >= $SCIM_VERSION) were not met:
24430
24431 $SCIM_PKG_ERRORS
24432
24433 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24434 installed software in a non-standard prefix.
24435
24436 Alternatively, you may set the environment variables SCIM_CFLAGS
24437 and SCIM_LIBS to avoid the need to call pkg-config.
24438 See the pkg-config man page for more details.
24439 " >&2;}
24440 { (exit 1); exit 1; }; }
24441 elif test $pkg_failed = untried; then
24442 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24444 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24445 is in your PATH or set the PKG_CONFIG environment variable to the full
24446 path to pkg-config.
24447
24448 Alternatively, you may set the environment variables SCIM_CFLAGS
24449 and SCIM_LIBS to avoid the need to call pkg-config.
24450 See the pkg-config man page for more details.
24451
24452 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24453 See \`config.log' for more details." >&5
24454 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24455 is in your PATH or set the PKG_CONFIG environment variable to the full
24456 path to pkg-config.
24457
24458 Alternatively, you may set the environment variables SCIM_CFLAGS
24459 and SCIM_LIBS to avoid the need to call pkg-config.
24460 See the pkg-config man page for more details.
24461
24462 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24463 See \`config.log' for more details." >&2;}
24464 { (exit 1); exit 1; }; }; }
24465 else
24466 SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
24467 SCIM_LIBS=$pkg_cv_SCIM_LIBS
24468 { $as_echo "$as_me:$LINENO: result: yes" >&5
24469 $as_echo "yes" >&6; }
24470 :
24471 fi
24472
24473
24474
24475 pkg_failed=no
24476 { $as_echo "$as_me:$LINENO: checking for M17N" >&5
24477 $as_echo_n "checking for M17N... " >&6; }
24478
24479 if test -n "$M17N_CFLAGS"; then
24480 pkg_cv_M17N_CFLAGS="$M17N_CFLAGS"
24481 elif test -n "$PKG_CONFIG"; then
24482 if test -n "$PKG_CONFIG" && \
24483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"m17n-shell >= \$M17N_VERSION\"") >&5
24484 ($PKG_CONFIG --exists --print-errors "m17n-shell >= $M17N_VERSION") 2>&5
24485 ac_status=$?
24486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; then
24488 pkg_cv_M17N_CFLAGS=`$PKG_CONFIG --cflags "m17n-shell >= $M17N_VERSION" 2>/dev/null`
24489 else
24490 pkg_failed=yes
24491 fi
24492 else
24493 pkg_failed=untried
24494 fi
24495 if test -n "$M17N_LIBS"; then
24496 pkg_cv_M17N_LIBS="$M17N_LIBS"
24497 elif test -n "$PKG_CONFIG"; then
24498 if test -n "$PKG_CONFIG" && \
24499 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"m17n-shell >= \$M17N_VERSION\"") >&5
24500 ($PKG_CONFIG --exists --print-errors "m17n-shell >= $M17N_VERSION") 2>&5
24501 ac_status=$?
24502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; then
24504 pkg_cv_M17N_LIBS=`$PKG_CONFIG --libs "m17n-shell >= $M17N_VERSION" 2>/dev/null`
24505 else
24506 pkg_failed=yes
24507 fi
24508 else
24509 pkg_failed=untried
24510 fi
24511
24512
24513
24514 if test $pkg_failed = yes; then
24515
24516 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24517 _pkg_short_errors_supported=yes
24518 else
24519 _pkg_short_errors_supported=no
24520 fi
24521 if test $_pkg_short_errors_supported = yes; then
24522 M17N_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "m17n-shell >= $M17N_VERSION" 2>&1`
24523 else
24524 M17N_PKG_ERRORS=`$PKG_CONFIG --print-errors "m17n-shell >= $M17N_VERSION" 2>&1`
24525 fi
24526 # Put the nasty error message in config.log where it belongs
24527 echo "$M17N_PKG_ERRORS" >&5
24528
24529 { { $as_echo "$as_me:$LINENO: error: Package requirements (m17n-shell >= $M17N_VERSION) were not met:
24530
24531 $M17N_PKG_ERRORS
24532
24533 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24534 installed software in a non-standard prefix.
24535
24536 Alternatively, you may set the environment variables M17N_CFLAGS
24537 and M17N_LIBS to avoid the need to call pkg-config.
24538 See the pkg-config man page for more details.
24539 " >&5
24540 $as_echo "$as_me: error: Package requirements (m17n-shell >= $M17N_VERSION) were not met:
24541
24542 $M17N_PKG_ERRORS
24543
24544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24545 installed software in a non-standard prefix.
24546
24547 Alternatively, you may set the environment variables M17N_CFLAGS
24548 and M17N_LIBS to avoid the need to call pkg-config.
24549 See the pkg-config man page for more details.
24550 " >&2;}
24551 { (exit 1); exit 1; }; }
24552 elif test $pkg_failed = untried; then
24553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24555 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24556 is in your PATH or set the PKG_CONFIG environment variable to the full
24557 path to pkg-config.
24558
24559 Alternatively, you may set the environment variables M17N_CFLAGS
24560 and M17N_LIBS to avoid the need to call pkg-config.
24561 See the pkg-config man page for more details.
24562
24563 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24564 See \`config.log' for more details." >&5
24565 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24566 is in your PATH or set the PKG_CONFIG environment variable to the full
24567 path to pkg-config.
24568
24569 Alternatively, you may set the environment variables M17N_CFLAGS
24570 and M17N_LIBS to avoid the need to call pkg-config.
24571 See the pkg-config man page for more details.
24572
24573 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24574 See \`config.log' for more details." >&2;}
24575 { (exit 1); exit 1; }; }; }
24576 else
24577 M17N_CFLAGS=$pkg_cv_M17N_CFLAGS
24578 M17N_LIBS=$pkg_cv_M17N_LIBS
24579 { $as_echo "$as_me:$LINENO: result: yes" >&5
24580 $as_echo "yes" >&6; }
24581 :
24582 fi
24583
24584
24585 # Checks for header files.
24586
24587 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24588 $as_echo_n "checking for ANSI C header files... " >&6; }
24589 if test "${ac_cv_header_stdc+set}" = set; then
24590 $as_echo_n "(cached) " >&6
24591 else
24592 cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h. */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h. */
24598 #include <stdlib.h>
24599 #include <stdarg.h>
24600 #include <string.h>
24601 #include <float.h>
24602
24603 int
24604 main ()
24605 {
24606
24607 ;
24608 return 0;
24609 }
24610 _ACEOF
24611 rm -f conftest.$ac_objext
24612 if { (ac_try="$ac_compile"
24613 case "(($ac_try" in
24614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615 *) ac_try_echo=$ac_try;;
24616 esac
24617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24618 $as_echo "$ac_try_echo") >&5
24619 (eval "$ac_compile") 2>conftest.er1
24620 ac_status=$?
24621 grep -v '^ *+' conftest.er1 >conftest.err
24622 rm -f conftest.er1
24623 cat conftest.err >&5
24624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); } && {
24626 test -z "$ac_cxx_werror_flag" ||
24627 test ! -s conftest.err
24628 } && test -s conftest.$ac_objext; then
24629 ac_cv_header_stdc=yes
24630 else
24631 $as_echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24633
24634 ac_cv_header_stdc=no
24635 fi
24636
24637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24638
24639 if test $ac_cv_header_stdc = yes; then
24640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h. */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24647 #include <string.h>
24648
24649 _ACEOF
24650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24651 $EGREP "memchr" >/dev/null 2>&1; then
24652 :
24653 else
24654 ac_cv_header_stdc=no
24655 fi
24656 rm -f conftest*
24657
24658 fi
24659
24660 if test $ac_cv_header_stdc = yes; then
24661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24662 cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h. */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 #include <stdlib.h>
24669
24670 _ACEOF
24671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24672 $EGREP "free" >/dev/null 2>&1; then
24673 :
24674 else
24675 ac_cv_header_stdc=no
24676 fi
24677 rm -f conftest*
24678
24679 fi
24680
24681 if test $ac_cv_header_stdc = yes; then
24682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24683 if test "$cross_compiling" = yes; then
24684 :
24685 else
24686 cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h. */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h. */
24692 #include <ctype.h>
24693 #include <stdlib.h>
24694 #if ((' ' & 0x0FF) == 0x020)
24695 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24696 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24697 #else
24698 # define ISLOWER(c) \
24699 (('a' <= (c) && (c) <= 'i') \
24700 || ('j' <= (c) && (c) <= 'r') \
24701 || ('s' <= (c) && (c) <= 'z'))
24702 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24703 #endif
24704
24705 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24706 int
24707 main ()
24708 {
24709 int i;
24710 for (i = 0; i < 256; i++)
24711 if (XOR (islower (i), ISLOWER (i))
24712 || toupper (i) != TOUPPER (i))
24713 return 2;
24714 return 0;
24715 }
24716 _ACEOF
24717 rm -f conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722 esac
24723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24724 $as_echo "$ac_try_echo") >&5
24725 (eval "$ac_link") 2>&5
24726 ac_status=$?
24727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24729 { (case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732 esac
24733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24734 $as_echo "$ac_try_echo") >&5
24735 (eval "$ac_try") 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; }; then
24739 :
24740 else
24741 $as_echo "$as_me: program exited with status $ac_status" >&5
24742 $as_echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745 ( exit $ac_status )
24746 ac_cv_header_stdc=no
24747 fi
24748 rm -rf conftest.dSYM
24749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24750 fi
24751
24752
24753 fi
24754 fi
24755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24756 $as_echo "$ac_cv_header_stdc" >&6; }
24757 if test $ac_cv_header_stdc = yes; then
24758
24759 cat >>confdefs.h <<\_ACEOF
24760 #define STDC_HEADERS 1
24761 _ACEOF
24762
24763 fi
24764
24765
24766 # Checks for library functions.
24767
24768
24769 # libtool option to control which symbols are exported
24770 # right now, symbols starting with _ are not exported
24771 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
24772
24773
24774 # Extra args.
24775 # Check whether --enable-debug was given.
24776 if test "${enable_debug+set}" = set; then
24777 enableval=$enable_debug; case "${enableval}" in
24778 yes) debug=yes ;;
24779 no) debug=no ;;
24780 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
24781 $as_echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
24782 { (exit 1); exit 1; }; } ;;
24783 esac
24784 else
24785 debug=no
24786 fi
24787
24788
24789 if test "x$debug" = "xyes"; then
24790 test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
24791 test "$cppflags_set" = set || CPPFLAGS="$CXXFLAGS -g"
24792 SCIM_DEBUG_FLAGS="-DENABLE_DEBUG=1"
24793 else
24794 SCIM_DEBUG_FLAGS=""
24795 fi
24796
24797
24798 SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
24799 SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
24800
24801 if test "x$SCIM_ICONDIR" = "x"; then
24802 SCIM_ICONDIR=${datadir}/scim/icons
24803 fi
24804
24805 if test "x$SCIM_MODULEDIR" = "x"; then
24806 SCIM_MODULEDIR=${libdir}/scim-1.0
24807 fi
24808
24809
24810
24811
24812 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile scim-m17n.spec"
24813
24814 cat >confcache <<\_ACEOF
24815 # This file is a shell script that caches the results of configure
24816 # tests run on this system so they can be shared between configure
24817 # scripts and configure runs, see configure's option --config-cache.
24818 # It is not useful on other systems. If it contains results you don't
24819 # want to keep, you may remove or edit it.
24820 #
24821 # config.status only pays attention to the cache file if you give it
24822 # the --recheck option to rerun configure.
24823 #
24824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24826 # following values.
24827
24828 _ACEOF
24829
24830 # The following way of writing the cache mishandles newlines in values,
24831 # but we know of no workaround that is simple, portable, and efficient.
24832 # So, we kill variables containing newlines.
24833 # Ultrix sh set writes to stderr and can't be redirected directly,
24834 # and sets the high bit in the cache file unless we assign to the vars.
24835 (
24836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24837 eval ac_val=\$$ac_var
24838 case $ac_val in #(
24839 *${as_nl}*)
24840 case $ac_var in #(
24841 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24842 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24843 esac
24844 case $ac_var in #(
24845 _ | IFS | as_nl) ;; #(
24846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24847 *) $as_unset $ac_var ;;
24848 esac ;;
24849 esac
24850 done
24851
24852 (set) 2>&1 |
24853 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24854 *${as_nl}ac_space=\ *)
24855 # `set' does not quote correctly, so add quotes (double-quote
24856 # substitution turns \\\\ into \\, and sed turns \\ into \).
24857 sed -n \
24858 "s/'/'\\\\''/g;
24859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24860 ;; #(
24861 *)
24862 # `set' quotes correctly as required by POSIX, so do not add quotes.
24863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24864 ;;
24865 esac |
24866 sort
24867 ) |
24868 sed '
24869 /^ac_cv_env_/b end
24870 t clear
24871 :clear
24872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24873 t end
24874 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24875 :end' >>confcache
24876 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24877 if test -w "$cache_file"; then
24878 test "x$cache_file" != "x/dev/null" &&
24879 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24880 $as_echo "$as_me: updating cache $cache_file" >&6;}
24881 cat confcache >$cache_file
24882 else
24883 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24884 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24885 fi
24886 fi
24887 rm -f confcache
24888
24889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24890 # Let make expand exec_prefix.
24891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24892
24893 DEFS=-DHAVE_CONFIG_H
24894
24895 ac_libobjs=
24896 ac_ltlibobjs=
24897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24898 # 1. Remove the extension, and $U if already installed.
24899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24900 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24902 # will be set to the directory where LIBOBJS objects are built.
24903 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24904 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24905 done
24906 LIBOBJS=$ac_libobjs
24907
24908 LTLIBOBJS=$ac_ltlibobjs
24909
24910
24911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24912 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24913 Usually this means the macro was only invoked conditionally." >&5
24914 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24915 Usually this means the macro was only invoked conditionally." >&2;}
24916 { (exit 1); exit 1; }; }
24917 fi
24918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24919 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24920 Usually this means the macro was only invoked conditionally." >&5
24921 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24922 Usually this means the macro was only invoked conditionally." >&2;}
24923 { (exit 1); exit 1; }; }
24924 fi
24925 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24926 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24927 Usually this means the macro was only invoked conditionally." >&5
24928 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24929 Usually this means the macro was only invoked conditionally." >&2;}
24930 { (exit 1); exit 1; }; }
24931 fi
24932 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
24933 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
24934 Usually this means the macro was only invoked conditionally." >&5
24935 $as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
24936 Usually this means the macro was only invoked conditionally." >&2;}
24937 { (exit 1); exit 1; }; }
24938 fi
24939 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
24940 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
24941 Usually this means the macro was only invoked conditionally." >&5
24942 $as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
24943 Usually this means the macro was only invoked conditionally." >&2;}
24944 { (exit 1); exit 1; }; }
24945 fi
24946 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24947 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24948 Usually this means the macro was only invoked conditionally." >&5
24949 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24950 Usually this means the macro was only invoked conditionally." >&2;}
24951 { (exit 1); exit 1; }; }
24952 fi
24953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24954 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24955 Usually this means the macro was only invoked conditionally." >&5
24956 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24957 Usually this means the macro was only invoked conditionally." >&2;}
24958 { (exit 1); exit 1; }; }
24959 fi
24960
24961 : ${CONFIG_STATUS=./config.status}
24962 ac_write_fail=0
24963 ac_clean_files_save=$ac_clean_files
24964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24965 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24966 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24967 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24968 #! $SHELL
24969 # Generated by $as_me.
24970 # Run this file to recreate the current configuration.
24971 # Compiler output produced by configure, useful for debugging
24972 # configure, is in config.log if it exists.
24973
24974 debug=false
24975 ac_cs_recheck=false
24976 ac_cs_silent=false
24977 SHELL=\${CONFIG_SHELL-$SHELL}
24978 _ACEOF
24979
24980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24981 ## --------------------- ##
24982 ## M4sh Initialization. ##
24983 ## --------------------- ##
24984
24985 # Be more Bourne compatible
24986 DUALCASE=1; export DUALCASE # for MKS sh
24987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24988 emulate sh
24989 NULLCMD=:
24990 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24991 # is contrary to our usage. Disable this feature.
24992 alias -g '${1+"$@"}'='"$@"'
24993 setopt NO_GLOB_SUBST
24994 else
24995 case `(set -o) 2>/dev/null` in
24996 *posix*) set -o posix ;;
24997 esac
24998
24999 fi
25000
25001
25002
25003
25004 # PATH needs CR
25005 # Avoid depending upon Character Ranges.
25006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25009 as_cr_digits='0123456789'
25010 as_cr_alnum=$as_cr_Letters$as_cr_digits
25011
25012 as_nl='
25013 '
25014 export as_nl
25015 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25016 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25019 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25020 as_echo='printf %s\n'
25021 as_echo_n='printf %s'
25022 else
25023 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25024 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25025 as_echo_n='/usr/ucb/echo -n'
25026 else
25027 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25028 as_echo_n_body='eval
25029 arg=$1;
25030 case $arg in
25031 *"$as_nl"*)
25032 expr "X$arg" : "X\\(.*\\)$as_nl";
25033 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25034 esac;
25035 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25036 '
25037 export as_echo_n_body
25038 as_echo_n='sh -c $as_echo_n_body as_echo'
25039 fi
25040 export as_echo_body
25041 as_echo='sh -c $as_echo_body as_echo'
25042 fi
25043
25044 # The user is always right.
25045 if test "${PATH_SEPARATOR+set}" != set; then
25046 PATH_SEPARATOR=:
25047 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25048 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25049 PATH_SEPARATOR=';'
25050 }
25051 fi
25052
25053 # Support unset when possible.
25054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25055 as_unset=unset
25056 else
25057 as_unset=false
25058 fi
25059
25060
25061 # IFS
25062 # We need space, tab and new line, in precisely that order. Quoting is
25063 # there to prevent editors from complaining about space-tab.
25064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25065 # splitting by setting IFS to empty value.)
25066 IFS=" "" $as_nl"
25067
25068 # Find who we are. Look in the path if we contain no directory separator.
25069 case $0 in
25070 *[\\/]* ) as_myself=$0 ;;
25071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25072 for as_dir in $PATH
25073 do
25074 IFS=$as_save_IFS
25075 test -z "$as_dir" && as_dir=.
25076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25077 done
25078 IFS=$as_save_IFS
25079
25080 ;;
25081 esac
25082 # We did not find ourselves, most probably we were run as `sh COMMAND'
25083 # in which case we are not to be found in the path.
25084 if test "x$as_myself" = x; then
25085 as_myself=$0
25086 fi
25087 if test ! -f "$as_myself"; then
25088 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25089 { (exit 1); exit 1; }
25090 fi
25091
25092 # Work around bugs in pre-3.0 UWIN ksh.
25093 for as_var in ENV MAIL MAILPATH
25094 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25095 done
25096 PS1='$ '
25097 PS2='> '
25098 PS4='+ '
25099
25100 # NLS nuisances.
25101 LC_ALL=C
25102 export LC_ALL
25103 LANGUAGE=C
25104 export LANGUAGE
25105
25106 # Required to use basename.
25107 if expr a : '\(a\)' >/dev/null 2>&1 &&
25108 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25109 as_expr=expr
25110 else
25111 as_expr=false
25112 fi
25113
25114 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25115 as_basename=basename
25116 else
25117 as_basename=false
25118 fi
25119
25120
25121 # Name of the executable.
25122 as_me=`$as_basename -- "$0" ||
25123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25124 X"$0" : 'X\(//\)$' \| \
25125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25126 $as_echo X/"$0" |
25127 sed '/^.*\/\([^/][^/]*\)\/*$/{
25128 s//\1/
25129 q
25130 }
25131 /^X\/\(\/\/\)$/{
25132 s//\1/
25133 q
25134 }
25135 /^X\/\(\/\).*/{
25136 s//\1/
25137 q
25138 }
25139 s/.*/./; q'`
25140
25141 # CDPATH.
25142 $as_unset CDPATH
25143
25144
25145
25146 as_lineno_1=$LINENO
25147 as_lineno_2=$LINENO
25148 test "x$as_lineno_1" != "x$as_lineno_2" &&
25149 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25150
25151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25152 # uniformly replaced by the line number. The first 'sed' inserts a
25153 # line-number line after each line using $LINENO; the second 'sed'
25154 # does the real work. The second script uses 'N' to pair each
25155 # line-number line with the line containing $LINENO, and appends
25156 # trailing '-' during substitution so that $LINENO is not a special
25157 # case at line end.
25158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25159 # scripts with optimization help from Paolo Bonzini. Blame Lee
25160 # E. McMahon (1931-1989) for sed's syntax. :-)
25161 sed -n '
25162 p
25163 /[$]LINENO/=
25164 ' <$as_myself |
25165 sed '
25166 s/[$]LINENO.*/&-/
25167 t lineno
25168 b
25169 :lineno
25170 N
25171 :loop
25172 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25173 t loop
25174 s/-\n.*//
25175 ' >$as_me.lineno &&
25176 chmod +x "$as_me.lineno" ||
25177 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25178 { (exit 1); exit 1; }; }
25179
25180 # Don't try to exec as it changes $[0], causing all sort of problems
25181 # (the dirname of $[0] is not the place where we might find the
25182 # original and so on. Autoconf is especially sensitive to this).
25183 . "./$as_me.lineno"
25184 # Exit status is that of the last command.
25185 exit
25186 }
25187
25188
25189 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25190 as_dirname=dirname
25191 else
25192 as_dirname=false
25193 fi
25194
25195 ECHO_C= ECHO_N= ECHO_T=
25196 case `echo -n x` in
25197 -n*)
25198 case `echo 'x\c'` in
25199 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25200 *) ECHO_C='\c';;
25201 esac;;
25202 *)
25203 ECHO_N='-n';;
25204 esac
25205 if expr a : '\(a\)' >/dev/null 2>&1 &&
25206 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25207 as_expr=expr
25208 else
25209 as_expr=false
25210 fi
25211
25212 rm -f conf$$ conf$$.exe conf$$.file
25213 if test -d conf$$.dir; then
25214 rm -f conf$$.dir/conf$$.file
25215 else
25216 rm -f conf$$.dir
25217 mkdir conf$$.dir 2>/dev/null
25218 fi
25219 if (echo >conf$$.file) 2>/dev/null; then
25220 if ln -s conf$$.file conf$$ 2>/dev/null; then
25221 as_ln_s='ln -s'
25222 # ... but there are two gotchas:
25223 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25224 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25225 # In both cases, we have to default to `cp -p'.
25226 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25227 as_ln_s='cp -p'
25228 elif ln conf$$.file conf$$ 2>/dev/null; then
25229 as_ln_s=ln
25230 else
25231 as_ln_s='cp -p'
25232 fi
25233 else
25234 as_ln_s='cp -p'
25235 fi
25236 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25237 rmdir conf$$.dir 2>/dev/null
25238
25239 if mkdir -p . 2>/dev/null; then
25240 as_mkdir_p=:
25241 else
25242 test -d ./-p && rmdir ./-p
25243 as_mkdir_p=false
25244 fi
25245
25246 if test -x / >/dev/null 2>&1; then
25247 as_test_x='test -x'
25248 else
25249 if ls -dL / >/dev/null 2>&1; then
25250 as_ls_L_option=L
25251 else
25252 as_ls_L_option=
25253 fi
25254 as_test_x='
25255 eval sh -c '\''
25256 if test -d "$1"; then
25257 test -d "$1/.";
25258 else
25259 case $1 in
25260 -*)set "./$1";;
25261 esac;
25262 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25263 ???[sx]*):;;*)false;;esac;fi
25264 '\'' sh
25265 '
25266 fi
25267 as_executable_p=$as_test_x
25268
25269 # Sed expression to map a string onto a valid CPP name.
25270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25271
25272 # Sed expression to map a string onto a valid variable name.
25273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25274
25275
25276 exec 6>&1
25277
25278 # Save the log message, to keep $[0] and so on meaningful, and to
25279 # report actual input values of CONFIG_FILES etc. instead of their
25280 # values after options handling.
25281 ac_log="
25282 This file was extended by scim-m17n $as_me 0.2.3, which was
25283 generated by GNU Autoconf 2.63. Invocation command line was
25284
25285 CONFIG_FILES = $CONFIG_FILES
25286 CONFIG_HEADERS = $CONFIG_HEADERS
25287 CONFIG_LINKS = $CONFIG_LINKS
25288 CONFIG_COMMANDS = $CONFIG_COMMANDS
25289 $ $0 $@
25290
25291 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25292 "
25293
25294 _ACEOF
25295
25296 case $ac_config_files in *"
25297 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25298 esac
25299
25300 case $ac_config_headers in *"
25301 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25302 esac
25303
25304
25305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25306 # Files that config.status was made for.
25307 config_files="$ac_config_files"
25308 config_headers="$ac_config_headers"
25309 config_commands="$ac_config_commands"
25310
25311 _ACEOF
25312
25313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25314 ac_cs_usage="\
25315 \`$as_me' instantiates files from templates according to the
25316 current configuration.
25317
25318 Usage: $0 [OPTION]... [FILE]...
25319
25320 -h, --help print this help, then exit
25321 -V, --version print version number and configuration settings, then exit
25322 -q, --quiet, --silent
25323 do not print progress messages
25324 -d, --debug don't remove temporary files
25325 --recheck update $as_me by reconfiguring in the same conditions
25326 --file=FILE[:TEMPLATE]
25327 instantiate the configuration file FILE
25328 --header=FILE[:TEMPLATE]
25329 instantiate the configuration header FILE
25330
25331 Configuration files:
25332 $config_files
25333
25334 Configuration headers:
25335 $config_headers
25336
25337 Configuration commands:
25338 $config_commands
25339
25340 Report bugs to <[email protected]>."
25341
25342 _ACEOF
25343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25344 ac_cs_version="\\
25345 scim-m17n config.status 0.2.3
25346 configured by $0, generated by GNU Autoconf 2.63,
25347 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25348
25349 Copyright (C) 2008 Free Software Foundation, Inc.
25350 This config.status script is free software; the Free Software Foundation
25351 gives unlimited permission to copy, distribute and modify it."
25352
25353 ac_pwd='$ac_pwd'
25354 srcdir='$srcdir'
25355 INSTALL='$INSTALL'
25356 MKDIR_P='$MKDIR_P'
25357 AWK='$AWK'
25358 test -n "\$AWK" || AWK=awk
25359 _ACEOF
25360
25361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25362 # The default lists apply if the user does not specify any file.
25363 ac_need_defaults=:
25364 while test $# != 0
25365 do
25366 case $1 in
25367 --*=*)
25368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25370 ac_shift=:
25371 ;;
25372 *)
25373 ac_option=$1
25374 ac_optarg=$2
25375 ac_shift=shift
25376 ;;
25377 esac
25378
25379 case $ac_option in
25380 # Handling of the options.
25381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25382 ac_cs_recheck=: ;;
25383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25384 $as_echo "$ac_cs_version"; exit ;;
25385 --debug | --debu | --deb | --de | --d | -d )
25386 debug=: ;;
25387 --file | --fil | --fi | --f )
25388 $ac_shift
25389 case $ac_optarg in
25390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25391 esac
25392 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25393 ac_need_defaults=false;;
25394 --header | --heade | --head | --hea )
25395 $ac_shift
25396 case $ac_optarg in
25397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25398 esac
25399 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25400 ac_need_defaults=false;;
25401 --he | --h)
25402 # Conflict between --help and --header
25403 { $as_echo "$as_me: error: ambiguous option: $1
25404 Try \`$0 --help' for more information." >&2
25405 { (exit 1); exit 1; }; };;
25406 --help | --hel | -h )
25407 $as_echo "$ac_cs_usage"; exit ;;
25408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25409 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25410 ac_cs_silent=: ;;
25411
25412 # This is an error.
25413 -*) { $as_echo "$as_me: error: unrecognized option: $1
25414 Try \`$0 --help' for more information." >&2
25415 { (exit 1); exit 1; }; } ;;
25416
25417 *) ac_config_targets="$ac_config_targets $1"
25418 ac_need_defaults=false ;;
25419
25420 esac
25421 shift
25422 done
25423
25424 ac_configure_extra_args=
25425
25426 if $ac_cs_silent; then
25427 exec 6>/dev/null
25428 ac_configure_extra_args="$ac_configure_extra_args --silent"
25429 fi
25430
25431 _ACEOF
25432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25433 if \$ac_cs_recheck; then
25434 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25435 shift
25436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25437 CONFIG_SHELL='$SHELL'
25438 export CONFIG_SHELL
25439 exec "\$@"
25440 fi
25441
25442 _ACEOF
25443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25444 exec 5>>config.log
25445 {
25446 echo
25447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25448 ## Running $as_me. ##
25449 _ASBOX
25450 $as_echo "$ac_log"
25451 } >&5
25452
25453 _ACEOF
25454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25455 #
25456 # INIT-COMMANDS
25457 #
25458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25459
25460 _ACEOF
25461
25462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25463
25464 # Handling of arguments.
25465 for ac_config_target in $ac_config_targets
25466 do
25467 case $ac_config_target in
25468 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25469 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25470 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25471 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25472 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
25473 "scim-m17n.spec") CONFIG_FILES="$CONFIG_FILES scim-m17n.spec" ;;
25474
25475 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25476 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25477 { (exit 1); exit 1; }; };;
25478 esac
25479 done
25480
25481
25482 # If the user did not use the arguments to specify the items to instantiate,
25483 # then the envvar interface is used. Set only those that are not.
25484 # We use the long form for the default assignment because of an extremely
25485 # bizarre bug on SunOS 4.1.3.
25486 if $ac_need_defaults; then
25487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25489 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25490 fi
25491
25492 # Have a temporary directory for convenience. Make it in the build tree
25493 # simply because there is no reason against having it here, and in addition,
25494 # creating and moving files from /tmp can sometimes cause problems.
25495 # Hook for its removal unless debugging.
25496 # Note that there is a small window in which the directory will not be cleaned:
25497 # after its creation but before its name has been assigned to `$tmp'.
25498 $debug ||
25499 {
25500 tmp=
25501 trap 'exit_status=$?
25502 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25503 ' 0
25504 trap '{ (exit 1); exit 1; }' 1 2 13 15
25505 }
25506 # Create a (secure) tmp directory for tmp files.
25507
25508 {
25509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25510 test -n "$tmp" && test -d "$tmp"
25511 } ||
25512 {
25513 tmp=./conf$$-$RANDOM
25514 (umask 077 && mkdir "$tmp")
25515 } ||
25516 {
25517 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25518 { (exit 1); exit 1; }
25519 }
25520
25521 # Set up the scripts for CONFIG_FILES section.
25522 # No need to generate them if there are no CONFIG_FILES.
25523 # This happens for instance with `./config.status config.h'.
25524 if test -n "$CONFIG_FILES"; then
25525
25526
25527 ac_cr=' '
25528 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25529 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25530 ac_cs_awk_cr='\\r'
25531 else
25532 ac_cs_awk_cr=$ac_cr
25533 fi
25534
25535 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25536 _ACEOF
25537
25538
25539 {
25540 echo "cat >conf$$subs.awk <<_ACEOF" &&
25541 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25542 echo "_ACEOF"
25543 } >conf$$subs.sh ||
25544 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25545 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25546 { (exit 1); exit 1; }; }
25547 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25548 ac_delim='%!_!# '
25549 for ac_last_try in false false false false false :; do
25550 . ./conf$$subs.sh ||
25551 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25552 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25553 { (exit 1); exit 1; }; }
25554
25555 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25556 if test $ac_delim_n = $ac_delim_num; then
25557 break
25558 elif $ac_last_try; then
25559 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25560 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25561 { (exit 1); exit 1; }; }
25562 else
25563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25564 fi
25565 done
25566 rm -f conf$$subs.sh
25567
25568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25569 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25570 _ACEOF
25571 sed -n '
25572 h
25573 s/^/S["/; s/!.*/"]=/
25574 p
25575 g
25576 s/^[^!]*!//
25577 :repl
25578 t repl
25579 s/'"$ac_delim"'$//
25580 t delim
25581 :nl
25582 h
25583 s/\(.\{148\}\).*/\1/
25584 t more1
25585 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25586 p
25587 n
25588 b repl
25589 :more1
25590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25591 p
25592 g
25593 s/.\{148\}//
25594 t nl
25595 :delim
25596 h
25597 s/\(.\{148\}\).*/\1/
25598 t more2
25599 s/["\\]/\\&/g; s/^/"/; s/$/"/
25600 p
25601 b
25602 :more2
25603 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25604 p
25605 g
25606 s/.\{148\}//
25607 t delim
25608 ' <conf$$subs.awk | sed '
25609 /^[^""]/{
25610 N
25611 s/\n//
25612 }
25613 ' >>$CONFIG_STATUS || ac_write_fail=1
25614 rm -f conf$$subs.awk
25615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25616 _ACAWK
25617 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25618 for (key in S) S_is_set[key] = 1
25619 FS = ""
25620
25621 }
25622 {
25623 line = $ 0
25624 nfields = split(line, field, "@")
25625 substed = 0
25626 len = length(field[1])
25627 for (i = 2; i < nfields; i++) {
25628 key = field[i]
25629 keylen = length(key)
25630 if (S_is_set[key]) {
25631 value = S[key]
25632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25633 len += length(value) + length(field[++i])
25634 substed = 1
25635 } else
25636 len += 1 + keylen
25637 }
25638
25639 print line
25640 }
25641
25642 _ACAWK
25643 _ACEOF
25644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25645 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25646 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25647 else
25648 cat
25649 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25650 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25651 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25652 { (exit 1); exit 1; }; }
25653 _ACEOF
25654
25655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25657 # trailing colons and then remove the whole line if VPATH becomes empty
25658 # (actually we leave an empty line to preserve line numbers).
25659 if test "x$srcdir" = x.; then
25660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25661 s/:*\$(srcdir):*/:/
25662 s/:*\${srcdir}:*/:/
25663 s/:*@srcdir@:*/:/
25664 s/^\([^=]*=[ ]*\):*/\1/
25665 s/:*$//
25666 s/^[^=]*=[ ]*$//
25667 }'
25668 fi
25669
25670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25671 fi # test -n "$CONFIG_FILES"
25672
25673 # Set up the scripts for CONFIG_HEADERS section.
25674 # No need to generate them if there are no CONFIG_HEADERS.
25675 # This happens for instance with `./config.status Makefile'.
25676 if test -n "$CONFIG_HEADERS"; then
25677 cat >"$tmp/defines.awk" <<\_ACAWK ||
25678 BEGIN {
25679 _ACEOF
25680
25681 # Transform confdefs.h into an awk script `defines.awk', embedded as
25682 # here-document in config.status, that substitutes the proper values into
25683 # config.h.in to produce config.h.
25684
25685 # Create a delimiter string that does not exist in confdefs.h, to ease
25686 # handling of long lines.
25687 ac_delim='%!_!# '
25688 for ac_last_try in false false :; do
25689 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25690 if test -z "$ac_t"; then
25691 break
25692 elif $ac_last_try; then
25693 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25694 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25695 { (exit 1); exit 1; }; }
25696 else
25697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25698 fi
25699 done
25700
25701 # For the awk script, D is an array of macro values keyed by name,
25702 # likewise P contains macro parameters if any. Preserve backslash
25703 # newline sequences.
25704
25705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25706 sed -n '
25707 s/.\{148\}/&'"$ac_delim"'/g
25708 t rset
25709 :rset
25710 s/^[ ]*#[ ]*define[ ][ ]*/ /
25711 t def
25712 d
25713 :def
25714 s/\\$//
25715 t bsnl
25716 s/["\\]/\\&/g
25717 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25718 D["\1"]=" \3"/p
25719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25720 d
25721 :bsnl
25722 s/["\\]/\\&/g
25723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25724 D["\1"]=" \3\\\\\\n"\\/p
25725 t cont
25726 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25727 t cont
25728 d
25729 :cont
25730 n
25731 s/.\{148\}/&'"$ac_delim"'/g
25732 t clear
25733 :clear
25734 s/\\$//
25735 t bsnlc
25736 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25737 d
25738 :bsnlc
25739 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25740 b cont
25741 ' <confdefs.h | sed '
25742 s/'"$ac_delim"'/"\\\
25743 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25744
25745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25746 for (key in D) D_is_set[key] = 1
25747 FS = ""
25748 }
25749 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25750 line = \$ 0
25751 split(line, arg, " ")
25752 if (arg[1] == "#") {
25753 defundef = arg[2]
25754 mac1 = arg[3]
25755 } else {
25756 defundef = substr(arg[1], 2)
25757 mac1 = arg[2]
25758 }
25759 split(mac1, mac2, "(") #)
25760 macro = mac2[1]
25761 prefix = substr(line, 1, index(line, defundef) - 1)
25762 if (D_is_set[macro]) {
25763 # Preserve the white space surrounding the "#".
25764 print prefix "define", macro P[macro] D[macro]
25765 next
25766 } else {
25767 # Replace #undef with comments. This is necessary, for example,
25768 # in the case of _POSIX_SOURCE, which is predefined and required
25769 # on some systems where configure will not decide to define it.
25770 if (defundef == "undef") {
25771 print "/*", prefix defundef, macro, "*/"
25772 next
25773 }
25774 }
25775 }
25776 { print }
25777 _ACAWK
25778 _ACEOF
25779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25780 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25781 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25782 { (exit 1); exit 1; }; }
25783 fi # test -n "$CONFIG_HEADERS"
25784
25785
25786 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25787 shift
25788 for ac_tag
25789 do
25790 case $ac_tag in
25791 :[FHLC]) ac_mode=$ac_tag; continue;;
25792 esac
25793 case $ac_mode$ac_tag in
25794 :[FHL]*:*);;
25795 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25796 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25797 { (exit 1); exit 1; }; };;
25798 :[FH]-) ac_tag=-:-;;
25799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25800 esac
25801 ac_save_IFS=$IFS
25802 IFS=:
25803 set x $ac_tag
25804 IFS=$ac_save_IFS
25805 shift
25806 ac_file=$1
25807 shift
25808
25809 case $ac_mode in
25810 :L) ac_source=$1;;
25811 :[FH])
25812 ac_file_inputs=
25813 for ac_f
25814 do
25815 case $ac_f in
25816 -) ac_f="$tmp/stdin";;
25817 *) # Look for the file first in the build tree, then in the source tree
25818 # (if the path is not absolute). The absolute path cannot be DOS-style,
25819 # because $ac_f cannot contain `:'.
25820 test -f "$ac_f" ||
25821 case $ac_f in
25822 [\\/$]*) false;;
25823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25824 esac ||
25825 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25826 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25827 { (exit 1); exit 1; }; };;
25828 esac
25829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25830 ac_file_inputs="$ac_file_inputs '$ac_f'"
25831 done
25832
25833 # Let's still pretend it is `configure' which instantiates (i.e., don't
25834 # use $as_me), people would be surprised to read:
25835 # /* config.h. Generated by config.status. */
25836 configure_input='Generated from '`
25837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25838 `' by configure.'
25839 if test x"$ac_file" != x-; then
25840 configure_input="$ac_file. $configure_input"
25841 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25842 $as_echo "$as_me: creating $ac_file" >&6;}
25843 fi
25844 # Neutralize special characters interpreted by sed in replacement strings.
25845 case $configure_input in #(
25846 *\&* | *\|* | *\\* )
25847 ac_sed_conf_input=`$as_echo "$configure_input" |
25848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25849 *) ac_sed_conf_input=$configure_input;;
25850 esac
25851
25852 case $ac_tag in
25853 *:-:* | *:-) cat >"$tmp/stdin" \
25854 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25855 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25856 { (exit 1); exit 1; }; } ;;
25857 esac
25858 ;;
25859 esac
25860
25861 ac_dir=`$as_dirname -- "$ac_file" ||
25862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25863 X"$ac_file" : 'X\(//\)[^/]' \| \
25864 X"$ac_file" : 'X\(//\)$' \| \
25865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25866 $as_echo X"$ac_file" |
25867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25868 s//\1/
25869 q
25870 }
25871 /^X\(\/\/\)[^/].*/{
25872 s//\1/
25873 q
25874 }
25875 /^X\(\/\/\)$/{
25876 s//\1/
25877 q
25878 }
25879 /^X\(\/\).*/{
25880 s//\1/
25881 q
25882 }
25883 s/.*/./; q'`
25884 { as_dir="$ac_dir"
25885 case $as_dir in #(
25886 -*) as_dir=./$as_dir;;
25887 esac
25888 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25889 as_dirs=
25890 while :; do
25891 case $as_dir in #(
25892 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25893 *) as_qdir=$as_dir;;
25894 esac
25895 as_dirs="'$as_qdir' $as_dirs"
25896 as_dir=`$as_dirname -- "$as_dir" ||
25897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25898 X"$as_dir" : 'X\(//\)[^/]' \| \
25899 X"$as_dir" : 'X\(//\)$' \| \
25900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25901 $as_echo X"$as_dir" |
25902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25903 s//\1/
25904 q
25905 }
25906 /^X\(\/\/\)[^/].*/{
25907 s//\1/
25908 q
25909 }
25910 /^X\(\/\/\)$/{
25911 s//\1/
25912 q
25913 }
25914 /^X\(\/\).*/{
25915 s//\1/
25916 q
25917 }
25918 s/.*/./; q'`
25919 test -d "$as_dir" && break
25920 done
25921 test -z "$as_dirs" || eval "mkdir $as_dirs"
25922 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25923 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25924 { (exit 1); exit 1; }; }; }
25925 ac_builddir=.
25926
25927 case "$ac_dir" in
25928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25929 *)
25930 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25931 # A ".." for each directory in $ac_dir_suffix.
25932 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25933 case $ac_top_builddir_sub in
25934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25936 esac ;;
25937 esac
25938 ac_abs_top_builddir=$ac_pwd
25939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25940 # for backward compatibility:
25941 ac_top_builddir=$ac_top_build_prefix
25942
25943 case $srcdir in
25944 .) # We are building in place.
25945 ac_srcdir=.
25946 ac_top_srcdir=$ac_top_builddir_sub
25947 ac_abs_top_srcdir=$ac_pwd ;;
25948 [\\/]* | ?:[\\/]* ) # Absolute name.
25949 ac_srcdir=$srcdir$ac_dir_suffix;
25950 ac_top_srcdir=$srcdir
25951 ac_abs_top_srcdir=$srcdir ;;
25952 *) # Relative name.
25953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25954 ac_top_srcdir=$ac_top_build_prefix$srcdir
25955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25956 esac
25957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25958
25959
25960 case $ac_mode in
25961 :F)
25962 #
25963 # CONFIG_FILE
25964 #
25965
25966 case $INSTALL in
25967 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25968 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25969 esac
25970 ac_MKDIR_P=$MKDIR_P
25971 case $MKDIR_P in
25972 [\\/$]* | ?:[\\/]* ) ;;
25973 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25974 esac
25975 _ACEOF
25976
25977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25978 # If the template does not know about datarootdir, expand it.
25979 # FIXME: This hack should be removed a few years after 2.60.
25980 ac_datarootdir_hack=; ac_datarootdir_seen=
25981
25982 ac_sed_dataroot='
25983 /datarootdir/ {
25984 p
25985 q
25986 }
25987 /@datadir@/p
25988 /@docdir@/p
25989 /@infodir@/p
25990 /@localedir@/p
25991 /@mandir@/p
25992 '
25993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25994 *datarootdir*) ac_datarootdir_seen=yes;;
25995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25996 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25998 _ACEOF
25999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26000 ac_datarootdir_hack='
26001 s&@datadir@&$datadir&g
26002 s&@docdir@&$docdir&g
26003 s&@infodir@&$infodir&g
26004 s&@localedir@&$localedir&g
26005 s&@mandir@&$mandir&g
26006 s&\\\${datarootdir}&$datarootdir&g' ;;
26007 esac
26008 _ACEOF
26009
26010 # Neutralize VPATH when `$srcdir' = `.'.
26011 # Shell code in configure.ac might set extrasub.
26012 # FIXME: do we really want to maintain this feature?
26013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26014 ac_sed_extra="$ac_vpsub
26015 $extrasub
26016 _ACEOF
26017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26018 :t
26019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26020 s|@configure_input@|$ac_sed_conf_input|;t t
26021 s&@top_builddir@&$ac_top_builddir_sub&;t t
26022 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26023 s&@srcdir@&$ac_srcdir&;t t
26024 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26025 s&@top_srcdir@&$ac_top_srcdir&;t t
26026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26027 s&@builddir@&$ac_builddir&;t t
26028 s&@abs_builddir@&$ac_abs_builddir&;t t
26029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26030 s&@INSTALL@&$ac_INSTALL&;t t
26031 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26032 $ac_datarootdir_hack
26033 "
26034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26036 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26037 { (exit 1); exit 1; }; }
26038
26039 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26040 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26041 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26042 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26043 which seems to be undefined. Please make sure it is defined." >&5
26044 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26045 which seems to be undefined. Please make sure it is defined." >&2;}
26046
26047 rm -f "$tmp/stdin"
26048 case $ac_file in
26049 -) cat "$tmp/out" && rm -f "$tmp/out";;
26050 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26051 esac \
26052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26053 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26054 { (exit 1); exit 1; }; }
26055 ;;
26056 :H)
26057 #
26058 # CONFIG_HEADER
26059 #
26060 if test x"$ac_file" != x-; then
26061 {
26062 $as_echo "/* $configure_input */" \
26063 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26064 } >"$tmp/config.h" \
26065 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26066 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26067 { (exit 1); exit 1; }; }
26068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26069 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26071 else
26072 rm -f "$ac_file"
26073 mv "$tmp/config.h" "$ac_file" \
26074 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26075 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26076 { (exit 1); exit 1; }; }
26077 fi
26078 else
26079 $as_echo "/* $configure_input */" \
26080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26081 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26082 $as_echo "$as_me: error: could not create -" >&2;}
26083 { (exit 1); exit 1; }; }
26084 fi
26085 # Compute "$ac_file"'s index in $config_headers.
26086 _am_arg="$ac_file"
26087 _am_stamp_count=1
26088 for _am_header in $config_headers :; do
26089 case $_am_header in
26090 $_am_arg | $_am_arg:* )
26091 break ;;
26092 * )
26093 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26094 esac
26095 done
26096 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26097 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26098 X"$_am_arg" : 'X\(//\)[^/]' \| \
26099 X"$_am_arg" : 'X\(//\)$' \| \
26100 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26101 $as_echo X"$_am_arg" |
26102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26103 s//\1/
26104 q
26105 }
26106 /^X\(\/\/\)[^/].*/{
26107 s//\1/
26108 q
26109 }
26110 /^X\(\/\/\)$/{
26111 s//\1/
26112 q
26113 }
26114 /^X\(\/\).*/{
26115 s//\1/
26116 q
26117 }
26118 s/.*/./; q'`/stamp-h$_am_stamp_count
26119 ;;
26120
26121 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26122 $as_echo "$as_me: executing $ac_file commands" >&6;}
26123 ;;
26124 esac
26125
26126
26127 case $ac_file$ac_mode in
26128 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26129 # Strip MF so we end up with the name of the file.
26130 mf=`echo "$mf" | sed -e 's/:.*$//'`
26131 # Check whether this is an Automake generated Makefile or not.
26132 # We used to match only the files named `Makefile.in', but
26133 # some people rename them; so instead we look at the file content.
26134 # Grep'ing the first line is not enough: some people post-process
26135 # each Makefile.in and add a new line on top of each file to say so.
26136 # Grep'ing the whole file is not good either: AIX grep has a line
26137 # limit of 2048, but all sed's we know have understand at least 4000.
26138 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26139 dirpart=`$as_dirname -- "$mf" ||
26140 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26141 X"$mf" : 'X\(//\)[^/]' \| \
26142 X"$mf" : 'X\(//\)$' \| \
26143 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26144 $as_echo X"$mf" |
26145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26146 s//\1/
26147 q
26148 }
26149 /^X\(\/\/\)[^/].*/{
26150 s//\1/
26151 q
26152 }
26153 /^X\(\/\/\)$/{
26154 s//\1/
26155 q
26156 }
26157 /^X\(\/\).*/{
26158 s//\1/
26159 q
26160 }
26161 s/.*/./; q'`
26162 else
26163 continue
26164 fi
26165 # Extract the definition of DEPDIR, am__include, and am__quote
26166 # from the Makefile without running `make'.
26167 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26168 test -z "$DEPDIR" && continue
26169 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26170 test -z "am__include" && continue
26171 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26172 # When using ansi2knr, U may be empty or an underscore; expand it
26173 U=`sed -n 's/^U = //p' < "$mf"`
26174 # Find all dependency output files, they are included files with
26175 # $(DEPDIR) in their names. We invoke sed twice because it is the
26176 # simplest approach to changing $(DEPDIR) to its actual value in the
26177 # expansion.
26178 for file in `sed -n "
26179 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26181 # Make sure the directory exists.
26182 test -f "$dirpart/$file" && continue
26183 fdir=`$as_dirname -- "$file" ||
26184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26185 X"$file" : 'X\(//\)[^/]' \| \
26186 X"$file" : 'X\(//\)$' \| \
26187 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26188 $as_echo X"$file" |
26189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26190 s//\1/
26191 q
26192 }
26193 /^X\(\/\/\)[^/].*/{
26194 s//\1/
26195 q
26196 }
26197 /^X\(\/\/\)$/{
26198 s//\1/
26199 q
26200 }
26201 /^X\(\/\).*/{
26202 s//\1/
26203 q
26204 }
26205 s/.*/./; q'`
26206 { as_dir=$dirpart/$fdir
26207 case $as_dir in #(
26208 -*) as_dir=./$as_dir;;
26209 esac
26210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26211 as_dirs=
26212 while :; do
26213 case $as_dir in #(
26214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26215 *) as_qdir=$as_dir;;
26216 esac
26217 as_dirs="'$as_qdir' $as_dirs"
26218 as_dir=`$as_dirname -- "$as_dir" ||
26219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26220 X"$as_dir" : 'X\(//\)[^/]' \| \
26221 X"$as_dir" : 'X\(//\)$' \| \
26222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26223 $as_echo X"$as_dir" |
26224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26225 s//\1/
26226 q
26227 }
26228 /^X\(\/\/\)[^/].*/{
26229 s//\1/
26230 q
26231 }
26232 /^X\(\/\/\)$/{
26233 s//\1/
26234 q
26235 }
26236 /^X\(\/\).*/{
26237 s//\1/
26238 q
26239 }
26240 s/.*/./; q'`
26241 test -d "$as_dir" && break
26242 done
26243 test -z "$as_dirs" || eval "mkdir $as_dirs"
26244 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26245 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26246 { (exit 1); exit 1; }; }; }
26247 # echo "creating $dirpart/$file"
26248 echo '# dummy' > "$dirpart/$file"
26249 done
26250 done
26251 ;;
26252
26253 esac
26254 done # for ac_tag
26255
26256
26257 { (exit 0); exit 0; }
26258 _ACEOF
26259 chmod +x $CONFIG_STATUS
26260 ac_clean_files=$ac_clean_files_save
26261
26262 test $ac_write_fail = 0 ||
26263 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26264 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26265 { (exit 1); exit 1; }; }
26266
26267
26268 # configure is writing to config.log, and then calls config.status.
26269 # config.status does its own redirection, appending to config.log.
26270 # Unfortunately, on DOS this fails, as config.log is still kept open
26271 # by configure, so config.status won't be able to write to it; its
26272 # output is simply discarded. So we exec the FD to /dev/null,
26273 # effectively closing config.log, so it can be properly (re)opened and
26274 # appended to by config.status. When coming back to configure, we
26275 # need to make the FD available again.
26276 if test "$no_create" != yes; then
26277 ac_cs_success=:
26278 ac_config_status_args=
26279 test "$silent" = yes &&
26280 ac_config_status_args="$ac_config_status_args --quiet"
26281 exec 5>/dev/null
26282 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26283 exec 5>>config.log
26284 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26285 # would make configure fail if this is the last instruction.
26286 $ac_cs_success || { (exit 1); exit 1; }
26287 fi
26288 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26289 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26290 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26291 fi
26292