Rev Author Line No. Line
178 kaklik 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12  
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26  
27 fi
28  
29  
30  
31  
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39  
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52  
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59  
60  
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69  
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81  
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93  
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101  
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114  
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122  
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128  
129  
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149  
150 # CDPATH.
151 $as_unset CDPATH
152  
153  
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160  
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177  
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185  
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190  
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197  
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202  
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209  
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211  
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234  
235  
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251  
252 fi
253  
254  
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$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 # Zsh 3.x and 4.x performs 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 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292  
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300  
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305  
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312  
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317  
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324  
325 test $exitcode = 0) || { (exit 1); exit 1; }
326  
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332  
333 _ASEOF
334 }; then
335 break
336 fi
337  
338 fi
339  
340 done
341  
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349  
350  
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358  
359  
360 fi
361  
362 fi
363  
364  
365  
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381  
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389  
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394  
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401  
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406  
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413  
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420  
421  
422  
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427  
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456  
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464  
465  
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471  
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482  
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489  
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513  
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520  
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543  
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546  
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549  
550  
551  
552  
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555  
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562  
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577  
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586  
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590  
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604  
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615  
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628  
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669  
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677  
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691  
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698  
699  
700  
701  
702 tagnames=${tagnames+${tagnames},}CXX
703  
704 tagnames=${tagnames+${tagnames},}F77
705  
706 exec 7<&0 </dev/null 6>&1
707  
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712  
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725  
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732  
733 ac_unique_file="aclocal.m4"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769  
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
837 CC
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 XMKMF
873 X_CFLAGS
874 X_PRE_LIBS
875 X_LIBS
876 X_EXTRA_LIBS
877 LIBS_DC1394
878 GL_CFLAGS
879 GL_LIBS
880 PKG_CONFIG
881 QT_CFLAGS
882 QT_LIBS
883 QT_MOC
884 QT_UIC
885 QT_RCC
886 FC
887 FCFLAGS
888 ac_ct_FC
889 FLIBS
890 BLAS_LIBS
891 LAPACK_LIBS
892 FFTW3_CFLAGS
893 FFTW3_LIBS
894 FFTW3F_CFLAGS
895 FFTW3F_LIBS
896 LIBOBJS
897 LTLIBOBJS'
898 ac_subst_files=''
899 ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 CXX
909 CXXFLAGS
910 CCC
911 CXXCPP
912 F77
913 FFLAGS
914 XMKMF
915 PKG_CONFIG
916 QT_CFLAGS
917 QT_LIBS
918 FC
919 FCFLAGS
920 FFTW3_CFLAGS
921 FFTW3_LIBS
922 FFTW3F_CFLAGS
923 FFTW3F_LIBS'
924  
925  
926 # Initialize some variables set by options.
927 ac_init_help=
928 ac_init_version=false
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945  
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971  
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
981 fi
982  
983 case $ac_option in
984 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *) ac_optarg=yes ;;
986 esac
987  
988 # Accept the important Cygnus configure options, so we can diagnose typos.
989  
990 case $ac_dashdash$ac_option in
991 --)
992 ac_dashdash=yes ;;
993  
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
998  
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1003  
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1010  
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1013  
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1018  
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1025  
1026 -disable-* | --disable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033 eval enable_$ac_feature=no ;;
1034  
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039  
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1044  
1045 -enable-* | --enable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=\$ac_optarg ;;
1053  
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1062  
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066  
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1073  
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1078  
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084  
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1091  
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1096  
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1101  
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1108  
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113  
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1120  
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1125  
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129  
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1132 no_create=yes ;;
1133  
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137  
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1146  
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1151  
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1158  
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1165  
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1182  
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187  
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192  
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196  
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
1201 sbindir=$ac_optarg ;;
1202  
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
1212 sharedstatedir=$ac_optarg ;;
1213  
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
1217 site=$ac_optarg ;;
1218  
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1223  
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1230  
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1235  
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238  
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1241  
1242 -with-* | --with-*)
1243 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=\$ac_optarg ;;
1250  
1251 -without-* | --without-*)
1252 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid package name: $ac_package" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1258 eval with_$ac_package=no ;;
1259  
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263  
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1270  
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1277  
1278 -*) { echo "$as_me: error: unrecognized option: $ac_option
1279 Try \`$0 --help' for more information." >&2
1280 { (exit 1); exit 1; }; }
1281 ;;
1282  
1283 *=*)
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1288 { (exit 1); exit 1; }; }
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1291  
1292 *)
1293 # FIXME: should be removed in autoconf 3.0.
1294 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 ;;
1299  
1300 esac
1301 done
1302  
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 { echo "$as_me: error: missing argument to $ac_option" >&2
1306 { (exit 1); exit 1; }; }
1307 fi
1308  
1309 # Be sure to have absolute directory names.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1314 do
1315 eval ac_val=\$$ac_var
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1321 { (exit 1); exit 1; }; }
1322 done
1323  
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330  
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1339 fi
1340 fi
1341  
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344  
1345 test "$silent" = yes && exec 6>/dev/null
1346  
1347  
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 { echo "$as_me: error: Working directory cannot be determined" >&2
1352 { (exit 1); exit 1; }; }
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 { echo "$as_me: error: pwd does not report name of working directory" >&2
1355 { (exit 1); exit 1; }; }
1356  
1357  
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$0" ||
1363 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$0" : 'X\(//\)[^/]' \| \
1365 X"$0" : 'X\(//\)$' \| \
1366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1367 echo X"$0" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1395 { (exit 1); exit 1; }; }
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1400 { (exit 1); exit 1; }; }
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418  
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426 \`configure' configures this package to adapt to many kinds of systems.
1427  
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429  
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1432  
1433 Defaults for the options are specified in brackets.
1434  
1435 Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445  
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 [PREFIX]
1451  
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1456  
1457 For better control, use the options below.
1458  
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1479 _ACEOF
1480  
1481 cat <<\_ACEOF
1482  
1483 Program names:
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487  
1488 X features:
1489 --x-includes=DIR X include files are in DIR
1490 --x-libraries=DIR X library files are in DIR
1491  
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1496 fi
1497  
1498 if test -n "$ac_init_help"; then
1499  
1500 cat <<\_ACEOF
1501  
1502 Optional Features:
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-dependency-tracking speeds up one-time build
1510 --enable-dependency-tracking do not reject slow dependency extractors
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --enable-debug=DEBUG compile with debugging assertions (default=no)
1513 $with_Mesa_help_string
1514  
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-tags[=TAGS] include additional configurations [automatic]
1522 --with-pkg-config-path=<dirs>
1523 colon-separated list of pkg-config(1) dirs
1524 --with-x use the X Window System
1525 Prefer the Mesa library over a vendors native OpenGL library (default=yes)
1526 --with-blas=<lib> use BLAS library <lib>
1527 --with-lapack=<lib> use LAPACK library <lib>
1528  
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
1540 CXXCPP C++ preprocessor
1541 F77 Fortran 77 compiler command
1542 FFLAGS Fortran 77 compiler flags
1543 XMKMF Path to xmkmf, Makefile generator for X Window System
1544 PKG_CONFIG path to pkg-config utility
1545 QT_CFLAGS C compiler flags for QT, overriding pkg-config
1546 QT_LIBS linker flags for QT, overriding pkg-config
1547 FC Fortran compiler command
1548 FCFLAGS Fortran compiler flags
1549 FFTW3_CFLAGS
1550 C compiler flags for FFTW3, overriding pkg-config
1551 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
1552 FFTW3F_CFLAGS
1553 C compiler flags for FFTW3F, overriding pkg-config
1554 FFTW3F_LIBS linker flags for FFTW3F, overriding pkg-config
1555  
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558  
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562  
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" || continue
1567 ac_builddir=.
1568  
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584  
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600  
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1609 else
1610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 fi || ac_status=$?
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1613 done
1614 fi
1615  
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618 cat <<\_ACEOF
1619 configure
1620 generated by GNU Autoconf 2.61
1621  
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627 exit
1628 fi
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1632  
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.61. Invocation command line was
1635  
1636 $ $0 $@
1637  
1638 _ACEOF
1639 exec 5>>config.log
1640 {
1641 cat <<_ASUNAME
1642 ## --------- ##
1643 ## Platform. ##
1644 ## --------- ##
1645  
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1651  
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1654  
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662  
1663 _ASUNAME
1664  
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 echo "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1673  
1674 } >&5
1675  
1676 cat >&5 <<_ACEOF
1677  
1678  
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1682  
1683 _ACEOF
1684  
1685  
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697 for ac_arg
1698 do
1699 case $ac_arg in
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1703 continue ;;
1704 *\'*)
1705 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 esac
1707 case $ac_pass in
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709 2)
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1713 else
1714 case $ac_arg in
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721 esac
1722 ;;
1723 -* ) ac_must_keep_next=true ;;
1724 esac
1725 fi
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1727 ;;
1728 esac
1729 done
1730 done
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1733  
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1741 {
1742 echo
1743  
1744 cat <<\_ASBOX
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1748 _ASBOX
1749 echo
1750 # The following way of writing the cache mishandles newlines in values,
1751 (
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in #(
1755 *${as_nl}*)
1756 case $ac_var in #(
1757 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1759 esac
1760 case $ac_var in #(
1761 _ | IFS | as_nl) ;; #(
1762 *) $as_unset $ac_var ;;
1763 esac ;;
1764 esac
1765 done
1766 (set) 2>&1 |
1767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768 *${as_nl}ac_space=\ *)
1769 sed -n \
1770 "s/'\''/'\''\\\\'\'''\''/g;
1771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772 ;; #(
1773 *)
1774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775 ;;
1776 esac |
1777 sort
1778 )
1779 echo
1780  
1781 cat <<\_ASBOX
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1785 _ASBOX
1786 echo
1787 for ac_var in $ac_subst_vars
1788 do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1796  
1797 if test -n "$ac_subst_files"; then
1798 cat <<\_ASBOX
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1802 _ASBOX
1803 echo
1804 for ac_var in $ac_subst_files
1805 do
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 echo "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1813 fi
1814  
1815 if test -s confdefs.h; then
1816 cat <<\_ASBOX
1817 ## ----------- ##
1818 ## confdefs.h. ##
1819 ## ----------- ##
1820 _ASBOX
1821 echo
1822 cat confdefs.h
1823 echo
1824 fi
1825 test "$ac_signal" != 0 &&
1826 echo "$as_me: caught signal $ac_signal"
1827 echo "$as_me: exit $exit_status"
1828 } >&5
1829 rm -f core *.core core.conftest.* &&
1830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831 exit $exit_status
1832 ' 0
1833 for ac_signal in 1 2 13 15; do
1834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 done
1836 ac_signal=0
1837  
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1840  
1841 # Predefined preprocessor variables.
1842  
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 _ACEOF
1846  
1847  
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 _ACEOF
1851  
1852  
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 _ACEOF
1856  
1857  
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 _ACEOF
1861  
1862  
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 _ACEOF
1866  
1867  
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1874 else
1875 set x "$ac_default_prefix/share/config.site" \
1876 "$ac_default_prefix/etc/config.site"
1877 fi
1878 shift
1879 for ac_site_file
1880 do
1881 if test -r "$ac_site_file"; then
1882 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1885 . "$ac_site_file"
1886 fi
1887 done
1888  
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1895 case $cache_file in
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1898 esac
1899 fi
1900 else
1901 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1903 >$cache_file
1904 fi
1905  
1906 # Check that the precious variables saved in the cache have kept the same
1907 # value.
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1915 set,)
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1919 ,set)
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,);;
1924 *)
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1927 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1928 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1929 echo "$as_me: former value: $ac_old_val" >&2;}
1930 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1931 echo "$as_me: current value: $ac_new_val" >&2;}
1932 ac_cache_corrupted=:
1933 fi;;
1934 esac
1935 # Pass precious variables to config.status.
1936 if test "$ac_new_set" = set; then
1937 case $ac_new_val in
1938 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 *) ac_arg=$ac_var=$ac_new_val ;;
1940 esac
1941 case " $ac_configure_args " in
1942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1943 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944 esac
1945 fi
1946 done
1947 if $ac_cache_corrupted; then
1948 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1950 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1952 { (exit 1); exit 1; }; }
1953 fi
1954  
1955  
1956  
1957  
1958  
1959  
1960  
1961  
1962  
1963  
1964  
1965  
1966  
1967  
1968  
1969  
1970  
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976  
1977  
1978 # kmando?
1979 am__api_version='1.10'
1980  
1981 ac_aux_dir=
1982 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1983 if test -f "$ac_dir/install-sh"; then
1984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/install-sh -c"
1986 break
1987 elif test -f "$ac_dir/install.sh"; then
1988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/install.sh -c"
1990 break
1991 elif test -f "$ac_dir/shtool"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/shtool install -c"
1994 break
1995 fi
1996 done
1997 if test -z "$ac_aux_dir"; then
1998 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1999 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2000 { (exit 1); exit 1; }; }
2001 fi
2002  
2003 # These three variables are undocumented and unsupported,
2004 # and are intended to be withdrawn in a future Autoconf release.
2005 # They can cause serious problems if a builder's source tree is in a directory
2006 # whose full name contains unusual characters.
2007 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2008 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2009 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2010  
2011  
2012 # Find a good install program. We prefer a C program (faster),
2013 # so one script is as good as another. But avoid the broken or
2014 # incompatible versions:
2015 # SysV /etc/install, /usr/sbin/install
2016 # SunOS /usr/etc/install
2017 # IRIX /sbin/install
2018 # AIX /bin/install
2019 # AmigaOS /C/install, which installs bootblocks on floppy discs
2020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2023 # OS/2's system install, which has a completely different semantic
2024 # ./install, which can be erroneously created by make from ./install.sh.
2025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2027 if test -z "$INSTALL"; then
2028 if test "${ac_cv_path_install+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 # Account for people who put trailing slashes in PATH elements.
2037 case $as_dir/ in
2038 ./ | .// | /cC/* | \
2039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041 /usr/ucb/* ) ;;
2042 *)
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2045 # by default.
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2052 :
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2056 :
2057 else
2058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059 break 3
2060 fi
2061 fi
2062 done
2063 done
2064 ;;
2065 esac
2066 done
2067 IFS=$as_save_IFS
2068  
2069  
2070 fi
2071 if test "${ac_cv_path_install+set}" = set; then
2072 INSTALL=$ac_cv_path_install
2073 else
2074 # As a last resort, use the slow shell script. Don't cache a
2075 # value for INSTALL within a source directory, because that will
2076 # break other packages using the cache if that directory is
2077 # removed, or if the value is a relative name.
2078 INSTALL=$ac_install_sh
2079 fi
2080 fi
2081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2082 echo "${ECHO_T}$INSTALL" >&6; }
2083  
2084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085 # It thinks the first close brace ends the variable substitution.
2086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2087  
2088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2089  
2090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2091  
2092 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2093 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094 # Just in case
2095 sleep 1
2096 echo timestamp > conftest.file
2097 # Do `set' in a subshell so we don't clobber the current shell's
2098 # arguments. Must try -L first in case configure is actually a
2099 # symlink; some systems play weird games with the mod time of symlinks
2100 # (eg FreeBSD returns the mod time of the symlink's containing
2101 # directory).
2102 if (
2103 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2104 if test "$*" = "X"; then
2105 # -L didn't work.
2106 set X `ls -t $srcdir/configure conftest.file`
2107 fi
2108 rm -f conftest.file
2109 if test "$*" != "X $srcdir/configure conftest.file" \
2110 && test "$*" != "X conftest.file $srcdir/configure"; then
2111  
2112 # If neither matched, then we have a broken ls. This can happen
2113 # if, for instance, CONFIG_SHELL is bash and it inherits a
2114 # broken ls alias from the environment. This has actually
2115 # happened. Such a system could not be considered "sane".
2116 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2117 alias in your environment" >&5
2118 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2119 alias in your environment" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2122  
2123 test "$2" = conftest.file
2124 )
2125 then
2126 # Ok.
2127 :
2128 else
2129 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2130 Check your system clock" >&5
2131 echo "$as_me: error: newly created file is older than distributed files!
2132 Check your system clock" >&2;}
2133 { (exit 1); exit 1; }; }
2134 fi
2135 { echo "$as_me:$LINENO: result: yes" >&5
2136 echo "${ECHO_T}yes" >&6; }
2137 test "$program_prefix" != NONE &&
2138 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2139 # Use a double $ so make ignores it.
2140 test "$program_suffix" != NONE &&
2141 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2142 # Double any \ or $. echo might interpret backslashes.
2143 # By default was `s,x,x', remove it if useless.
2144 cat <<\_ACEOF >conftest.sed
2145 s/[\\$]/&&/g;s/;s,x,x,$//
2146 _ACEOF
2147 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2148 rm -f conftest.sed
2149  
2150 # expand $ac_aux_dir to an absolute path
2151 am_aux_dir=`cd $ac_aux_dir && pwd`
2152  
2153 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2154 # Use eval to expand $SHELL
2155 if eval "$MISSING --run true"; then
2156 am_missing_run="$MISSING --run "
2157 else
2158 am_missing_run=
2159 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2160 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2161 fi
2162  
2163 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2164 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2165 if test -z "$MKDIR_P"; then
2166 if test "${ac_cv_path_mkdir+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2171 do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_prog in mkdir gmkdir; do
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2178 'mkdir (GNU coreutils) '* | \
2179 'mkdir (coreutils) '* | \
2180 'mkdir (fileutils) '4.1*)
2181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2182 break 3;;
2183 esac
2184 done
2185 done
2186 done
2187 IFS=$as_save_IFS
2188  
2189 fi
2190  
2191 if test "${ac_cv_path_mkdir+set}" = set; then
2192 MKDIR_P="$ac_cv_path_mkdir -p"
2193 else
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for MKDIR_P within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 test -d ./--version && rmdir ./--version
2199 MKDIR_P="$ac_install_sh -d"
2200 fi
2201 fi
2202 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2203 echo "${ECHO_T}$MKDIR_P" >&6; }
2204  
2205 mkdir_p="$MKDIR_P"
2206 case $mkdir_p in
2207 [\\/$]* | ?:[\\/]*) ;;
2208 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2209 esac
2210  
2211 for ac_prog in gawk mawk nawk awk
2212 do
2213 # Extract the first word of "$ac_prog", so it can be a program name with args.
2214 set dummy $ac_prog; ac_word=$2
2215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217 if test "${ac_cv_prog_AWK+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$AWK"; then
2221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_AWK="$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2233 fi
2234 done
2235 done
2236 IFS=$as_save_IFS
2237  
2238 fi
2239 fi
2240 AWK=$ac_cv_prog_AWK
2241 if test -n "$AWK"; then
2242 { echo "$as_me:$LINENO: result: $AWK" >&5
2243 echo "${ECHO_T}$AWK" >&6; }
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247 fi
2248  
2249  
2250 test -n "$AWK" && break
2251 done
2252  
2253 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 cat >conftest.make <<\_ACEOF
2260 SHELL = /bin/sh
2261 all:
2262 @echo '@@@%%%=$(MAKE)=@@@%%%'
2263 _ACEOF
2264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266 *@@@%%%=?*=@@@%%%*)
2267 eval ac_cv_prog_make_${ac_make}_set=yes;;
2268 *)
2269 eval ac_cv_prog_make_${ac_make}_set=no;;
2270 esac
2271 rm -f conftest.make
2272 fi
2273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276 SET_MAKE=
2277 else
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 SET_MAKE="MAKE=${MAKE-make}"
2281 fi
2282  
2283 rm -rf .tst 2>/dev/null
2284 mkdir .tst 2>/dev/null
2285 if test -d .tst; then
2286 am__leading_dot=.
2287 else
2288 am__leading_dot=_
2289 fi
2290 rmdir .tst 2>/dev/null
2291  
2292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2294 # is not polluted with repeated "-I."
2295 am__isrc=' -I$(srcdir)'
2296 # test to see if srcdir already configured
2297 if test -f $srcdir/config.status; then
2298 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2299 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2300 { (exit 1); exit 1; }; }
2301 fi
2302 fi
2303  
2304 # test whether we have cygpath
2305 if test -z "$CYGPATH_W"; then
2306 if (cygpath --version) >/dev/null 2>/dev/null; then
2307 CYGPATH_W='cygpath -w'
2308 else
2309 CYGPATH_W=echo
2310 fi
2311 fi
2312  
2313  
2314 # Define the identity of the package.
2315 PACKAGE=mando
2316 VERSION=1.6
2317  
2318  
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE "$PACKAGE"
2321 _ACEOF
2322  
2323  
2324 cat >>confdefs.h <<_ACEOF
2325 #define VERSION "$VERSION"
2326 _ACEOF
2327  
2328 # Some tools Automake needs.
2329  
2330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2331  
2332  
2333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2334  
2335  
2336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2337  
2338  
2339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2340  
2341  
2342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2343  
2344 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2345  
2346 # Installed binaries are usually stripped using `strip' when the user
2347 # run `make install-strip'. However `strip' might not be the right
2348 # tool to use in cross-compilation environments, therefore Automake
2349 # will honor the `STRIP' environment variable to overrule this program.
2350 if test "$cross_compiling" != no; then
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 if test -n "$STRIP"; then
2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376  
2377 fi
2378 fi
2379 STRIP=$ac_cv_prog_STRIP
2380 if test -n "$STRIP"; then
2381 { echo "$as_me:$LINENO: result: $STRIP" >&5
2382 echo "${ECHO_T}$STRIP" >&6; }
2383 else
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2386 fi
2387  
2388  
2389 fi
2390 if test -z "$ac_cv_prog_STRIP"; then
2391 ac_ct_STRIP=$STRIP
2392 # Extract the first word of "strip", so it can be a program name with args.
2393 set dummy strip; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$ac_ct_STRIP"; then
2400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_ac_ct_STRIP="strip"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416  
2417 fi
2418 fi
2419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2420 if test -n "$ac_ct_STRIP"; then
2421 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2422 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2423 else
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427  
2428 if test "x$ac_ct_STRIP" = x; then
2429 STRIP=":"
2430 else
2431 case $cross_compiling:$ac_tool_warned in
2432 yes:)
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441 STRIP=$ac_ct_STRIP
2442 fi
2443 else
2444 STRIP="$ac_cv_prog_STRIP"
2445 fi
2446  
2447 fi
2448 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2449  
2450 # We need awk for the "check" target. The system "awk" is bad on
2451 # some platforms.
2452 # Always define AMTAR for backward compatibility.
2453  
2454 AMTAR=${AMTAR-"${am_missing_run}tar"}
2455  
2456 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2457  
2458  
2459  
2460  
2461  
2462 ac_config_headers="$ac_config_headers config.h"
2463  
2464  
2465 # Checks for programs.
2466 # Check whether --enable-shared was given.
2467 if test "${enable_shared+set}" = set; then
2468 enableval=$enable_shared; p=${PACKAGE-default}
2469 case $enableval in
2470 yes) enable_shared=yes ;;
2471 no) enable_shared=no ;;
2472 *)
2473 enable_shared=no
2474 # Look at the argument we got. We use all the common list separators.
2475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2476 for pkg in $enableval; do
2477 IFS="$lt_save_ifs"
2478 if test "X$pkg" = "X$p"; then
2479 enable_shared=yes
2480 fi
2481 done
2482 IFS="$lt_save_ifs"
2483 ;;
2484 esac
2485 else
2486 enable_shared=yes
2487 fi
2488  
2489  
2490 # Check whether --enable-static was given.
2491 if test "${enable_static+set}" = set; then
2492 enableval=$enable_static; p=${PACKAGE-default}
2493 case $enableval in
2494 yes) enable_static=yes ;;
2495 no) enable_static=no ;;
2496 *)
2497 enable_static=no
2498 # Look at the argument we got. We use all the common list separators.
2499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2500 for pkg in $enableval; do
2501 IFS="$lt_save_ifs"
2502 if test "X$pkg" = "X$p"; then
2503 enable_static=yes
2504 fi
2505 done
2506 IFS="$lt_save_ifs"
2507 ;;
2508 esac
2509 else
2510 enable_static=yes
2511 fi
2512  
2513  
2514 # Check whether --enable-fast-install was given.
2515 if test "${enable_fast_install+set}" = set; then
2516 enableval=$enable_fast_install; p=${PACKAGE-default}
2517 case $enableval in
2518 yes) enable_fast_install=yes ;;
2519 no) enable_fast_install=no ;;
2520 *)
2521 enable_fast_install=no
2522 # Look at the argument we got. We use all the common list separators.
2523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2524 for pkg in $enableval; do
2525 IFS="$lt_save_ifs"
2526 if test "X$pkg" = "X$p"; then
2527 enable_fast_install=yes
2528 fi
2529 done
2530 IFS="$lt_save_ifs"
2531 ;;
2532 esac
2533 else
2534 enable_fast_install=yes
2535 fi
2536  
2537  
2538 # Make sure we can run config.sub.
2539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2542 { (exit 1); exit 1; }; }
2543  
2544 { echo "$as_me:$LINENO: checking build system type" >&5
2545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2546 if test "${ac_cv_build+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 ac_build_alias=$build_alias
2550 test "x$ac_build_alias" = x &&
2551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2552 test "x$ac_build_alias" = x &&
2553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2555 { (exit 1); exit 1; }; }
2556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2559 { (exit 1); exit 1; }; }
2560  
2561 fi
2562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2563 echo "${ECHO_T}$ac_cv_build" >&6; }
2564 case $ac_cv_build in
2565 *-*-*) ;;
2566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2567 echo "$as_me: error: invalid value of canonical build" >&2;}
2568 { (exit 1); exit 1; }; };;
2569 esac
2570 build=$ac_cv_build
2571 ac_save_IFS=$IFS; IFS='-'
2572 set x $ac_cv_build
2573 shift
2574 build_cpu=$1
2575 build_vendor=$2
2576 shift; shift
2577 # Remember, the first character of IFS is used to create $*,
2578 # except with old shells:
2579 build_os=$*
2580 IFS=$ac_save_IFS
2581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2582  
2583  
2584 { echo "$as_me:$LINENO: checking host system type" >&5
2585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2586 if test "${ac_cv_host+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test "x$host_alias" = x; then
2590 ac_cv_host=$ac_cv_build
2591 else
2592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2595 { (exit 1); exit 1; }; }
2596 fi
2597  
2598 fi
2599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2600 echo "${ECHO_T}$ac_cv_host" >&6; }
2601 case $ac_cv_host in
2602 *-*-*) ;;
2603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2604 echo "$as_me: error: invalid value of canonical host" >&2;}
2605 { (exit 1); exit 1; }; };;
2606 esac
2607 host=$ac_cv_host
2608 ac_save_IFS=$IFS; IFS='-'
2609 set x $ac_cv_host
2610 shift
2611 host_cpu=$1
2612 host_vendor=$2
2613 shift; shift
2614 # Remember, the first character of IFS is used to create $*,
2615 # except with old shells:
2616 host_os=$*
2617 IFS=$ac_save_IFS
2618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2619  
2620  
2621 DEPDIR="${am__leading_dot}deps"
2622  
2623 ac_config_commands="$ac_config_commands depfiles"
2624  
2625  
2626 am_make=${MAKE-make}
2627 cat > confinc << 'END'
2628 am__doit:
2629 @echo done
2630 .PHONY: am__doit
2631 END
2632 # If we don't find an include directive, just comment out the code.
2633 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2634 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2635 am__include="#"
2636 am__quote=
2637 _am_result=none
2638 # First try GNU make style include.
2639 echo "include confinc" > confmf
2640 # We grep out `Entering directory' and `Leaving directory'
2641 # messages which can occur if `w' ends up in MAKEFLAGS.
2642 # In particular we don't look at `^make:' because GNU make might
2643 # be invoked under some other name (usually "gmake"), in which
2644 # case it prints its new name instead of `make'.
2645 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2646 am__include=include
2647 am__quote=
2648 _am_result=GNU
2649 fi
2650 # Now try BSD make style include.
2651 if test "$am__include" = "#"; then
2652 echo '.include "confinc"' > confmf
2653 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2654 am__include=.include
2655 am__quote="\""
2656 _am_result=BSD
2657 fi
2658 fi
2659  
2660  
2661 { echo "$as_me:$LINENO: result: $_am_result" >&5
2662 echo "${ECHO_T}$_am_result" >&6; }
2663 rm -f confinc confmf
2664  
2665 # Check whether --enable-dependency-tracking was given.
2666 if test "${enable_dependency_tracking+set}" = set; then
2667 enableval=$enable_dependency_tracking;
2668 fi
2669  
2670 if test "x$enable_dependency_tracking" != xno; then
2671 am_depcomp="$ac_aux_dir/depcomp"
2672 AMDEPBACKSLASH='\'
2673 fi
2674 if test "x$enable_dependency_tracking" != xno; then
2675 AMDEP_TRUE=
2676 AMDEP_FALSE='#'
2677 else
2678 AMDEP_TRUE='#'
2679 AMDEP_FALSE=
2680 fi
2681  
2682  
2683 ac_ext=c
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713  
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2720 else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2723 fi
2724  
2725  
2726 fi
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753  
2754 fi
2755 fi
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759 echo "${ECHO_T}$ac_ct_CC" >&6; }
2760 else
2761 { echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6; }
2763 fi
2764  
2765 if test "x$ac_ct_CC" = x; then
2766 CC=""
2767 else
2768 case $cross_compiling:$ac_tool_warned in
2769 yes:)
2770 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2771 whose name does not start with the host triplet. If you think this
2772 configuration is useful to you, please write to autoconf@gnu.org." >&5
2773 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2774 whose name does not start with the host triplet. If you think this
2775 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 CC=$ac_ct_CC
2779 fi
2780 else
2781 CC="$ac_cv_prog_CC"
2782 fi
2783  
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cc; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CC+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="${ac_tool_prefix}cc"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810  
2811 fi
2812 fi
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 { echo "$as_me:$LINENO: result: $CC" >&5
2816 echo "${ECHO_T}$CC" >&6; }
2817 else
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2820 fi
2821  
2822  
2823 fi
2824 fi
2825 if test -z "$CC"; then
2826 # Extract the first word of "cc", so it can be a program name with args.
2827 set dummy cc; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 ac_prog_rejected=no
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845 ac_prog_rejected=yes
2846 continue
2847 fi
2848 ac_cv_prog_CC="cc"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855  
2856 if test $ac_prog_rejected = yes; then
2857 # We found a bogon in the path, so make sure we never use it.
2858 set dummy $ac_cv_prog_CC
2859 shift
2860 if test $# != 0; then
2861 # We chose a different compiler from the bogus one.
2862 # However, it has the same basename, so the bogon will be chosen
2863 # first if we set CC to just the basename; use the full file name.
2864 shift
2865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 fi
2867 fi
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { echo "$as_me:$LINENO: result: $CC" >&5
2873 echo "${ECHO_T}$CC" >&6; }
2874 else
2875 { echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6; }
2877 fi
2878  
2879  
2880 fi
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 for ac_prog in cl.exe
2884 do
2885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909  
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { echo "$as_me:$LINENO: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6; }
2916 else
2917 { echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6; }
2919 fi
2920  
2921  
2922 test -n "$CC" && break
2923 done
2924 fi
2925 if test -z "$CC"; then
2926 ac_ct_CC=$CC
2927 for ac_prog in cl.exe
2928 do
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_ac_ct_CC="$ac_prog"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953  
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959 echo "${ECHO_T}$ac_ct_CC" >&6; }
2960 else
2961 { echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6; }
2963 fi
2964  
2965  
2966 test -n "$ac_ct_CC" && break
2967 done
2968  
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2975 whose name does not start with the host triplet. If you think this
2976 configuration is useful to you, please write to autoconf@gnu.org." >&5
2977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2978 whose name does not start with the host triplet. If you think this
2979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982 CC=$ac_ct_CC
2983 fi
2984 fi
2985  
2986 fi
2987  
2988  
2989 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2990 See \`config.log' for more details." >&5
2991 echo "$as_me: error: no acceptable C compiler found in \$PATH
2992 See \`config.log' for more details." >&2;}
2993 { (exit 1); exit 1; }; }
2994  
2995 # Provide some information about the compiler.
2996 echo "$as_me:$LINENO: checking for C compiler version" >&5
2997 ac_compiler=`set X $ac_compile; echo $2`
2998 { (ac_try="$ac_compiler --version >&5"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compiler --version >&5") 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }
3008 { (ac_try="$ac_compiler -v >&5"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compiler -v >&5") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (ac_try="$ac_compiler -V >&5"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler -V >&5") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028  
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035  
3036 int
3037 main ()
3038 {
3039  
3040 ;
3041 return 0;
3042 }
3043 _ACEOF
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3048 # of exeext.
3049 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 #
3053 # List of possible output files, starting from the most likely.
3054 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3055 # only as a last resort. b.out is created by i960 compilers.
3056 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3057 #
3058 # The IRIX 6 linker writes into existing files which may not be
3059 # executable, retaining their permissions. Remove them first so a
3060 # subsequent execution test works.
3061 ac_rmfiles=
3062 for ac_file in $ac_files
3063 do
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3066 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3067 esac
3068 done
3069 rm -f $ac_rmfiles
3070  
3071 if { (ac_try="$ac_link_default"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_link_default") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3082 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3083 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3084 # so that the user can short-circuit this test for compilers unknown to
3085 # Autoconf.
3086 for ac_file in $ac_files ''
3087 do
3088 test -f "$ac_file" || continue
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3091 ;;
3092 [ab].out )
3093 # We found the default executable, but exeext='' is most
3094 # certainly right.
3095 break;;
3096 *.* )
3097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3098 then :; else
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 fi
3101 # We set ac_cv_exeext here because the later test for it is not
3102 # safe: cross compilers may not add the suffix if given an `-o'
3103 # argument, so we may need to know it at that point already.
3104 # Even if this section looks crufty: it has the advantage of
3105 # actually working.
3106 break;;
3107 * )
3108 break;;
3109 esac
3110 done
3111 test "$ac_cv_exeext" = no && ac_cv_exeext=
3112  
3113 else
3114 ac_file=''
3115 fi
3116  
3117 { echo "$as_me:$LINENO: result: $ac_file" >&5
3118 echo "${ECHO_T}$ac_file" >&6; }
3119 if test -z "$ac_file"; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122  
3123 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: C compiler cannot create executables
3126 See \`config.log' for more details." >&2;}
3127 { (exit 77); exit 77; }; }
3128 fi
3129  
3130 ac_exeext=$ac_cv_exeext
3131  
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try='./$ac_file'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details." >&5
3157 echo "$as_me: error: cannot run C compiled programs.
3158 If you meant to cross compile, use \`--host'.
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3161 fi
3162 fi
3163 fi
3164 { echo "$as_me:$LINENO: result: yes" >&5
3165 echo "${ECHO_T}yes" >&6; }
3166  
3167 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 # Check that the compiler produces executables we can run. If not, either
3170 # the compiler is broken, or we cross compile.
3171 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3172 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3173 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3174 echo "${ECHO_T}$cross_compiling" >&6; }
3175  
3176 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3177 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3178 if { (ac_try="$ac_link"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_link") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; then
3188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3190 # work properly (i.e., refer to `conftest.exe'), while it won't with
3191 # `rm'.
3192 for ac_file in conftest.exe conftest conftest.*; do
3193 test -f "$ac_file" || continue
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 break;;
3198 * ) break;;
3199 esac
3200 done
3201 else
3202 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3205 See \`config.log' for more details." >&2;}
3206 { (exit 1); exit 1; }; }
3207 fi
3208  
3209 rm -f conftest$ac_cv_exeext
3210 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3211 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3212  
3213 rm -f conftest.$ac_ext
3214 EXEEXT=$ac_cv_exeext
3215 ac_exeext=$EXEEXT
3216 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3217 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3218 if test "${ac_cv_objext+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227  
3228 int
3229 main ()
3230 {
3231  
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.o conftest.obj
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; then
3247 for ac_file in conftest.o conftest.obj conftest.*; do
3248 test -f "$ac_file" || continue;
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3252 break;;
3253 esac
3254 done
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258  
3259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details." >&5
3261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3262 See \`config.log' for more details." >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265  
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3269 echo "${ECHO_T}$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3271 ac_objext=$OBJEXT
3272 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283  
3284 int
3285 main ()
3286 {
3287 #ifndef __GNUC__
3288 choke me
3289 #endif
3290  
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_compiler_gnu=yes
3313 else
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316  
3317 ac_compiler_gnu=no
3318 fi
3319  
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3322  
3323 fi
3324 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3326 GCC=`test $ac_compiler_gnu = yes && echo yes`
3327 ac_test_CFLAGS=${CFLAGS+set}
3328 ac_save_CFLAGS=$CFLAGS
3329 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3331 if test "${ac_cv_prog_cc_g+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 ac_save_c_werror_flag=$ac_c_werror_flag
3335 ac_c_werror_flag=yes
3336 ac_cv_prog_cc_g=no
3337 CFLAGS="-g"
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344  
3345 int
3346 main ()
3347 {
3348  
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest.$ac_objext; then
3370 ac_cv_prog_cc_g=yes
3371 else
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374  
3375 CFLAGS=""
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382  
3383 int
3384 main ()
3385 {
3386  
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && {
3405 test -z "$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 } && test -s conftest.$ac_objext; then
3408 :
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412  
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3414 CFLAGS="-g"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421  
3422 int
3423 main ()
3424 {
3425  
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_prog_cc_g=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451  
3452  
3453 fi
3454  
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457  
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 fi
3460  
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3463 fi
3464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3466 if test "$ac_test_CFLAGS" = set; then
3467 CFLAGS=$ac_save_CFLAGS
3468 elif test $ac_cv_prog_cc_g = yes; then
3469 if test "$GCC" = yes; then
3470 CFLAGS="-g -O2"
3471 else
3472 CFLAGS="-g"
3473 fi
3474 else
3475 if test "$GCC" = yes; then
3476 CFLAGS="-O2"
3477 else
3478 CFLAGS=
3479 fi
3480 fi
3481 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3482 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_cc_c89+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 ac_cv_prog_cc_c89=no
3487 ac_save_CC=$CC
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <stdarg.h>
3495 #include <stdio.h>
3496 #include <sys/types.h>
3497 #include <sys/stat.h>
3498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3499 struct buf { int x; };
3500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3501 static char *e (p, i)
3502 char **p;
3503 int i;
3504 {
3505 return p[i];
3506 }
3507 static char *f (char * (*g) (char **, int), char **p, ...)
3508 {
3509 char *s;
3510 va_list v;
3511 va_start (v,p);
3512 s = g (p, va_arg (v,int));
3513 va_end (v);
3514 return s;
3515 }
3516  
3517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3518 function prototypes and stuff, but not '\xHH' hex character constants.
3519 These don't provoke an error unfortunately, instead are silently treated
3520 as 'x'. The following induces an error, until -std is added to get
3521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3522 array size at least. It's necessary to write '\x00'==0 to get something
3523 that's true only with -std. */
3524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3525  
3526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3527 inside strings and character constants. */
3528 #define FOO(x) 'x'
3529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3530  
3531 int test (int i, double x);
3532 struct s1 {int (*f) (int a);};
3533 struct s2 {int (*f) (double a);};
3534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3535 int argc;
3536 char **argv;
3537 int
3538 main ()
3539 {
3540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3547 do
3548 CC="$ac_save_CC $ac_arg"
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3566 ac_cv_prog_cc_c89=$ac_arg
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570  
3571  
3572 fi
3573  
3574 rm -f core conftest.err conftest.$ac_objext
3575 test "x$ac_cv_prog_cc_c89" != "xno" && break
3576 done
3577 rm -f conftest.$ac_ext
3578 CC=$ac_save_CC
3579  
3580 fi
3581 # AC_CACHE_VAL
3582 case "x$ac_cv_prog_cc_c89" in
3583 x)
3584 { echo "$as_me:$LINENO: result: none needed" >&5
3585 echo "${ECHO_T}none needed" >&6; } ;;
3586 xno)
3587 { echo "$as_me:$LINENO: result: unsupported" >&5
3588 echo "${ECHO_T}unsupported" >&6; } ;;
3589 *)
3590 CC="$CC $ac_cv_prog_cc_c89"
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3593 esac
3594  
3595  
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601  
3602 depcc="$CC" am_compiler_list=
3603  
3604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3610 # We make a subdir and do the tests there. Otherwise we can end up
3611 # making bogus files that we don't know about and never remove. For
3612 # instance it was reported that on HP-UX the gcc test will end up
3613 # making a dummy file named `D' -- because `-MD' means `put the output
3614 # in D'.
3615 mkdir conftest.dir
3616 # Copy depcomp to subdir because otherwise we won't find it if we're
3617 # using a relative directory.
3618 cp "$am_depcomp" conftest.dir
3619 cd conftest.dir
3620 # We will build objects and dependencies in a subdirectory because
3621 # it helps to detect inapplicable dependency modes. For instance
3622 # both Tru64's cc and ICC support -MD to output dependencies as a
3623 # side effect of compilation, but ICC will put the dependencies in
3624 # the current directory while Tru64 will put them in the object
3625 # directory.
3626 mkdir sub
3627  
3628 am_cv_CC_dependencies_compiler_type=none
3629 if test "$am_compiler_list" = ""; then
3630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3631 fi
3632 for depmode in $am_compiler_list; do
3633 # Setup a source with many dependencies, because some compilers
3634 # like to wrap large dependency lists on column 80 (with \), and
3635 # we should not choose a depcomp mode which is confused by this.
3636 #
3637 # We need to recreate these files for each test, as the compiler may
3638 # overwrite some of them when testing with obscure command lines.
3639 # This happens at least with the AIX C compiler.
3640 : > sub/conftest.c
3641 for i in 1 2 3 4 5 6; do
3642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3643 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3644 # Solaris 8's {/usr,}/bin/sh.
3645 touch sub/conftst$i.h
3646 done
3647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3648  
3649 case $depmode in
3650 nosideeffect)
3651 # after this tag, mechanisms are not by side-effect, so they'll
3652 # only be used when explicitly requested
3653 if test "x$enable_dependency_tracking" = xyes; then
3654 continue
3655 else
3656 break
3657 fi
3658 ;;
3659 none) break ;;
3660 esac
3661 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3662 # mode. It turns out that the SunPro C++ compiler does not properly
3663 # handle `-M -o', and we need to detect this.
3664 if depmode=$depmode \
3665 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3668 >/dev/null 2>conftest.err &&
3669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673 # icc doesn't choke on unknown options, it will just issue warnings
3674 # or remarks (even with -Werror). So we grep stderr for any message
3675 # that says an option was ignored or not supported.
3676 # When given -MP, icc 7.0 and 7.1 complain thusly:
3677 # icc: Command line warning: ignoring option '-M'; no argument required
3678 # The diagnosis changed in icc 8.0:
3679 # icc: Command line remark: option '-MP' not supported
3680 if (grep 'ignoring option' conftest.err ||
3681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682 am_cv_CC_dependencies_compiler_type=$depmode
3683 break
3684 fi
3685 fi
3686 done
3687  
3688 cd ..
3689 rm -rf conftest.dir
3690 else
3691 am_cv_CC_dependencies_compiler_type=none
3692 fi
3693  
3694 fi
3695 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3698  
3699 if
3700 test "x$enable_dependency_tracking" != xno \
3701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3702 am__fastdepCC_TRUE=
3703 am__fastdepCC_FALSE='#'
3704 else
3705 am__fastdepCC_TRUE='#'
3706 am__fastdepCC_FALSE=
3707 fi
3708  
3709  
3710 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3711 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3712 if test "${lt_cv_path_SED+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 # Loop through the user's path and test for sed and gsed.
3716 # Then use that list of sed's as ones to test for truncation.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for lt_ac_prog in sed gsed; do
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3725 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3726 fi
3727 done
3728 done
3729 done
3730 IFS=$as_save_IFS
3731 lt_ac_max=0
3732 lt_ac_count=0
3733 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3734 # along with /bin/sed that truncates output.
3735 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3736 test ! -f $lt_ac_sed && continue
3737 cat /dev/null > conftest.in
3738 lt_ac_count=0
3739 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3740 # Check for GNU sed and select it if it is found.
3741 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3742 lt_cv_path_SED=$lt_ac_sed
3743 break
3744 fi
3745 while true; do
3746 cat conftest.in conftest.in >conftest.tmp
3747 mv conftest.tmp conftest.in
3748 cp conftest.in conftest.nl
3749 echo >>conftest.nl
3750 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3751 cmp -s conftest.out conftest.nl || break
3752 # 10000 chars as input seems more than enough
3753 test $lt_ac_count -gt 10 && break
3754 lt_ac_count=`expr $lt_ac_count + 1`
3755 if test $lt_ac_count -gt $lt_ac_max; then
3756 lt_ac_max=$lt_ac_count
3757 lt_cv_path_SED=$lt_ac_sed
3758 fi
3759 done
3760 done
3761  
3762 fi
3763  
3764 SED=$lt_cv_path_SED
3765  
3766 { echo "$as_me:$LINENO: result: $SED" >&5
3767 echo "${ECHO_T}$SED" >&6; }
3768  
3769 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3770 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_GREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 # Extract the first word of "grep ggrep" to use in msg output
3775 if test -z "$GREP"; then
3776 set dummy grep ggrep; ac_prog_name=$2
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 ac_path_GREP_found=false
3781 # Loop through the user's path and test for each of PROGNAME-LIST
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784 do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_prog in grep ggrep; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3790 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3791 # Check for GNU ac_path_GREP and select it if it is found.
3792 # Check for GNU $ac_path_GREP
3793 case `"$ac_path_GREP" --version 2>&1` in
3794 *GNU*)
3795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3796 *)
3797 ac_count=0
3798 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3799 while :
3800 do
3801 cat "conftest.in" "conftest.in" >"conftest.tmp"
3802 mv "conftest.tmp" "conftest.in"
3803 cp "conftest.in" "conftest.nl"
3804 echo 'GREP' >> "conftest.nl"
3805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807 ac_count=`expr $ac_count + 1`
3808 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3809 # Best one so far, save it but keep looking for a better one
3810 ac_cv_path_GREP="$ac_path_GREP"
3811 ac_path_GREP_max=$ac_count
3812 fi
3813 # 10*(2^10) chars as input seems more than enough
3814 test $ac_count -gt 10 && break
3815 done
3816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817 esac
3818  
3819  
3820 $ac_path_GREP_found && break 3
3821 done
3822 done
3823  
3824 done
3825 IFS=$as_save_IFS
3826  
3827  
3828 fi
3829  
3830 GREP="$ac_cv_path_GREP"
3831 if test -z "$GREP"; then
3832 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834 { (exit 1); exit 1; }; }
3835 fi
3836  
3837 else
3838 ac_cv_path_GREP=$GREP
3839 fi
3840  
3841  
3842 fi
3843 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3844 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3845 GREP="$ac_cv_path_GREP"
3846  
3847  
3848 { echo "$as_me:$LINENO: checking for egrep" >&5
3849 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3850 if test "${ac_cv_path_EGREP+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3854 then ac_cv_path_EGREP="$GREP -E"
3855 else
3856 # Extract the first word of "egrep" to use in msg output
3857 if test -z "$EGREP"; then
3858 set dummy egrep; ac_prog_name=$2
3859 if test "${ac_cv_path_EGREP+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 ac_path_EGREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in egrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3872 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3873 # Check for GNU ac_path_EGREP and select it if it is found.
3874 # Check for GNU $ac_path_EGREP
3875 case `"$ac_path_EGREP" --version 2>&1` in
3876 *GNU*)
3877 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3878 *)
3879 ac_count=0
3880 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3881 while :
3882 do
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 echo 'EGREP' >> "conftest.nl"
3887 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 ac_count=`expr $ac_count + 1`
3890 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_EGREP="$ac_path_EGREP"
3893 ac_path_EGREP_max=$ac_count
3894 fi
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3897 done
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 esac
3900  
3901  
3902 $ac_path_EGREP_found && break 3
3903 done
3904 done
3905  
3906 done
3907 IFS=$as_save_IFS
3908  
3909  
3910 fi
3911  
3912 EGREP="$ac_cv_path_EGREP"
3913 if test -z "$EGREP"; then
3914 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3915 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3916 { (exit 1); exit 1; }; }
3917 fi
3918  
3919 else
3920 ac_cv_path_EGREP=$EGREP
3921 fi
3922  
3923  
3924 fi
3925 fi
3926 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3927 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3928 EGREP="$ac_cv_path_EGREP"
3929  
3930  
3931  
3932 # Check whether --with-gnu-ld was given.
3933 if test "${with_gnu_ld+set}" = set; then
3934 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3935 else
3936 with_gnu_ld=no
3937 fi
3938  
3939 ac_prog=ld
3940 if test "$GCC" = yes; then
3941 # Check if gcc -print-prog-name=ld gives a path.
3942 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3943 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3944 case $host in
3945 *-*-mingw*)
3946 # gcc leaves a trailing carriage return which upsets mingw
3947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3948 *)
3949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3950 esac
3951 case $ac_prog in
3952 # Accept absolute paths.
3953 [\\/]* | ?:[\\/]*)
3954 re_direlt='/[^/][^/]*/\.\./'
3955 # Canonicalize the pathname of ld
3956 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3957 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3958 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3959 done
3960 test -z "$LD" && LD="$ac_prog"
3961 ;;
3962 "")
3963 # If it fails, then pretend we aren't using GCC.
3964 ac_prog=ld
3965 ;;
3966 *)
3967 # If it is relative, then search for the first ld in PATH.
3968 with_gnu_ld=unknown
3969 ;;
3970 esac
3971 elif test "$with_gnu_ld" = yes; then
3972 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3973 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3974 else
3975 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3976 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3977 fi
3978 if test "${lt_cv_path_LD+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981 if test -z "$LD"; then
3982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3983 for ac_dir in $PATH; do
3984 IFS="$lt_save_ifs"
3985 test -z "$ac_dir" && ac_dir=.
3986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3987 lt_cv_path_LD="$ac_dir/$ac_prog"
3988 # Check to see if the program is GNU ld. I'd rather use --version,
3989 # but apparently some variants of GNU ld only accept -v.
3990 # Break only if it was the GNU/non-GNU ld that we prefer.
3991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3992 *GNU* | *'with BFD'*)
3993 test "$with_gnu_ld" != no && break
3994 ;;
3995 *)
3996 test "$with_gnu_ld" != yes && break
3997 ;;
3998 esac
3999 fi
4000 done
4001 IFS="$lt_save_ifs"
4002 else
4003 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4004 fi
4005 fi
4006  
4007 LD="$lt_cv_path_LD"
4008 if test -n "$LD"; then
4009 { echo "$as_me:$LINENO: result: $LD" >&5
4010 echo "${ECHO_T}$LD" >&6; }
4011 else
4012 { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4014 fi
4015 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4016 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4017 { (exit 1); exit 1; }; }
4018 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4019 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4020 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4024 case `$LD -v 2>&1 </dev/null` in
4025 *GNU* | *'with BFD'*)
4026 lt_cv_prog_gnu_ld=yes
4027 ;;
4028 *)
4029 lt_cv_prog_gnu_ld=no
4030 ;;
4031 esac
4032 fi
4033 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4034 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4035 with_gnu_ld=$lt_cv_prog_gnu_ld
4036  
4037  
4038 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4039 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4040 if test "${lt_cv_ld_reload_flag+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 lt_cv_ld_reload_flag='-r'
4044 fi
4045 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4046 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4047 reload_flag=$lt_cv_ld_reload_flag
4048 case $reload_flag in
4049 "" | " "*) ;;
4050 *) reload_flag=" $reload_flag" ;;
4051 esac
4052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4053 case $host_os in
4054 darwin*)
4055 if test "$GCC" = yes; then
4056 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4057 else
4058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4059 fi
4060 ;;
4061 esac
4062  
4063 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4064 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4065 if test "${lt_cv_path_NM+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -n "$NM"; then
4069 # Let the user override the test.
4070 lt_cv_path_NM="$NM"
4071 else
4072 lt_nm_to_check="${ac_tool_prefix}nm"
4073 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4074 lt_nm_to_check="$lt_nm_to_check nm"
4075 fi
4076 for lt_tmp_nm in $lt_nm_to_check; do
4077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4078 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4079 IFS="$lt_save_ifs"
4080 test -z "$ac_dir" && ac_dir=.
4081 tmp_nm="$ac_dir/$lt_tmp_nm"
4082 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4083 # Check to see if the nm accepts a BSD-compat flag.
4084 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4085 # nm: unknown option "B" ignored
4086 # Tru64's nm complains that /dev/null is an invalid object file
4087 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4088 */dev/null* | *'Invalid file or object type'*)
4089 lt_cv_path_NM="$tmp_nm -B"
4090 break
4091 ;;
4092 *)
4093 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4094 */dev/null*)
4095 lt_cv_path_NM="$tmp_nm -p"
4096 break
4097 ;;
4098 *)
4099 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4100 continue # so that we can try to find one that supports BSD flags
4101 ;;
4102 esac
4103 ;;
4104 esac
4105 fi
4106 done
4107 IFS="$lt_save_ifs"
4108 done
4109 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4110 fi
4111 fi
4112 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4113 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4114 NM="$lt_cv_path_NM"
4115  
4116 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4117 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4118 LN_S=$as_ln_s
4119 if test "$LN_S" = "ln -s"; then
4120 { echo "$as_me:$LINENO: result: yes" >&5
4121 echo "${ECHO_T}yes" >&6; }
4122 else
4123 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4124 echo "${ECHO_T}no, using $LN_S" >&6; }
4125 fi
4126  
4127 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4128 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4129 if test "${lt_cv_deplibs_check_method+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 lt_cv_file_magic_cmd='$MAGIC_CMD'
4133 lt_cv_file_magic_test_file=
4134 lt_cv_deplibs_check_method='unknown'
4135 # Need to set the preceding variable on all platforms that support
4136 # interlibrary dependencies.
4137 # 'none' -- dependencies not supported.
4138 # `unknown' -- same as none, but documents that we really don't know.
4139 # 'pass_all' -- all dependencies passed with no checks.
4140 # 'test_compile' -- check by making test program.
4141 # 'file_magic [[regex]]' -- check by looking for files in library path
4142 # which responds to the $file_magic_cmd with a given extended regex.
4143 # If you have `file' or equivalent on your system and you're not sure
4144 # whether `pass_all' will *always* work, you probably want this one.
4145  
4146 case $host_os in
4147 aix4* | aix5*)
4148 lt_cv_deplibs_check_method=pass_all
4149 ;;
4150  
4151 beos*)
4152 lt_cv_deplibs_check_method=pass_all
4153 ;;
4154  
4155 bsdi[45]*)
4156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4157 lt_cv_file_magic_cmd='/usr/bin/file -L'
4158 lt_cv_file_magic_test_file=/shlib/libc.so
4159 ;;
4160  
4161 cygwin*)
4162 # func_win32_libid is a shell function defined in ltmain.sh
4163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4164 lt_cv_file_magic_cmd='func_win32_libid'
4165 ;;
4166  
4167 mingw* | pw32*)
4168 # Base MSYS/MinGW do not provide the 'file' command needed by
4169 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4170 # unless we find 'file', for example because we are cross-compiling.
4171 if ( file / ) >/dev/null 2>&1; then
4172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4173 lt_cv_file_magic_cmd='func_win32_libid'
4174 else
4175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4176 lt_cv_file_magic_cmd='$OBJDUMP -f'
4177 fi
4178 ;;
4179  
4180 darwin* | rhapsody*)
4181 lt_cv_deplibs_check_method=pass_all
4182 ;;
4183  
4184 freebsd* | dragonfly*)
4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186 case $host_cpu in
4187 i*86 )
4188 # Not sure whether the presence of OpenBSD here was a mistake.
4189 # Let's accept both of them until this is cleared up.
4190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4191 lt_cv_file_magic_cmd=/usr/bin/file
4192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4193 ;;
4194 esac
4195 else
4196 lt_cv_deplibs_check_method=pass_all
4197 fi
4198 ;;
4199  
4200 gnu*)
4201 lt_cv_deplibs_check_method=pass_all
4202 ;;
4203  
4204 hpux10.20* | hpux11*)
4205 lt_cv_file_magic_cmd=/usr/bin/file
4206 case $host_cpu in
4207 ia64*)
4208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4210 ;;
4211 hppa*64*)
4212 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]'
4213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4214 ;;
4215 *)
4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4218 ;;
4219 esac
4220 ;;
4221  
4222 interix[3-9]*)
4223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4225 ;;
4226  
4227 irix5* | irix6* | nonstopux*)
4228 case $LD in
4229 *-32|*"-32 ") libmagic=32-bit;;
4230 *-n32|*"-n32 ") libmagic=N32;;
4231 *-64|*"-64 ") libmagic=64-bit;;
4232 *) libmagic=never-match;;
4233 esac
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236  
4237 # This must be Linux ELF.
4238 linux* | k*bsd*-gnu)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241  
4242 netbsd* | netbsdelf*-gnu)
4243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4245 else
4246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4247 fi
4248 ;;
4249  
4250 newos6*)
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4252 lt_cv_file_magic_cmd=/usr/bin/file
4253 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4254 ;;
4255  
4256 nto-qnx*)
4257 lt_cv_deplibs_check_method=unknown
4258 ;;
4259  
4260 openbsd*)
4261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4263 else
4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4265 fi
4266 ;;
4267  
4268 osf3* | osf4* | osf5*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271  
4272 rdos*)
4273 lt_cv_deplibs_check_method=pass_all
4274 ;;
4275  
4276 solaris*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
4279  
4280 sysv4 | sysv4.3*)
4281 case $host_vendor in
4282 motorola)
4283 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]'
4284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4285 ;;
4286 ncr)
4287 lt_cv_deplibs_check_method=pass_all
4288 ;;
4289 sequent)
4290 lt_cv_file_magic_cmd='/bin/file'
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4292 ;;
4293 sni)
4294 lt_cv_file_magic_cmd='/bin/file'
4295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4296 lt_cv_file_magic_test_file=/lib/libc.so
4297 ;;
4298 siemens)
4299 lt_cv_deplibs_check_method=pass_all
4300 ;;
4301 pc)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304 esac
4305 ;;
4306  
4307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310 esac
4311  
4312 fi
4313 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4314 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4315 file_magic_cmd=$lt_cv_file_magic_cmd
4316 deplibs_check_method=$lt_cv_deplibs_check_method
4317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4318  
4319  
4320  
4321  
4322 # If no C compiler was specified, use CC.
4323 LTCC=${LTCC-"$CC"}
4324  
4325 # If no C compiler flags were specified, use CFLAGS.
4326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4327  
4328 # Allow CC to be a program name with arguments.
4329 compiler=$CC
4330  
4331  
4332 # Check whether --enable-libtool-lock was given.
4333 if test "${enable_libtool_lock+set}" = set; then
4334 enableval=$enable_libtool_lock;
4335 fi
4336  
4337 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4338  
4339 # Some flags need to be propagated to the compiler or linker for good
4340 # libtool support.
4341 case $host in
4342 ia64-*-hpux*)
4343 # Find out which ABI we are using.
4344 echo 'int i;' > conftest.$ac_ext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; then
4350 case `/usr/bin/file conftest.$ac_objext` in
4351 *ELF-32*)
4352 HPUX_IA64_MODE="32"
4353 ;;
4354 *ELF-64*)
4355 HPUX_IA64_MODE="64"
4356 ;;
4357 esac
4358 fi
4359 rm -rf conftest*
4360 ;;
4361 *-*-irix6*)
4362 # Find out which ABI we are using.
4363 echo '#line 4363 "configure"' > conftest.$ac_ext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; then
4369 if test "$lt_cv_prog_gnu_ld" = yes; then
4370 case `/usr/bin/file conftest.$ac_objext` in
4371 *32-bit*)
4372 LD="${LD-ld} -melf32bsmip"
4373 ;;
4374 *N32*)
4375 LD="${LD-ld} -melf32bmipn32"
4376 ;;
4377 *64-bit*)
4378 LD="${LD-ld} -melf64bmip"
4379 ;;
4380 esac
4381 else
4382 case `/usr/bin/file conftest.$ac_objext` in
4383 *32-bit*)
4384 LD="${LD-ld} -32"
4385 ;;
4386 *N32*)
4387 LD="${LD-ld} -n32"
4388 ;;
4389 *64-bit*)
4390 LD="${LD-ld} -64"
4391 ;;
4392 esac
4393 fi
4394 fi
4395 rm -rf conftest*
4396 ;;
4397  
4398 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4399 s390*-*linux*|sparc*-*linux*)
4400 # Find out which ABI we are using.
4401 echo 'int i;' > conftest.$ac_ext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; then
4407 case `/usr/bin/file conftest.o` in
4408 *32-bit*)
4409 case $host in
4410 x86_64-*kfreebsd*-gnu)
4411 LD="${LD-ld} -m elf_i386_fbsd"
4412 ;;
4413 x86_64-*linux*)
4414 LD="${LD-ld} -m elf_i386"
4415 ;;
4416 ppc64-*linux*|powerpc64-*linux*)
4417 LD="${LD-ld} -m elf32ppclinux"
4418 ;;
4419 s390x-*linux*)
4420 LD="${LD-ld} -m elf_s390"
4421 ;;
4422 sparc64-*linux*)
4423 LD="${LD-ld} -m elf32_sparc"
4424 ;;
4425 esac
4426 ;;
4427 *64-bit*)
4428 case $host in
4429 x86_64-*kfreebsd*-gnu)
4430 LD="${LD-ld} -m elf_x86_64_fbsd"
4431 ;;
4432 x86_64-*linux*)
4433 LD="${LD-ld} -m elf_x86_64"
4434 ;;
4435 ppc*-*linux*|powerpc*-*linux*)
4436 LD="${LD-ld} -m elf64ppc"
4437 ;;
4438 s390*-*linux*)
4439 LD="${LD-ld} -m elf64_s390"
4440 ;;
4441 sparc*-*linux*)
4442 LD="${LD-ld} -m elf64_sparc"
4443 ;;
4444 esac
4445 ;;
4446 esac
4447 fi
4448 rm -rf conftest*
4449 ;;
4450  
4451 *-*-sco3.2v5*)
4452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4453 SAVE_CFLAGS="$CFLAGS"
4454 CFLAGS="$CFLAGS -belf"
4455 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4456 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4457 if test "${lt_cv_cc_needs_belf+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465  
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472  
4473 int
4474 main ()
4475 {
4476  
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } && {
4495 test -z "$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4497 } && test -s conftest$ac_exeext &&
4498 $as_test_x conftest$ac_exeext; then
4499 lt_cv_cc_needs_belf=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503  
4504 lt_cv_cc_needs_belf=no
4505 fi
4506  
4507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4508 conftest$ac_exeext conftest.$ac_ext
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514  
4515 fi
4516 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4517 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4518 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4520 CFLAGS="$SAVE_CFLAGS"
4521 fi
4522 ;;
4523 sparc*-*solaris*)
4524 # Find out which ABI we are using.
4525 echo 'int i;' > conftest.$ac_ext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; then
4531 case `/usr/bin/file conftest.o` in
4532 *64-bit*)
4533 case $lt_cv_prog_gnu_ld in
4534 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4535 *) LD="${LD-ld} -64" ;;
4536 esac
4537 ;;
4538 esac
4539 fi
4540 rm -rf conftest*
4541 ;;
4542  
4543  
4544 esac
4545  
4546 need_locks="$enable_libtool_lock"
4547  
4548  
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4555 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4556 # On Suns, sometimes $CPP names a directory.
4557 if test -n "$CPP" && test -d "$CPP"; then
4558 CPP=
4559 fi
4560 if test -z "$CPP"; then
4561 if test "${ac_cv_prog_CPP+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 # Double quotes because CPP needs to be expanded
4565 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4566 do
4567 ac_preproc_ok=false
4568 for ac_c_preproc_warn_flag in '' yes
4569 do
4570 # Use a header file that comes with gcc, so configuring glibc
4571 # with a fresh cross-compiler works.
4572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4573 # <limits.h> exists even on freestanding compilers.
4574 # On the NeXT, cc -E runs the code through the compiler's parser,
4575 # not just through cpp. "Syntax error" is here to catch this case.
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #ifdef __STDC__
4583 # include <limits.h>
4584 #else
4585 # include <assert.h>
4586 #endif
4587 Syntax error
4588 _ACEOF
4589 if { (ac_try="$ac_cpp conftest.$ac_ext"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null && {
4602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 }; then
4605 :
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609  
4610 # Broken: fails on valid input.
4611 continue
4612 fi
4613  
4614 rm -f conftest.err conftest.$ac_ext
4615  
4616 # OK, works on sane cases. Now check whether nonexistent headers
4617 # can be detected and how.
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4625 _ACEOF
4626 if { (ac_try="$ac_cpp conftest.$ac_ext"
4627 case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } >/dev/null && {
4639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4640 test ! -s conftest.err
4641 }; then
4642 # Broken: success on invalid input.
4643 continue
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647  
4648 # Passes both tests.
4649 ac_preproc_ok=:
4650 break
4651 fi
4652  
4653 rm -f conftest.err conftest.$ac_ext
4654  
4655 done
4656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4657 rm -f conftest.err conftest.$ac_ext
4658 if $ac_preproc_ok; then
4659 break
4660 fi
4661  
4662 done
4663 ac_cv_prog_CPP=$CPP
4664  
4665 fi
4666 CPP=$ac_cv_prog_CPP
4667 else
4668 ac_cv_prog_CPP=$CPP
4669 fi
4670 { echo "$as_me:$LINENO: result: $CPP" >&5
4671 echo "${ECHO_T}$CPP" >&6; }
4672 ac_preproc_ok=false
4673 for ac_c_preproc_warn_flag in '' yes
4674 do
4675 # Use a header file that comes with gcc, so configuring glibc
4676 # with a fresh cross-compiler works.
4677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4678 # <limits.h> exists even on freestanding compilers.
4679 # On the NeXT, cc -E runs the code through the compiler's parser,
4680 # not just through cpp. "Syntax error" is here to catch this case.
4681 cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h. */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #ifdef __STDC__
4688 # include <limits.h>
4689 #else
4690 # include <assert.h>
4691 #endif
4692 Syntax error
4693 _ACEOF
4694 if { (ac_try="$ac_cpp conftest.$ac_ext"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null && {
4707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 }; then
4710 :
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714  
4715 # Broken: fails on valid input.
4716 continue
4717 fi
4718  
4719 rm -f conftest.err conftest.$ac_ext
4720  
4721 # OK, works on sane cases. Now check whether nonexistent headers
4722 # can be detected and how.
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 #include <ac_nonexistent.h>
4730 _ACEOF
4731 if { (ac_try="$ac_cpp conftest.$ac_ext"
4732 case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735 esac
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null && {
4744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4745 test ! -s conftest.err
4746 }; then
4747 # Broken: success on invalid input.
4748 continue
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752  
4753 # Passes both tests.
4754 ac_preproc_ok=:
4755 break
4756 fi
4757  
4758 rm -f conftest.err conftest.$ac_ext
4759  
4760 done
4761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4762 rm -f conftest.err conftest.$ac_ext
4763 if $ac_preproc_ok; then
4764 :
4765 else
4766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4767 See \`config.log' for more details." >&5
4768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4769 See \`config.log' for more details." >&2;}
4770 { (exit 1); exit 1; }; }
4771 fi
4772  
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778  
4779  
4780 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4782 if test "${ac_cv_header_stdc+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <stdlib.h>
4792 #include <stdarg.h>
4793 #include <string.h>
4794 #include <float.h>
4795  
4796 int
4797 main ()
4798 {
4799  
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_compile") 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest.$ac_objext; then
4821 ac_cv_header_stdc=yes
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825  
4826 ac_cv_header_stdc=no
4827 fi
4828  
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830  
4831 if test $ac_cv_header_stdc = yes; then
4832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 #include <string.h>
4840  
4841 _ACEOF
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 $EGREP "memchr" >/dev/null 2>&1; then
4844 :
4845 else
4846 ac_cv_header_stdc=no
4847 fi
4848 rm -f conftest*
4849  
4850 fi
4851  
4852 if test $ac_cv_header_stdc = yes; then
4853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <stdlib.h>
4861  
4862 _ACEOF
4863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864 $EGREP "free" >/dev/null 2>&1; then
4865 :
4866 else
4867 ac_cv_header_stdc=no
4868 fi
4869 rm -f conftest*
4870  
4871 fi
4872  
4873 if test $ac_cv_header_stdc = yes; then
4874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4875 if test "$cross_compiling" = yes; then
4876 :
4877 else
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <ctype.h>
4885 #include <stdlib.h>
4886 #if ((' ' & 0x0FF) == 0x020)
4887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4889 #else
4890 # define ISLOWER(c) \
4891 (('a' <= (c) && (c) <= 'i') \
4892 || ('j' <= (c) && (c) <= 'r') \
4893 || ('s' <= (c) && (c) <= 'z'))
4894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4895 #endif
4896  
4897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4898 int
4899 main ()
4900 {
4901 int i;
4902 for (i = 0; i < 256; i++)
4903 if (XOR (islower (i), ISLOWER (i))
4904 || toupper (i) != TOUPPER (i))
4905 return 2;
4906 return 0;
4907 }
4908 _ACEOF
4909 rm -f conftest$ac_exeext
4910 if { (ac_try="$ac_link"
4911 case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_link") 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4920 { (case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_try") 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 :
4930 else
4931 echo "$as_me: program exited with status $ac_status" >&5
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934  
4935 ( exit $ac_status )
4936 ac_cv_header_stdc=no
4937 fi
4938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4939 fi
4940  
4941  
4942 fi
4943 fi
4944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4946 if test $ac_cv_header_stdc = yes; then
4947  
4948 cat >>confdefs.h <<\_ACEOF
4949 #define STDC_HEADERS 1
4950 _ACEOF
4951  
4952 fi
4953  
4954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4955  
4956  
4957  
4958  
4959  
4960  
4961  
4962  
4963  
4964 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4965 inttypes.h stdint.h unistd.h
4966 do
4967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4980  
4981 #include <$ac_header>
4982 _ACEOF
4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_compile") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest.$ac_objext; then
5000 eval "$as_ac_Header=yes"
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004  
5005 eval "$as_ac_Header=no"
5006 fi
5007  
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 ac_res=`eval echo '${'$as_ac_Header'}'`
5011 { echo "$as_me:$LINENO: result: $ac_res" >&5
5012 echo "${ECHO_T}$ac_res" >&6; }
5013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5014 cat >>confdefs.h <<_ACEOF
5015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016 _ACEOF
5017  
5018 fi
5019  
5020 done
5021  
5022  
5023  
5024 for ac_header in dlfcn.h
5025 do
5026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 fi
5033 ac_res=`eval echo '${'$as_ac_Header'}'`
5034 { echo "$as_me:$LINENO: result: $ac_res" >&5
5035 echo "${ECHO_T}$ac_res" >&6; }
5036 else
5037 # Is the header compilable?
5038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 $ac_includes_default
5047 #include <$ac_header>
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_header_compiler=yes
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070  
5071 ac_header_compiler=no
5072 fi
5073  
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5076 echo "${ECHO_T}$ac_header_compiler" >&6; }
5077  
5078 # Is the header present?
5079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5081 cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h. */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 #include <$ac_header>
5088 _ACEOF
5089 if { (ac_try="$ac_cpp conftest.$ac_ext"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 }; then
5105 ac_header_preproc=yes
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109  
5110 ac_header_preproc=no
5111 fi
5112  
5113 rm -f conftest.err conftest.$ac_ext
5114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5115 echo "${ECHO_T}$ac_header_preproc" >&6; }
5116  
5117 # So? What about this header?
5118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5119 yes:no: )
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5124 ac_header_preproc=yes
5125 ;;
5126 no:yes:* )
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5139  
5140 ;;
5141 esac
5142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 eval "$as_ac_Header=\$ac_header_preproc"
5148 fi
5149 ac_res=`eval echo '${'$as_ac_Header'}'`
5150 { echo "$as_me:$LINENO: result: $ac_res" >&5
5151 echo "${ECHO_T}$ac_res" >&6; }
5152  
5153 fi
5154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5155 cat >>confdefs.h <<_ACEOF
5156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157 _ACEOF
5158  
5159 fi
5160  
5161 done
5162  
5163 ac_ext=cpp
5164 ac_cpp='$CXXCPP $CPPFLAGS'
5165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168 if test -z "$CXX"; then
5169 if test -n "$CCC"; then
5170 CXX=$CCC
5171 else
5172 if test -n "$ac_tool_prefix"; then
5173 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5174 do
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_CXX+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 if test -n "$CXX"; then
5183 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199  
5200 fi
5201 fi
5202 CXX=$ac_cv_prog_CXX
5203 if test -n "$CXX"; then
5204 { echo "$as_me:$LINENO: result: $CXX" >&5
5205 echo "${ECHO_T}$CXX" >&6; }
5206 else
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210  
5211  
5212 test -n "$CXX" && break
5213 done
5214 fi
5215 if test -z "$CXX"; then
5216 ac_ct_CXX=$CXX
5217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5218 do
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 if test -n "$ac_ct_CXX"; then
5227 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_ac_ct_CXX="$ac_prog"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243  
5244 fi
5245 fi
5246 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5247 if test -n "$ac_ct_CXX"; then
5248 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5249 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5250 else
5251 { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5253 fi
5254  
5255  
5256 test -n "$ac_ct_CXX" && break
5257 done
5258  
5259 if test "x$ac_ct_CXX" = x; then
5260 CXX="g++"
5261 else
5262 case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265 whose name does not start with the host triplet. If you think this
5266 configuration is useful to you, please write to autoconf@gnu.org." >&5
5267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet. If you think this
5269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272 CXX=$ac_ct_CXX
5273 fi
5274 fi
5275  
5276 fi
5277 fi
5278 # Provide some information about the compiler.
5279 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (ac_try="$ac_compiler --version >&5"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compiler --version >&5") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291 { (ac_try="$ac_compiler -v >&5"
5292 case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_compiler -v >&5") 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }
5301 { (ac_try="$ac_compiler -V >&5"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compiler -V >&5") 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }
5311  
5312 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5313 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5314 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323  
5324 int
5325 main ()
5326 {
5327 #ifndef __GNUC__
5328 choke me
5329 #endif
5330  
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && {
5349 test -z "$ac_cxx_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
5352 ac_compiler_gnu=yes
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356  
5357 ac_compiler_gnu=no
5358 fi
5359  
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5362  
5363 fi
5364 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5365 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5366 GXX=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_test_CXXFLAGS=${CXXFLAGS+set}
5368 ac_save_CXXFLAGS=$CXXFLAGS
5369 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5370 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5371 if test "${ac_cv_prog_cxx_g+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5375 ac_cxx_werror_flag=yes
5376 ac_cv_prog_cxx_g=no
5377 CXXFLAGS="-g"
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384  
5385 int
5386 main ()
5387 {
5388  
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_cxx_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_cv_prog_cxx_g=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414  
5415 CXXFLAGS=""
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422  
5423 int
5424 main ()
5425 {
5426  
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_cxx_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 :
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452  
5453 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5454 CXXFLAGS="-g"
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461  
5462 int
5463 main ()
5464 {
5465  
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_cxx_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_cv_prog_cxx_g=yes
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491  
5492  
5493 fi
5494  
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 fi
5497  
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500  
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503 fi
5504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5505 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5506 if test "$ac_test_CXXFLAGS" = set; then
5507 CXXFLAGS=$ac_save_CXXFLAGS
5508 elif test $ac_cv_prog_cxx_g = yes; then
5509 if test "$GXX" = yes; then
5510 CXXFLAGS="-g -O2"
5511 else
5512 CXXFLAGS="-g"
5513 fi
5514 else
5515 if test "$GXX" = yes; then
5516 CXXFLAGS="-O2"
5517 else
5518 CXXFLAGS=
5519 fi
5520 fi
5521 ac_ext=cpp
5522 ac_cpp='$CXXCPP $CPPFLAGS'
5523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5526  
5527 depcc="$CXX" am_compiler_list=
5528  
5529 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5530 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5531 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5535 # We make a subdir and do the tests there. Otherwise we can end up
5536 # making bogus files that we don't know about and never remove. For
5537 # instance it was reported that on HP-UX the gcc test will end up
5538 # making a dummy file named `D' -- because `-MD' means `put the output
5539 # in D'.
5540 mkdir conftest.dir
5541 # Copy depcomp to subdir because otherwise we won't find it if we're
5542 # using a relative directory.
5543 cp "$am_depcomp" conftest.dir
5544 cd conftest.dir
5545 # We will build objects and dependencies in a subdirectory because
5546 # it helps to detect inapplicable dependency modes. For instance
5547 # both Tru64's cc and ICC support -MD to output dependencies as a
5548 # side effect of compilation, but ICC will put the dependencies in
5549 # the current directory while Tru64 will put them in the object
5550 # directory.
5551 mkdir sub
5552  
5553 am_cv_CXX_dependencies_compiler_type=none
5554 if test "$am_compiler_list" = ""; then
5555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5556 fi
5557 for depmode in $am_compiler_list; do
5558 # Setup a source with many dependencies, because some compilers
5559 # like to wrap large dependency lists on column 80 (with \), and
5560 # we should not choose a depcomp mode which is confused by this.
5561 #
5562 # We need to recreate these files for each test, as the compiler may
5563 # overwrite some of them when testing with obscure command lines.
5564 # This happens at least with the AIX C compiler.
5565 : > sub/conftest.c
5566 for i in 1 2 3 4 5 6; do
5567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5569 # Solaris 8's {/usr,}/bin/sh.
5570 touch sub/conftst$i.h
5571 done
5572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5573  
5574 case $depmode in
5575 nosideeffect)
5576 # after this tag, mechanisms are not by side-effect, so they'll
5577 # only be used when explicitly requested
5578 if test "x$enable_dependency_tracking" = xyes; then
5579 continue
5580 else
5581 break
5582 fi
5583 ;;
5584 none) break ;;
5585 esac
5586 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5587 # mode. It turns out that the SunPro C++ compiler does not properly
5588 # handle `-M -o', and we need to detect this.
5589 if depmode=$depmode \
5590 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5592 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5593 >/dev/null 2>conftest.err &&
5594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5596 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5598 # icc doesn't choke on unknown options, it will just issue warnings
5599 # or remarks (even with -Werror). So we grep stderr for any message
5600 # that says an option was ignored or not supported.
5601 # When given -MP, icc 7.0 and 7.1 complain thusly:
5602 # icc: Command line warning: ignoring option '-M'; no argument required
5603 # The diagnosis changed in icc 8.0:
5604 # icc: Command line remark: option '-MP' not supported
5605 if (grep 'ignoring option' conftest.err ||
5606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5607 am_cv_CXX_dependencies_compiler_type=$depmode
5608 break
5609 fi
5610 fi
5611 done
5612  
5613 cd ..
5614 rm -rf conftest.dir
5615 else
5616 am_cv_CXX_dependencies_compiler_type=none
5617 fi
5618  
5619 fi
5620 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5621 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5622 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5623  
5624 if
5625 test "x$enable_dependency_tracking" != xno \
5626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5627 am__fastdepCXX_TRUE=
5628 am__fastdepCXX_FALSE='#'
5629 else
5630 am__fastdepCXX_TRUE='#'
5631 am__fastdepCXX_FALSE=
5632 fi
5633  
5634  
5635  
5636  
5637 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5638 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5639 (test "X$CXX" != "Xg++"))) ; then
5640 ac_ext=cpp
5641 ac_cpp='$CXXCPP $CPPFLAGS'
5642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5646 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5647 if test -z "$CXXCPP"; then
5648 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 # Double quotes because CXXCPP needs to be expanded
5652 for CXXCPP in "$CXX -E" "/lib/cpp"
5653 do
5654 ac_preproc_ok=false
5655 for ac_cxx_preproc_warn_flag in '' yes
5656 do
5657 # Use a header file that comes with gcc, so configuring glibc
5658 # with a fresh cross-compiler works.
5659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660 # <limits.h> exists even on freestanding compilers.
5661 # On the NeXT, cc -E runs the code through the compiler's parser,
5662 # not just through cpp. "Syntax error" is here to catch this case.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #ifdef __STDC__
5670 # include <limits.h>
5671 #else
5672 # include <assert.h>
5673 #endif
5674 Syntax error
5675 _ACEOF
5676 if { (ac_try="$ac_cpp conftest.$ac_ext"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } >/dev/null && {
5689 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5690 test ! -s conftest.err
5691 }; then
5692 :
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696  
5697 # Broken: fails on valid input.
5698 continue
5699 fi
5700  
5701 rm -f conftest.err conftest.$ac_ext
5702  
5703 # OK, works on sane cases. Now check whether nonexistent headers
5704 # can be detected and how.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #include <ac_nonexistent.h>
5712 _ACEOF
5713 if { (ac_try="$ac_cpp conftest.$ac_ext"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null && {
5726 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5727 test ! -s conftest.err
5728 }; then
5729 # Broken: success on invalid input.
5730 continue
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734  
5735 # Passes both tests.
5736 ac_preproc_ok=:
5737 break
5738 fi
5739  
5740 rm -f conftest.err conftest.$ac_ext
5741  
5742 done
5743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744 rm -f conftest.err conftest.$ac_ext
5745 if $ac_preproc_ok; then
5746 break
5747 fi
5748  
5749 done
5750 ac_cv_prog_CXXCPP=$CXXCPP
5751  
5752 fi
5753 CXXCPP=$ac_cv_prog_CXXCPP
5754 else
5755 ac_cv_prog_CXXCPP=$CXXCPP
5756 fi
5757 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5758 echo "${ECHO_T}$CXXCPP" >&6; }
5759 ac_preproc_ok=false
5760 for ac_cxx_preproc_warn_flag in '' yes
5761 do
5762 # Use a header file that comes with gcc, so configuring glibc
5763 # with a fresh cross-compiler works.
5764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765 # <limits.h> exists even on freestanding compilers.
5766 # On the NeXT, cc -E runs the code through the compiler's parser,
5767 # not just through cpp. "Syntax error" is here to catch this case.
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #ifdef __STDC__
5775 # include <limits.h>
5776 #else
5777 # include <assert.h>
5778 #endif
5779 Syntax error
5780 _ACEOF
5781 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } >/dev/null && {
5794 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5795 test ! -s conftest.err
5796 }; then
5797 :
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801  
5802 # Broken: fails on valid input.
5803 continue
5804 fi
5805  
5806 rm -f conftest.err conftest.$ac_ext
5807  
5808 # OK, works on sane cases. Now check whether nonexistent headers
5809 # can be detected and how.
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <ac_nonexistent.h>
5817 _ACEOF
5818 if { (ac_try="$ac_cpp conftest.$ac_ext"
5819 case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } >/dev/null && {
5831 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5832 test ! -s conftest.err
5833 }; then
5834 # Broken: success on invalid input.
5835 continue
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839  
5840 # Passes both tests.
5841 ac_preproc_ok=:
5842 break
5843 fi
5844  
5845 rm -f conftest.err conftest.$ac_ext
5846  
5847 done
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.$ac_ext
5850 if $ac_preproc_ok; then
5851 :
5852 else
5853 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5854 See \`config.log' for more details." >&5
5855 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5856 See \`config.log' for more details." >&2;}
5857 { (exit 1); exit 1; }; }
5858 fi
5859  
5860 ac_ext=cpp
5861 ac_cpp='$CXXCPP $CPPFLAGS'
5862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5865  
5866 fi
5867  
5868  
5869 ac_ext=f
5870 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5871 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5873 if test -n "$ac_tool_prefix"; then
5874 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
5875 do
5876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5880 if test "${ac_cv_prog_F77+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 if test -n "$F77"; then
5884 ac_cv_prog_F77="$F77" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900  
5901 fi
5902 fi
5903 F77=$ac_cv_prog_F77
5904 if test -n "$F77"; then
5905 { echo "$as_me:$LINENO: result: $F77" >&5
5906 echo "${ECHO_T}$F77" >&6; }
5907 else
5908 { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5910 fi
5911  
5912  
5913 test -n "$F77" && break
5914 done
5915 fi
5916 if test -z "$F77"; then
5917 ac_ct_F77=$F77
5918 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
5919 do
5920 # Extract the first word of "$ac_prog", so it can be a program name with args.
5921 set dummy $ac_prog; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 if test -n "$ac_ct_F77"; then
5928 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_F77="$ac_prog"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944  
5945 fi
5946 fi
5947 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5948 if test -n "$ac_ct_F77"; then
5949 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5950 echo "${ECHO_T}$ac_ct_F77" >&6; }
5951 else
5952 { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5954 fi
5955  
5956  
5957 test -n "$ac_ct_F77" && break
5958 done
5959  
5960 if test "x$ac_ct_F77" = x; then
5961 F77=""
5962 else
5963 case $cross_compiling:$ac_tool_warned in
5964 yes:)
5965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5966 whose name does not start with the host triplet. If you think this
5967 configuration is useful to you, please write to autoconf@gnu.org." >&5
5968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5969 whose name does not start with the host triplet. If you think this
5970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5971 ac_tool_warned=yes ;;
5972 esac
5973 F77=$ac_ct_F77
5974 fi
5975 fi
5976  
5977  
5978 # Provide some information about the compiler.
5979 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5980 ac_compiler=`set X $ac_compile; echo $2`
5981 { (ac_try="$ac_compiler --version >&5"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compiler --version >&5") 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }
5991 { (ac_try="$ac_compiler -v >&5"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compiler -v >&5") 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }
6001 { (ac_try="$ac_compiler -V >&5"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler -V >&5") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 rm -f a.out
6012  
6013 # If we don't use `.F' as extension, the preprocessor is not run on the
6014 # input file. (Note that this only needs to work for GNU compilers.)
6015 ac_save_ext=$ac_ext
6016 ac_ext=F
6017 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6018 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6019 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 cat >conftest.$ac_ext <<_ACEOF
6023 program main
6024 #ifndef __GNUC__
6025 choke me
6026 #endif
6027  
6028 end
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_f77_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 ac_compiler_gnu=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051  
6052 ac_compiler_gnu=no
6053 fi
6054  
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6057  
6058 fi
6059 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6060 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6061 ac_ext=$ac_save_ext
6062 ac_test_FFLAGS=${FFLAGS+set}
6063 ac_save_FFLAGS=$FFLAGS
6064 FFLAGS=
6065 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6066 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6067 if test "${ac_cv_prog_f77_g+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 FFLAGS=-g
6071 cat >conftest.$ac_ext <<_ACEOF
6072 program main
6073  
6074 end
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_f77_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_prog_f77_g=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097  
6098 ac_cv_prog_f77_g=no
6099 fi
6100  
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102  
6103 fi
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6105 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6106 if test "$ac_test_FFLAGS" = set; then
6107 FFLAGS=$ac_save_FFLAGS
6108 elif test $ac_cv_prog_f77_g = yes; then
6109 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110 FFLAGS="-g -O2"
6111 else
6112 FFLAGS="-g"
6113 fi
6114 else
6115 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6116 FFLAGS="-O2"
6117 else
6118 FFLAGS=
6119 fi
6120 fi
6121  
6122 G77=`test $ac_compiler_gnu = yes && echo yes`
6123 ac_ext=c
6124 ac_cpp='$CPP $CPPFLAGS'
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128  
6129  
6130  
6131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6132  
6133 # find the maximum length of command line arguments
6134 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 i=0
6140 teststring="ABCD"
6141  
6142 case $build_os in
6143 msdosdjgpp*)
6144 # On DJGPP, this test can blow up pretty badly due to problems in libc
6145 # (any single argument exceeding 2000 bytes causes a buffer overrun
6146 # during glob expansion). Even if it were fixed, the result of this
6147 # check would be larger than it should be.
6148 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6149 ;;
6150  
6151 gnu*)
6152 # Under GNU Hurd, this test is not required because there is
6153 # no limit to the length of command line arguments.
6154 # Libtool will interpret -1 as no limit whatsoever
6155 lt_cv_sys_max_cmd_len=-1;
6156 ;;
6157  
6158 cygwin* | mingw*)
6159 # On Win9x/ME, this test blows up -- it succeeds, but takes
6160 # about 5 minutes as the teststring grows exponentially.
6161 # Worse, since 9x/ME are not pre-emptively multitasking,
6162 # you end up with a "frozen" computer, even though with patience
6163 # the test eventually succeeds (with a max line length of 256k).
6164 # Instead, let's just punt: use the minimum linelength reported by
6165 # all of the supported platforms: 8192 (on NT/2K/XP).
6166 lt_cv_sys_max_cmd_len=8192;
6167 ;;
6168  
6169 amigaos*)
6170 # On AmigaOS with pdksh, this test takes hours, literally.
6171 # So we just punt and use a minimum line length of 8192.
6172 lt_cv_sys_max_cmd_len=8192;
6173 ;;
6174  
6175 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6176 # This has been around since 386BSD, at least. Likely further.
6177 if test -x /sbin/sysctl; then
6178 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6179 elif test -x /usr/sbin/sysctl; then
6180 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6181 else
6182 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6183 fi
6184 # And add a safety zone
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6187 ;;
6188  
6189 interix*)
6190 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6191 lt_cv_sys_max_cmd_len=196608
6192 ;;
6193  
6194 osf*)
6195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6197 # nice to cause kernel panics so lets avoid the loop below.
6198 # First set a reasonable default.
6199 lt_cv_sys_max_cmd_len=16384
6200 #
6201 if test -x /sbin/sysconfig; then
6202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6203 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6204 esac
6205 fi
6206 ;;
6207 sco3.2v5*)
6208 lt_cv_sys_max_cmd_len=102400
6209 ;;
6210 sysv5* | sco5v6* | sysv4.2uw2*)
6211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6212 if test -n "$kargmax"; then
6213 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6214 else
6215 lt_cv_sys_max_cmd_len=32768
6216 fi
6217 ;;
6218 *)
6219 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6220 if test -n "$lt_cv_sys_max_cmd_len"; then
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6223 else
6224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6225 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6226 = "XX$teststring") >/dev/null 2>&1 &&
6227 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6228 lt_cv_sys_max_cmd_len=$new_result &&
6229 test $i != 17 # 1/2 MB should be enough
6230 do
6231 i=`expr $i + 1`
6232 teststring=$teststring$teststring
6233 done
6234 teststring=
6235 # Add a significant safety factor because C++ compilers can tack on massive
6236 # amounts of additional arguments before passing them to the linker.
6237 # It appears as though 1/2 is a usable value.
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6239 fi
6240 ;;
6241 esac
6242  
6243 fi
6244  
6245 if test -n $lt_cv_sys_max_cmd_len ; then
6246 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6247 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6248 else
6249 { echo "$as_me:$LINENO: result: none" >&5
6250 echo "${ECHO_T}none" >&6; }
6251 fi
6252  
6253  
6254  
6255  
6256  
6257 # Check for command to grab the raw symbol name followed by C symbol from nm.
6258 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6259 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263  
6264 # These are sane defaults that work on at least a few old systems.
6265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6266  
6267 # Character class describing NM global symbol codes.
6268 symcode='[BCDEGRST]'
6269  
6270 # Regexp to match symbols that can be accessed directly from C.
6271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6272  
6273 # Transform an extracted symbol line into a proper C declaration
6274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6275  
6276 # Transform an extracted symbol line into symbol name and symbol address
6277 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'"
6278  
6279 # Define system-specific variables.
6280 case $host_os in
6281 aix*)
6282 symcode='[BCDT]'
6283 ;;
6284 cygwin* | mingw* | pw32*)
6285 symcode='[ABCDGISTW]'
6286 ;;
6287 hpux*) # Its linker distinguishes data from code symbols
6288 if test "$host_cpu" = ia64; then
6289 symcode='[ABCDEGRST]'
6290 fi
6291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6292 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'"
6293 ;;
6294 linux* | k*bsd*-gnu)
6295 if test "$host_cpu" = ia64; then
6296 symcode='[ABCDGIRSTW]'
6297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6298 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'"
6299 fi
6300 ;;
6301 irix* | nonstopux*)
6302 symcode='[BCDEGRST]'
6303 ;;
6304 osf*)
6305 symcode='[BCDEGQRST]'
6306 ;;
6307 solaris*)
6308 symcode='[BDRT]'
6309 ;;
6310 sco3.2v5*)
6311 symcode='[DT]'
6312 ;;
6313 sysv4.2uw2*)
6314 symcode='[DT]'
6315 ;;
6316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6317 symcode='[ABDT]'
6318 ;;
6319 sysv4)
6320 symcode='[DFNSTU]'
6321 ;;
6322 esac
6323  
6324 # Handle CRLF in mingw tool chain
6325 opt_cr=
6326 case $build_os in
6327 mingw*)
6328 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6329 ;;
6330 esac
6331  
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6336 esac
6337  
6338 # Try without a prefix undercore, then with it.
6339 for ac_symprfx in "" "_"; do
6340  
6341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6342 symxfrm="\\1 $ac_symprfx\\2 \\2"
6343  
6344 # Write the raw and C identifiers.
6345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6346  
6347 # Check to see that the pipe works correctly.
6348 pipe_works=no
6349  
6350 rm -f conftest*
6351 cat > conftest.$ac_ext <<EOF
6352 #ifdef __cplusplus
6353 extern "C" {
6354 #endif
6355 char nm_test_var;
6356 void nm_test_func(){}
6357 #ifdef __cplusplus
6358 }
6359 #endif
6360 int main(){nm_test_var='a';nm_test_func();return(0);}
6361 EOF
6362  
6363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364 (eval $ac_compile) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; then
6368 # Now try to grab the symbols.
6369 nlist=conftest.nm
6370 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && test -s "$nlist"; then
6375 # Try sorting and uniquifying the output.
6376 if sort "$nlist" | uniq > "$nlist"T; then
6377 mv -f "$nlist"T "$nlist"
6378 else
6379 rm -f "$nlist"T
6380 fi
6381  
6382 # Make sure that we snagged all the symbols we need.
6383 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6384 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6385 cat <<EOF > conftest.$ac_ext
6386 #ifdef __cplusplus
6387 extern "C" {
6388 #endif
6389  
6390 EOF
6391 # Now generate the symbol file.
6392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6393  
6394 cat <<EOF >> conftest.$ac_ext
6395 #if defined (__STDC__) && __STDC__
6396 # define lt_ptr_t void *
6397 #else
6398 # define lt_ptr_t char *
6399 # define const
6400 #endif
6401  
6402 /* The mapping between symbol names and symbols. */
6403 const struct {
6404 const char *name;
6405 lt_ptr_t address;
6406 }
6407 lt_preloaded_symbols[] =
6408 {
6409 EOF
6410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6411 cat <<\EOF >> conftest.$ac_ext
6412 {0, (lt_ptr_t) 0}
6413 };
6414  
6415 #ifdef __cplusplus
6416 }
6417 #endif
6418 EOF
6419 # Now try linking the two files.
6420 mv conftest.$ac_objext conftstm.$ac_objext
6421 lt_save_LIBS="$LIBS"
6422 lt_save_CFLAGS="$CFLAGS"
6423 LIBS="conftstm.$ac_objext"
6424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6430 pipe_works=yes
6431 fi
6432 LIBS="$lt_save_LIBS"
6433 CFLAGS="$lt_save_CFLAGS"
6434 else
6435 echo "cannot find nm_test_func in $nlist" >&5
6436 fi
6437 else
6438 echo "cannot find nm_test_var in $nlist" >&5
6439 fi
6440 else
6441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6442 fi
6443 else
6444 echo "$progname: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6446 fi
6447 rm -f conftest* conftst*
6448  
6449 # Do not use the global_symbol_pipe unless it works.
6450 if test "$pipe_works" = yes; then
6451 break
6452 else
6453 lt_cv_sys_global_symbol_pipe=
6454 fi
6455 done
6456  
6457 fi
6458  
6459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6460 lt_cv_sys_global_symbol_to_cdecl=
6461 fi
6462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6463 { echo "$as_me:$LINENO: result: failed" >&5
6464 echo "${ECHO_T}failed" >&6; }
6465 else
6466 { echo "$as_me:$LINENO: result: ok" >&5
6467 echo "${ECHO_T}ok" >&6; }
6468 fi
6469  
6470 { echo "$as_me:$LINENO: checking for objdir" >&5
6471 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6472 if test "${lt_cv_objdir+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 rm -f .libs 2>/dev/null
6476 mkdir .libs 2>/dev/null
6477 if test -d .libs; then
6478 lt_cv_objdir=.libs
6479 else
6480 # MS-DOS does not allow filenames that begin with a dot.
6481 lt_cv_objdir=_libs
6482 fi
6483 rmdir .libs 2>/dev/null
6484 fi
6485 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6486 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6487 objdir=$lt_cv_objdir
6488  
6489  
6490  
6491  
6492  
6493 case $host_os in
6494 aix3*)
6495 # AIX sometimes has problems with the GCC collect2 program. For some
6496 # reason, if we set the COLLECT_NAMES environment variable, the problems
6497 # vanish in a puff of smoke.
6498 if test "X${COLLECT_NAMES+set}" != Xset; then
6499 COLLECT_NAMES=
6500 export COLLECT_NAMES
6501 fi
6502 ;;
6503 esac
6504  
6505 # Sed substitution that helps us do robust quoting. It backslashifies
6506 # metacharacters that are still active within double-quoted strings.
6507 Xsed='sed -e 1s/^X//'
6508 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6509  
6510 # Same as above, but do not quote variable references.
6511 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6512  
6513 # Sed substitution to delay expansion of an escaped shell variable in a
6514 # double_quote_subst'ed string.
6515 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6516  
6517 # Sed substitution to avoid accidental globbing in evaled expressions
6518 no_glob_subst='s/\*/\\\*/g'
6519  
6520 # Constants:
6521 rm="rm -f"
6522  
6523 # Global variables:
6524 default_ofile=libtool
6525 can_build_shared=yes
6526  
6527 # All known linkers require a `.a' archive for static linking (except MSVC,
6528 # which needs '.lib').
6529 libext=a
6530 ltmain="$ac_aux_dir/ltmain.sh"
6531 ofile="$default_ofile"
6532 with_gnu_ld="$lt_cv_prog_gnu_ld"
6533  
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}ar; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_prog_AR+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 if test -n "$AR"; then
6543 ac_cv_prog_AR="$AR" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_AR="${ac_tool_prefix}ar"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559  
6560 fi
6561 fi
6562 AR=$ac_cv_prog_AR
6563 if test -n "$AR"; then
6564 { echo "$as_me:$LINENO: result: $AR" >&5
6565 echo "${ECHO_T}$AR" >&6; }
6566 else
6567 { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6569 fi
6570  
6571  
6572 fi
6573 if test -z "$ac_cv_prog_AR"; then
6574 ac_ct_AR=$AR
6575 # Extract the first word of "ar", so it can be a program name with args.
6576 set dummy ar; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 if test -n "$ac_ct_AR"; then
6583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_AR="ar"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599  
6600 fi
6601 fi
6602 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6603 if test -n "$ac_ct_AR"; then
6604 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6605 echo "${ECHO_T}$ac_ct_AR" >&6; }
6606 else
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610  
6611 if test "x$ac_ct_AR" = x; then
6612 AR="false"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet. If you think this
6618 configuration is useful to you, please write to autoconf@gnu.org." >&5
6619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6620 whose name does not start with the host triplet. If you think this
6621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 AR=$ac_ct_AR
6625 fi
6626 else
6627 AR="$ac_cv_prog_AR"
6628 fi
6629  
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_RANLIB+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 if test -n "$RANLIB"; then
6639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655  
6656 fi
6657 fi
6658 RANLIB=$ac_cv_prog_RANLIB
6659 if test -n "$RANLIB"; then
6660 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6661 echo "${ECHO_T}$RANLIB" >&6; }
6662 else
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666  
6667  
6668 fi
6669 if test -z "$ac_cv_prog_RANLIB"; then
6670 ac_ct_RANLIB=$RANLIB
6671 # Extract the first word of "ranlib", so it can be a program name with args.
6672 set dummy ranlib; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 if test -n "$ac_ct_RANLIB"; then
6679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_RANLIB="ranlib"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695  
6696 fi
6697 fi
6698 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6699 if test -n "$ac_ct_RANLIB"; then
6700 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6701 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6702 else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706  
6707 if test "x$ac_ct_RANLIB" = x; then
6708 RANLIB=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet. If you think this
6714 configuration is useful to you, please write to autoconf@gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet. If you think this
6717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720 RANLIB=$ac_ct_RANLIB
6721 fi
6722 else
6723 RANLIB="$ac_cv_prog_RANLIB"
6724 fi
6725  
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}strip; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_STRIP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 if test -n "$STRIP"; then
6735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751  
6752 fi
6753 fi
6754 STRIP=$ac_cv_prog_STRIP
6755 if test -n "$STRIP"; then
6756 { echo "$as_me:$LINENO: result: $STRIP" >&5
6757 echo "${ECHO_T}$STRIP" >&6; }
6758 else
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762  
6763  
6764 fi
6765 if test -z "$ac_cv_prog_STRIP"; then
6766 ac_ct_STRIP=$STRIP
6767 # Extract the first word of "strip", so it can be a program name with args.
6768 set dummy strip; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 if test -n "$ac_ct_STRIP"; then
6775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_STRIP="strip"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791  
6792 fi
6793 fi
6794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6795 if test -n "$ac_ct_STRIP"; then
6796 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6797 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6798 else
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 fi
6802  
6803 if test "x$ac_ct_STRIP" = x; then
6804 STRIP=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet. If you think this
6810 configuration is useful to you, please write to autoconf@gnu.org." >&5
6811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6812 whose name does not start with the host triplet. If you think this
6813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816 STRIP=$ac_ct_STRIP
6817 fi
6818 else
6819 STRIP="$ac_cv_prog_STRIP"
6820 fi
6821  
6822  
6823 old_CC="$CC"
6824 old_CFLAGS="$CFLAGS"
6825  
6826 # Set sane defaults for various variables
6827 test -z "$AR" && AR=ar
6828 test -z "$AR_FLAGS" && AR_FLAGS=cru
6829 test -z "$AS" && AS=as
6830 test -z "$CC" && CC=cc
6831 test -z "$LTCC" && LTCC=$CC
6832 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6833 test -z "$DLLTOOL" && DLLTOOL=dlltool
6834 test -z "$LD" && LD=ld
6835 test -z "$LN_S" && LN_S="ln -s"
6836 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6837 test -z "$NM" && NM=nm
6838 test -z "$SED" && SED=sed
6839 test -z "$OBJDUMP" && OBJDUMP=objdump
6840 test -z "$RANLIB" && RANLIB=:
6841 test -z "$STRIP" && STRIP=:
6842 test -z "$ac_objext" && ac_objext=o
6843  
6844 # Determine commands to create old-style static archives.
6845 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6846 old_postinstall_cmds='chmod 644 $oldlib'
6847 old_postuninstall_cmds=
6848  
6849 if test -n "$RANLIB"; then
6850 case $host_os in
6851 openbsd*)
6852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6853 ;;
6854 *)
6855 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6856 ;;
6857 esac
6858 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6859 fi
6860  
6861 for cc_temp in $compiler""; do
6862 case $cc_temp in
6863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6865 \-*) ;;
6866 *) break;;
6867 esac
6868 done
6869 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6870  
6871  
6872 # Only perform the check for file, if the check method requires it
6873 case $deplibs_check_method in
6874 file_magic*)
6875 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6876 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6877 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6878 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 case $MAGIC_CMD in
6882 [\\/*] | ?:[\\/]*)
6883 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6884 ;;
6885 *)
6886 lt_save_MAGIC_CMD="$MAGIC_CMD"
6887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6888 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6889 for ac_dir in $ac_dummy; do
6890 IFS="$lt_save_ifs"
6891 test -z "$ac_dir" && ac_dir=.
6892 if test -f $ac_dir/${ac_tool_prefix}file; then
6893 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6894 if test -n "$file_magic_test_file"; then
6895 case $deplibs_check_method in
6896 "file_magic "*)
6897 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6900 $EGREP "$file_magic_regex" > /dev/null; then
6901 :
6902 else
6903 cat <<EOF 1>&2
6904  
6905 *** Warning: the command libtool uses to detect shared libraries,
6906 *** $file_magic_cmd, produces output that libtool cannot recognize.
6907 *** The result is that libtool may fail to recognize shared libraries
6908 *** as such. This will affect the creation of libtool libraries that
6909 *** depend on shared libraries, but programs linked with such libtool
6910 *** libraries will work regardless of this problem. Nevertheless, you
6911 *** may want to report the problem to your system manager and/or to
6912 *** bug-libtool@gnu.org
6913  
6914 EOF
6915 fi ;;
6916 esac
6917 fi
6918 break
6919 fi
6920 done
6921 IFS="$lt_save_ifs"
6922 MAGIC_CMD="$lt_save_MAGIC_CMD"
6923 ;;
6924 esac
6925 fi
6926  
6927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928 if test -n "$MAGIC_CMD"; then
6929 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6930 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6931 else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935  
6936 if test -z "$lt_cv_path_MAGIC_CMD"; then
6937 if test -n "$ac_tool_prefix"; then
6938 { echo "$as_me:$LINENO: checking for file" >&5
6939 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 case $MAGIC_CMD in
6944 [\\/*] | ?:[\\/]*)
6945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 lt_save_MAGIC_CMD="$MAGIC_CMD"
6949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6950 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6951 for ac_dir in $ac_dummy; do
6952 IFS="$lt_save_ifs"
6953 test -z "$ac_dir" && ac_dir=.
6954 if test -f $ac_dir/file; then
6955 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6956 if test -n "$file_magic_test_file"; then
6957 case $deplibs_check_method in
6958 "file_magic "*)
6959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6962 $EGREP "$file_magic_regex" > /dev/null; then
6963 :
6964 else
6965 cat <<EOF 1>&2
6966  
6967 *** Warning: the command libtool uses to detect shared libraries,
6968 *** $file_magic_cmd, produces output that libtool cannot recognize.
6969 *** The result is that libtool may fail to recognize shared libraries
6970 *** as such. This will affect the creation of libtool libraries that
6971 *** depend on shared libraries, but programs linked with such libtool
6972 *** libraries will work regardless of this problem. Nevertheless, you
6973 *** may want to report the problem to your system manager and/or to
6974 *** bug-libtool@gnu.org
6975  
6976 EOF
6977 fi ;;
6978 esac
6979 fi
6980 break
6981 fi
6982 done
6983 IFS="$lt_save_ifs"
6984 MAGIC_CMD="$lt_save_MAGIC_CMD"
6985 ;;
6986 esac
6987 fi
6988  
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if test -n "$MAGIC_CMD"; then
6991 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6992 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6993 else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6996 fi
6997  
6998 else
6999 MAGIC_CMD=:
7000 fi
7001 fi
7002  
7003 fi
7004 ;;
7005 esac
7006  
7007 enable_dlopen=no
7008 enable_win32_dll=no
7009  
7010 # Check whether --enable-libtool-lock was given.
7011 if test "${enable_libtool_lock+set}" = set; then
7012 enableval=$enable_libtool_lock;
7013 fi
7014  
7015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7016  
7017  
7018 # Check whether --with-pic was given.
7019 if test "${with_pic+set}" = set; then
7020 withval=$with_pic; pic_mode="$withval"
7021 else
7022 pic_mode=default
7023 fi
7024  
7025 test -z "$pic_mode" && pic_mode=default
7026  
7027 # Use C for the default configuration in the libtool script
7028 tagname=
7029 lt_save_CC="$CC"
7030 ac_ext=c
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035  
7036  
7037 # Source file extension for C test sources.
7038 ac_ext=c
7039  
7040 # Object file extension for compiled C test sources.
7041 objext=o
7042 objext=$objext
7043  
7044 # Code to be used in simple compile tests
7045 lt_simple_compile_test_code="int some_variable = 0;"
7046  
7047 # Code to be used in simple link tests
7048 lt_simple_link_test_code='int main(){return(0);}'
7049  
7050  
7051 # If no C compiler was specified, use CC.
7052 LTCC=${LTCC-"$CC"}
7053  
7054 # If no C compiler flags were specified, use CFLAGS.
7055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056  
7057 # Allow CC to be a program name with arguments.
7058 compiler=$CC
7059  
7060  
7061 # save warnings/boilerplate of simple test code
7062 ac_outfile=conftest.$ac_objext
7063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7065 _lt_compiler_boilerplate=`cat conftest.err`
7066 $rm conftest*
7067  
7068 ac_outfile=conftest.$ac_objext
7069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7071 _lt_linker_boilerplate=`cat conftest.err`
7072 $rm conftest*
7073  
7074  
7075  
7076 lt_prog_compiler_no_builtin_flag=
7077  
7078 if test "$GCC" = yes; then
7079 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7080  
7081  
7082 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7083 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7084 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 lt_cv_prog_compiler_rtti_exceptions=no
7088 ac_outfile=conftest.$ac_objext
7089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7090 lt_compiler_flag="-fno-rtti -fno-exceptions"
7091 # Insert the option either (1) after the last *FLAGS variable, or
7092 # (2) before a word containing "conftest.", or (3) at the end.
7093 # Note that $ac_compile itself does not contain backslashes and begins
7094 # with a dollar sign (not a hyphen), so the echo should work correctly.
7095 # The option is referenced via a variable to avoid confusing sed.
7096 lt_compile=`echo "$ac_compile" | $SED \
7097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7099 -e 's:$: $lt_compiler_flag:'`
7100 (eval echo "\"\$as_me:7100: $lt_compile\"" >&5)
7101 (eval "$lt_compile" 2>conftest.err)
7102 ac_status=$?
7103 cat conftest.err >&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 if (exit $ac_status) && test -s "$ac_outfile"; then
7106 # The compiler can only warn and ignore the option if not recognized
7107 # So say no if there are warnings other than the usual output.
7108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7111 lt_cv_prog_compiler_rtti_exceptions=yes
7112 fi
7113 fi
7114 $rm conftest*
7115  
7116 fi
7117 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7118 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7119  
7120 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7121 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7122 else
7123 :
7124 fi
7125  
7126 fi
7127  
7128 lt_prog_compiler_wl=
7129 lt_prog_compiler_pic=
7130 lt_prog_compiler_static=
7131  
7132 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7133 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7134  
7135 if test "$GCC" = yes; then
7136 lt_prog_compiler_wl='-Wl,'
7137 lt_prog_compiler_static='-static'
7138  
7139 case $host_os in
7140 aix*)
7141 # All AIX code is PIC.
7142 if test "$host_cpu" = ia64; then
7143 # AIX 5 now supports IA64 processor
7144 lt_prog_compiler_static='-Bstatic'
7145 fi
7146 ;;
7147  
7148 amigaos*)
7149 # FIXME: we need at least 68020 code to build shared libraries, but
7150 # adding the `-m68020' flag to GCC prevents building anything better,
7151 # like `-m68040'.
7152 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7153 ;;
7154  
7155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7156 # PIC is the default for these OSes.
7157 ;;
7158  
7159 mingw* | cygwin* | pw32* | os2*)
7160 # This hack is so that the source file can tell whether it is being
7161 # built for inclusion in a dll (and should export symbols for example).
7162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7163 # (--disable-auto-import) libraries
7164 lt_prog_compiler_pic='-DDLL_EXPORT'
7165 ;;
7166  
7167 darwin* | rhapsody*)
7168 # PIC is the default on this platform
7169 # Common symbols not allowed in MH_DYLIB files
7170 lt_prog_compiler_pic='-fno-common'
7171 ;;
7172  
7173 interix[3-9]*)
7174 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7175 # Instead, we relocate shared libraries at runtime.
7176 ;;
7177  
7178 msdosdjgpp*)
7179 # Just because we use GCC doesn't mean we suddenly get shared libraries
7180 # on systems that don't support them.
7181 lt_prog_compiler_can_build_shared=no
7182 enable_shared=no
7183 ;;
7184  
7185 sysv4*MP*)
7186 if test -d /usr/nec; then
7187 lt_prog_compiler_pic=-Kconform_pic
7188 fi
7189 ;;
7190  
7191 hpux*)
7192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7193 # not for PA HP-UX.
7194 case $host_cpu in
7195 hppa*64*|ia64*)
7196 # +Z the default
7197 ;;
7198 *)
7199 lt_prog_compiler_pic='-fPIC'
7200 ;;
7201 esac
7202 ;;
7203  
7204 *)
7205 lt_prog_compiler_pic='-fPIC'
7206 ;;
7207 esac
7208 else
7209 # PORTME Check for flag to pass linker flags through the system compiler.
7210 case $host_os in
7211 aix*)
7212 lt_prog_compiler_wl='-Wl,'
7213 if test "$host_cpu" = ia64; then
7214 # AIX 5 now supports IA64 processor
7215 lt_prog_compiler_static='-Bstatic'
7216 else
7217 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7218 fi
7219 ;;
7220 darwin*)
7221 # PIC is the default on this platform
7222 # Common symbols not allowed in MH_DYLIB files
7223 case $cc_basename in
7224 xlc*)
7225 lt_prog_compiler_pic='-qnocommon'
7226 lt_prog_compiler_wl='-Wl,'
7227 ;;
7228 esac
7229 ;;
7230  
7231 mingw* | cygwin* | pw32* | os2*)
7232 # This hack is so that the source file can tell whether it is being
7233 # built for inclusion in a dll (and should export symbols for example).
7234 lt_prog_compiler_pic='-DDLL_EXPORT'
7235 ;;
7236  
7237 hpux9* | hpux10* | hpux11*)
7238 lt_prog_compiler_wl='-Wl,'
7239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7240 # not for PA HP-UX.
7241 case $host_cpu in
7242 hppa*64*|ia64*)
7243 # +Z the default
7244 ;;
7245 *)
7246 lt_prog_compiler_pic='+Z'
7247 ;;
7248 esac
7249 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7250 lt_prog_compiler_static='${wl}-a ${wl}archive'
7251 ;;
7252  
7253 irix5* | irix6* | nonstopux*)
7254 lt_prog_compiler_wl='-Wl,'
7255 # PIC (with -KPIC) is the default.
7256 lt_prog_compiler_static='-non_shared'
7257 ;;
7258  
7259 newsos6)
7260 lt_prog_compiler_pic='-KPIC'
7261 lt_prog_compiler_static='-Bstatic'
7262 ;;
7263  
7264 linux* | k*bsd*-gnu)
7265 case $cc_basename in
7266 icc* | ecc*)
7267 lt_prog_compiler_wl='-Wl,'
7268 lt_prog_compiler_pic='-KPIC'
7269 lt_prog_compiler_static='-static'
7270 ;;
7271 pgcc* | pgf77* | pgf90* | pgf95*)
7272 # Portland Group compilers (*not* the Pentium gcc compiler,
7273 # which looks to be a dead project)
7274 lt_prog_compiler_wl='-Wl,'
7275 lt_prog_compiler_pic='-fpic'
7276 lt_prog_compiler_static='-Bstatic'
7277 ;;
7278 ccc*)
7279 lt_prog_compiler_wl='-Wl,'
7280 # All Alpha code is PIC.
7281 lt_prog_compiler_static='-non_shared'
7282 ;;
7283 *)
7284 case `$CC -V 2>&1 | sed 5q` in
7285 *Sun\ C*)
7286 # Sun C 5.9
7287 lt_prog_compiler_pic='-KPIC'
7288 lt_prog_compiler_static='-Bstatic'
7289 lt_prog_compiler_wl='-Wl,'
7290 ;;
7291 *Sun\ F*)
7292 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7293 lt_prog_compiler_pic='-KPIC'
7294 lt_prog_compiler_static='-Bstatic'
7295 lt_prog_compiler_wl=''
7296 ;;
7297 esac
7298 ;;
7299 esac
7300 ;;
7301  
7302 osf3* | osf4* | osf5*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # All OSF/1 code is PIC.
7305 lt_prog_compiler_static='-non_shared'
7306 ;;
7307  
7308 rdos*)
7309 lt_prog_compiler_static='-non_shared'
7310 ;;
7311  
7312 solaris*)
7313 lt_prog_compiler_pic='-KPIC'
7314 lt_prog_compiler_static='-Bstatic'
7315 case $cc_basename in
7316 f77* | f90* | f95*)
7317 lt_prog_compiler_wl='-Qoption ld ';;
7318 *)
7319 lt_prog_compiler_wl='-Wl,';;
7320 esac
7321 ;;
7322  
7323 sunos4*)
7324 lt_prog_compiler_wl='-Qoption ld '
7325 lt_prog_compiler_pic='-PIC'
7326 lt_prog_compiler_static='-Bstatic'
7327 ;;
7328  
7329 sysv4 | sysv4.2uw2* | sysv4.3*)
7330 lt_prog_compiler_wl='-Wl,'
7331 lt_prog_compiler_pic='-KPIC'
7332 lt_prog_compiler_static='-Bstatic'
7333 ;;
7334  
7335 sysv4*MP*)
7336 if test -d /usr/nec ;then
7337 lt_prog_compiler_pic='-Kconform_pic'
7338 lt_prog_compiler_static='-Bstatic'
7339 fi
7340 ;;
7341  
7342 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7343 lt_prog_compiler_wl='-Wl,'
7344 lt_prog_compiler_pic='-KPIC'
7345 lt_prog_compiler_static='-Bstatic'
7346 ;;
7347  
7348 unicos*)
7349 lt_prog_compiler_wl='-Wl,'
7350 lt_prog_compiler_can_build_shared=no
7351 ;;
7352  
7353 uts4*)
7354 lt_prog_compiler_pic='-pic'
7355 lt_prog_compiler_static='-Bstatic'
7356 ;;
7357  
7358 *)
7359 lt_prog_compiler_can_build_shared=no
7360 ;;
7361 esac
7362 fi
7363  
7364 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7365 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7366  
7367 #
7368 # Check to make sure the PIC flag actually works.
7369 #
7370 if test -n "$lt_prog_compiler_pic"; then
7371  
7372 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7373 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7374 if test "${lt_prog_compiler_pic_works+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377 lt_prog_compiler_pic_works=no
7378 ac_outfile=conftest.$ac_objext
7379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7380 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7381 # Insert the option either (1) after the last *FLAGS variable, or
7382 # (2) before a word containing "conftest.", or (3) at the end.
7383 # Note that $ac_compile itself does not contain backslashes and begins
7384 # with a dollar sign (not a hyphen), so the echo should work correctly.
7385 # The option is referenced via a variable to avoid confusing sed.
7386 lt_compile=`echo "$ac_compile" | $SED \
7387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7389 -e 's:$: $lt_compiler_flag:'`
7390 (eval echo "\"\$as_me:7390: $lt_compile\"" >&5)
7391 (eval "$lt_compile" 2>conftest.err)
7392 ac_status=$?
7393 cat conftest.err >&5
7394 echo "$as_me:7394: \$? = $ac_status" >&5
7395 if (exit $ac_status) && test -s "$ac_outfile"; then
7396 # The compiler can only warn and ignore the option if not recognized
7397 # So say no if there are warnings other than the usual output.
7398 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7401 lt_prog_compiler_pic_works=yes
7402 fi
7403 fi
7404 $rm conftest*
7405  
7406 fi
7407 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7408 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7409  
7410 if test x"$lt_prog_compiler_pic_works" = xyes; then
7411 case $lt_prog_compiler_pic in
7412 "" | " "*) ;;
7413 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7414 esac
7415 else
7416 lt_prog_compiler_pic=
7417 lt_prog_compiler_can_build_shared=no
7418 fi
7419  
7420 fi
7421 case $host_os in
7422 # For platforms which do not support PIC, -DPIC is meaningless:
7423 *djgpp*)
7424 lt_prog_compiler_pic=
7425 ;;
7426 *)
7427 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7428 ;;
7429 esac
7430  
7431 #
7432 # Check to make sure the static flag actually works.
7433 #
7434 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7435 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7436 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7437 if test "${lt_prog_compiler_static_works+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 lt_prog_compiler_static_works=no
7441 save_LDFLAGS="$LDFLAGS"
7442 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7443 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7445 # The linker can only warn and ignore the option if not recognized
7446 # So say no if there are warnings
7447 if test -s conftest.err; then
7448 # Append any errors to the config.log.
7449 cat conftest.err 1>&5
7450 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7452 if diff conftest.exp conftest.er2 >/dev/null; then
7453 lt_prog_compiler_static_works=yes
7454 fi
7455 else
7456 lt_prog_compiler_static_works=yes
7457 fi
7458 fi
7459 $rm conftest*
7460 LDFLAGS="$save_LDFLAGS"
7461  
7462 fi
7463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7464 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7465  
7466 if test x"$lt_prog_compiler_static_works" = xyes; then
7467 :
7468 else
7469 lt_prog_compiler_static=
7470 fi
7471  
7472  
7473 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7474 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7475 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 lt_cv_prog_compiler_c_o=no
7479 $rm -r conftest 2>/dev/null
7480 mkdir conftest
7481 cd conftest
7482 mkdir out
7483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7484  
7485 lt_compiler_flag="-o out/conftest2.$ac_objext"
7486 # Insert the option either (1) after the last *FLAGS variable, or
7487 # (2) before a word containing "conftest.", or (3) at the end.
7488 # Note that $ac_compile itself does not contain backslashes and begins
7489 # with a dollar sign (not a hyphen), so the echo should work correctly.
7490 lt_compile=`echo "$ac_compile" | $SED \
7491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7493 -e 's:$: $lt_compiler_flag:'`
7494 (eval echo "\"\$as_me:7494: $lt_compile\"" >&5)
7495 (eval "$lt_compile" 2>out/conftest.err)
7496 ac_status=$?
7497 cat out/conftest.err >&5
7498 echo "$as_me:7498: \$? = $ac_status" >&5
7499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7500 then
7501 # The compiler can only warn and ignore the option if not recognized
7502 # So say no if there are warnings
7503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7506 lt_cv_prog_compiler_c_o=yes
7507 fi
7508 fi
7509 chmod u+w . 2>&5
7510 $rm conftest*
7511 # SGI C++ compiler will create directory out/ii_files/ for
7512 # template instantiation
7513 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7514 $rm out/* && rmdir out
7515 cd ..
7516 rmdir conftest
7517 $rm conftest*
7518  
7519 fi
7520 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7521 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7522  
7523  
7524 hard_links="nottested"
7525 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7526 # do not overwrite the value of need_locks provided by the user
7527 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7528 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7529 hard_links=yes
7530 $rm conftest*
7531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7532 touch conftest.a
7533 ln conftest.a conftest.b 2>&5 || hard_links=no
7534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7535 { echo "$as_me:$LINENO: result: $hard_links" >&5
7536 echo "${ECHO_T}$hard_links" >&6; }
7537 if test "$hard_links" = no; then
7538 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7539 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7540 need_locks=warn
7541 fi
7542 else
7543 need_locks=no
7544 fi
7545  
7546 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7547 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7548  
7549 runpath_var=
7550 allow_undefined_flag=
7551 enable_shared_with_static_runtimes=no
7552 archive_cmds=
7553 archive_expsym_cmds=
7554 old_archive_From_new_cmds=
7555 old_archive_from_expsyms_cmds=
7556 export_dynamic_flag_spec=
7557 whole_archive_flag_spec=
7558 thread_safe_flag_spec=
7559 hardcode_libdir_flag_spec=
7560 hardcode_libdir_flag_spec_ld=
7561 hardcode_libdir_separator=
7562 hardcode_direct=no
7563 hardcode_minus_L=no
7564 hardcode_shlibpath_var=unsupported
7565 link_all_deplibs=unknown
7566 hardcode_automatic=no
7567 module_cmds=
7568 module_expsym_cmds=
7569 always_export_symbols=no
7570 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7571 # include_expsyms should be a list of space-separated symbols to be *always*
7572 # included in the symbol list
7573 include_expsyms=
7574 # exclude_expsyms can be an extended regexp of symbols to exclude
7575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7577 # as well as any symbol that contains `d'.
7578 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7580 # platforms (ab)use it in PIC code, but their linkers get confused if
7581 # the symbol is explicitly referenced. Since portable code cannot
7582 # rely on this symbol name, it's probably fine to never include it in
7583 # preloaded symbol tables.
7584 extract_expsyms_cmds=
7585 # Just being paranoid about ensuring that cc_basename is set.
7586 for cc_temp in $compiler""; do
7587 case $cc_temp in
7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7590 \-*) ;;
7591 *) break;;
7592 esac
7593 done
7594 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7595  
7596 case $host_os in
7597 cygwin* | mingw* | pw32*)
7598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7599 # When not using gcc, we currently assume that we are using
7600 # Microsoft Visual C++.
7601 if test "$GCC" != yes; then
7602 with_gnu_ld=no
7603 fi
7604 ;;
7605 interix*)
7606 # we just hope/assume this is gcc and not c89 (= MSVC++)
7607 with_gnu_ld=yes
7608 ;;
7609 openbsd*)
7610 with_gnu_ld=no
7611 ;;
7612 esac
7613  
7614 ld_shlibs=yes
7615 if test "$with_gnu_ld" = yes; then
7616 # If archive_cmds runs LD, not CC, wlarc should be empty
7617 wlarc='${wl}'
7618  
7619 # Set some defaults for GNU ld with shared library support. These
7620 # are reset later if shared libraries are not supported. Putting them
7621 # here allows them to be overridden if necessary.
7622 runpath_var=LD_RUN_PATH
7623 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7624 export_dynamic_flag_spec='${wl}--export-dynamic'
7625 # ancient GNU ld didn't support --whole-archive et. al.
7626 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7627 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7628 else
7629 whole_archive_flag_spec=
7630 fi
7631 supports_anon_versioning=no
7632 case `$LD -v 2>/dev/null` in
7633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7636 *\ 2.11.*) ;; # other 2.11 versions
7637 *) supports_anon_versioning=yes ;;
7638 esac
7639  
7640 # See if GNU ld supports shared libraries.
7641 case $host_os in
7642 aix3* | aix4* | aix5*)
7643 # On AIX/PPC, the GNU linker is very broken
7644 if test "$host_cpu" != ia64; then
7645 ld_shlibs=no
7646 cat <<EOF 1>&2
7647  
7648 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7649 *** to be unable to reliably create shared libraries on AIX.
7650 *** Therefore, libtool is disabling shared libraries support. If you
7651 *** really care for shared libraries, you may want to modify your PATH
7652 *** so that a non-GNU linker is found, and then restart.
7653  
7654 EOF
7655 fi
7656 ;;
7657  
7658 amigaos*)
7659 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)'
7660 hardcode_libdir_flag_spec='-L$libdir'
7661 hardcode_minus_L=yes
7662  
7663 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7664 # that the semantics of dynamic libraries on AmigaOS, at least up
7665 # to version 4, is to share data among multiple programs linked
7666 # with the same dynamic library. Since this doesn't match the
7667 # behavior of shared libraries on other platforms, we can't use
7668 # them.
7669 ld_shlibs=no
7670 ;;
7671  
7672 beos*)
7673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7674 allow_undefined_flag=unsupported
7675 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7676 # support --undefined. This deserves some investigation. FIXME
7677 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678 else
7679 ld_shlibs=no
7680 fi
7681 ;;
7682  
7683 cygwin* | mingw* | pw32*)
7684 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7685 # as there is no search path for DLLs.
7686 hardcode_libdir_flag_spec='-L$libdir'
7687 allow_undefined_flag=unsupported
7688 always_export_symbols=no
7689 enable_shared_with_static_runtimes=yes
7690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7691  
7692 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7694 # If the export-symbols file already is a .def file (1st line
7695 # is EXPORTS), use it as is; otherwise, prepend...
7696 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7697 cp $export_symbols $output_objdir/$soname.def;
7698 else
7699 echo EXPORTS > $output_objdir/$soname.def;
7700 cat $export_symbols >> $output_objdir/$soname.def;
7701 fi~
7702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7703 else
7704 ld_shlibs=no
7705 fi
7706 ;;
7707  
7708 interix[3-9]*)
7709 hardcode_direct=no
7710 hardcode_shlibpath_var=no
7711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7712 export_dynamic_flag_spec='${wl}-E'
7713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7714 # Instead, shared libraries are loaded at an image base (0x10000000 by
7715 # default) and relocated if they conflict, which is a slow very memory
7716 # consuming and fragmenting process. To avoid this, we pick a random,
7717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7720 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'
7721 ;;
7722  
7723 gnu* | linux* | k*bsd*-gnu)
7724 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7725 tmp_addflag=
7726 case $cc_basename,$host_cpu in
7727 pgcc*) # Portland Group C compiler
7728 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'
7729 tmp_addflag=' $pic_flag'
7730 ;;
7731 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7732 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'
7733 tmp_addflag=' $pic_flag -Mnomain' ;;
7734 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7735 tmp_addflag=' -i_dynamic' ;;
7736 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7737 tmp_addflag=' -i_dynamic -nofor_main' ;;
7738 ifc* | ifort*) # Intel Fortran compiler
7739 tmp_addflag=' -nofor_main' ;;
7740 esac
7741 case `$CC -V 2>&1 | sed 5q` in
7742 *Sun\ C*) # Sun C 5.9
7743 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'
7744 tmp_sharedflag='-G' ;;
7745 *Sun\ F*) # Sun Fortran 8.3
7746 tmp_sharedflag='-G' ;;
7747 *)
7748 tmp_sharedflag='-shared' ;;
7749 esac
7750 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751  
7752 if test $supports_anon_versioning = yes; then
7753 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7755 $echo "local: *; };" >> $output_objdir/$libname.ver~
7756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7757 fi
7758 link_all_deplibs=no
7759 else
7760 ld_shlibs=no
7761 fi
7762 ;;
7763  
7764 netbsd* | netbsdelf*-gnu)
7765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7766 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7767 wlarc=
7768 else
7769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7771 fi
7772 ;;
7773  
7774 solaris*)
7775 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7776 ld_shlibs=no
7777 cat <<EOF 1>&2
7778  
7779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7780 *** create shared libraries on Solaris systems. Therefore, libtool
7781 *** is disabling shared libraries support. We urge you to upgrade GNU
7782 *** binutils to release 2.9.1 or newer. Another option is to modify
7783 *** your PATH or compiler configuration so that the native linker is
7784 *** used, and then restart.
7785  
7786 EOF
7787 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7790 else
7791 ld_shlibs=no
7792 fi
7793 ;;
7794  
7795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7796 case `$LD -v 2>&1` in
7797 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7798 ld_shlibs=no
7799 cat <<_LT_EOF 1>&2
7800  
7801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7802 *** reliably create shared libraries on SCO systems. Therefore, libtool
7803 *** is disabling shared libraries support. We urge you to upgrade GNU
7804 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7805 *** your PATH or compiler configuration so that the native linker is
7806 *** used, and then restart.
7807  
7808 _LT_EOF
7809 ;;
7810 *)
7811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7812 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7815 else
7816 ld_shlibs=no
7817 fi
7818 ;;
7819 esac
7820 ;;
7821  
7822 sunos4*)
7823 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7824 wlarc=
7825 hardcode_direct=yes
7826 hardcode_shlibpath_var=no
7827 ;;
7828  
7829 *)
7830 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7833 else
7834 ld_shlibs=no
7835 fi
7836 ;;
7837 esac
7838  
7839 if test "$ld_shlibs" = no; then
7840 runpath_var=
7841 hardcode_libdir_flag_spec=
7842 export_dynamic_flag_spec=
7843 whole_archive_flag_spec=
7844 fi
7845 else
7846 # PORTME fill in a description of your system's linker (not GNU ld)
7847 case $host_os in
7848 aix3*)
7849 allow_undefined_flag=unsupported
7850 always_export_symbols=yes
7851 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'
7852 # Note: this linker hardcodes the directories in LIBPATH if there
7853 # are no directories specified by -L.
7854 hardcode_minus_L=yes
7855 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7856 # Neither direct hardcoding nor static linking is supported with a
7857 # broken collect2.
7858 hardcode_direct=unsupported
7859 fi
7860 ;;
7861  
7862 aix4* | aix5*)
7863 if test "$host_cpu" = ia64; then
7864 # On IA64, the linker does run time linking by default, so we don't
7865 # have to do anything special.
7866 aix_use_runtimelinking=no
7867 exp_sym_flag='-Bexport'
7868 no_entry_flag=""
7869 else
7870 # If we're using GNU nm, then we don't want the "-C" option.
7871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7872 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7873 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'
7874 else
7875 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'
7876 fi
7877 aix_use_runtimelinking=no
7878  
7879 # Test if we are trying to use run time linking or normal
7880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7881 # need to do runtime linking.
7882 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7883 for ld_flag in $LDFLAGS; do
7884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7885 aix_use_runtimelinking=yes
7886 break
7887 fi
7888 done
7889 ;;
7890 esac
7891  
7892 exp_sym_flag='-bexport'
7893 no_entry_flag='-bnoentry'
7894 fi
7895  
7896 # When large executables or shared objects are built, AIX ld can
7897 # have problems creating the table of contents. If linking a library
7898 # or program results in "error TOC overflow" add -mminimal-toc to
7899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7901  
7902 archive_cmds=''
7903 hardcode_direct=yes
7904 hardcode_libdir_separator=':'
7905 link_all_deplibs=yes
7906  
7907 if test "$GCC" = yes; then
7908 case $host_os in aix4.[012]|aix4.[012].*)
7909 # We only want to do this on AIX 4.2 and lower, the check
7910 # below for broken collect2 doesn't work under 4.3+
7911 collect2name=`${CC} -print-prog-name=collect2`
7912 if test -f "$collect2name" && \
7913 strings "$collect2name" | grep resolve_lib_name >/dev/null
7914 then
7915 # We have reworked collect2
7916 :
7917 else
7918 # We have old collect2
7919 hardcode_direct=unsupported
7920 # It fails to find uninstalled libraries when the uninstalled
7921 # path is not listed in the libpath. Setting hardcode_minus_L
7922 # to unsupported forces relinking
7923 hardcode_minus_L=yes
7924 hardcode_libdir_flag_spec='-L$libdir'
7925 hardcode_libdir_separator=
7926 fi
7927 ;;
7928 esac
7929 shared_flag='-shared'
7930 if test "$aix_use_runtimelinking" = yes; then
7931 shared_flag="$shared_flag "'${wl}-G'
7932 fi
7933 else
7934 # not using gcc
7935 if test "$host_cpu" = ia64; then
7936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7937 # chokes on -Wl,-G. The following line is correct:
7938 shared_flag='-G'
7939 else
7940 if test "$aix_use_runtimelinking" = yes; then
7941 shared_flag='${wl}-G'
7942 else
7943 shared_flag='${wl}-bM:SRE'
7944 fi
7945 fi
7946 fi
7947  
7948 # It seems that -bexpall does not export symbols beginning with
7949 # underscore (_), so it is better to generate a list of symbols to export.
7950 always_export_symbols=yes
7951 if test "$aix_use_runtimelinking" = yes; then
7952 # Warning - without using the other runtime loading flags (-brtl),
7953 # -berok will link without error, but may produce a broken library.
7954 allow_undefined_flag='-berok'
7955 # Determine the default libpath from the value encoded in an empty executable.
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962  
7963 int
7964 main ()
7965 {
7966  
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest$ac_exeext &&
7988 $as_test_x conftest$ac_exeext; then
7989  
7990 lt_aix_libpath_sed='
7991 /Import File Strings/,/^$/ {
7992 /^0/ {
7993 s/^0 *\(.*\)$/\1/
7994 p
7995 }
7996 }'
7997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7998 # Check for a 64-bit object if we didn't find anything.
7999 if test -z "$aix_libpath"; then
8000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8001 fi
8002 else
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005  
8006  
8007 fi
8008  
8009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010 conftest$ac_exeext conftest.$ac_ext
8011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8012  
8013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8014 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"
8015 else
8016 if test "$host_cpu" = ia64; then
8017 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8018 allow_undefined_flag="-z nodefs"
8019 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"
8020 else
8021 # Determine the default libpath from the value encoded in an empty executable.
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028  
8029 int
8030 main ()
8031 {
8032  
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest$ac_exeext &&
8054 $as_test_x conftest$ac_exeext; then
8055  
8056 lt_aix_libpath_sed='
8057 /Import File Strings/,/^$/ {
8058 /^0/ {
8059 s/^0 *\(.*\)$/\1/
8060 p
8061 }
8062 }'
8063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8064 # Check for a 64-bit object if we didn't find anything.
8065 if test -z "$aix_libpath"; then
8066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8067 fi
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071  
8072  
8073 fi
8074  
8075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8076 conftest$ac_exeext conftest.$ac_ext
8077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8078  
8079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8080 # Warning - without using the other run time loading flags,
8081 # -berok will link without error, but may produce a broken library.
8082 no_undefined_flag=' ${wl}-bernotok'
8083 allow_undefined_flag=' ${wl}-berok'
8084 # Exported symbols can be pulled into shared objects from archives
8085 whole_archive_flag_spec='$convenience'
8086 archive_cmds_need_lc=yes
8087 # This is similar to how AIX traditionally builds its shared libraries.
8088 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'
8089 fi
8090 fi
8091 ;;
8092  
8093 amigaos*)
8094 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)'
8095 hardcode_libdir_flag_spec='-L$libdir'
8096 hardcode_minus_L=yes
8097 # see comment about different semantics on the GNU ld section
8098 ld_shlibs=no
8099 ;;
8100  
8101 bsdi[45]*)
8102 export_dynamic_flag_spec=-rdynamic
8103 ;;
8104  
8105 cygwin* | mingw* | pw32*)
8106 # When not using gcc, we currently assume that we are using
8107 # Microsoft Visual C++.
8108 # hardcode_libdir_flag_spec is actually meaningless, as there is
8109 # no search path for DLLs.
8110 hardcode_libdir_flag_spec=' '
8111 allow_undefined_flag=unsupported
8112 # Tell ltmain to make .lib files, not .a files.
8113 libext=lib
8114 # Tell ltmain to make .dll files, not .so files.
8115 shrext_cmds=".dll"
8116 # FIXME: Setting linknames here is a bad hack.
8117 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8118 # The linker will automatically build a .lib file if we build a DLL.
8119 old_archive_From_new_cmds='true'
8120 # FIXME: Should let the user specify the lib program.
8121 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8122 fix_srcfile_path='`cygpath -w "$srcfile"`'
8123 enable_shared_with_static_runtimes=yes
8124 ;;
8125  
8126 darwin* | rhapsody*)
8127 case $host_os in
8128 rhapsody* | darwin1.[012])
8129 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8130 ;;
8131 *) # Darwin 1.3 on
8132 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8133 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8134 else
8135 case ${MACOSX_DEPLOYMENT_TARGET} in
8136 10.[012])
8137 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8138 ;;
8139 10.*)
8140 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8141 ;;
8142 esac
8143 fi
8144 ;;
8145 esac
8146 archive_cmds_need_lc=no
8147 hardcode_direct=no
8148 hardcode_automatic=yes
8149 hardcode_shlibpath_var=unsupported
8150 whole_archive_flag_spec=''
8151 link_all_deplibs=yes
8152 if test "$GCC" = yes ; then
8153 output_verbose_link_cmd='echo'
8154 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8157 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8158 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}'
8159 else
8160 case $cc_basename in
8161 xlc*)
8162 output_verbose_link_cmd='echo'
8163 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8164 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8165 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8166 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}'
8167 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}'
8168 ;;
8169 *)
8170 ld_shlibs=no
8171 ;;
8172 esac
8173 fi
8174 ;;
8175  
8176 dgux*)
8177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8178 hardcode_libdir_flag_spec='-L$libdir'
8179 hardcode_shlibpath_var=no
8180 ;;
8181  
8182 freebsd1*)
8183 ld_shlibs=no
8184 ;;
8185  
8186 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8187 # support. Future versions do this automatically, but an explicit c++rt0.o
8188 # does not break anything, and helps significantly (at the cost of a little
8189 # extra space).
8190 freebsd2.2*)
8191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8192 hardcode_libdir_flag_spec='-R$libdir'
8193 hardcode_direct=yes
8194 hardcode_shlibpath_var=no
8195 ;;
8196  
8197 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8198 freebsd2*)
8199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8200 hardcode_direct=yes
8201 hardcode_minus_L=yes
8202 hardcode_shlibpath_var=no
8203 ;;
8204  
8205 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8206 freebsd* | dragonfly*)
8207 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8208 hardcode_libdir_flag_spec='-R$libdir'
8209 hardcode_direct=yes
8210 hardcode_shlibpath_var=no
8211 ;;
8212  
8213 hpux9*)
8214 if test "$GCC" = yes; then
8215 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'
8216 else
8217 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'
8218 fi
8219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8220 hardcode_libdir_separator=:
8221 hardcode_direct=yes
8222  
8223 # hardcode_minus_L: Not really in the search PATH,
8224 # but as the default location of the library.
8225 hardcode_minus_L=yes
8226 export_dynamic_flag_spec='${wl}-E'
8227 ;;
8228  
8229 hpux10*)
8230 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8232 else
8233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8234 fi
8235 if test "$with_gnu_ld" = no; then
8236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8237 hardcode_libdir_separator=:
8238  
8239 hardcode_direct=yes
8240 export_dynamic_flag_spec='${wl}-E'
8241  
8242 # hardcode_minus_L: Not really in the search PATH,
8243 # but as the default location of the library.
8244 hardcode_minus_L=yes
8245 fi
8246 ;;
8247  
8248 hpux11*)
8249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8250 case $host_cpu in
8251 hppa*64*)
8252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8253 ;;
8254 ia64*)
8255 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8256 ;;
8257 *)
8258 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8259 ;;
8260 esac
8261 else
8262 case $host_cpu in
8263 hppa*64*)
8264 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265 ;;
8266 ia64*)
8267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8268 ;;
8269 *)
8270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8271 ;;
8272 esac
8273 fi
8274 if test "$with_gnu_ld" = no; then
8275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8276 hardcode_libdir_separator=:
8277  
8278 case $host_cpu in
8279 hppa*64*|ia64*)
8280 hardcode_libdir_flag_spec_ld='+b $libdir'
8281 hardcode_direct=no
8282 hardcode_shlibpath_var=no
8283 ;;
8284 *)
8285 hardcode_direct=yes
8286 export_dynamic_flag_spec='${wl}-E'
8287  
8288 # hardcode_minus_L: Not really in the search PATH,
8289 # but as the default location of the library.
8290 hardcode_minus_L=yes
8291 ;;
8292 esac
8293 fi
8294 ;;
8295  
8296 irix5* | irix6* | nonstopux*)
8297 if test "$GCC" = yes; then
8298 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'
8299 else
8300 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'
8301 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8302 fi
8303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8304 hardcode_libdir_separator=:
8305 link_all_deplibs=yes
8306 ;;
8307  
8308 netbsd* | netbsdelf*-gnu)
8309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8311 else
8312 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8313 fi
8314 hardcode_libdir_flag_spec='-R$libdir'
8315 hardcode_direct=yes
8316 hardcode_shlibpath_var=no
8317 ;;
8318  
8319 newsos6)
8320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321 hardcode_direct=yes
8322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8323 hardcode_libdir_separator=:
8324 hardcode_shlibpath_var=no
8325 ;;
8326  
8327 openbsd*)
8328 if test -f /usr/libexec/ld.so; then
8329 hardcode_direct=yes
8330 hardcode_shlibpath_var=no
8331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8333 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8335 export_dynamic_flag_spec='${wl}-E'
8336 else
8337 case $host_os in
8338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8340 hardcode_libdir_flag_spec='-R$libdir'
8341 ;;
8342 *)
8343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8345 ;;
8346 esac
8347 fi
8348 else
8349 ld_shlibs=no
8350 fi
8351 ;;
8352  
8353 os2*)
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_minus_L=yes
8356 allow_undefined_flag=unsupported
8357 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'
8358 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8359 ;;
8360  
8361 osf3*)
8362 if test "$GCC" = yes; then
8363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8364 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'
8365 else
8366 allow_undefined_flag=' -expect_unresolved \*'
8367 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'
8368 fi
8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370 hardcode_libdir_separator=:
8371 ;;
8372  
8373 osf4* | osf5*) # as osf3* with the addition of -msym flag
8374 if test "$GCC" = yes; then
8375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8376 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'
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 else
8379 allow_undefined_flag=' -expect_unresolved \*'
8380 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'
8381 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8382 $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'
8383  
8384 # Both c and cxx compiler support -rpath directly
8385 hardcode_libdir_flag_spec='-rpath $libdir'
8386 fi
8387 hardcode_libdir_separator=:
8388 ;;
8389  
8390 solaris*)
8391 no_undefined_flag=' -z text'
8392 if test "$GCC" = yes; then
8393 wlarc='${wl}'
8394 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8395 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8396 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8397 else
8398 wlarc=''
8399 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8401 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8402 fi
8403 hardcode_libdir_flag_spec='-R$libdir'
8404 hardcode_shlibpath_var=no
8405 case $host_os in
8406 solaris2.[0-5] | solaris2.[0-5].*) ;;
8407 *)
8408 # The compiler driver will combine and reorder linker options,
8409 # but understands `-z linker_flag'. GCC discards it without `$wl',
8410 # but is careful enough not to reorder.
8411 # Supported since Solaris 2.6 (maybe 2.5.1?)
8412 if test "$GCC" = yes; then
8413 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8414 else
8415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8416 fi
8417 ;;
8418 esac
8419 link_all_deplibs=yes
8420 ;;
8421  
8422 sunos4*)
8423 if test "x$host_vendor" = xsequent; then
8424 # Use $CC to link under sequent, because it throws in some extra .o
8425 # files that make .init and .fini sections work.
8426 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8427 else
8428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8429 fi
8430 hardcode_libdir_flag_spec='-L$libdir'
8431 hardcode_direct=yes
8432 hardcode_minus_L=yes
8433 hardcode_shlibpath_var=no
8434 ;;
8435  
8436 sysv4)
8437 case $host_vendor in
8438 sni)
8439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440 hardcode_direct=yes # is this really true???
8441 ;;
8442 siemens)
8443 ## LD is ld it makes a PLAMLIB
8444 ## CC just makes a GrossModule.
8445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8446 reload_cmds='$CC -r -o $output$reload_objs'
8447 hardcode_direct=no
8448 ;;
8449 motorola)
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8452 ;;
8453 esac
8454 runpath_var='LD_RUN_PATH'
8455 hardcode_shlibpath_var=no
8456 ;;
8457  
8458 sysv4.3*)
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_shlibpath_var=no
8461 export_dynamic_flag_spec='-Bexport'
8462 ;;
8463  
8464 sysv4*MP*)
8465 if test -d /usr/nec; then
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_shlibpath_var=no
8468 runpath_var=LD_RUN_PATH
8469 hardcode_runpath_var=yes
8470 ld_shlibs=yes
8471 fi
8472 ;;
8473  
8474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8475 no_undefined_flag='${wl}-z,text'
8476 archive_cmds_need_lc=no
8477 hardcode_shlibpath_var=no
8478 runpath_var='LD_RUN_PATH'
8479  
8480 if test "$GCC" = yes; then
8481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483 else
8484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486 fi
8487 ;;
8488  
8489 sysv5* | sco3.2v5* | sco5v6*)
8490 # Note: We can NOT use -z defs as we might desire, because we do not
8491 # link with -lc, and that would cause any symbols used from libc to
8492 # always be unresolved, which means just about no library would
8493 # ever link correctly. If we're not using GNU ld we use -z text
8494 # though, which does catch some bad symbols but isn't as heavy-handed
8495 # as -z defs.
8496 no_undefined_flag='${wl}-z,text'
8497 allow_undefined_flag='${wl}-z,nodefs'
8498 archive_cmds_need_lc=no
8499 hardcode_shlibpath_var=no
8500 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8501 hardcode_libdir_separator=':'
8502 link_all_deplibs=yes
8503 export_dynamic_flag_spec='${wl}-Bexport'
8504 runpath_var='LD_RUN_PATH'
8505  
8506 if test "$GCC" = yes; then
8507 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8509 else
8510 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 fi
8513 ;;
8514  
8515 uts4*)
8516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517 hardcode_libdir_flag_spec='-L$libdir'
8518 hardcode_shlibpath_var=no
8519 ;;
8520  
8521 *)
8522 ld_shlibs=no
8523 ;;
8524 esac
8525 fi
8526  
8527 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8528 echo "${ECHO_T}$ld_shlibs" >&6; }
8529 test "$ld_shlibs" = no && can_build_shared=no
8530  
8531 #
8532 # Do we need to explicitly link libc?
8533 #
8534 case "x$archive_cmds_need_lc" in
8535 x|xyes)
8536 # Assume -lc should be added
8537 archive_cmds_need_lc=yes
8538  
8539 if test "$enable_shared" = yes && test "$GCC" = yes; then
8540 case $archive_cmds in
8541 *'~'*)
8542 # FIXME: we may have to deal with multi-command sequences.
8543 ;;
8544 '$CC '*)
8545 # Test whether the compiler implicitly links with -lc since on some
8546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8547 # to ld, don't add -lc before -lgcc.
8548 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8550 $rm conftest*
8551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552  
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } 2>conftest.err; then
8558 soname=conftest
8559 lib=conftest
8560 libobjs=conftest.$ac_objext
8561 deplibs=
8562 wl=$lt_prog_compiler_wl
8563 pic_flag=$lt_prog_compiler_pic
8564 compiler_flags=-v
8565 linker_flags=-v
8566 verstring=
8567 output_objdir=.
8568 libname=conftest
8569 lt_save_allow_undefined_flag=$allow_undefined_flag
8570 allow_undefined_flag=
8571 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8572 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }
8576 then
8577 archive_cmds_need_lc=no
8578 else
8579 archive_cmds_need_lc=yes
8580 fi
8581 allow_undefined_flag=$lt_save_allow_undefined_flag
8582 else
8583 cat conftest.err 1>&5
8584 fi
8585 $rm conftest*
8586 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8587 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8588 ;;
8589 esac
8590 fi
8591 ;;
8592 esac
8593  
8594 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8596 library_names_spec=
8597 libname_spec='lib$name'
8598 soname_spec=
8599 shrext_cmds=".so"
8600 postinstall_cmds=
8601 postuninstall_cmds=
8602 finish_cmds=
8603 finish_eval=
8604 shlibpath_var=
8605 shlibpath_overrides_runpath=unknown
8606 version_type=none
8607 dynamic_linker="$host_os ld.so"
8608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8609  
8610 if test "$GCC" = yes; then
8611 case $host_os in
8612 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8613 *) lt_awk_arg="/^libraries:/" ;;
8614 esac
8615 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8616 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8617 # if the path contains ";" then we assume it to be the separator
8618 # otherwise default to the standard path separator (i.e. ":") - it is
8619 # assumed that no part of a normal pathname contains ";" but that should
8620 # okay in the real world where ";" in dirpaths is itself problematic.
8621 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8622 else
8623 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8624 fi
8625 # Ok, now we have the path, separated by spaces, we can step through it
8626 # and add multilib dir if necessary.
8627 lt_tmp_lt_search_path_spec=
8628 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8629 for lt_sys_path in $lt_search_path_spec; do
8630 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8632 else
8633 test -d "$lt_sys_path" && \
8634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8635 fi
8636 done
8637 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8638 BEGIN {RS=" "; FS="/|\n";} {
8639 lt_foo="";
8640 lt_count=0;
8641 for (lt_i = NF; lt_i > 0; lt_i--) {
8642 if ($lt_i != "" && $lt_i != ".") {
8643 if ($lt_i == "..") {
8644 lt_count++;
8645 } else {
8646 if (lt_count == 0) {
8647 lt_foo="/" $lt_i lt_foo;
8648 } else {
8649 lt_count--;
8650 }
8651 }
8652 }
8653 }
8654 if (lt_foo != "") { lt_freq[lt_foo]++; }
8655 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8656 }'`
8657 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8658 else
8659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8660 fi
8661 need_lib_prefix=unknown
8662 hardcode_into_libs=no
8663  
8664 # when you set need_version to no, make sure it does not cause -set_version
8665 # flags to be left without arguments
8666 need_version=unknown
8667  
8668 case $host_os in
8669 aix3*)
8670 version_type=linux
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8672 shlibpath_var=LIBPATH
8673  
8674 # AIX 3 has no versioning support, so we append a major version to the name.
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 ;;
8677  
8678 aix4* | aix5*)
8679 version_type=linux
8680 need_lib_prefix=no
8681 need_version=no
8682 hardcode_into_libs=yes
8683 if test "$host_cpu" = ia64; then
8684 # AIX 5 supports IA64
8685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8686 shlibpath_var=LD_LIBRARY_PATH
8687 else
8688 # With GCC up to 2.95.x, collect2 would create an import file
8689 # for dependence libraries. The import file would start with
8690 # the line `#! .'. This would cause the generated library to
8691 # depend on `.', always an invalid library. This was fixed in
8692 # development snapshots of GCC prior to 3.0.
8693 case $host_os in
8694 aix4 | aix4.[01] | aix4.[01].*)
8695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8696 echo ' yes '
8697 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8698 :
8699 else
8700 can_build_shared=no
8701 fi
8702 ;;
8703 esac
8704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8705 # soname into executable. Probably we can add versioning support to
8706 # collect2, so additional links can be useful in future.
8707 if test "$aix_use_runtimelinking" = yes; then
8708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8709 # instead of lib<name>.a to let people know that these are not
8710 # typical AIX shared libraries.
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 else
8713 # We preserve .a as extension for shared libraries through AIX4.2
8714 # and later when we are not doing run time linking.
8715 library_names_spec='${libname}${release}.a $libname.a'
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 fi
8718 shlibpath_var=LIBPATH
8719 fi
8720 ;;
8721  
8722 amigaos*)
8723 library_names_spec='$libname.ixlibrary $libname.a'
8724 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8725 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'
8726 ;;
8727  
8728 beos*)
8729 library_names_spec='${libname}${shared_ext}'
8730 dynamic_linker="$host_os ld.so"
8731 shlibpath_var=LIBRARY_PATH
8732 ;;
8733  
8734 bsdi[45]*)
8735 version_type=linux
8736 need_version=no
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8740 shlibpath_var=LD_LIBRARY_PATH
8741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8743 # the default ld.so.conf also contains /usr/contrib/lib and
8744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8745 # libtool to hard-code these into programs
8746 ;;
8747  
8748 cygwin* | mingw* | pw32*)
8749 version_type=windows
8750 shrext_cmds=".dll"
8751 need_version=no
8752 need_lib_prefix=no
8753  
8754 case $GCC,$host_os in
8755 yes,cygwin* | yes,mingw* | yes,pw32*)
8756 library_names_spec='$libname.dll.a'
8757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8758 postinstall_cmds='base_file=`basename \${file}`~
8759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8760 dldir=$destdir/`dirname \$dlpath`~
8761 test -d \$dldir || mkdir -p \$dldir~
8762 $install_prog $dir/$dlname \$dldir/$dlname~
8763 chmod a+x \$dldir/$dlname'
8764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8765 dlpath=$dir/\$dldll~
8766 $rm \$dlpath'
8767 shlibpath_overrides_runpath=yes
8768  
8769 case $host_os in
8770 cygwin*)
8771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8774 ;;
8775 mingw*)
8776 # MinGW DLLs use traditional 'lib' prefix
8777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8779 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8780 # It is most probably a Windows format PATH printed by
8781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8782 # path with ; separators, and with drive letters. We can handle the
8783 # drive letters (cygwin fileutils understands them), so leave them,
8784 # especially as we might pass files found there to a mingw objdump,
8785 # which wouldn't understand a cygwinified path. Ahh.
8786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8787 else
8788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8789 fi
8790 ;;
8791 pw32*)
8792 # pw32 DLLs use 'pw' prefix rather than 'lib'
8793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8794 ;;
8795 esac
8796 ;;
8797  
8798 *)
8799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8800 ;;
8801 esac
8802 dynamic_linker='Win32 ld.exe'
8803 # FIXME: first we should search . and the directory the executable is in
8804 shlibpath_var=PATH
8805 ;;
8806  
8807 darwin* | rhapsody*)
8808 dynamic_linker="$host_os dyld"
8809 version_type=darwin
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8813 soname_spec='${libname}${release}${major}$shared_ext'
8814 shlibpath_overrides_runpath=yes
8815 shlibpath_var=DYLD_LIBRARY_PATH
8816 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8817  
8818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8820 ;;
8821  
8822 dgux*)
8823 version_type=linux
8824 need_lib_prefix=no
8825 need_version=no
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 ;;
8830  
8831 freebsd1*)
8832 dynamic_linker=no
8833 ;;
8834  
8835 freebsd* | dragonfly*)
8836 # DragonFly does not have aout. When/if they implement a new
8837 # versioning mechanism, adjust this.
8838 if test -x /usr/bin/objformat; then
8839 objformat=`/usr/bin/objformat`
8840 else
8841 case $host_os in
8842 freebsd[123]*) objformat=aout ;;
8843 *) objformat=elf ;;
8844 esac
8845 fi
8846 version_type=freebsd-$objformat
8847 case $version_type in
8848 freebsd-elf*)
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8850 need_version=no
8851 need_lib_prefix=no
8852 ;;
8853 freebsd-*)
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8855 need_version=yes
8856 ;;
8857 esac
8858 shlibpath_var=LD_LIBRARY_PATH
8859 case $host_os in
8860 freebsd2*)
8861 shlibpath_overrides_runpath=yes
8862 ;;
8863 freebsd3.[01]* | freebsdelf3.[01]*)
8864 shlibpath_overrides_runpath=yes
8865 hardcode_into_libs=yes
8866 ;;
8867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8869 shlibpath_overrides_runpath=no
8870 hardcode_into_libs=yes
8871 ;;
8872 *) # from 4.6 on, and DragonFly
8873 shlibpath_overrides_runpath=yes
8874 hardcode_into_libs=yes
8875 ;;
8876 esac
8877 ;;
8878  
8879 gnu*)
8880 version_type=linux
8881 need_lib_prefix=no
8882 need_version=no
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 hardcode_into_libs=yes
8887 ;;
8888  
8889 hpux9* | hpux10* | hpux11*)
8890 # Give a soname corresponding to the major version so that dld.sl refuses to
8891 # link against other versions.
8892 version_type=sunos
8893 need_lib_prefix=no
8894 need_version=no
8895 case $host_cpu in
8896 ia64*)
8897 shrext_cmds='.so'
8898 hardcode_into_libs=yes
8899 dynamic_linker="$host_os dld.so"
8900 shlibpath_var=LD_LIBRARY_PATH
8901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 if test "X$HPUX_IA64_MODE" = X32; then
8905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8906 else
8907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8908 fi
8909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8910 ;;
8911 hppa*64*)
8912 shrext_cmds='.sl'
8913 hardcode_into_libs=yes
8914 dynamic_linker="$host_os dld.sl"
8915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8921 ;;
8922 *)
8923 shrext_cmds='.sl'
8924 dynamic_linker="$host_os dld.sl"
8925 shlibpath_var=SHLIB_PATH
8926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 ;;
8930 esac
8931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8932 postinstall_cmds='chmod 555 $lib'
8933 ;;
8934  
8935 interix[3-9]*)
8936 version_type=linux
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=no
8944 hardcode_into_libs=yes
8945 ;;
8946  
8947 irix5* | irix6* | nonstopux*)
8948 case $host_os in
8949 nonstopux*) version_type=nonstopux ;;
8950 *)
8951 if test "$lt_cv_prog_gnu_ld" = yes; then
8952 version_type=linux
8953 else
8954 version_type=irix
8955 fi ;;
8956 esac
8957 need_lib_prefix=no
8958 need_version=no
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8961 case $host_os in
8962 irix5* | nonstopux*)
8963 libsuff= shlibsuff=
8964 ;;
8965 *)
8966 case $LD in # libtool.m4 will add one of these switches to LD
8967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8968 libsuff= shlibsuff= libmagic=32-bit;;
8969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8970 libsuff=32 shlibsuff=N32 libmagic=N32;;
8971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8972 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8973 *) libsuff= shlibsuff= libmagic=never-match;;
8974 esac
8975 ;;
8976 esac
8977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8978 shlibpath_overrides_runpath=no
8979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8981 hardcode_into_libs=yes
8982 ;;
8983  
8984 # No shared lib support for Linux oldld, aout, or coff.
8985 linux*oldld* | linux*aout* | linux*coff*)
8986 dynamic_linker=no
8987 ;;
8988  
8989 # This must be Linux ELF.
8990 linux* | k*bsd*-gnu)
8991 version_type=linux
8992 need_lib_prefix=no
8993 need_version=no
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=no
8999 # This implies no fast_install, which is unacceptable.
9000 # Some rework will be needed to allow for fast_install
9001 # before this can be enabled.
9002 hardcode_into_libs=yes
9003  
9004 # Append ld.so.conf contents to the search path
9005 if test -f /etc/ld.so.conf; then
9006 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' ' '`
9007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9008 fi
9009  
9010 # We used to test for /lib/ld.so.1 and disable shared libraries on
9011 # powerpc, because MkLinux only supported shared libraries with the
9012 # GNU dynamic linker. Since this was broken with cross compilers,
9013 # most powerpc-linux boxes support dynamic linking these days and
9014 # people can always --disable-shared, the test was removed, and we
9015 # assume the GNU/Linux dynamic linker is in use.
9016 dynamic_linker='GNU/Linux ld.so'
9017 ;;
9018  
9019 netbsdelf*-gnu)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 shlibpath_overrides_runpath=no
9027 hardcode_into_libs=yes
9028 dynamic_linker='NetBSD ld.elf_so'
9029 ;;
9030  
9031 netbsd*)
9032 version_type=sunos
9033 need_lib_prefix=no
9034 need_version=no
9035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9038 dynamic_linker='NetBSD (a.out) ld.so'
9039 else
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 dynamic_linker='NetBSD ld.elf_so'
9043 fi
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9046 hardcode_into_libs=yes
9047 ;;
9048  
9049 newsos6)
9050 version_type=linux
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 ;;
9055  
9056 nto-qnx*)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=yes
9064 ;;
9065  
9066 openbsd*)
9067 version_type=sunos
9068 sys_lib_dlsearch_path_spec="/usr/lib"
9069 need_lib_prefix=no
9070 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9071 case $host_os in
9072 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9073 *) need_version=no ;;
9074 esac
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9079 case $host_os in
9080 openbsd2.[89] | openbsd2.[89].*)
9081 shlibpath_overrides_runpath=no
9082 ;;
9083 *)
9084 shlibpath_overrides_runpath=yes
9085 ;;
9086 esac
9087 else
9088 shlibpath_overrides_runpath=yes
9089 fi
9090 ;;
9091  
9092 os2*)
9093 libname_spec='$name'
9094 shrext_cmds=".dll"
9095 need_lib_prefix=no
9096 library_names_spec='$libname${shared_ext} $libname.a'
9097 dynamic_linker='OS/2 ld.exe'
9098 shlibpath_var=LIBPATH
9099 ;;
9100  
9101 osf3* | osf4* | osf5*)
9102 version_type=osf
9103 need_lib_prefix=no
9104 need_version=no
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9109 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9110 ;;
9111  
9112 rdos*)
9113 dynamic_linker=no
9114 ;;
9115  
9116 solaris*)
9117 version_type=linux
9118 need_lib_prefix=no
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=yes
9124 hardcode_into_libs=yes
9125 # ldd complains unless libraries are executable
9126 postinstall_cmds='chmod +x $lib'
9127 ;;
9128  
9129 sunos4*)
9130 version_type=sunos
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 if test "$with_gnu_ld" = yes; then
9136 need_lib_prefix=no
9137 fi
9138 need_version=yes
9139 ;;
9140  
9141 sysv4 | sysv4.3*)
9142 version_type=linux
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 case $host_vendor in
9147 sni)
9148 shlibpath_overrides_runpath=no
9149 need_lib_prefix=no
9150 export_dynamic_flag_spec='${wl}-Blargedynsym'
9151 runpath_var=LD_RUN_PATH
9152 ;;
9153 siemens)
9154 need_lib_prefix=no
9155 ;;
9156 motorola)
9157 need_lib_prefix=no
9158 need_version=no
9159 shlibpath_overrides_runpath=no
9160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9161 ;;
9162 esac
9163 ;;
9164  
9165 sysv4*MP*)
9166 if test -d /usr/nec ;then
9167 version_type=linux
9168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9169 soname_spec='$libname${shared_ext}.$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 fi
9172 ;;
9173  
9174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9175 version_type=freebsd-elf
9176 need_lib_prefix=no
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 hardcode_into_libs=yes
9182 if test "$with_gnu_ld" = yes; then
9183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9184 shlibpath_overrides_runpath=no
9185 else
9186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9187 shlibpath_overrides_runpath=yes
9188 case $host_os in
9189 sco3.2v5*)
9190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9191 ;;
9192 esac
9193 fi
9194 sys_lib_dlsearch_path_spec='/usr/lib'
9195 ;;
9196  
9197 uts4*)
9198 version_type=linux
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 ;;
9203  
9204 *)
9205 dynamic_linker=no
9206 ;;
9207 esac
9208 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9209 echo "${ECHO_T}$dynamic_linker" >&6; }
9210 test "$dynamic_linker" = no && can_build_shared=no
9211  
9212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9213 if test "$GCC" = yes; then
9214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9215 fi
9216  
9217 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9218 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9219 hardcode_action=
9220 if test -n "$hardcode_libdir_flag_spec" || \
9221 test -n "$runpath_var" || \
9222 test "X$hardcode_automatic" = "Xyes" ; then
9223  
9224 # We can hardcode non-existant directories.
9225 if test "$hardcode_direct" != no &&
9226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9227 # have to relink, otherwise we might link with an installed library
9228 # when we should be linking with a yet-to-be-installed one
9229 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9230 test "$hardcode_minus_L" != no; then
9231 # Linking always hardcodes the temporary library directory.
9232 hardcode_action=relink
9233 else
9234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9235 hardcode_action=immediate
9236 fi
9237 else
9238 # We cannot hardcode anything, or else we can only hardcode existing
9239 # directories.
9240 hardcode_action=unsupported
9241 fi
9242 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9243 echo "${ECHO_T}$hardcode_action" >&6; }
9244  
9245 if test "$hardcode_action" = relink; then
9246 # Fast installation is not supported
9247 enable_fast_install=no
9248 elif test "$shlibpath_overrides_runpath" = yes ||
9249 test "$enable_shared" = no; then
9250 # Fast installation is not necessary
9251 enable_fast_install=needless
9252 fi
9253  
9254 striplib=
9255 old_striplib=
9256 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9257 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9258 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9259 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9260 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9261 { echo "$as_me:$LINENO: result: yes" >&5
9262 echo "${ECHO_T}yes" >&6; }
9263 else
9264 # FIXME - insert some real tests, host_os isn't really good enough
9265 case $host_os in
9266 darwin*)
9267 if test -n "$STRIP" ; then
9268 striplib="$STRIP -x"
9269 old_striplib="$STRIP -S"
9270 { echo "$as_me:$LINENO: result: yes" >&5
9271 echo "${ECHO_T}yes" >&6; }
9272 else
9273 { echo "$as_me:$LINENO: result: no" >&5
9274 echo "${ECHO_T}no" >&6; }
9275 fi
9276 ;;
9277 *)
9278 { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9280 ;;
9281 esac
9282 fi
9283  
9284 if test "x$enable_dlopen" != xyes; then
9285 enable_dlopen=unknown
9286 enable_dlopen_self=unknown
9287 enable_dlopen_self_static=unknown
9288 else
9289 lt_cv_dlopen=no
9290 lt_cv_dlopen_libs=
9291  
9292 case $host_os in
9293 beos*)
9294 lt_cv_dlopen="load_add_on"
9295 lt_cv_dlopen_libs=
9296 lt_cv_dlopen_self=yes
9297 ;;
9298  
9299 mingw* | pw32*)
9300 lt_cv_dlopen="LoadLibrary"
9301 lt_cv_dlopen_libs=
9302 ;;
9303  
9304 cygwin*)
9305 lt_cv_dlopen="dlopen"
9306 lt_cv_dlopen_libs=
9307 ;;
9308  
9309 darwin*)
9310 # if libdl is installed we need to link against it
9311 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316 ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-ldl $LIBS"
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324  
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char dlopen ();
9332 int
9333 main ()
9334 {
9335 return dlopen ();
9336 ;
9337 return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9342 case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext &&
9357 $as_test_x conftest$ac_exeext; then
9358 ac_cv_lib_dl_dlopen=yes
9359 else
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362  
9363 ac_cv_lib_dl_dlopen=no
9364 fi
9365  
9366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9367 conftest$ac_exeext conftest.$ac_ext
9368 LIBS=$ac_check_lib_save_LIBS
9369 fi
9370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9372 if test $ac_cv_lib_dl_dlopen = yes; then
9373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9374 else
9375  
9376 lt_cv_dlopen="dyld"
9377 lt_cv_dlopen_libs=
9378 lt_cv_dlopen_self=yes
9379  
9380 fi
9381  
9382 ;;
9383  
9384 *)
9385 { echo "$as_me:$LINENO: checking for shl_load" >&5
9386 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9387 if test "${ac_cv_func_shl_load+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9398 #define shl_load innocuous_shl_load
9399  
9400 /* System header to define __stub macros and hopefully few prototypes,
9401 which can conflict with char shl_load (); below.
9402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9403 <limits.h> exists even on freestanding compilers. */
9404  
9405 #ifdef __STDC__
9406 # include <limits.h>
9407 #else
9408 # include <assert.h>
9409 #endif
9410  
9411 #undef shl_load
9412  
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 char shl_load ();
9420 /* The GNU C library defines this for functions which it implements
9421 to always fail with ENOSYS. Some functions are actually named
9422 something starting with __ and the normal name is an alias. */
9423 #if defined __stub_shl_load || defined __stub___shl_load
9424 choke me
9425 #endif
9426  
9427 int
9428 main ()
9429 {
9430 return shl_load ();
9431 ;
9432 return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_link") 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest$ac_exeext &&
9452 $as_test_x conftest$ac_exeext; then
9453 ac_cv_func_shl_load=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457  
9458 ac_cv_func_shl_load=no
9459 fi
9460  
9461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9462 conftest$ac_exeext conftest.$ac_ext
9463 fi
9464 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9465 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9466 if test $ac_cv_func_shl_load = yes; then
9467 lt_cv_dlopen="shl_load"
9468 else
9469 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9470 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9471 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-ldld $LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482  
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char shl_load ();
9490 int
9491 main ()
9492 {
9493 return shl_load ();
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9500 case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && {
9512 test -z "$ac_c_werror_flag" ||
9513 test ! -s conftest.err
9514 } && test -s conftest$ac_exeext &&
9515 $as_test_x conftest$ac_exeext; then
9516 ac_cv_lib_dld_shl_load=yes
9517 else
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520  
9521 ac_cv_lib_dld_shl_load=no
9522 fi
9523  
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9527 fi
9528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9530 if test $ac_cv_lib_dld_shl_load = yes; then
9531 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9532 else
9533 { echo "$as_me:$LINENO: checking for dlopen" >&5
9534 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9535 if test "${ac_cv_func_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define dlopen innocuous_dlopen
9547  
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char dlopen (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9552  
9553 #ifdef __STDC__
9554 # include <limits.h>
9555 #else
9556 # include <assert.h>
9557 #endif
9558  
9559 #undef dlopen
9560  
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char dlopen ();
9568 /* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571 #if defined __stub_dlopen || defined __stub___dlopen
9572 choke me
9573 #endif
9574  
9575 int
9576 main ()
9577 {
9578 return dlopen ();
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && {
9597 test -z "$ac_c_werror_flag" ||
9598 test ! -s conftest.err
9599 } && test -s conftest$ac_exeext &&
9600 $as_test_x conftest$ac_exeext; then
9601 ac_cv_func_dlopen=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605  
9606 ac_cv_func_dlopen=no
9607 fi
9608  
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9611 fi
9612 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9613 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9614 if test $ac_cv_func_dlopen = yes; then
9615 lt_cv_dlopen="dlopen"
9616 else
9617 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9618 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-ldl $LIBS"
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630  
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char dlopen ();
9638 int
9639 main ()
9640 {
9641 return dlopen ();
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_link") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext &&
9663 $as_test_x conftest$ac_exeext; then
9664 ac_cv_lib_dl_dlopen=yes
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668  
9669 ac_cv_lib_dl_dlopen=no
9670 fi
9671  
9672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9678 if test $ac_cv_lib_dl_dlopen = yes; then
9679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9680 else
9681 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9682 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9683 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 ac_check_lib_save_LIBS=$LIBS
9687 LIBS="-lsvld $LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694  
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 char dlopen ();
9702 int
9703 main ()
9704 {
9705 return dlopen ();
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
9728 ac_cv_lib_svld_dlopen=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732  
9733 ac_cv_lib_svld_dlopen=no
9734 fi
9735  
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9739 fi
9740 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9741 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9742 if test $ac_cv_lib_svld_dlopen = yes; then
9743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9744 else
9745 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9746 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750 ac_check_lib_save_LIBS=$LIBS
9751 LIBS="-ldld $LIBS"
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758  
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char dld_link ();
9766 int
9767 main ()
9768 {
9769 return dld_link ();
9770 ;
9771 return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_link") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest$ac_exeext &&
9791 $as_test_x conftest$ac_exeext; then
9792 ac_cv_lib_dld_dld_link=yes
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796  
9797 ac_cv_lib_dld_dld_link=no
9798 fi
9799  
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801 conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9803 fi
9804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9805 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9806 if test $ac_cv_lib_dld_dld_link = yes; then
9807 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9808 fi
9809  
9810  
9811 fi
9812  
9813  
9814 fi
9815  
9816  
9817 fi
9818  
9819  
9820 fi
9821  
9822  
9823 fi
9824  
9825 ;;
9826 esac
9827  
9828 if test "x$lt_cv_dlopen" != xno; then
9829 enable_dlopen=yes
9830 else
9831 enable_dlopen=no
9832 fi
9833  
9834 case $lt_cv_dlopen in
9835 dlopen)
9836 save_CPPFLAGS="$CPPFLAGS"
9837 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9838  
9839 save_LDFLAGS="$LDFLAGS"
9840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9841  
9842 save_LIBS="$LIBS"
9843 LIBS="$lt_cv_dlopen_libs $LIBS"
9844  
9845 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9846 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9847 if test "${lt_cv_dlopen_self+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850 if test "$cross_compiling" = yes; then :
9851 lt_cv_dlopen_self=cross
9852 else
9853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9854 lt_status=$lt_dlunknown
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9856 "configure"
9857 #include "confdefs.h"
9858  
9859 #if HAVE_DLFCN_H
9860 #include <dlfcn.h>
9861 #endif
9862  
9863 #include <stdio.h>
9864  
9865 #ifdef RTLD_GLOBAL
9866 # define LT_DLGLOBAL RTLD_GLOBAL
9867 #else
9868 # ifdef DL_GLOBAL
9869 # define LT_DLGLOBAL DL_GLOBAL
9870 # else
9871 # define LT_DLGLOBAL 0
9872 # endif
9873 #endif
9874  
9875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9876 find out it does not work in some platform. */
9877 #ifndef LT_DLLAZY_OR_NOW
9878 # ifdef RTLD_LAZY
9879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9880 # else
9881 # ifdef DL_LAZY
9882 # define LT_DLLAZY_OR_NOW DL_LAZY
9883 # else
9884 # ifdef RTLD_NOW
9885 # define LT_DLLAZY_OR_NOW RTLD_NOW
9886 # else
9887 # ifdef DL_NOW
9888 # define LT_DLLAZY_OR_NOW DL_NOW
9889 # else
9890 # define LT_DLLAZY_OR_NOW 0
9891 # endif
9892 # endif
9893 # endif
9894 # endif
9895 #endif
9896  
9897 #ifdef __cplusplus
9898 extern "C" void exit (int);
9899 #endif
9900  
9901 void fnord() { int i=42;}
9902 int main ()
9903 {
9904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9905 int status = $lt_dlunknown;
9906  
9907 if (self)
9908 {
9909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9910 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9911 /* dlclose (self); */
9912 }
9913 else
9914 puts (dlerror ());
9915  
9916 exit (status);
9917 }
9918 EOF
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9924 (./conftest; exit; ) >&5 2>/dev/null
9925 lt_status=$?
9926 case x$lt_status in
9927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9930 esac
9931 else :
9932 # compilation failed
9933 lt_cv_dlopen_self=no
9934 fi
9935 fi
9936 rm -fr conftest*
9937  
9938  
9939 fi
9940 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9941 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9942  
9943 if test "x$lt_cv_dlopen_self" = xyes; then
9944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9945 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9946 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9947 if test "${lt_cv_dlopen_self_static+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 if test "$cross_compiling" = yes; then :
9951 lt_cv_dlopen_self_static=cross
9952 else
9953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9954 lt_status=$lt_dlunknown
9955 cat > conftest.$ac_ext <<EOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958  
9959 #if HAVE_DLFCN_H
9960 #include <dlfcn.h>
9961 #endif
9962  
9963 #include <stdio.h>
9964  
9965 #ifdef RTLD_GLOBAL
9966 # define LT_DLGLOBAL RTLD_GLOBAL
9967 #else
9968 # ifdef DL_GLOBAL
9969 # define LT_DLGLOBAL DL_GLOBAL
9970 # else
9971 # define LT_DLGLOBAL 0
9972 # endif
9973 #endif
9974  
9975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9976 find out it does not work in some platform. */
9977 #ifndef LT_DLLAZY_OR_NOW
9978 # ifdef RTLD_LAZY
9979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9980 # else
9981 # ifdef DL_LAZY
9982 # define LT_DLLAZY_OR_NOW DL_LAZY
9983 # else
9984 # ifdef RTLD_NOW
9985 # define LT_DLLAZY_OR_NOW RTLD_NOW
9986 # else
9987 # ifdef DL_NOW
9988 # define LT_DLLAZY_OR_NOW DL_NOW
9989 # else
9990 # define LT_DLLAZY_OR_NOW 0
9991 # endif
9992 # endif
9993 # endif
9994 # endif
9995 #endif
9996  
9997 #ifdef __cplusplus
9998 extern "C" void exit (int);
9999 #endif
10000  
10001 void fnord() { int i=42;}
10002 int main ()
10003 {
10004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10005 int status = $lt_dlunknown;
10006  
10007 if (self)
10008 {
10009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10011 /* dlclose (self); */
10012 }
10013 else
10014 puts (dlerror ());
10015  
10016 exit (status);
10017 }
10018 EOF
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10024 (./conftest; exit; ) >&5 2>/dev/null
10025 lt_status=$?
10026 case x$lt_status in
10027 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10028 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10029 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10030 esac
10031 else :
10032 # compilation failed
10033 lt_cv_dlopen_self_static=no
10034 fi
10035 fi
10036 rm -fr conftest*
10037  
10038  
10039 fi
10040 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10041 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10042 fi
10043  
10044 CPPFLAGS="$save_CPPFLAGS"
10045 LDFLAGS="$save_LDFLAGS"
10046 LIBS="$save_LIBS"
10047 ;;
10048 esac
10049  
10050 case $lt_cv_dlopen_self in
10051 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10052 *) enable_dlopen_self=unknown ;;
10053 esac
10054  
10055 case $lt_cv_dlopen_self_static in
10056 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10057 *) enable_dlopen_self_static=unknown ;;
10058 esac
10059 fi
10060  
10061  
10062 # Report which library types will actually be built
10063 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10064 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10065 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10066 echo "${ECHO_T}$can_build_shared" >&6; }
10067  
10068 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10069 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10070 test "$can_build_shared" = "no" && enable_shared=no
10071  
10072 # On AIX, shared libraries and static libraries use the same namespace, and
10073 # are all built from PIC.
10074 case $host_os in
10075 aix3*)
10076 test "$enable_shared" = yes && enable_static=no
10077 if test -n "$RANLIB"; then
10078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10079 postinstall_cmds='$RANLIB $lib'
10080 fi
10081 ;;
10082  
10083 aix4* | aix5*)
10084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10085 test "$enable_shared" = yes && enable_static=no
10086 fi
10087 ;;
10088 esac
10089 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10090 echo "${ECHO_T}$enable_shared" >&6; }
10091  
10092 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10093 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10094 # Make sure either enable_shared or enable_static is yes.
10095 test "$enable_shared" = yes || enable_static=yes
10096 { echo "$as_me:$LINENO: result: $enable_static" >&5
10097 echo "${ECHO_T}$enable_static" >&6; }
10098  
10099 # The else clause should only fire when bootstrapping the
10100 # libtool distribution, otherwise you forgot to ship ltmain.sh
10101 # with your package, and you will get complaints that there are
10102 # no rules to generate ltmain.sh.
10103 if test -f "$ltmain"; then
10104 # See if we are running on zsh, and set the options which allow our commands through
10105 # without removal of \ escapes.
10106 if test -n "${ZSH_VERSION+set}" ; then
10107 setopt NO_GLOB_SUBST
10108 fi
10109 # Now quote all the things that may contain metacharacters while being
10110 # careful not to overquote the AC_SUBSTed values. We take copies of the
10111 # variables and quote the copies for generation of the libtool script.
10112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10113 SED SHELL STRIP \
10114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10116 deplibs_check_method reload_flag reload_cmds need_locks \
10117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10118 lt_cv_sys_global_symbol_to_c_name_address \
10119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10120 old_postinstall_cmds old_postuninstall_cmds \
10121 compiler \
10122 CC \
10123 LD \
10124 lt_prog_compiler_wl \
10125 lt_prog_compiler_pic \
10126 lt_prog_compiler_static \
10127 lt_prog_compiler_no_builtin_flag \
10128 export_dynamic_flag_spec \
10129 thread_safe_flag_spec \
10130 whole_archive_flag_spec \
10131 enable_shared_with_static_runtimes \
10132 old_archive_cmds \
10133 old_archive_from_new_cmds \
10134 predep_objects \
10135 postdep_objects \
10136 predeps \
10137 postdeps \
10138 compiler_lib_search_path \
10139 archive_cmds \
10140 archive_expsym_cmds \
10141 postinstall_cmds \
10142 postuninstall_cmds \
10143 old_archive_from_expsyms_cmds \
10144 allow_undefined_flag \
10145 no_undefined_flag \
10146 export_symbols_cmds \
10147 hardcode_libdir_flag_spec \
10148 hardcode_libdir_flag_spec_ld \
10149 hardcode_libdir_separator \
10150 hardcode_automatic \
10151 module_cmds \
10152 module_expsym_cmds \
10153 lt_cv_prog_compiler_c_o \
10154 fix_srcfile_path \
10155 exclude_expsyms \
10156 include_expsyms; do
10157  
10158 case $var in
10159 old_archive_cmds | \
10160 old_archive_from_new_cmds | \
10161 archive_cmds | \
10162 archive_expsym_cmds | \
10163 module_cmds | \
10164 module_expsym_cmds | \
10165 old_archive_from_expsyms_cmds | \
10166 export_symbols_cmds | \
10167 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10168 postinstall_cmds | postuninstall_cmds | \
10169 old_postinstall_cmds | old_postuninstall_cmds | \
10170 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10171 # Double-quote double-evaled strings.
10172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10173 ;;
10174 *)
10175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10176 ;;
10177 esac
10178 done
10179  
10180 case $lt_echo in
10181 *'\$0 --fallback-echo"')
10182 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10183 ;;
10184 esac
10185  
10186 cfgfile="${ofile}T"
10187 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10188 $rm -f "$cfgfile"
10189 { echo "$as_me:$LINENO: creating $ofile" >&5
10190 echo "$as_me: creating $ofile" >&6;}
10191  
10192 cat <<__EOF__ >> "$cfgfile"
10193 #! $SHELL
10194  
10195 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10196 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10198 #
10199 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10200 # Free Software Foundation, Inc.
10201 #
10202 # This file is part of GNU Libtool:
10203 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10204 #
10205 # This program is free software; you can redistribute it and/or modify
10206 # it under the terms of the GNU General Public License as published by
10207 # the Free Software Foundation; either version 2 of the License, or
10208 # (at your option) any later version.
10209 #
10210 # This program is distributed in the hope that it will be useful, but
10211 # WITHOUT ANY WARRANTY; without even the implied warranty of
10212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10213 # General Public License for more details.
10214 #
10215 # You should have received a copy of the GNU General Public License
10216 # along with this program; if not, write to the Free Software
10217 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10218 #
10219 # As a special exception to the GNU General Public License, if you
10220 # distribute this file as part of a program that contains a
10221 # configuration script generated by Autoconf, you may include it under
10222 # the same distribution terms that you use for the rest of that program.
10223  
10224 # A sed program that does not truncate output.
10225 SED=$lt_SED
10226  
10227 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10228 Xsed="$SED -e 1s/^X//"
10229  
10230 # The HP-UX ksh and POSIX shell print the target directory to stdout
10231 # if CDPATH is set.
10232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10233  
10234 # The names of the tagged configurations supported by this script.
10235 available_tags=
10236  
10237 # ### BEGIN LIBTOOL CONFIG
10238  
10239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10240  
10241 # Shell to use when invoking shell scripts.
10242 SHELL=$lt_SHELL
10243  
10244 # Whether or not to build shared libraries.
10245 build_libtool_libs=$enable_shared
10246  
10247 # Whether or not to build static libraries.
10248 build_old_libs=$enable_static
10249  
10250 # Whether or not to add -lc for building shared libraries.
10251 build_libtool_need_lc=$archive_cmds_need_lc
10252  
10253 # Whether or not to disallow shared libs when runtime libs are static
10254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10255  
10256 # Whether or not to optimize for fast installation.
10257 fast_install=$enable_fast_install
10258  
10259 # The host system.
10260 host_alias=$host_alias
10261 host=$host
10262 host_os=$host_os
10263  
10264 # The build system.
10265 build_alias=$build_alias
10266 build=$build
10267 build_os=$build_os
10268  
10269 # An echo program that does not interpret backslashes.
10270 echo=$lt_echo
10271  
10272 # The archiver.
10273 AR=$lt_AR
10274 AR_FLAGS=$lt_AR_FLAGS
10275  
10276 # A C compiler.
10277 LTCC=$lt_LTCC
10278  
10279 # LTCC compiler flags.
10280 LTCFLAGS=$lt_LTCFLAGS
10281  
10282 # A language-specific compiler.
10283 CC=$lt_compiler
10284  
10285 # Is the compiler the GNU C compiler?
10286 with_gcc=$GCC
10287  
10288 # An ERE matcher.
10289 EGREP=$lt_EGREP
10290  
10291 # The linker used to build libraries.
10292 LD=$lt_LD
10293  
10294 # Whether we need hard or soft links.
10295 LN_S=$lt_LN_S
10296  
10297 # A BSD-compatible nm program.
10298 NM=$lt_NM
10299  
10300 # A symbol stripping program
10301 STRIP=$lt_STRIP
10302  
10303 # Used to examine libraries when file_magic_cmd begins "file"
10304 MAGIC_CMD=$MAGIC_CMD
10305  
10306 # Used on cygwin: DLL creation program.
10307 DLLTOOL="$DLLTOOL"
10308  
10309 # Used on cygwin: object dumper.
10310 OBJDUMP="$OBJDUMP"
10311  
10312 # Used on cygwin: assembler.
10313 AS="$AS"
10314  
10315 # The name of the directory that contains temporary libtool files.
10316 objdir=$objdir
10317  
10318 # How to create reloadable object files.
10319 reload_flag=$lt_reload_flag
10320 reload_cmds=$lt_reload_cmds
10321  
10322 # How to pass a linker flag through the compiler.
10323 wl=$lt_lt_prog_compiler_wl
10324  
10325 # Object file suffix (normally "o").
10326 objext="$ac_objext"
10327  
10328 # Old archive suffix (normally "a").
10329 libext="$libext"
10330  
10331 # Shared library suffix (normally ".so").
10332 shrext_cmds='$shrext_cmds'
10333  
10334 # Executable file suffix (normally "").
10335 exeext="$exeext"
10336  
10337 # Additional compiler flags for building library objects.
10338 pic_flag=$lt_lt_prog_compiler_pic
10339 pic_mode=$pic_mode
10340  
10341 # What is the maximum length of a command?
10342 max_cmd_len=$lt_cv_sys_max_cmd_len
10343  
10344 # Does compiler simultaneously support -c and -o options?
10345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10346  
10347 # Must we lock files when doing compilation?
10348 need_locks=$lt_need_locks
10349  
10350 # Do we need the lib prefix for modules?
10351 need_lib_prefix=$need_lib_prefix
10352  
10353 # Do we need a version for libraries?
10354 need_version=$need_version
10355  
10356 # Whether dlopen is supported.
10357 dlopen_support=$enable_dlopen
10358  
10359 # Whether dlopen of programs is supported.
10360 dlopen_self=$enable_dlopen_self
10361  
10362 # Whether dlopen of statically linked programs is supported.
10363 dlopen_self_static=$enable_dlopen_self_static
10364  
10365 # Compiler flag to prevent dynamic linking.
10366 link_static_flag=$lt_lt_prog_compiler_static
10367  
10368 # Compiler flag to turn off builtin functions.
10369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10370  
10371 # Compiler flag to allow reflexive dlopens.
10372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10373  
10374 # Compiler flag to generate shared objects directly from archives.
10375 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10376  
10377 # Compiler flag to generate thread-safe objects.
10378 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10379  
10380 # Library versioning type.
10381 version_type=$version_type
10382  
10383 # Format of library name prefix.
10384 libname_spec=$lt_libname_spec
10385  
10386 # List of archive names. First name is the real one, the rest are links.
10387 # The last name is the one that the linker finds with -lNAME.
10388 library_names_spec=$lt_library_names_spec
10389  
10390 # The coded name of the library, if different from the real name.
10391 soname_spec=$lt_soname_spec
10392  
10393 # Commands used to build and install an old-style archive.
10394 RANLIB=$lt_RANLIB
10395 old_archive_cmds=$lt_old_archive_cmds
10396 old_postinstall_cmds=$lt_old_postinstall_cmds
10397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10398  
10399 # Create an old-style archive from a shared archive.
10400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10401  
10402 # Create a temporary old-style archive to link instead of a shared archive.
10403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10404  
10405 # Commands used to build and install a shared archive.
10406 archive_cmds=$lt_archive_cmds
10407 archive_expsym_cmds=$lt_archive_expsym_cmds
10408 postinstall_cmds=$lt_postinstall_cmds
10409 postuninstall_cmds=$lt_postuninstall_cmds
10410  
10411 # Commands used to build a loadable module (assumed same as above if empty)
10412 module_cmds=$lt_module_cmds
10413 module_expsym_cmds=$lt_module_expsym_cmds
10414  
10415 # Commands to strip libraries.
10416 old_striplib=$lt_old_striplib
10417 striplib=$lt_striplib
10418  
10419 # Dependencies to place before the objects being linked to create a
10420 # shared library.
10421 predep_objects=$lt_predep_objects
10422  
10423 # Dependencies to place after the objects being linked to create a
10424 # shared library.
10425 postdep_objects=$lt_postdep_objects
10426  
10427 # Dependencies to place before the objects being linked to create a
10428 # shared library.
10429 predeps=$lt_predeps
10430  
10431 # Dependencies to place after the objects being linked to create a
10432 # shared library.
10433 postdeps=$lt_postdeps
10434  
10435 # The library search path used internally by the compiler when linking
10436 # a shared library.
10437 compiler_lib_search_path=$lt_compiler_lib_search_path
10438  
10439 # Method to check whether dependent libraries are shared objects.
10440 deplibs_check_method=$lt_deplibs_check_method
10441  
10442 # Command to use when deplibs_check_method == file_magic.
10443 file_magic_cmd=$lt_file_magic_cmd
10444  
10445 # Flag that allows shared libraries with undefined symbols to be built.
10446 allow_undefined_flag=$lt_allow_undefined_flag
10447  
10448 # Flag that forces no undefined symbols.
10449 no_undefined_flag=$lt_no_undefined_flag
10450  
10451 # Commands used to finish a libtool library installation in a directory.
10452 finish_cmds=$lt_finish_cmds
10453  
10454 # Same as above, but a single script fragment to be evaled but not shown.
10455 finish_eval=$lt_finish_eval
10456  
10457 # Take the output of nm and produce a listing of raw symbols and C names.
10458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10459  
10460 # Transform the output of nm in a proper C declaration
10461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10462  
10463 # Transform the output of nm in a C name address pair
10464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10465  
10466 # This is the shared library runtime path variable.
10467 runpath_var=$runpath_var
10468  
10469 # This is the shared library path variable.
10470 shlibpath_var=$shlibpath_var
10471  
10472 # Is shlibpath searched before the hard-coded library search path?
10473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10474  
10475 # How to hardcode a shared library path into an executable.
10476 hardcode_action=$hardcode_action
10477  
10478 # Whether we should hardcode library paths into libraries.
10479 hardcode_into_libs=$hardcode_into_libs
10480  
10481 # Flag to hardcode \$libdir into a binary during linking.
10482 # This must work even if \$libdir does not exist.
10483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10484  
10485 # If ld is used when linking, flag to hardcode \$libdir into
10486 # a binary during linking. This must work even if \$libdir does
10487 # not exist.
10488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10489  
10490 # Whether we need a single -rpath flag with a separated argument.
10491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10492  
10493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10494 # resulting binary.
10495 hardcode_direct=$hardcode_direct
10496  
10497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10498 # resulting binary.
10499 hardcode_minus_L=$hardcode_minus_L
10500  
10501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10502 # the resulting binary.
10503 hardcode_shlibpath_var=$hardcode_shlibpath_var
10504  
10505 # Set to yes if building a shared library automatically hardcodes DIR into the library
10506 # and all subsequent libraries and executables linked against it.
10507 hardcode_automatic=$hardcode_automatic
10508  
10509 # Variables whose values should be saved in libtool wrapper scripts and
10510 # restored at relink time.
10511 variables_saved_for_relink="$variables_saved_for_relink"
10512  
10513 # Whether libtool must link a program against all its dependency libraries.
10514 link_all_deplibs=$link_all_deplibs
10515  
10516 # Compile-time system search path for libraries
10517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10518  
10519 # Run-time system search path for libraries
10520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10521  
10522 # Fix the shell variable \$srcfile for the compiler.
10523 fix_srcfile_path=$lt_fix_srcfile_path
10524  
10525 # Set to yes if exported symbols are required.
10526 always_export_symbols=$always_export_symbols
10527  
10528 # The commands to list exported symbols.
10529 export_symbols_cmds=$lt_export_symbols_cmds
10530  
10531 # The commands to extract the exported symbol list from a shared archive.
10532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10533  
10534 # Symbols that should not be listed in the preloaded symbols.
10535 exclude_expsyms=$lt_exclude_expsyms
10536  
10537 # Symbols that must always be exported.
10538 include_expsyms=$lt_include_expsyms
10539  
10540 # ### END LIBTOOL CONFIG
10541  
10542 __EOF__
10543  
10544  
10545 case $host_os in
10546 aix3*)
10547 cat <<\EOF >> "$cfgfile"
10548  
10549 # AIX sometimes has problems with the GCC collect2 program. For some
10550 # reason, if we set the COLLECT_NAMES environment variable, the problems
10551 # vanish in a puff of smoke.
10552 if test "X${COLLECT_NAMES+set}" != Xset; then
10553 COLLECT_NAMES=
10554 export COLLECT_NAMES
10555 fi
10556 EOF
10557 ;;
10558 esac
10559  
10560 # We use sed instead of cat because bash on DJGPP gets confused if
10561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10562 # text mode, it properly converts lines to CR/LF. This bash problem
10563 # is reportedly fixed, but why not run on old versions too?
10564 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10565  
10566 mv -f "$cfgfile" "$ofile" || \
10567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10568 chmod +x "$ofile"
10569  
10570 else
10571 # If there is no Makefile yet, we rely on a make rule to execute
10572 # `config.status --recheck' to rerun these tests and create the
10573 # libtool script then.
10574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10575 if test -f "$ltmain_in"; then
10576 test -f Makefile && make "$ltmain"
10577 fi
10578 fi
10579  
10580  
10581 ac_ext=c
10582 ac_cpp='$CPP $CPPFLAGS'
10583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586  
10587 CC="$lt_save_CC"
10588  
10589  
10590 # Check whether --with-tags was given.
10591 if test "${with_tags+set}" = set; then
10592 withval=$with_tags; tagnames="$withval"
10593 fi
10594  
10595  
10596 if test -f "$ltmain" && test -n "$tagnames"; then
10597 if test ! -f "${ofile}"; then
10598 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10599 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10600 fi
10601  
10602 if test -z "$LTCC"; then
10603 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10604 if test -z "$LTCC"; then
10605 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10606 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10607 else
10608 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10609 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10610 fi
10611 fi
10612 if test -z "$LTCFLAGS"; then
10613 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10614 fi
10615  
10616 # Extract list of available tagged configurations in $ofile.
10617 # Note that this assumes the entire list is on one line.
10618 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10619  
10620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10621 for tagname in $tagnames; do
10622 IFS="$lt_save_ifs"
10623 # Check whether tagname contains only valid characters
10624 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10625 "") ;;
10626 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10627 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10628 { (exit 1); exit 1; }; }
10629 ;;
10630 esac
10631  
10632 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10633 then
10634 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10635 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10636 { (exit 1); exit 1; }; }
10637 fi
10638  
10639 # Update the list of available tags.
10640 if test -n "$tagname"; then
10641 echo appending configuration tag \"$tagname\" to $ofile
10642  
10643 case $tagname in
10644 CXX)
10645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10647 (test "X$CXX" != "Xg++"))) ; then
10648 ac_ext=cpp
10649 ac_cpp='$CXXCPP $CPPFLAGS'
10650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10653  
10654  
10655  
10656  
10657 archive_cmds_need_lc_CXX=no
10658 allow_undefined_flag_CXX=
10659 always_export_symbols_CXX=no
10660 archive_expsym_cmds_CXX=
10661 export_dynamic_flag_spec_CXX=
10662 hardcode_direct_CXX=no
10663 hardcode_libdir_flag_spec_CXX=
10664 hardcode_libdir_flag_spec_ld_CXX=
10665 hardcode_libdir_separator_CXX=
10666 hardcode_minus_L_CXX=no
10667 hardcode_shlibpath_var_CXX=unsupported
10668 hardcode_automatic_CXX=no
10669 module_cmds_CXX=
10670 module_expsym_cmds_CXX=
10671 link_all_deplibs_CXX=unknown
10672 old_archive_cmds_CXX=$old_archive_cmds
10673 no_undefined_flag_CXX=
10674 whole_archive_flag_spec_CXX=
10675 enable_shared_with_static_runtimes_CXX=no
10676  
10677 # Dependencies to place before and after the object being linked:
10678 predep_objects_CXX=
10679 postdep_objects_CXX=
10680 predeps_CXX=
10681 postdeps_CXX=
10682 compiler_lib_search_path_CXX=
10683  
10684 # Source file extension for C++ test sources.
10685 ac_ext=cpp
10686  
10687 # Object file extension for compiled C++ test sources.
10688 objext=o
10689 objext_CXX=$objext
10690  
10691 # Code to be used in simple compile tests
10692 lt_simple_compile_test_code="int some_variable = 0;"
10693  
10694 # Code to be used in simple link tests
10695 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10696  
10697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10698  
10699 # If no C compiler was specified, use CC.
10700 LTCC=${LTCC-"$CC"}
10701  
10702 # If no C compiler flags were specified, use CFLAGS.
10703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10704  
10705 # Allow CC to be a program name with arguments.
10706 compiler=$CC
10707  
10708  
10709 # save warnings/boilerplate of simple test code
10710 ac_outfile=conftest.$ac_objext
10711 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10712 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10713 _lt_compiler_boilerplate=`cat conftest.err`
10714 $rm conftest*
10715  
10716 ac_outfile=conftest.$ac_objext
10717 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10718 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10719 _lt_linker_boilerplate=`cat conftest.err`
10720 $rm conftest*
10721  
10722  
10723 # Allow CC to be a program name with arguments.
10724 lt_save_CC=$CC
10725 lt_save_LD=$LD
10726 lt_save_GCC=$GCC
10727 GCC=$GXX
10728 lt_save_with_gnu_ld=$with_gnu_ld
10729 lt_save_path_LD=$lt_cv_path_LD
10730 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10731 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10732 else
10733 $as_unset lt_cv_prog_gnu_ld
10734 fi
10735 if test -n "${lt_cv_path_LDCXX+set}"; then
10736 lt_cv_path_LD=$lt_cv_path_LDCXX
10737 else
10738 $as_unset lt_cv_path_LD
10739 fi
10740 test -z "${LDCXX+set}" || LD=$LDCXX
10741 CC=${CXX-"c++"}
10742 compiler=$CC
10743 compiler_CXX=$CC
10744 for cc_temp in $compiler""; do
10745 case $cc_temp in
10746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10748 \-*) ;;
10749 *) break;;
10750 esac
10751 done
10752 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10753  
10754  
10755 # We don't want -fno-exception wen compiling C++ code, so set the
10756 # no_builtin_flag separately
10757 if test "$GXX" = yes; then
10758 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10759 else
10760 lt_prog_compiler_no_builtin_flag_CXX=
10761 fi
10762  
10763 if test "$GXX" = yes; then
10764 # Set up default GNU C++ configuration
10765  
10766  
10767 # Check whether --with-gnu-ld was given.
10768 if test "${with_gnu_ld+set}" = set; then
10769 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10770 else
10771 with_gnu_ld=no
10772 fi
10773  
10774 ac_prog=ld
10775 if test "$GCC" = yes; then
10776 # Check if gcc -print-prog-name=ld gives a path.
10777 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10778 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10779 case $host in
10780 *-*-mingw*)
10781 # gcc leaves a trailing carriage return which upsets mingw
10782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10783 *)
10784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10785 esac
10786 case $ac_prog in
10787 # Accept absolute paths.
10788 [\\/]* | ?:[\\/]*)
10789 re_direlt='/[^/][^/]*/\.\./'
10790 # Canonicalize the pathname of ld
10791 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10793 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10794 done
10795 test -z "$LD" && LD="$ac_prog"
10796 ;;
10797 "")
10798 # If it fails, then pretend we aren't using GCC.
10799 ac_prog=ld
10800 ;;
10801 *)
10802 # If it is relative, then search for the first ld in PATH.
10803 with_gnu_ld=unknown
10804 ;;
10805 esac
10806 elif test "$with_gnu_ld" = yes; then
10807 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10809 else
10810 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10812 fi
10813 if test "${lt_cv_path_LD+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 if test -z "$LD"; then
10817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10818 for ac_dir in $PATH; do
10819 IFS="$lt_save_ifs"
10820 test -z "$ac_dir" && ac_dir=.
10821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10822 lt_cv_path_LD="$ac_dir/$ac_prog"
10823 # Check to see if the program is GNU ld. I'd rather use --version,
10824 # but apparently some variants of GNU ld only accept -v.
10825 # Break only if it was the GNU/non-GNU ld that we prefer.
10826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10827 *GNU* | *'with BFD'*)
10828 test "$with_gnu_ld" != no && break
10829 ;;
10830 *)
10831 test "$with_gnu_ld" != yes && break
10832 ;;
10833 esac
10834 fi
10835 done
10836 IFS="$lt_save_ifs"
10837 else
10838 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10839 fi
10840 fi
10841  
10842 LD="$lt_cv_path_LD"
10843 if test -n "$LD"; then
10844 { echo "$as_me:$LINENO: result: $LD" >&5
10845 echo "${ECHO_T}$LD" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10849 fi
10850 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10851 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10852 { (exit 1); exit 1; }; }
10853 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10854 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10855 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10859 case `$LD -v 2>&1 </dev/null` in
10860 *GNU* | *'with BFD'*)
10861 lt_cv_prog_gnu_ld=yes
10862 ;;
10863 *)
10864 lt_cv_prog_gnu_ld=no
10865 ;;
10866 esac
10867 fi
10868 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10869 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10870 with_gnu_ld=$lt_cv_prog_gnu_ld
10871  
10872  
10873  
10874 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10875 # archiving commands below assume that GNU ld is being used.
10876 if test "$with_gnu_ld" = yes; then
10877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878 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'
10879  
10880 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10881 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10882  
10883 # If archive_cmds runs LD, not CC, wlarc should be empty
10884 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10885 # investigate it a little bit more. (MM)
10886 wlarc='${wl}'
10887  
10888 # ancient GNU ld didn't support --whole-archive et. al.
10889 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10890 grep 'no-whole-archive' > /dev/null; then
10891 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10892 else
10893 whole_archive_flag_spec_CXX=
10894 fi
10895 else
10896 with_gnu_ld=no
10897 wlarc=
10898  
10899 # A generic and very simple default shared library creation
10900 # command for GNU C++ for the case where it uses the native
10901 # linker, instead of GNU ld. If possible, this setting should
10902 # overridden to take advantage of the native linker features on
10903 # the platform it is being used on.
10904 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10905 fi
10906  
10907 # Commands to make compiler produce verbose output that lists
10908 # what "hidden" libraries, object files and flags are used when
10909 # linking a shared library.
10910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10911  
10912 else
10913 GXX=no
10914 with_gnu_ld=no
10915 wlarc=
10916 fi
10917  
10918 # PORTME: fill in a description of your system's C++ link characteristics
10919 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10921 ld_shlibs_CXX=yes
10922 case $host_os in
10923 aix3*)
10924 # FIXME: insert proper C++ library support
10925 ld_shlibs_CXX=no
10926 ;;
10927 aix4* | aix5*)
10928 if test "$host_cpu" = ia64; then
10929 # On IA64, the linker does run time linking by default, so we don't
10930 # have to do anything special.
10931 aix_use_runtimelinking=no
10932 exp_sym_flag='-Bexport'
10933 no_entry_flag=""
10934 else
10935 aix_use_runtimelinking=no
10936  
10937 # Test if we are trying to use run time linking or normal
10938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10939 # need to do runtime linking.
10940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10941 for ld_flag in $LDFLAGS; do
10942 case $ld_flag in
10943 *-brtl*)
10944 aix_use_runtimelinking=yes
10945 break
10946 ;;
10947 esac
10948 done
10949 ;;
10950 esac
10951  
10952 exp_sym_flag='-bexport'
10953 no_entry_flag='-bnoentry'
10954 fi
10955  
10956 # When large executables or shared objects are built, AIX ld can
10957 # have problems creating the table of contents. If linking a library
10958 # or program results in "error TOC overflow" add -mminimal-toc to
10959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10961  
10962 archive_cmds_CXX=''
10963 hardcode_direct_CXX=yes
10964 hardcode_libdir_separator_CXX=':'
10965 link_all_deplibs_CXX=yes
10966  
10967 if test "$GXX" = yes; then
10968 case $host_os in aix4.[012]|aix4.[012].*)
10969 # We only want to do this on AIX 4.2 and lower, the check
10970 # below for broken collect2 doesn't work under 4.3+
10971 collect2name=`${CC} -print-prog-name=collect2`
10972 if test -f "$collect2name" && \
10973 strings "$collect2name" | grep resolve_lib_name >/dev/null
10974 then
10975 # We have reworked collect2
10976 :
10977 else
10978 # We have old collect2
10979 hardcode_direct_CXX=unsupported
10980 # It fails to find uninstalled libraries when the uninstalled
10981 # path is not listed in the libpath. Setting hardcode_minus_L
10982 # to unsupported forces relinking
10983 hardcode_minus_L_CXX=yes
10984 hardcode_libdir_flag_spec_CXX='-L$libdir'
10985 hardcode_libdir_separator_CXX=
10986 fi
10987 ;;
10988 esac
10989 shared_flag='-shared'
10990 if test "$aix_use_runtimelinking" = yes; then
10991 shared_flag="$shared_flag "'${wl}-G'
10992 fi
10993 else
10994 # not using gcc
10995 if test "$host_cpu" = ia64; then
10996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10997 # chokes on -Wl,-G. The following line is correct:
10998 shared_flag='-G'
10999 else
11000 if test "$aix_use_runtimelinking" = yes; then
11001 shared_flag='${wl}-G'
11002 else
11003 shared_flag='${wl}-bM:SRE'
11004 fi
11005 fi
11006 fi
11007  
11008 # It seems that -bexpall does not export symbols beginning with
11009 # underscore (_), so it is better to generate a list of symbols to export.
11010 always_export_symbols_CXX=yes
11011 if test "$aix_use_runtimelinking" = yes; then
11012 # Warning - without using the other runtime loading flags (-brtl),
11013 # -berok will link without error, but may produce a broken library.
11014 allow_undefined_flag_CXX='-berok'
11015 # Determine the default libpath from the value encoded in an empty executable.
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022  
11023 int
11024 main ()
11025 {
11026  
11027 ;
11028 return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (ac_try="$ac_link"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_link") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_cxx_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest$ac_exeext &&
11048 $as_test_x conftest$ac_exeext; then
11049  
11050 lt_aix_libpath_sed='
11051 /Import File Strings/,/^$/ {
11052 /^0/ {
11053 s/^0 *\(.*\)$/\1/
11054 p
11055 }
11056 }'
11057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11058 # Check for a 64-bit object if we didn't find anything.
11059 if test -z "$aix_libpath"; then
11060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11061 fi
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065  
11066  
11067 fi
11068  
11069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11070 conftest$ac_exeext conftest.$ac_ext
11071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11072  
11073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11074  
11075 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"
11076 else
11077 if test "$host_cpu" = ia64; then
11078 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11079 allow_undefined_flag_CXX="-z nodefs"
11080 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"
11081 else
11082 # Determine the default libpath from the value encoded in an empty executable.
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089  
11090 int
11091 main ()
11092 {
11093  
11094 ;
11095 return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (ac_try="$ac_link"
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_link") 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_cxx_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext &&
11115 $as_test_x conftest$ac_exeext; then
11116  
11117 lt_aix_libpath_sed='
11118 /Import File Strings/,/^$/ {
11119 /^0/ {
11120 s/^0 *\(.*\)$/\1/
11121 p
11122 }
11123 }'
11124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11125 # Check for a 64-bit object if we didn't find anything.
11126 if test -z "$aix_libpath"; then
11127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11128 fi
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132  
11133  
11134 fi
11135  
11136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137 conftest$ac_exeext conftest.$ac_ext
11138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11139  
11140 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11141 # Warning - without using the other run time loading flags,
11142 # -berok will link without error, but may produce a broken library.
11143 no_undefined_flag_CXX=' ${wl}-bernotok'
11144 allow_undefined_flag_CXX=' ${wl}-berok'
11145 # Exported symbols can be pulled into shared objects from archives
11146 whole_archive_flag_spec_CXX='$convenience'
11147 archive_cmds_need_lc_CXX=yes
11148 # This is similar to how AIX traditionally builds its shared libraries.
11149 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'
11150 fi
11151 fi
11152 ;;
11153  
11154 beos*)
11155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11156 allow_undefined_flag_CXX=unsupported
11157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11158 # support --undefined. This deserves some investigation. FIXME
11159 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11160 else
11161 ld_shlibs_CXX=no
11162 fi
11163 ;;
11164  
11165 chorus*)
11166 case $cc_basename in
11167 *)
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 esac
11172 ;;
11173  
11174 cygwin* | mingw* | pw32*)
11175 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11176 # as there is no search path for DLLs.
11177 hardcode_libdir_flag_spec_CXX='-L$libdir'
11178 allow_undefined_flag_CXX=unsupported
11179 always_export_symbols_CXX=no
11180 enable_shared_with_static_runtimes_CXX=yes
11181  
11182 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11183 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'
11184 # If the export-symbols file already is a .def file (1st line
11185 # is EXPORTS), use it as is; otherwise, prepend...
11186 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11187 cp $export_symbols $output_objdir/$soname.def;
11188 else
11189 echo EXPORTS > $output_objdir/$soname.def;
11190 cat $export_symbols >> $output_objdir/$soname.def;
11191 fi~
11192 $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'
11193 else
11194 ld_shlibs_CXX=no
11195 fi
11196 ;;
11197 darwin* | rhapsody*)
11198 case $host_os in
11199 rhapsody* | darwin1.[012])
11200 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11201 ;;
11202 *) # Darwin 1.3 on
11203 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11204 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11205 else
11206 case ${MACOSX_DEPLOYMENT_TARGET} in
11207 10.[012])
11208 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11209 ;;
11210 10.*)
11211 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11212 ;;
11213 esac
11214 fi
11215 ;;
11216 esac
11217 archive_cmds_need_lc_CXX=no
11218 hardcode_direct_CXX=no
11219 hardcode_automatic_CXX=yes
11220 hardcode_shlibpath_var_CXX=unsupported
11221 whole_archive_flag_spec_CXX=''
11222 link_all_deplibs_CXX=yes
11223  
11224 if test "$GXX" = yes ; then
11225 lt_int_apple_cc_single_mod=no
11226 output_verbose_link_cmd='echo'
11227 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11228 lt_int_apple_cc_single_mod=yes
11229 fi
11230 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11231 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11232 else
11233 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'
11234 fi
11235 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11236 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11237 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11238 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11239 else
11240 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11241 fi
11242 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}'
11243 else
11244 case $cc_basename in
11245 xlc*)
11246 output_verbose_link_cmd='echo'
11247 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'
11248 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11249 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11250 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}'
11251 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}'
11252 ;;
11253 *)
11254 ld_shlibs_CXX=no
11255 ;;
11256 esac
11257 fi
11258 ;;
11259  
11260 dgux*)
11261 case $cc_basename in
11262 ec++*)
11263 # FIXME: insert proper C++ library support
11264 ld_shlibs_CXX=no
11265 ;;
11266 ghcx*)
11267 # Green Hills C++ Compiler
11268 # FIXME: insert proper C++ library support
11269 ld_shlibs_CXX=no
11270 ;;
11271 *)
11272 # FIXME: insert proper C++ library support
11273 ld_shlibs_CXX=no
11274 ;;
11275 esac
11276 ;;
11277 freebsd[12]*)
11278 # C++ shared libraries reported to be fairly broken before switch to ELF
11279 ld_shlibs_CXX=no
11280 ;;
11281 freebsd-elf*)
11282 archive_cmds_need_lc_CXX=no
11283 ;;
11284 freebsd* | dragonfly*)
11285 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11286 # conventions
11287 ld_shlibs_CXX=yes
11288 ;;
11289 gnu*)
11290 ;;
11291 hpux9*)
11292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11293 hardcode_libdir_separator_CXX=:
11294 export_dynamic_flag_spec_CXX='${wl}-E'
11295 hardcode_direct_CXX=yes
11296 hardcode_minus_L_CXX=yes # Not in the search PATH,
11297 # but as the default
11298 # location of the library.
11299  
11300 case $cc_basename in
11301 CC*)
11302 # FIXME: insert proper C++ library support
11303 ld_shlibs_CXX=no
11304 ;;
11305 aCC*)
11306 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'
11307 # Commands to make compiler produce verbose output that lists
11308 # what "hidden" libraries, object files and flags are used when
11309 # linking a shared library.
11310 #
11311 # There doesn't appear to be a way to prevent this compiler from
11312 # explicitly linking system object files so we need to strip them
11313 # from the output so that they don't get included in the library
11314 # dependencies.
11315 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'
11316 ;;
11317 *)
11318 if test "$GXX" = yes; then
11319 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'
11320 else
11321 # FIXME: insert proper C++ library support
11322 ld_shlibs_CXX=no
11323 fi
11324 ;;
11325 esac
11326 ;;
11327 hpux10*|hpux11*)
11328 if test $with_gnu_ld = no; then
11329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11330 hardcode_libdir_separator_CXX=:
11331  
11332 case $host_cpu in
11333 hppa*64*|ia64*) ;;
11334 *)
11335 export_dynamic_flag_spec_CXX='${wl}-E'
11336 ;;
11337 esac
11338 fi
11339 case $host_cpu in
11340 hppa*64*|ia64*)
11341 hardcode_direct_CXX=no
11342 hardcode_shlibpath_var_CXX=no
11343 ;;
11344 *)
11345 hardcode_direct_CXX=yes
11346 hardcode_minus_L_CXX=yes # Not in the search PATH,
11347 # but as the default
11348 # location of the library.
11349 ;;
11350 esac
11351  
11352 case $cc_basename in
11353 CC*)
11354 # FIXME: insert proper C++ library support
11355 ld_shlibs_CXX=no
11356 ;;
11357 aCC*)
11358 case $host_cpu in
11359 hppa*64*)
11360 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11361 ;;
11362 ia64*)
11363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11364 ;;
11365 *)
11366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11367 ;;
11368 esac
11369 # Commands to make compiler produce verbose output that lists
11370 # what "hidden" libraries, object files and flags are used when
11371 # linking a shared library.
11372 #
11373 # There doesn't appear to be a way to prevent this compiler from
11374 # explicitly linking system object files so we need to strip them
11375 # from the output so that they don't get included in the library
11376 # dependencies.
11377 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'
11378 ;;
11379 *)
11380 if test "$GXX" = yes; then
11381 if test $with_gnu_ld = no; then
11382 case $host_cpu in
11383 hppa*64*)
11384 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11385 ;;
11386 ia64*)
11387 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11388 ;;
11389 *)
11390 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'
11391 ;;
11392 esac
11393 fi
11394 else
11395 # FIXME: insert proper C++ library support
11396 ld_shlibs_CXX=no
11397 fi
11398 ;;
11399 esac
11400 ;;
11401 interix[3-9]*)
11402 hardcode_direct_CXX=no
11403 hardcode_shlibpath_var_CXX=no
11404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11405 export_dynamic_flag_spec_CXX='${wl}-E'
11406 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11407 # Instead, shared libraries are loaded at an image base (0x10000000 by
11408 # default) and relocated if they conflict, which is a slow very memory
11409 # consuming and fragmenting process. To avoid this, we pick a random,
11410 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11411 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11412 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'
11413 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'
11414 ;;
11415 irix5* | irix6*)
11416 case $cc_basename in
11417 CC*)
11418 # SGI C++
11419 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'
11420  
11421 # Archives containing C++ object files must be created using
11422 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11423 # necessary to make sure instantiated templates are included
11424 # in the archive.
11425 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11426 ;;
11427 *)
11428 if test "$GXX" = yes; then
11429 if test "$with_gnu_ld" = no; then
11430 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'
11431 else
11432 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'
11433 fi
11434 fi
11435 link_all_deplibs_CXX=yes
11436 ;;
11437 esac
11438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11439 hardcode_libdir_separator_CXX=:
11440 ;;
11441 linux* | k*bsd*-gnu)
11442 case $cc_basename in
11443 KCC*)
11444 # Kuck and Associates, Inc. (KAI) C++ Compiler
11445  
11446 # KCC will only create a shared library if the output file
11447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11448 # to its proper name (with version) after linking.
11449 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'
11450 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'
11451 # Commands to make compiler produce verbose output that lists
11452 # what "hidden" libraries, object files and flags are used when
11453 # linking a shared library.
11454 #
11455 # There doesn't appear to be a way to prevent this compiler from
11456 # explicitly linking system object files so we need to strip them
11457 # from the output so that they don't get included in the library
11458 # dependencies.
11459 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'
11460  
11461 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11463  
11464 # Archives containing C++ object files must be created using
11465 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11466 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11467 ;;
11468 icpc*)
11469 # Intel C++
11470 with_gnu_ld=yes
11471 # version 8.0 and above of icpc choke on multiply defined symbols
11472 # if we add $predep_objects and $postdep_objects, however 7.1 and
11473 # earlier do not add the objects themselves.
11474 case `$CC -V 2>&1` in
11475 *"Version 7."*)
11476 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477 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'
11478 ;;
11479 *) # Version 8.0 or newer
11480 tmp_idyn=
11481 case $host_cpu in
11482 ia64*) tmp_idyn=' -i_dynamic';;
11483 esac
11484 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11485 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'
11486 ;;
11487 esac
11488 archive_cmds_need_lc_CXX=no
11489 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11491 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11492 ;;
11493 pgCC*)
11494 # Portland Group C++ compiler
11495 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11496 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'
11497  
11498 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11500 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'
11501 ;;
11502 cxx*)
11503 # Compaq C++
11504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505 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'
11506  
11507 runpath_var=LD_RUN_PATH
11508 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11509 hardcode_libdir_separator_CXX=:
11510  
11511 # Commands to make compiler produce verbose output that lists
11512 # what "hidden" libraries, object files and flags are used when
11513 # linking a shared library.
11514 #
11515 # There doesn't appear to be a way to prevent this compiler from
11516 # explicitly linking system object files so we need to strip them
11517 # from the output so that they don't get included in the library
11518 # dependencies.
11519 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'
11520 ;;
11521 *)
11522 case `$CC -V 2>&1 | sed 5q` in
11523 *Sun\ C*)
11524 # Sun C++ 5.9
11525 no_undefined_flag_CXX=' -zdefs'
11526 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11527 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'
11528 hardcode_libdir_flag_spec_CXX='-R$libdir'
11529 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'
11530  
11531 # Not sure whether something based on
11532 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11533 # would be better.
11534 output_verbose_link_cmd='echo'
11535  
11536 # Archives containing C++ object files must be created using
11537 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11538 # necessary to make sure instantiated templates are included
11539 # in the archive.
11540 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11541 ;;
11542 esac
11543 ;;
11544 esac
11545 ;;
11546 lynxos*)
11547 # FIXME: insert proper C++ library support
11548 ld_shlibs_CXX=no
11549 ;;
11550 m88k*)
11551 # FIXME: insert proper C++ library support
11552 ld_shlibs_CXX=no
11553 ;;
11554 mvs*)
11555 case $cc_basename in
11556 cxx*)
11557 # FIXME: insert proper C++ library support
11558 ld_shlibs_CXX=no
11559 ;;
11560 *)
11561 # FIXME: insert proper C++ library support
11562 ld_shlibs_CXX=no
11563 ;;
11564 esac
11565 ;;
11566 netbsd* | netbsdelf*-gnu)
11567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11569 wlarc=
11570 hardcode_libdir_flag_spec_CXX='-R$libdir'
11571 hardcode_direct_CXX=yes
11572 hardcode_shlibpath_var_CXX=no
11573 fi
11574 # Workaround some broken pre-1.5 toolchains
11575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11576 ;;
11577 openbsd2*)
11578 # C++ shared libraries are fairly broken
11579 ld_shlibs_CXX=no
11580 ;;
11581 openbsd*)
11582 if test -f /usr/libexec/ld.so; then
11583 hardcode_direct_CXX=yes
11584 hardcode_shlibpath_var_CXX=no
11585 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11586 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11588 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11589 export_dynamic_flag_spec_CXX='${wl}-E'
11590 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11591 fi
11592 output_verbose_link_cmd='echo'
11593 else
11594 ld_shlibs_CXX=no
11595 fi
11596 ;;
11597 osf3*)
11598 case $cc_basename in
11599 KCC*)
11600 # Kuck and Associates, Inc. (KAI) C++ Compiler
11601  
11602 # KCC will only create a shared library if the output file
11603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11604 # to its proper name (with version) after linking.
11605 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'
11606  
11607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11608 hardcode_libdir_separator_CXX=:
11609  
11610 # Archives containing C++ object files must be created using
11611 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11612 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11613  
11614 ;;
11615 RCC*)
11616 # Rational C++ 2.4.1
11617 # FIXME: insert proper C++ library support
11618 ld_shlibs_CXX=no
11619 ;;
11620 cxx*)
11621 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11622 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'
11623  
11624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11625 hardcode_libdir_separator_CXX=:
11626  
11627 # Commands to make compiler produce verbose output that lists
11628 # what "hidden" libraries, object files and flags are used when
11629 # linking a shared library.
11630 #
11631 # There doesn't appear to be a way to prevent this compiler from
11632 # explicitly linking system object files so we need to strip them
11633 # from the output so that they don't get included in the library
11634 # dependencies.
11635 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'
11636 ;;
11637 *)
11638 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11639 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11640 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'
11641  
11642 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11643 hardcode_libdir_separator_CXX=:
11644  
11645 # Commands to make compiler produce verbose output that lists
11646 # what "hidden" libraries, object files and flags are used when
11647 # linking a shared library.
11648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11649  
11650 else
11651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 fi
11654 ;;
11655 esac
11656 ;;
11657 osf4* | osf5*)
11658 case $cc_basename in
11659 KCC*)
11660 # Kuck and Associates, Inc. (KAI) C++ Compiler
11661  
11662 # KCC will only create a shared library if the output file
11663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11664 # to its proper name (with version) after linking.
11665 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'
11666  
11667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11668 hardcode_libdir_separator_CXX=:
11669  
11670 # Archives containing C++ object files must be created using
11671 # the KAI C++ compiler.
11672 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11673 ;;
11674 RCC*)
11675 # Rational C++ 2.4.1
11676 # FIXME: insert proper C++ library support
11677 ld_shlibs_CXX=no
11678 ;;
11679 cxx*)
11680 allow_undefined_flag_CXX=' -expect_unresolved \*'
11681 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'
11682 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11683 echo "-hidden">> $lib.exp~
11684 $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~
11685 $rm $lib.exp'
11686  
11687 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11688 hardcode_libdir_separator_CXX=:
11689  
11690 # Commands to make compiler produce verbose output that lists
11691 # what "hidden" libraries, object files and flags are used when
11692 # linking a shared library.
11693 #
11694 # There doesn't appear to be a way to prevent this compiler from
11695 # explicitly linking system object files so we need to strip them
11696 # from the output so that they don't get included in the library
11697 # dependencies.
11698 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'
11699 ;;
11700 *)
11701 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11702 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11703 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'
11704  
11705 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11706 hardcode_libdir_separator_CXX=:
11707  
11708 # Commands to make compiler produce verbose output that lists
11709 # what "hidden" libraries, object files and flags are used when
11710 # linking a shared library.
11711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11712  
11713 else
11714 # FIXME: insert proper C++ library support
11715 ld_shlibs_CXX=no
11716 fi
11717 ;;
11718 esac
11719 ;;
11720 psos*)
11721 # FIXME: insert proper C++ library support
11722 ld_shlibs_CXX=no
11723 ;;
11724 sunos4*)
11725 case $cc_basename in
11726 CC*)
11727 # Sun C++ 4.x
11728 # FIXME: insert proper C++ library support
11729 ld_shlibs_CXX=no
11730 ;;
11731 lcc*)
11732 # Lucid
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 ;;
11736 *)
11737 # FIXME: insert proper C++ library support
11738 ld_shlibs_CXX=no
11739 ;;
11740 esac
11741 ;;
11742 solaris*)
11743 case $cc_basename in
11744 CC*)
11745 # Sun C++ 4.2, 5.x and Centerline C++
11746 archive_cmds_need_lc_CXX=yes
11747 no_undefined_flag_CXX=' -zdefs'
11748 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11749 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11750 $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'
11751  
11752 hardcode_libdir_flag_spec_CXX='-R$libdir'
11753 hardcode_shlibpath_var_CXX=no
11754 case $host_os in
11755 solaris2.[0-5] | solaris2.[0-5].*) ;;
11756 *)
11757 # The compiler driver will combine and reorder linker options,
11758 # but understands `-z linker_flag'.
11759 # Supported since Solaris 2.6 (maybe 2.5.1?)
11760 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11761 ;;
11762 esac
11763 link_all_deplibs_CXX=yes
11764  
11765 output_verbose_link_cmd='echo'
11766  
11767 # Archives containing C++ object files must be created using
11768 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11769 # necessary to make sure instantiated templates are included
11770 # in the archive.
11771 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11772 ;;
11773 gcx*)
11774 # Green Hills C++ Compiler
11775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11776  
11777 # The C++ compiler must be used to create the archive.
11778 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11779 ;;
11780 *)
11781 # GNU C++ compiler with Solaris linker
11782 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11783 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11784 if $CC --version | grep -v '^2\.7' > /dev/null; then
11785 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11787 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11788  
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 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11793 else
11794 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11795 # platform.
11796 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11799  
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11803 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11804 fi
11805  
11806 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11807 case $host_os in
11808 solaris2.[0-5] | solaris2.[0-5].*) ;;
11809 *)
11810 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11811 ;;
11812 esac
11813 fi
11814 ;;
11815 esac
11816 ;;
11817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11818 no_undefined_flag_CXX='${wl}-z,text'
11819 archive_cmds_need_lc_CXX=no
11820 hardcode_shlibpath_var_CXX=no
11821 runpath_var='LD_RUN_PATH'
11822  
11823 case $cc_basename in
11824 CC*)
11825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11827 ;;
11828 *)
11829 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 ;;
11832 esac
11833 ;;
11834 sysv5* | sco3.2v5* | sco5v6*)
11835 # Note: We can NOT use -z defs as we might desire, because we do not
11836 # link with -lc, and that would cause any symbols used from libc to
11837 # always be unresolved, which means just about no library would
11838 # ever link correctly. If we're not using GNU ld we use -z text
11839 # though, which does catch some bad symbols but isn't as heavy-handed
11840 # as -z defs.
11841 # For security reasons, it is highly recommended that you always
11842 # use absolute paths for naming shared libraries, and exclude the
11843 # DT_RUNPATH tag from executables and libraries. But doing so
11844 # requires that you compile everything twice, which is a pain.
11845 # So that behaviour is only enabled if SCOABSPATH is set to a
11846 # non-empty value in the environment. Most likely only useful for
11847 # creating official distributions of packages.
11848 # This is a hack until libtool officially supports absolute path
11849 # names for shared libraries.
11850 no_undefined_flag_CXX='${wl}-z,text'
11851 allow_undefined_flag_CXX='${wl}-z,nodefs'
11852 archive_cmds_need_lc_CXX=no
11853 hardcode_shlibpath_var_CXX=no
11854 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11855 hardcode_libdir_separator_CXX=':'
11856 link_all_deplibs_CXX=yes
11857 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11858 runpath_var='LD_RUN_PATH'
11859  
11860 case $cc_basename in
11861 CC*)
11862 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11864 ;;
11865 *)
11866 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 ;;
11869 esac
11870 ;;
11871 tandem*)
11872 case $cc_basename in
11873 NCC*)
11874 # NonStop-UX NCC 3.20
11875 # FIXME: insert proper C++ library support
11876 ld_shlibs_CXX=no
11877 ;;
11878 *)
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 ;;
11882 esac
11883 ;;
11884 vxworks*)
11885 # FIXME: insert proper C++ library support
11886 ld_shlibs_CXX=no
11887 ;;
11888 *)
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892 esac
11893 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11894 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11895 test "$ld_shlibs_CXX" = no && can_build_shared=no
11896  
11897 GCC_CXX="$GXX"
11898 LD_CXX="$LD"
11899  
11900  
11901 cat > conftest.$ac_ext <<EOF
11902 class Foo
11903 {
11904 public:
11905 Foo (void) { a = 0; }
11906 private:
11907 int a;
11908 };
11909 EOF
11910  
11911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11912 (eval $ac_compile) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; then
11916 # Parse the compiler output and extract the necessary
11917 # objects, libraries and library flags.
11918  
11919 # Sentinel used to keep track of whether or not we are before
11920 # the conftest object file.
11921 pre_test_object_deps_done=no
11922  
11923 # The `*' in the case matches for architectures that use `case' in
11924 # $output_verbose_cmd can trigger glob expansion during the loop
11925 # eval without this substitution.
11926 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11927  
11928 for p in `eval $output_verbose_link_cmd`; do
11929 case $p in
11930  
11931 -L* | -R* | -l*)
11932 # Some compilers place space between "-{L,R}" and the path.
11933 # Remove the space.
11934 if test $p = "-L" \
11935 || test $p = "-R"; then
11936 prev=$p
11937 continue
11938 else
11939 prev=
11940 fi
11941  
11942 if test "$pre_test_object_deps_done" = no; then
11943 case $p in
11944 -L* | -R*)
11945 # Internal compiler library paths should come after those
11946 # provided the user. The postdeps already come after the
11947 # user supplied libs so there is no need to process them.
11948 if test -z "$compiler_lib_search_path_CXX"; then
11949 compiler_lib_search_path_CXX="${prev}${p}"
11950 else
11951 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11952 fi
11953 ;;
11954 # The "-l" case would never come before the object being
11955 # linked, so don't bother handling this case.
11956 esac
11957 else
11958 if test -z "$postdeps_CXX"; then
11959 postdeps_CXX="${prev}${p}"
11960 else
11961 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11962 fi
11963 fi
11964 ;;
11965  
11966 *.$objext)
11967 # This assumes that the test object file only shows up
11968 # once in the compiler output.
11969 if test "$p" = "conftest.$objext"; then
11970 pre_test_object_deps_done=yes
11971 continue
11972 fi
11973  
11974 if test "$pre_test_object_deps_done" = no; then
11975 if test -z "$predep_objects_CXX"; then
11976 predep_objects_CXX="$p"
11977 else
11978 predep_objects_CXX="$predep_objects_CXX $p"
11979 fi
11980 else
11981 if test -z "$postdep_objects_CXX"; then
11982 postdep_objects_CXX="$p"
11983 else
11984 postdep_objects_CXX="$postdep_objects_CXX $p"
11985 fi
11986 fi
11987 ;;
11988  
11989 *) ;; # Ignore the rest.
11990  
11991 esac
11992 done
11993  
11994 # Clean up.
11995 rm -f a.out a.exe
11996 else
11997 echo "libtool.m4: error: problem compiling CXX test program"
11998 fi
11999  
12000 $rm -f confest.$objext
12001  
12002 # PORTME: override above test on systems where it is broken
12003 case $host_os in
12004 interix[3-9]*)
12005 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12006 # hack all around it, let's just trust "g++" to DTRT.
12007 predep_objects_CXX=
12008 postdep_objects_CXX=
12009 postdeps_CXX=
12010 ;;
12011  
12012 linux*)
12013 case `$CC -V 2>&1 | sed 5q` in
12014 *Sun\ C*)
12015 # Sun C++ 5.9
12016 #
12017 # The more standards-conforming stlport4 library is
12018 # incompatible with the Cstd library. Avoid specifying
12019 # it if it's in CXXFLAGS. Ignore libCrun as
12020 # -library=stlport4 depends on it.
12021 case " $CXX $CXXFLAGS " in
12022 *" -library=stlport4 "*)
12023 solaris_use_stlport4=yes
12024 ;;
12025 esac
12026 if test "$solaris_use_stlport4" != yes; then
12027 postdeps_CXX='-library=Cstd -library=Crun'
12028 fi
12029 ;;
12030 esac
12031 ;;
12032  
12033 solaris*)
12034 case $cc_basename in
12035 CC*)
12036 # The more standards-conforming stlport4 library is
12037 # incompatible with the Cstd library. Avoid specifying
12038 # it if it's in CXXFLAGS. Ignore libCrun as
12039 # -library=stlport4 depends on it.
12040 case " $CXX $CXXFLAGS " in
12041 *" -library=stlport4 "*)
12042 solaris_use_stlport4=yes
12043 ;;
12044 esac
12045  
12046 # Adding this requires a known-good setup of shared libraries for
12047 # Sun compiler versions before 5.6, else PIC objects from an old
12048 # archive will be linked into the output, leading to subtle bugs.
12049 if test "$solaris_use_stlport4" != yes; then
12050 postdeps_CXX='-library=Cstd -library=Crun'
12051 fi
12052 ;;
12053 esac
12054 ;;
12055 esac
12056  
12057  
12058 case " $postdeps_CXX " in
12059 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12060 esac
12061  
12062 lt_prog_compiler_wl_CXX=
12063 lt_prog_compiler_pic_CXX=
12064 lt_prog_compiler_static_CXX=
12065  
12066 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12067 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12068  
12069 # C++ specific cases for pic, static, wl, etc.
12070 if test "$GXX" = yes; then
12071 lt_prog_compiler_wl_CXX='-Wl,'
12072 lt_prog_compiler_static_CXX='-static'
12073  
12074 case $host_os in
12075 aix*)
12076 # All AIX code is PIC.
12077 if test "$host_cpu" = ia64; then
12078 # AIX 5 now supports IA64 processor
12079 lt_prog_compiler_static_CXX='-Bstatic'
12080 fi
12081 ;;
12082 amigaos*)
12083 # FIXME: we need at least 68020 code to build shared libraries, but
12084 # adding the `-m68020' flag to GCC prevents building anything better,
12085 # like `-m68040'.
12086 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12087 ;;
12088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12089 # PIC is the default for these OSes.
12090 ;;
12091 mingw* | cygwin* | os2* | pw32*)
12092 # This hack is so that the source file can tell whether it is being
12093 # built for inclusion in a dll (and should export symbols for example).
12094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12095 # (--disable-auto-import) libraries
12096 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12097 ;;
12098 darwin* | rhapsody*)
12099 # PIC is the default on this platform
12100 # Common symbols not allowed in MH_DYLIB files
12101 lt_prog_compiler_pic_CXX='-fno-common'
12102 ;;
12103 *djgpp*)
12104 # DJGPP does not support shared libraries at all
12105 lt_prog_compiler_pic_CXX=
12106 ;;
12107 interix[3-9]*)
12108 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12109 # Instead, we relocate shared libraries at runtime.
12110 ;;
12111 sysv4*MP*)
12112 if test -d /usr/nec; then
12113 lt_prog_compiler_pic_CXX=-Kconform_pic
12114 fi
12115 ;;
12116 hpux*)
12117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12118 # not for PA HP-UX.
12119 case $host_cpu in
12120 hppa*64*|ia64*)
12121 ;;
12122 *)
12123 lt_prog_compiler_pic_CXX='-fPIC'
12124 ;;
12125 esac
12126 ;;
12127 *)
12128 lt_prog_compiler_pic_CXX='-fPIC'
12129 ;;
12130 esac
12131 else
12132 case $host_os in
12133 aix4* | aix5*)
12134 # All AIX code is PIC.
12135 if test "$host_cpu" = ia64; then
12136 # AIX 5 now supports IA64 processor
12137 lt_prog_compiler_static_CXX='-Bstatic'
12138 else
12139 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12140 fi
12141 ;;
12142 chorus*)
12143 case $cc_basename in
12144 cxch68*)
12145 # Green Hills C++ Compiler
12146 # _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"
12147 ;;
12148 esac
12149 ;;
12150 darwin*)
12151 # PIC is the default on this platform
12152 # Common symbols not allowed in MH_DYLIB files
12153 case $cc_basename in
12154 xlc*)
12155 lt_prog_compiler_pic_CXX='-qnocommon'
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 ;;
12158 esac
12159 ;;
12160 dgux*)
12161 case $cc_basename in
12162 ec++*)
12163 lt_prog_compiler_pic_CXX='-KPIC'
12164 ;;
12165 ghcx*)
12166 # Green Hills C++ Compiler
12167 lt_prog_compiler_pic_CXX='-pic'
12168 ;;
12169 *)
12170 ;;
12171 esac
12172 ;;
12173 freebsd* | dragonfly*)
12174 # FreeBSD uses GNU C++
12175 ;;
12176 hpux9* | hpux10* | hpux11*)
12177 case $cc_basename in
12178 CC*)
12179 lt_prog_compiler_wl_CXX='-Wl,'
12180 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12181 if test "$host_cpu" != ia64; then
12182 lt_prog_compiler_pic_CXX='+Z'
12183 fi
12184 ;;
12185 aCC*)
12186 lt_prog_compiler_wl_CXX='-Wl,'
12187 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12188 case $host_cpu in
12189 hppa*64*|ia64*)
12190 # +Z the default
12191 ;;
12192 *)
12193 lt_prog_compiler_pic_CXX='+Z'
12194 ;;
12195 esac
12196 ;;
12197 *)
12198 ;;
12199 esac
12200 ;;
12201 interix*)
12202 # This is c89, which is MS Visual C++ (no shared libs)
12203 # Anyone wants to do a port?
12204 ;;
12205 irix5* | irix6* | nonstopux*)
12206 case $cc_basename in
12207 CC*)
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 lt_prog_compiler_static_CXX='-non_shared'
12210 # CC pic flag -KPIC is the default.
12211 ;;
12212 *)
12213 ;;
12214 esac
12215 ;;
12216 linux* | k*bsd*-gnu)
12217 case $cc_basename in
12218 KCC*)
12219 # KAI C++ Compiler
12220 lt_prog_compiler_wl_CXX='--backend -Wl,'
12221 lt_prog_compiler_pic_CXX='-fPIC'
12222 ;;
12223 icpc* | ecpc*)
12224 # Intel C++
12225 lt_prog_compiler_wl_CXX='-Wl,'
12226 lt_prog_compiler_pic_CXX='-KPIC'
12227 lt_prog_compiler_static_CXX='-static'
12228 ;;
12229 pgCC*)
12230 # Portland Group C++ compiler.
12231 lt_prog_compiler_wl_CXX='-Wl,'
12232 lt_prog_compiler_pic_CXX='-fpic'
12233 lt_prog_compiler_static_CXX='-Bstatic'
12234 ;;
12235 cxx*)
12236 # Compaq C++
12237 # Make sure the PIC flag is empty. It appears that all Alpha
12238 # Linux and Compaq Tru64 Unix objects are PIC.
12239 lt_prog_compiler_pic_CXX=
12240 lt_prog_compiler_static_CXX='-non_shared'
12241 ;;
12242 *)
12243 case `$CC -V 2>&1 | sed 5q` in
12244 *Sun\ C*)
12245 # Sun C++ 5.9
12246 lt_prog_compiler_pic_CXX='-KPIC'
12247 lt_prog_compiler_static_CXX='-Bstatic'
12248 lt_prog_compiler_wl_CXX='-Qoption ld '
12249 ;;
12250 esac
12251 ;;
12252 esac
12253 ;;
12254 lynxos*)
12255 ;;
12256 m88k*)
12257 ;;
12258 mvs*)
12259 case $cc_basename in
12260 cxx*)
12261 lt_prog_compiler_pic_CXX='-W c,exportall'
12262 ;;
12263 *)
12264 ;;
12265 esac
12266 ;;
12267 netbsd* | netbsdelf*-gnu)
12268 ;;
12269 osf3* | osf4* | osf5*)
12270 case $cc_basename in
12271 KCC*)
12272 lt_prog_compiler_wl_CXX='--backend -Wl,'
12273 ;;
12274 RCC*)
12275 # Rational C++ 2.4.1
12276 lt_prog_compiler_pic_CXX='-pic'
12277 ;;
12278 cxx*)
12279 # Digital/Compaq C++
12280 lt_prog_compiler_wl_CXX='-Wl,'
12281 # Make sure the PIC flag is empty. It appears that all Alpha
12282 # Linux and Compaq Tru64 Unix objects are PIC.
12283 lt_prog_compiler_pic_CXX=
12284 lt_prog_compiler_static_CXX='-non_shared'
12285 ;;
12286 *)
12287 ;;
12288 esac
12289 ;;
12290 psos*)
12291 ;;
12292 solaris*)
12293 case $cc_basename in
12294 CC*)
12295 # Sun C++ 4.2, 5.x and Centerline C++
12296 lt_prog_compiler_pic_CXX='-KPIC'
12297 lt_prog_compiler_static_CXX='-Bstatic'
12298 lt_prog_compiler_wl_CXX='-Qoption ld '
12299 ;;
12300 gcx*)
12301 # Green Hills C++ Compiler
12302 lt_prog_compiler_pic_CXX='-PIC'
12303 ;;
12304 *)
12305 ;;
12306 esac
12307 ;;
12308 sunos4*)
12309 case $cc_basename in
12310 CC*)
12311 # Sun C++ 4.x
12312 lt_prog_compiler_pic_CXX='-pic'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12314 ;;
12315 lcc*)
12316 # Lucid
12317 lt_prog_compiler_pic_CXX='-pic'
12318 ;;
12319 *)
12320 ;;
12321 esac
12322 ;;
12323 tandem*)
12324 case $cc_basename in
12325 NCC*)
12326 # NonStop-UX NCC 3.20
12327 lt_prog_compiler_pic_CXX='-KPIC'
12328 ;;
12329 *)
12330 ;;
12331 esac
12332 ;;
12333 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12334 case $cc_basename in
12335 CC*)
12336 lt_prog_compiler_wl_CXX='-Wl,'
12337 lt_prog_compiler_pic_CXX='-KPIC'
12338 lt_prog_compiler_static_CXX='-Bstatic'
12339 ;;
12340 esac
12341 ;;
12342 vxworks*)
12343 ;;
12344 *)
12345 lt_prog_compiler_can_build_shared_CXX=no
12346 ;;
12347 esac
12348 fi
12349  
12350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12351 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12352  
12353 #
12354 # Check to make sure the PIC flag actually works.
12355 #
12356 if test -n "$lt_prog_compiler_pic_CXX"; then
12357  
12358 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12359 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12360 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363 lt_prog_compiler_pic_works_CXX=no
12364 ac_outfile=conftest.$ac_objext
12365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12366 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12367 # Insert the option either (1) after the last *FLAGS variable, or
12368 # (2) before a word containing "conftest.", or (3) at the end.
12369 # Note that $ac_compile itself does not contain backslashes and begins
12370 # with a dollar sign (not a hyphen), so the echo should work correctly.
12371 # The option is referenced via a variable to avoid confusing sed.
12372 lt_compile=`echo "$ac_compile" | $SED \
12373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12375 -e 's:$: $lt_compiler_flag:'`
12376 (eval echo "\"\$as_me:12376: $lt_compile\"" >&5)
12377 (eval "$lt_compile" 2>conftest.err)
12378 ac_status=$?
12379 cat conftest.err >&5
12380 echo "$as_me:12380: \$? = $ac_status" >&5
12381 if (exit $ac_status) && test -s "$ac_outfile"; then
12382 # The compiler can only warn and ignore the option if not recognized
12383 # So say no if there are warnings other than the usual output.
12384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12387 lt_prog_compiler_pic_works_CXX=yes
12388 fi
12389 fi
12390 $rm conftest*
12391  
12392 fi
12393 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12394 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12395  
12396 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12397 case $lt_prog_compiler_pic_CXX in
12398 "" | " "*) ;;
12399 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12400 esac
12401 else
12402 lt_prog_compiler_pic_CXX=
12403 lt_prog_compiler_can_build_shared_CXX=no
12404 fi
12405  
12406 fi
12407 case $host_os in
12408 # For platforms which do not support PIC, -DPIC is meaningless:
12409 *djgpp*)
12410 lt_prog_compiler_pic_CXX=
12411 ;;
12412 *)
12413 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12414 ;;
12415 esac
12416  
12417 #
12418 # Check to make sure the static flag actually works.
12419 #
12420 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12421 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12422 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12423 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 lt_prog_compiler_static_works_CXX=no
12427 save_LDFLAGS="$LDFLAGS"
12428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12431 # The linker can only warn and ignore the option if not recognized
12432 # So say no if there are warnings
12433 if test -s conftest.err; then
12434 # Append any errors to the config.log.
12435 cat conftest.err 1>&5
12436 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12438 if diff conftest.exp conftest.er2 >/dev/null; then
12439 lt_prog_compiler_static_works_CXX=yes
12440 fi
12441 else
12442 lt_prog_compiler_static_works_CXX=yes
12443 fi
12444 fi
12445 $rm conftest*
12446 LDFLAGS="$save_LDFLAGS"
12447  
12448 fi
12449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12450 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12451  
12452 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12453 :
12454 else
12455 lt_prog_compiler_static_CXX=
12456 fi
12457  
12458  
12459 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12460 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12461 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 lt_cv_prog_compiler_c_o_CXX=no
12465 $rm -r conftest 2>/dev/null
12466 mkdir conftest
12467 cd conftest
12468 mkdir out
12469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12470  
12471 lt_compiler_flag="-o out/conftest2.$ac_objext"
12472 # Insert the option either (1) after the last *FLAGS variable, or
12473 # (2) before a word containing "conftest.", or (3) at the end.
12474 # Note that $ac_compile itself does not contain backslashes and begins
12475 # with a dollar sign (not a hyphen), so the echo should work correctly.
12476 lt_compile=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
12480 (eval echo "\"\$as_me:12480: $lt_compile\"" >&5)
12481 (eval "$lt_compile" 2>out/conftest.err)
12482 ac_status=$?
12483 cat out/conftest.err >&5
12484 echo "$as_me:12484: \$? = $ac_status" >&5
12485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12486 then
12487 # The compiler can only warn and ignore the option if not recognized
12488 # So say no if there are warnings
12489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12492 lt_cv_prog_compiler_c_o_CXX=yes
12493 fi
12494 fi
12495 chmod u+w . 2>&5
12496 $rm conftest*
12497 # SGI C++ compiler will create directory out/ii_files/ for
12498 # template instantiation
12499 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12500 $rm out/* && rmdir out
12501 cd ..
12502 rmdir conftest
12503 $rm conftest*
12504  
12505 fi
12506 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12507 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12508  
12509  
12510 hard_links="nottested"
12511 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12512 # do not overwrite the value of need_locks provided by the user
12513 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12514 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12515 hard_links=yes
12516 $rm conftest*
12517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12518 touch conftest.a
12519 ln conftest.a conftest.b 2>&5 || hard_links=no
12520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12521 { echo "$as_me:$LINENO: result: $hard_links" >&5
12522 echo "${ECHO_T}$hard_links" >&6; }
12523 if test "$hard_links" = no; then
12524 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12525 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12526 need_locks=warn
12527 fi
12528 else
12529 need_locks=no
12530 fi
12531  
12532 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12534  
12535 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12536 case $host_os in
12537 aix4* | aix5*)
12538 # If we're using GNU nm, then we don't want the "-C" option.
12539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12540 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12541 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'
12542 else
12543 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'
12544 fi
12545 ;;
12546 pw32*)
12547 export_symbols_cmds_CXX="$ltdll_cmds"
12548 ;;
12549 cygwin* | mingw*)
12550 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'
12551 ;;
12552 linux* | k*bsd*-gnu)
12553 link_all_deplibs_CXX=no
12554 ;;
12555 *)
12556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12557 ;;
12558 esac
12559  
12560 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12561 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12562 test "$ld_shlibs_CXX" = no && can_build_shared=no
12563  
12564 #
12565 # Do we need to explicitly link libc?
12566 #
12567 case "x$archive_cmds_need_lc_CXX" in
12568 x|xyes)
12569 # Assume -lc should be added
12570 archive_cmds_need_lc_CXX=yes
12571  
12572 if test "$enable_shared" = yes && test "$GCC" = yes; then
12573 case $archive_cmds_CXX in
12574 *'~'*)
12575 # FIXME: we may have to deal with multi-command sequences.
12576 ;;
12577 '$CC '*)
12578 # Test whether the compiler implicitly links with -lc since on some
12579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12580 # to ld, don't add -lc before -lgcc.
12581 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12583 $rm conftest*
12584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12585  
12586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12587 (eval $ac_compile) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } 2>conftest.err; then
12591 soname=conftest
12592 lib=conftest
12593 libobjs=conftest.$ac_objext
12594 deplibs=
12595 wl=$lt_prog_compiler_wl_CXX
12596 pic_flag=$lt_prog_compiler_pic_CXX
12597 compiler_flags=-v
12598 linker_flags=-v
12599 verstring=
12600 output_objdir=.
12601 libname=conftest
12602 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12603 allow_undefined_flag_CXX=
12604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12605 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }
12609 then
12610 archive_cmds_need_lc_CXX=no
12611 else
12612 archive_cmds_need_lc_CXX=yes
12613 fi
12614 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12615 else
12616 cat conftest.err 1>&5
12617 fi
12618 $rm conftest*
12619 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12620 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12621 ;;
12622 esac
12623 fi
12624 ;;
12625 esac
12626  
12627 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12628 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12629 library_names_spec=
12630 libname_spec='lib$name'
12631 soname_spec=
12632 shrext_cmds=".so"
12633 postinstall_cmds=
12634 postuninstall_cmds=
12635 finish_cmds=
12636 finish_eval=
12637 shlibpath_var=
12638 shlibpath_overrides_runpath=unknown
12639 version_type=none
12640 dynamic_linker="$host_os ld.so"
12641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12642  
12643 need_lib_prefix=unknown
12644 hardcode_into_libs=no
12645  
12646 # when you set need_version to no, make sure it does not cause -set_version
12647 # flags to be left without arguments
12648 need_version=unknown
12649  
12650 case $host_os in
12651 aix3*)
12652 version_type=linux
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12654 shlibpath_var=LIBPATH
12655  
12656 # AIX 3 has no versioning support, so we append a major version to the name.
12657 soname_spec='${libname}${release}${shared_ext}$major'
12658 ;;
12659  
12660 aix4* | aix5*)
12661 version_type=linux
12662 need_lib_prefix=no
12663 need_version=no
12664 hardcode_into_libs=yes
12665 if test "$host_cpu" = ia64; then
12666 # AIX 5 supports IA64
12667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 else
12670 # With GCC up to 2.95.x, collect2 would create an import file
12671 # for dependence libraries. The import file would start with
12672 # the line `#! .'. This would cause the generated library to
12673 # depend on `.', always an invalid library. This was fixed in
12674 # development snapshots of GCC prior to 3.0.
12675 case $host_os in
12676 aix4 | aix4.[01] | aix4.[01].*)
12677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12678 echo ' yes '
12679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12680 :
12681 else
12682 can_build_shared=no
12683 fi
12684 ;;
12685 esac
12686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12687 # soname into executable. Probably we can add versioning support to
12688 # collect2, so additional links can be useful in future.
12689 if test "$aix_use_runtimelinking" = yes; then
12690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12691 # instead of lib<name>.a to let people know that these are not
12692 # typical AIX shared libraries.
12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12694 else
12695 # We preserve .a as extension for shared libraries through AIX4.2
12696 # and later when we are not doing run time linking.
12697 library_names_spec='${libname}${release}.a $libname.a'
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 fi
12700 shlibpath_var=LIBPATH
12701 fi
12702 ;;
12703  
12704 amigaos*)
12705 library_names_spec='$libname.ixlibrary $libname.a'
12706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12707 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'
12708 ;;
12709  
12710 beos*)
12711 library_names_spec='${libname}${shared_ext}'
12712 dynamic_linker="$host_os ld.so"
12713 shlibpath_var=LIBRARY_PATH
12714 ;;
12715  
12716 bsdi[45]*)
12717 version_type=linux
12718 need_version=no
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12725 # the default ld.so.conf also contains /usr/contrib/lib and
12726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12727 # libtool to hard-code these into programs
12728 ;;
12729  
12730 cygwin* | mingw* | pw32*)
12731 version_type=windows
12732 shrext_cmds=".dll"
12733 need_version=no
12734 need_lib_prefix=no
12735  
12736 case $GCC,$host_os in
12737 yes,cygwin* | yes,mingw* | yes,pw32*)
12738 library_names_spec='$libname.dll.a'
12739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12740 postinstall_cmds='base_file=`basename \${file}`~
12741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12742 dldir=$destdir/`dirname \$dlpath`~
12743 test -d \$dldir || mkdir -p \$dldir~
12744 $install_prog $dir/$dlname \$dldir/$dlname~
12745 chmod a+x \$dldir/$dlname'
12746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12747 dlpath=$dir/\$dldll~
12748 $rm \$dlpath'
12749 shlibpath_overrides_runpath=yes
12750  
12751 case $host_os in
12752 cygwin*)
12753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12756 ;;
12757 mingw*)
12758 # MinGW DLLs use traditional 'lib' prefix
12759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12762 # It is most probably a Windows format PATH printed by
12763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12764 # path with ; separators, and with drive letters. We can handle the
12765 # drive letters (cygwin fileutils understands them), so leave them,
12766 # especially as we might pass files found there to a mingw objdump,
12767 # which wouldn't understand a cygwinified path. Ahh.
12768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12769 else
12770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12771 fi
12772 ;;
12773 pw32*)
12774 # pw32 DLLs use 'pw' prefix rather than 'lib'
12775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12776 ;;
12777 esac
12778 ;;
12779  
12780 *)
12781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12782 ;;
12783 esac
12784 dynamic_linker='Win32 ld.exe'
12785 # FIXME: first we should search . and the directory the executable is in
12786 shlibpath_var=PATH
12787 ;;
12788  
12789 darwin* | rhapsody*)
12790 dynamic_linker="$host_os dyld"
12791 version_type=darwin
12792 need_lib_prefix=no
12793 need_version=no
12794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12795 soname_spec='${libname}${release}${major}$shared_ext'
12796 shlibpath_overrides_runpath=yes
12797 shlibpath_var=DYLD_LIBRARY_PATH
12798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12799  
12800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12801 ;;
12802  
12803 dgux*)
12804 version_type=linux
12805 need_lib_prefix=no
12806 need_version=no
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 ;;
12811  
12812 freebsd1*)
12813 dynamic_linker=no
12814 ;;
12815  
12816 freebsd* | dragonfly*)
12817 # DragonFly does not have aout. When/if they implement a new
12818 # versioning mechanism, adjust this.
12819 if test -x /usr/bin/objformat; then
12820 objformat=`/usr/bin/objformat`
12821 else
12822 case $host_os in
12823 freebsd[123]*) objformat=aout ;;
12824 *) objformat=elf ;;
12825 esac
12826 fi
12827 version_type=freebsd-$objformat
12828 case $version_type in
12829 freebsd-elf*)
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12831 need_version=no
12832 need_lib_prefix=no
12833 ;;
12834 freebsd-*)
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12836 need_version=yes
12837 ;;
12838 esac
12839 shlibpath_var=LD_LIBRARY_PATH
12840 case $host_os in
12841 freebsd2*)
12842 shlibpath_overrides_runpath=yes
12843 ;;
12844 freebsd3.[01]* | freebsdelf3.[01]*)
12845 shlibpath_overrides_runpath=yes
12846 hardcode_into_libs=yes
12847 ;;
12848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12850 shlibpath_overrides_runpath=no
12851 hardcode_into_libs=yes
12852 ;;
12853 *) # from 4.6 on, and DragonFly
12854 shlibpath_overrides_runpath=yes
12855 hardcode_into_libs=yes
12856 ;;
12857 esac
12858 ;;
12859  
12860 gnu*)
12861 version_type=linux
12862 need_lib_prefix=no
12863 need_version=no
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12865 soname_spec='${libname}${release}${shared_ext}$major'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 hardcode_into_libs=yes
12868 ;;
12869  
12870 hpux9* | hpux10* | hpux11*)
12871 # Give a soname corresponding to the major version so that dld.sl refuses to
12872 # link against other versions.
12873 version_type=sunos
12874 need_lib_prefix=no
12875 need_version=no
12876 case $host_cpu in
12877 ia64*)
12878 shrext_cmds='.so'
12879 hardcode_into_libs=yes
12880 dynamic_linker="$host_os dld.so"
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 if test "X$HPUX_IA64_MODE" = X32; then
12886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12887 else
12888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12889 fi
12890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12891 ;;
12892 hppa*64*)
12893 shrext_cmds='.sl'
12894 hardcode_into_libs=yes
12895 dynamic_linker="$host_os dld.sl"
12896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 soname_spec='${libname}${release}${shared_ext}$major'
12900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12902 ;;
12903 *)
12904 shrext_cmds='.sl'
12905 dynamic_linker="$host_os dld.sl"
12906 shlibpath_var=SHLIB_PATH
12907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 ;;
12911 esac
12912 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12913 postinstall_cmds='chmod 555 $lib'
12914 ;;
12915  
12916 interix[3-9]*)
12917 version_type=linux
12918 need_lib_prefix=no
12919 need_version=no
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12921 soname_spec='${libname}${release}${shared_ext}$major'
12922 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12923 shlibpath_var=LD_LIBRARY_PATH
12924 shlibpath_overrides_runpath=no
12925 hardcode_into_libs=yes
12926 ;;
12927  
12928 irix5* | irix6* | nonstopux*)
12929 case $host_os in
12930 nonstopux*) version_type=nonstopux ;;
12931 *)
12932 if test "$lt_cv_prog_gnu_ld" = yes; then
12933 version_type=linux
12934 else
12935 version_type=irix
12936 fi ;;
12937 esac
12938 need_lib_prefix=no
12939 need_version=no
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12942 case $host_os in
12943 irix5* | nonstopux*)
12944 libsuff= shlibsuff=
12945 ;;
12946 *)
12947 case $LD in # libtool.m4 will add one of these switches to LD
12948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12949 libsuff= shlibsuff= libmagic=32-bit;;
12950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12951 libsuff=32 shlibsuff=N32 libmagic=N32;;
12952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12954 *) libsuff= shlibsuff= libmagic=never-match;;
12955 esac
12956 ;;
12957 esac
12958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12959 shlibpath_overrides_runpath=no
12960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12962 hardcode_into_libs=yes
12963 ;;
12964  
12965 # No shared lib support for Linux oldld, aout, or coff.
12966 linux*oldld* | linux*aout* | linux*coff*)
12967 dynamic_linker=no
12968 ;;
12969  
12970 # This must be Linux ELF.
12971 linux* | k*bsd*-gnu)
12972 version_type=linux
12973 need_lib_prefix=no
12974 need_version=no
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=no
12980 # This implies no fast_install, which is unacceptable.
12981 # Some rework will be needed to allow for fast_install
12982 # before this can be enabled.
12983 hardcode_into_libs=yes
12984  
12985 # Append ld.so.conf contents to the search path
12986 if test -f /etc/ld.so.conf; then
12987 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' ' '`
12988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12989 fi
12990  
12991 # We used to test for /lib/ld.so.1 and disable shared libraries on
12992 # powerpc, because MkLinux only supported shared libraries with the
12993 # GNU dynamic linker. Since this was broken with cross compilers,
12994 # most powerpc-linux boxes support dynamic linking these days and
12995 # people can always --disable-shared, the test was removed, and we
12996 # assume the GNU/Linux dynamic linker is in use.
12997 dynamic_linker='GNU/Linux ld.so'
12998 ;;
12999  
13000 netbsdelf*-gnu)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=no
13008 hardcode_into_libs=yes
13009 dynamic_linker='NetBSD ld.elf_so'
13010 ;;
13011  
13012 netbsd*)
13013 version_type=sunos
13014 need_lib_prefix=no
13015 need_version=no
13016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13019 dynamic_linker='NetBSD (a.out) ld.so'
13020 else
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 dynamic_linker='NetBSD ld.elf_so'
13024 fi
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13028 ;;
13029  
13030 newsos6)
13031 version_type=linux
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13035 ;;
13036  
13037 nto-qnx*)
13038 version_type=linux
13039 need_lib_prefix=no
13040 need_version=no
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 shlibpath_overrides_runpath=yes
13045 ;;
13046  
13047 openbsd*)
13048 version_type=sunos
13049 sys_lib_dlsearch_path_spec="/usr/lib"
13050 need_lib_prefix=no
13051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13052 case $host_os in
13053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13054 *) need_version=no ;;
13055 esac
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13060 case $host_os in
13061 openbsd2.[89] | openbsd2.[89].*)
13062 shlibpath_overrides_runpath=no
13063 ;;
13064 *)
13065 shlibpath_overrides_runpath=yes
13066 ;;
13067 esac
13068 else
13069 shlibpath_overrides_runpath=yes
13070 fi
13071 ;;
13072  
13073 os2*)
13074 libname_spec='$name'
13075 shrext_cmds=".dll"
13076 need_lib_prefix=no
13077 library_names_spec='$libname${shared_ext} $libname.a'
13078 dynamic_linker='OS/2 ld.exe'
13079 shlibpath_var=LIBPATH
13080 ;;
13081  
13082 osf3* | osf4* | osf5*)
13083 version_type=osf
13084 need_lib_prefix=no
13085 need_version=no
13086 soname_spec='${libname}${release}${shared_ext}$major'
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 shlibpath_var=LD_LIBRARY_PATH
13089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13091 ;;
13092  
13093 rdos*)
13094 dynamic_linker=no
13095 ;;
13096  
13097 solaris*)
13098 version_type=linux
13099 need_lib_prefix=no
13100 need_version=no
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 shlibpath_overrides_runpath=yes
13105 hardcode_into_libs=yes
13106 # ldd complains unless libraries are executable
13107 postinstall_cmds='chmod +x $lib'
13108 ;;
13109  
13110 sunos4*)
13111 version_type=sunos
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 shlibpath_overrides_runpath=yes
13116 if test "$with_gnu_ld" = yes; then
13117 need_lib_prefix=no
13118 fi
13119 need_version=yes
13120 ;;
13121  
13122 sysv4 | sysv4.3*)
13123 version_type=linux
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 case $host_vendor in
13128 sni)
13129 shlibpath_overrides_runpath=no
13130 need_lib_prefix=no
13131 export_dynamic_flag_spec='${wl}-Blargedynsym'
13132 runpath_var=LD_RUN_PATH
13133 ;;
13134 siemens)
13135 need_lib_prefix=no
13136 ;;
13137 motorola)
13138 need_lib_prefix=no
13139 need_version=no
13140 shlibpath_overrides_runpath=no
13141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13142 ;;
13143 esac
13144 ;;
13145  
13146 sysv4*MP*)
13147 if test -d /usr/nec ;then
13148 version_type=linux
13149 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13150 soname_spec='$libname${shared_ext}.$major'
13151 shlibpath_var=LD_LIBRARY_PATH
13152 fi
13153 ;;
13154  
13155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13156 version_type=freebsd-elf
13157 need_lib_prefix=no
13158 need_version=no
13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13160 soname_spec='${libname}${release}${shared_ext}$major'
13161 shlibpath_var=LD_LIBRARY_PATH
13162 hardcode_into_libs=yes
13163 if test "$with_gnu_ld" = yes; then
13164 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13165 shlibpath_overrides_runpath=no
13166 else
13167 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13168 shlibpath_overrides_runpath=yes
13169 case $host_os in
13170 sco3.2v5*)
13171 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13172 ;;
13173 esac
13174 fi
13175 sys_lib_dlsearch_path_spec='/usr/lib'
13176 ;;
13177  
13178 uts4*)
13179 version_type=linux
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 ;;
13184  
13185 *)
13186 dynamic_linker=no
13187 ;;
13188 esac
13189 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13190 echo "${ECHO_T}$dynamic_linker" >&6; }
13191 test "$dynamic_linker" = no && can_build_shared=no
13192  
13193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13194 if test "$GCC" = yes; then
13195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13196 fi
13197  
13198 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13199 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13200 hardcode_action_CXX=
13201 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13202 test -n "$runpath_var_CXX" || \
13203 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13204  
13205 # We can hardcode non-existant directories.
13206 if test "$hardcode_direct_CXX" != no &&
13207 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13208 # have to relink, otherwise we might link with an installed library
13209 # when we should be linking with a yet-to-be-installed one
13210 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13211 test "$hardcode_minus_L_CXX" != no; then
13212 # Linking always hardcodes the temporary library directory.
13213 hardcode_action_CXX=relink
13214 else
13215 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13216 hardcode_action_CXX=immediate
13217 fi
13218 else
13219 # We cannot hardcode anything, or else we can only hardcode existing
13220 # directories.
13221 hardcode_action_CXX=unsupported
13222 fi
13223 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13224 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13225  
13226 if test "$hardcode_action_CXX" = relink; then
13227 # Fast installation is not supported
13228 enable_fast_install=no
13229 elif test "$shlibpath_overrides_runpath" = yes ||
13230 test "$enable_shared" = no; then
13231 # Fast installation is not necessary
13232 enable_fast_install=needless
13233 fi
13234  
13235  
13236 # The else clause should only fire when bootstrapping the
13237 # libtool distribution, otherwise you forgot to ship ltmain.sh
13238 # with your package, and you will get complaints that there are
13239 # no rules to generate ltmain.sh.
13240 if test -f "$ltmain"; then
13241 # See if we are running on zsh, and set the options which allow our commands through
13242 # without removal of \ escapes.
13243 if test -n "${ZSH_VERSION+set}" ; then
13244 setopt NO_GLOB_SUBST
13245 fi
13246 # Now quote all the things that may contain metacharacters while being
13247 # careful not to overquote the AC_SUBSTed values. We take copies of the
13248 # variables and quote the copies for generation of the libtool script.
13249 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13250 SED SHELL STRIP \
13251 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13252 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13253 deplibs_check_method reload_flag reload_cmds need_locks \
13254 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13255 lt_cv_sys_global_symbol_to_c_name_address \
13256 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13257 old_postinstall_cmds old_postuninstall_cmds \
13258 compiler_CXX \
13259 CC_CXX \
13260 LD_CXX \
13261 lt_prog_compiler_wl_CXX \
13262 lt_prog_compiler_pic_CXX \
13263 lt_prog_compiler_static_CXX \
13264 lt_prog_compiler_no_builtin_flag_CXX \
13265 export_dynamic_flag_spec_CXX \
13266 thread_safe_flag_spec_CXX \
13267 whole_archive_flag_spec_CXX \
13268 enable_shared_with_static_runtimes_CXX \
13269 old_archive_cmds_CXX \
13270 old_archive_from_new_cmds_CXX \
13271 predep_objects_CXX \
13272 postdep_objects_CXX \
13273 predeps_CXX \
13274 postdeps_CXX \
13275 compiler_lib_search_path_CXX \
13276 archive_cmds_CXX \
13277 archive_expsym_cmds_CXX \
13278 postinstall_cmds_CXX \
13279 postuninstall_cmds_CXX \
13280 old_archive_from_expsyms_cmds_CXX \
13281 allow_undefined_flag_CXX \
13282 no_undefined_flag_CXX \
13283 export_symbols_cmds_CXX \
13284 hardcode_libdir_flag_spec_CXX \
13285 hardcode_libdir_flag_spec_ld_CXX \
13286 hardcode_libdir_separator_CXX \
13287 hardcode_automatic_CXX \
13288 module_cmds_CXX \
13289 module_expsym_cmds_CXX \
13290 lt_cv_prog_compiler_c_o_CXX \
13291 fix_srcfile_path_CXX \
13292 exclude_expsyms_CXX \
13293 include_expsyms_CXX; do
13294  
13295 case $var in
13296 old_archive_cmds_CXX | \
13297 old_archive_from_new_cmds_CXX | \
13298 archive_cmds_CXX | \
13299 archive_expsym_cmds_CXX | \
13300 module_cmds_CXX | \
13301 module_expsym_cmds_CXX | \
13302 old_archive_from_expsyms_cmds_CXX | \
13303 export_symbols_cmds_CXX | \
13304 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13305 postinstall_cmds | postuninstall_cmds | \
13306 old_postinstall_cmds | old_postuninstall_cmds | \
13307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13308 # Double-quote double-evaled strings.
13309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13310 ;;
13311 *)
13312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13313 ;;
13314 esac
13315 done
13316  
13317 case $lt_echo in
13318 *'\$0 --fallback-echo"')
13319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13320 ;;
13321 esac
13322  
13323 cfgfile="$ofile"
13324  
13325 cat <<__EOF__ >> "$cfgfile"
13326 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13327  
13328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13329  
13330 # Shell to use when invoking shell scripts.
13331 SHELL=$lt_SHELL
13332  
13333 # Whether or not to build shared libraries.
13334 build_libtool_libs=$enable_shared
13335  
13336 # Whether or not to build static libraries.
13337 build_old_libs=$enable_static
13338  
13339 # Whether or not to add -lc for building shared libraries.
13340 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13341  
13342 # Whether or not to disallow shared libs when runtime libs are static
13343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13344  
13345 # Whether or not to optimize for fast installation.
13346 fast_install=$enable_fast_install
13347  
13348 # The host system.
13349 host_alias=$host_alias
13350 host=$host
13351 host_os=$host_os
13352  
13353 # The build system.
13354 build_alias=$build_alias
13355 build=$build
13356 build_os=$build_os
13357  
13358 # An echo program that does not interpret backslashes.
13359 echo=$lt_echo
13360  
13361 # The archiver.
13362 AR=$lt_AR
13363 AR_FLAGS=$lt_AR_FLAGS
13364  
13365 # A C compiler.
13366 LTCC=$lt_LTCC
13367  
13368 # LTCC compiler flags.
13369 LTCFLAGS=$lt_LTCFLAGS
13370  
13371 # A language-specific compiler.
13372 CC=$lt_compiler_CXX
13373  
13374 # Is the compiler the GNU C compiler?
13375 with_gcc=$GCC_CXX
13376  
13377 # An ERE matcher.
13378 EGREP=$lt_EGREP
13379  
13380 # The linker used to build libraries.
13381 LD=$lt_LD_CXX
13382  
13383 # Whether we need hard or soft links.
13384 LN_S=$lt_LN_S
13385  
13386 # A BSD-compatible nm program.
13387 NM=$lt_NM
13388  
13389 # A symbol stripping program
13390 STRIP=$lt_STRIP
13391  
13392 # Used to examine libraries when file_magic_cmd begins "file"
13393 MAGIC_CMD=$MAGIC_CMD
13394  
13395 # Used on cygwin: DLL creation program.
13396 DLLTOOL="$DLLTOOL"
13397  
13398 # Used on cygwin: object dumper.
13399 OBJDUMP="$OBJDUMP"
13400  
13401 # Used on cygwin: assembler.
13402 AS="$AS"
13403  
13404 # The name of the directory that contains temporary libtool files.
13405 objdir=$objdir
13406  
13407 # How to create reloadable object files.
13408 reload_flag=$lt_reload_flag
13409 reload_cmds=$lt_reload_cmds
13410  
13411 # How to pass a linker flag through the compiler.
13412 wl=$lt_lt_prog_compiler_wl_CXX
13413  
13414 # Object file suffix (normally "o").
13415 objext="$ac_objext"
13416  
13417 # Old archive suffix (normally "a").
13418 libext="$libext"
13419  
13420 # Shared library suffix (normally ".so").
13421 shrext_cmds='$shrext_cmds'
13422  
13423 # Executable file suffix (normally "").
13424 exeext="$exeext"
13425  
13426 # Additional compiler flags for building library objects.
13427 pic_flag=$lt_lt_prog_compiler_pic_CXX
13428 pic_mode=$pic_mode
13429  
13430 # What is the maximum length of a command?
13431 max_cmd_len=$lt_cv_sys_max_cmd_len
13432  
13433 # Does compiler simultaneously support -c and -o options?
13434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13435  
13436 # Must we lock files when doing compilation?
13437 need_locks=$lt_need_locks
13438  
13439 # Do we need the lib prefix for modules?
13440 need_lib_prefix=$need_lib_prefix
13441  
13442 # Do we need a version for libraries?
13443 need_version=$need_version
13444  
13445 # Whether dlopen is supported.
13446 dlopen_support=$enable_dlopen
13447  
13448 # Whether dlopen of programs is supported.
13449 dlopen_self=$enable_dlopen_self
13450  
13451 # Whether dlopen of statically linked programs is supported.
13452 dlopen_self_static=$enable_dlopen_self_static
13453  
13454 # Compiler flag to prevent dynamic linking.
13455 link_static_flag=$lt_lt_prog_compiler_static_CXX
13456  
13457 # Compiler flag to turn off builtin functions.
13458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13459  
13460 # Compiler flag to allow reflexive dlopens.
13461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13462  
13463 # Compiler flag to generate shared objects directly from archives.
13464 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13465  
13466 # Compiler flag to generate thread-safe objects.
13467 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13468  
13469 # Library versioning type.
13470 version_type=$version_type
13471  
13472 # Format of library name prefix.
13473 libname_spec=$lt_libname_spec
13474  
13475 # List of archive names. First name is the real one, the rest are links.
13476 # The last name is the one that the linker finds with -lNAME.
13477 library_names_spec=$lt_library_names_spec
13478  
13479 # The coded name of the library, if different from the real name.
13480 soname_spec=$lt_soname_spec
13481  
13482 # Commands used to build and install an old-style archive.
13483 RANLIB=$lt_RANLIB
13484 old_archive_cmds=$lt_old_archive_cmds_CXX
13485 old_postinstall_cmds=$lt_old_postinstall_cmds
13486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13487  
13488 # Create an old-style archive from a shared archive.
13489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13490  
13491 # Create a temporary old-style archive to link instead of a shared archive.
13492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13493  
13494 # Commands used to build and install a shared archive.
13495 archive_cmds=$lt_archive_cmds_CXX
13496 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13497 postinstall_cmds=$lt_postinstall_cmds
13498 postuninstall_cmds=$lt_postuninstall_cmds
13499  
13500 # Commands used to build a loadable module (assumed same as above if empty)
13501 module_cmds=$lt_module_cmds_CXX
13502 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13503  
13504 # Commands to strip libraries.
13505 old_striplib=$lt_old_striplib
13506 striplib=$lt_striplib
13507  
13508 # Dependencies to place before the objects being linked to create a
13509 # shared library.
13510 predep_objects=$lt_predep_objects_CXX
13511  
13512 # Dependencies to place after the objects being linked to create a
13513 # shared library.
13514 postdep_objects=$lt_postdep_objects_CXX
13515  
13516 # Dependencies to place before the objects being linked to create a
13517 # shared library.
13518 predeps=$lt_predeps_CXX
13519  
13520 # Dependencies to place after the objects being linked to create a
13521 # shared library.
13522 postdeps=$lt_postdeps_CXX
13523  
13524 # The library search path used internally by the compiler when linking
13525 # a shared library.
13526 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13527  
13528 # Method to check whether dependent libraries are shared objects.
13529 deplibs_check_method=$lt_deplibs_check_method
13530  
13531 # Command to use when deplibs_check_method == file_magic.
13532 file_magic_cmd=$lt_file_magic_cmd
13533  
13534 # Flag that allows shared libraries with undefined symbols to be built.
13535 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13536  
13537 # Flag that forces no undefined symbols.
13538 no_undefined_flag=$lt_no_undefined_flag_CXX
13539  
13540 # Commands used to finish a libtool library installation in a directory.
13541 finish_cmds=$lt_finish_cmds
13542  
13543 # Same as above, but a single script fragment to be evaled but not shown.
13544 finish_eval=$lt_finish_eval
13545  
13546 # Take the output of nm and produce a listing of raw symbols and C names.
13547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13548  
13549 # Transform the output of nm in a proper C declaration
13550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13551  
13552 # Transform the output of nm in a C name address pair
13553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13554  
13555 # This is the shared library runtime path variable.
13556 runpath_var=$runpath_var
13557  
13558 # This is the shared library path variable.
13559 shlibpath_var=$shlibpath_var
13560  
13561 # Is shlibpath searched before the hard-coded library search path?
13562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13563  
13564 # How to hardcode a shared library path into an executable.
13565 hardcode_action=$hardcode_action_CXX
13566  
13567 # Whether we should hardcode library paths into libraries.
13568 hardcode_into_libs=$hardcode_into_libs
13569  
13570 # Flag to hardcode \$libdir into a binary during linking.
13571 # This must work even if \$libdir does not exist.
13572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13573  
13574 # If ld is used when linking, flag to hardcode \$libdir into
13575 # a binary during linking. This must work even if \$libdir does
13576 # not exist.
13577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13578  
13579 # Whether we need a single -rpath flag with a separated argument.
13580 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13581  
13582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13583 # resulting binary.
13584 hardcode_direct=$hardcode_direct_CXX
13585  
13586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13587 # resulting binary.
13588 hardcode_minus_L=$hardcode_minus_L_CXX
13589  
13590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13591 # the resulting binary.
13592 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13593  
13594 # Set to yes if building a shared library automatically hardcodes DIR into the library
13595 # and all subsequent libraries and executables linked against it.
13596 hardcode_automatic=$hardcode_automatic_CXX
13597  
13598 # Variables whose values should be saved in libtool wrapper scripts and
13599 # restored at relink time.
13600 variables_saved_for_relink="$variables_saved_for_relink"
13601  
13602 # Whether libtool must link a program against all its dependency libraries.
13603 link_all_deplibs=$link_all_deplibs_CXX
13604  
13605 # Compile-time system search path for libraries
13606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13607  
13608 # Run-time system search path for libraries
13609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13610  
13611 # Fix the shell variable \$srcfile for the compiler.
13612 fix_srcfile_path=$lt_fix_srcfile_path
13613  
13614 # Set to yes if exported symbols are required.
13615 always_export_symbols=$always_export_symbols_CXX
13616  
13617 # The commands to list exported symbols.
13618 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13619  
13620 # The commands to extract the exported symbol list from a shared archive.
13621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13622  
13623 # Symbols that should not be listed in the preloaded symbols.
13624 exclude_expsyms=$lt_exclude_expsyms_CXX
13625  
13626 # Symbols that must always be exported.
13627 include_expsyms=$lt_include_expsyms_CXX
13628  
13629 # ### END LIBTOOL TAG CONFIG: $tagname
13630  
13631 __EOF__
13632  
13633  
13634 else
13635 # If there is no Makefile yet, we rely on a make rule to execute
13636 # `config.status --recheck' to rerun these tests and create the
13637 # libtool script then.
13638 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13639 if test -f "$ltmain_in"; then
13640 test -f Makefile && make "$ltmain"
13641 fi
13642 fi
13643  
13644  
13645 ac_ext=c
13646 ac_cpp='$CPP $CPPFLAGS'
13647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13650  
13651 CC=$lt_save_CC
13652 LDCXX=$LD
13653 LD=$lt_save_LD
13654 GCC=$lt_save_GCC
13655 with_gnu_ldcxx=$with_gnu_ld
13656 with_gnu_ld=$lt_save_with_gnu_ld
13657 lt_cv_path_LDCXX=$lt_cv_path_LD
13658 lt_cv_path_LD=$lt_save_path_LD
13659 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13660 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13661  
13662 else
13663 tagname=""
13664 fi
13665 ;;
13666  
13667 F77)
13668 if test -n "$F77" && test "X$F77" != "Xno"; then
13669  
13670 ac_ext=f
13671 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13672 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13674  
13675  
13676 archive_cmds_need_lc_F77=no
13677 allow_undefined_flag_F77=
13678 always_export_symbols_F77=no
13679 archive_expsym_cmds_F77=
13680 export_dynamic_flag_spec_F77=
13681 hardcode_direct_F77=no
13682 hardcode_libdir_flag_spec_F77=
13683 hardcode_libdir_flag_spec_ld_F77=
13684 hardcode_libdir_separator_F77=
13685 hardcode_minus_L_F77=no
13686 hardcode_automatic_F77=no
13687 module_cmds_F77=
13688 module_expsym_cmds_F77=
13689 link_all_deplibs_F77=unknown
13690 old_archive_cmds_F77=$old_archive_cmds
13691 no_undefined_flag_F77=
13692 whole_archive_flag_spec_F77=
13693 enable_shared_with_static_runtimes_F77=no
13694  
13695 # Source file extension for f77 test sources.
13696 ac_ext=f
13697  
13698 # Object file extension for compiled f77 test sources.
13699 objext=o
13700 objext_F77=$objext
13701  
13702 # Code to be used in simple compile tests
13703 lt_simple_compile_test_code="\
13704 subroutine t
13705 return
13706 end
13707 "
13708  
13709 # Code to be used in simple link tests
13710 lt_simple_link_test_code="\
13711 program t
13712 end
13713 "
13714  
13715 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13716  
13717 # If no C compiler was specified, use CC.
13718 LTCC=${LTCC-"$CC"}
13719  
13720 # If no C compiler flags were specified, use CFLAGS.
13721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13722  
13723 # Allow CC to be a program name with arguments.
13724 compiler=$CC
13725  
13726  
13727 # save warnings/boilerplate of simple test code
13728 ac_outfile=conftest.$ac_objext
13729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13731 _lt_compiler_boilerplate=`cat conftest.err`
13732 $rm conftest*
13733  
13734 ac_outfile=conftest.$ac_objext
13735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13737 _lt_linker_boilerplate=`cat conftest.err`
13738 $rm conftest*
13739  
13740  
13741 # Allow CC to be a program name with arguments.
13742 lt_save_CC="$CC"
13743 CC=${F77-"f77"}
13744 compiler=$CC
13745 compiler_F77=$CC
13746 for cc_temp in $compiler""; do
13747 case $cc_temp in
13748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13750 \-*) ;;
13751 *) break;;
13752 esac
13753 done
13754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13755  
13756  
13757 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13758 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13759 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13760 echo "${ECHO_T}$can_build_shared" >&6; }
13761  
13762 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13763 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13764 test "$can_build_shared" = "no" && enable_shared=no
13765  
13766 # On AIX, shared libraries and static libraries use the same namespace, and
13767 # are all built from PIC.
13768 case $host_os in
13769 aix3*)
13770 test "$enable_shared" = yes && enable_static=no
13771 if test -n "$RANLIB"; then
13772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13773 postinstall_cmds='$RANLIB $lib'
13774 fi
13775 ;;
13776 aix4* | aix5*)
13777 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13778 test "$enable_shared" = yes && enable_static=no
13779 fi
13780 ;;
13781 esac
13782 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13783 echo "${ECHO_T}$enable_shared" >&6; }
13784  
13785 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13786 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13787 # Make sure either enable_shared or enable_static is yes.
13788 test "$enable_shared" = yes || enable_static=yes
13789 { echo "$as_me:$LINENO: result: $enable_static" >&5
13790 echo "${ECHO_T}$enable_static" >&6; }
13791  
13792 GCC_F77="$G77"
13793 LD_F77="$LD"
13794  
13795 lt_prog_compiler_wl_F77=
13796 lt_prog_compiler_pic_F77=
13797 lt_prog_compiler_static_F77=
13798  
13799 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13801  
13802 if test "$GCC" = yes; then
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 lt_prog_compiler_static_F77='-static'
13805  
13806 case $host_os in
13807 aix*)
13808 # All AIX code is PIC.
13809 if test "$host_cpu" = ia64; then
13810 # AIX 5 now supports IA64 processor
13811 lt_prog_compiler_static_F77='-Bstatic'
13812 fi
13813 ;;
13814  
13815 amigaos*)
13816 # FIXME: we need at least 68020 code to build shared libraries, but
13817 # adding the `-m68020' flag to GCC prevents building anything better,
13818 # like `-m68040'.
13819 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13820 ;;
13821  
13822 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13823 # PIC is the default for these OSes.
13824 ;;
13825  
13826 mingw* | cygwin* | pw32* | os2*)
13827 # This hack is so that the source file can tell whether it is being
13828 # built for inclusion in a dll (and should export symbols for example).
13829 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13830 # (--disable-auto-import) libraries
13831 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13832 ;;
13833  
13834 darwin* | rhapsody*)
13835 # PIC is the default on this platform
13836 # Common symbols not allowed in MH_DYLIB files
13837 lt_prog_compiler_pic_F77='-fno-common'
13838 ;;
13839  
13840 interix[3-9]*)
13841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13842 # Instead, we relocate shared libraries at runtime.
13843 ;;
13844  
13845 msdosdjgpp*)
13846 # Just because we use GCC doesn't mean we suddenly get shared libraries
13847 # on systems that don't support them.
13848 lt_prog_compiler_can_build_shared_F77=no
13849 enable_shared=no
13850 ;;
13851  
13852 sysv4*MP*)
13853 if test -d /usr/nec; then
13854 lt_prog_compiler_pic_F77=-Kconform_pic
13855 fi
13856 ;;
13857  
13858 hpux*)
13859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13860 # not for PA HP-UX.
13861 case $host_cpu in
13862 hppa*64*|ia64*)
13863 # +Z the default
13864 ;;
13865 *)
13866 lt_prog_compiler_pic_F77='-fPIC'
13867 ;;
13868 esac
13869 ;;
13870  
13871 *)
13872 lt_prog_compiler_pic_F77='-fPIC'
13873 ;;
13874 esac
13875 else
13876 # PORTME Check for flag to pass linker flags through the system compiler.
13877 case $host_os in
13878 aix*)
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 if test "$host_cpu" = ia64; then
13881 # AIX 5 now supports IA64 processor
13882 lt_prog_compiler_static_F77='-Bstatic'
13883 else
13884 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13885 fi
13886 ;;
13887 darwin*)
13888 # PIC is the default on this platform
13889 # Common symbols not allowed in MH_DYLIB files
13890 case $cc_basename in
13891 xlc*)
13892 lt_prog_compiler_pic_F77='-qnocommon'
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 ;;
13895 esac
13896 ;;
13897  
13898 mingw* | cygwin* | pw32* | os2*)
13899 # This hack is so that the source file can tell whether it is being
13900 # built for inclusion in a dll (and should export symbols for example).
13901 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13902 ;;
13903  
13904 hpux9* | hpux10* | hpux11*)
13905 lt_prog_compiler_wl_F77='-Wl,'
13906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13907 # not for PA HP-UX.
13908 case $host_cpu in
13909 hppa*64*|ia64*)
13910 # +Z the default
13911 ;;
13912 *)
13913 lt_prog_compiler_pic_F77='+Z'
13914 ;;
13915 esac
13916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13917 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13918 ;;
13919  
13920 irix5* | irix6* | nonstopux*)
13921 lt_prog_compiler_wl_F77='-Wl,'
13922 # PIC (with -KPIC) is the default.
13923 lt_prog_compiler_static_F77='-non_shared'
13924 ;;
13925  
13926 newsos6)
13927 lt_prog_compiler_pic_F77='-KPIC'
13928 lt_prog_compiler_static_F77='-Bstatic'
13929 ;;
13930  
13931 linux* | k*bsd*-gnu)
13932 case $cc_basename in
13933 icc* | ecc*)
13934 lt_prog_compiler_wl_F77='-Wl,'
13935 lt_prog_compiler_pic_F77='-KPIC'
13936 lt_prog_compiler_static_F77='-static'
13937 ;;
13938 pgcc* | pgf77* | pgf90* | pgf95*)
13939 # Portland Group compilers (*not* the Pentium gcc compiler,
13940 # which looks to be a dead project)
13941 lt_prog_compiler_wl_F77='-Wl,'
13942 lt_prog_compiler_pic_F77='-fpic'
13943 lt_prog_compiler_static_F77='-Bstatic'
13944 ;;
13945 ccc*)
13946 lt_prog_compiler_wl_F77='-Wl,'
13947 # All Alpha code is PIC.
13948 lt_prog_compiler_static_F77='-non_shared'
13949 ;;
13950 *)
13951 case `$CC -V 2>&1 | sed 5q` in
13952 *Sun\ C*)
13953 # Sun C 5.9
13954 lt_prog_compiler_pic_F77='-KPIC'
13955 lt_prog_compiler_static_F77='-Bstatic'
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 ;;
13958 *Sun\ F*)
13959 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13960 lt_prog_compiler_pic_F77='-KPIC'
13961 lt_prog_compiler_static_F77='-Bstatic'
13962 lt_prog_compiler_wl_F77=''
13963 ;;
13964 esac
13965 ;;
13966 esac
13967 ;;
13968  
13969 osf3* | osf4* | osf5*)
13970 lt_prog_compiler_wl_F77='-Wl,'
13971 # All OSF/1 code is PIC.
13972 lt_prog_compiler_static_F77='-non_shared'
13973 ;;
13974  
13975 rdos*)
13976 lt_prog_compiler_static_F77='-non_shared'
13977 ;;
13978  
13979 solaris*)
13980 lt_prog_compiler_pic_F77='-KPIC'
13981 lt_prog_compiler_static_F77='-Bstatic'
13982 case $cc_basename in
13983 f77* | f90* | f95*)
13984 lt_prog_compiler_wl_F77='-Qoption ld ';;
13985 *)
13986 lt_prog_compiler_wl_F77='-Wl,';;
13987 esac
13988 ;;
13989  
13990 sunos4*)
13991 lt_prog_compiler_wl_F77='-Qoption ld '
13992 lt_prog_compiler_pic_F77='-PIC'
13993 lt_prog_compiler_static_F77='-Bstatic'
13994 ;;
13995  
13996 sysv4 | sysv4.2uw2* | sysv4.3*)
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 lt_prog_compiler_pic_F77='-KPIC'
13999 lt_prog_compiler_static_F77='-Bstatic'
14000 ;;
14001  
14002 sysv4*MP*)
14003 if test -d /usr/nec ;then
14004 lt_prog_compiler_pic_F77='-Kconform_pic'
14005 lt_prog_compiler_static_F77='-Bstatic'
14006 fi
14007 ;;
14008  
14009 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14010 lt_prog_compiler_wl_F77='-Wl,'
14011 lt_prog_compiler_pic_F77='-KPIC'
14012 lt_prog_compiler_static_F77='-Bstatic'
14013 ;;
14014  
14015 unicos*)
14016 lt_prog_compiler_wl_F77='-Wl,'
14017 lt_prog_compiler_can_build_shared_F77=no
14018 ;;
14019  
14020 uts4*)
14021 lt_prog_compiler_pic_F77='-pic'
14022 lt_prog_compiler_static_F77='-Bstatic'
14023 ;;
14024  
14025 *)
14026 lt_prog_compiler_can_build_shared_F77=no
14027 ;;
14028 esac
14029 fi
14030  
14031 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14032 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14033  
14034 #
14035 # Check to make sure the PIC flag actually works.
14036 #
14037 if test -n "$lt_prog_compiler_pic_F77"; then
14038  
14039 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14040 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14041 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 lt_prog_compiler_pic_works_F77=no
14045 ac_outfile=conftest.$ac_objext
14046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14047 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14048 # Insert the option either (1) after the last *FLAGS variable, or
14049 # (2) before a word containing "conftest.", or (3) at the end.
14050 # Note that $ac_compile itself does not contain backslashes and begins
14051 # with a dollar sign (not a hyphen), so the echo should work correctly.
14052 # The option is referenced via a variable to avoid confusing sed.
14053 lt_compile=`echo "$ac_compile" | $SED \
14054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14056 -e 's:$: $lt_compiler_flag:'`
14057 (eval echo "\"\$as_me:14057: $lt_compile\"" >&5)
14058 (eval "$lt_compile" 2>conftest.err)
14059 ac_status=$?
14060 cat conftest.err >&5
14061 echo "$as_me:14061: \$? = $ac_status" >&5
14062 if (exit $ac_status) && test -s "$ac_outfile"; then
14063 # The compiler can only warn and ignore the option if not recognized
14064 # So say no if there are warnings other than the usual output.
14065 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14068 lt_prog_compiler_pic_works_F77=yes
14069 fi
14070 fi
14071 $rm conftest*
14072  
14073 fi
14074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14075 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14076  
14077 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14078 case $lt_prog_compiler_pic_F77 in
14079 "" | " "*) ;;
14080 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14081 esac
14082 else
14083 lt_prog_compiler_pic_F77=
14084 lt_prog_compiler_can_build_shared_F77=no
14085 fi
14086  
14087 fi
14088 case $host_os in
14089 # For platforms which do not support PIC, -DPIC is meaningless:
14090 *djgpp*)
14091 lt_prog_compiler_pic_F77=
14092 ;;
14093 *)
14094 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14095 ;;
14096 esac
14097  
14098 #
14099 # Check to make sure the static flag actually works.
14100 #
14101 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14102 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14103 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14104 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107 lt_prog_compiler_static_works_F77=no
14108 save_LDFLAGS="$LDFLAGS"
14109 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14110 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14112 # The linker can only warn and ignore the option if not recognized
14113 # So say no if there are warnings
14114 if test -s conftest.err; then
14115 # Append any errors to the config.log.
14116 cat conftest.err 1>&5
14117 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14119 if diff conftest.exp conftest.er2 >/dev/null; then
14120 lt_prog_compiler_static_works_F77=yes
14121 fi
14122 else
14123 lt_prog_compiler_static_works_F77=yes
14124 fi
14125 fi
14126 $rm conftest*
14127 LDFLAGS="$save_LDFLAGS"
14128  
14129 fi
14130 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14131 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14132  
14133 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14134 :
14135 else
14136 lt_prog_compiler_static_F77=
14137 fi
14138  
14139  
14140 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14141 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14142 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 lt_cv_prog_compiler_c_o_F77=no
14146 $rm -r conftest 2>/dev/null
14147 mkdir conftest
14148 cd conftest
14149 mkdir out
14150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14151  
14152 lt_compiler_flag="-o out/conftest2.$ac_objext"
14153 # Insert the option either (1) after the last *FLAGS variable, or
14154 # (2) before a word containing "conftest.", or (3) at the end.
14155 # Note that $ac_compile itself does not contain backslashes and begins
14156 # with a dollar sign (not a hyphen), so the echo should work correctly.
14157 lt_compile=`echo "$ac_compile" | $SED \
14158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14160 -e 's:$: $lt_compiler_flag:'`
14161 (eval echo "\"\$as_me:14161: $lt_compile\"" >&5)
14162 (eval "$lt_compile" 2>out/conftest.err)
14163 ac_status=$?
14164 cat out/conftest.err >&5
14165 echo "$as_me:14165: \$? = $ac_status" >&5
14166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14167 then
14168 # The compiler can only warn and ignore the option if not recognized
14169 # So say no if there are warnings
14170 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14173 lt_cv_prog_compiler_c_o_F77=yes
14174 fi
14175 fi
14176 chmod u+w . 2>&5
14177 $rm conftest*
14178 # SGI C++ compiler will create directory out/ii_files/ for
14179 # template instantiation
14180 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14181 $rm out/* && rmdir out
14182 cd ..
14183 rmdir conftest
14184 $rm conftest*
14185  
14186 fi
14187 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14188 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14189  
14190  
14191 hard_links="nottested"
14192 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14193 # do not overwrite the value of need_locks provided by the user
14194 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14195 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14196 hard_links=yes
14197 $rm conftest*
14198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14199 touch conftest.a
14200 ln conftest.a conftest.b 2>&5 || hard_links=no
14201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14202 { echo "$as_me:$LINENO: result: $hard_links" >&5
14203 echo "${ECHO_T}$hard_links" >&6; }
14204 if test "$hard_links" = no; then
14205 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14206 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14207 need_locks=warn
14208 fi
14209 else
14210 need_locks=no
14211 fi
14212  
14213 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14214 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14215  
14216 runpath_var=
14217 allow_undefined_flag_F77=
14218 enable_shared_with_static_runtimes_F77=no
14219 archive_cmds_F77=
14220 archive_expsym_cmds_F77=
14221 old_archive_From_new_cmds_F77=
14222 old_archive_from_expsyms_cmds_F77=
14223 export_dynamic_flag_spec_F77=
14224 whole_archive_flag_spec_F77=
14225 thread_safe_flag_spec_F77=
14226 hardcode_libdir_flag_spec_F77=
14227 hardcode_libdir_flag_spec_ld_F77=
14228 hardcode_libdir_separator_F77=
14229 hardcode_direct_F77=no
14230 hardcode_minus_L_F77=no
14231 hardcode_shlibpath_var_F77=unsupported
14232 link_all_deplibs_F77=unknown
14233 hardcode_automatic_F77=no
14234 module_cmds_F77=
14235 module_expsym_cmds_F77=
14236 always_export_symbols_F77=no
14237 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14238 # include_expsyms should be a list of space-separated symbols to be *always*
14239 # included in the symbol list
14240 include_expsyms_F77=
14241 # exclude_expsyms can be an extended regexp of symbols to exclude
14242 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14243 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14244 # as well as any symbol that contains `d'.
14245 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14247 # platforms (ab)use it in PIC code, but their linkers get confused if
14248 # the symbol is explicitly referenced. Since portable code cannot
14249 # rely on this symbol name, it's probably fine to never include it in
14250 # preloaded symbol tables.
14251 extract_expsyms_cmds=
14252 # Just being paranoid about ensuring that cc_basename is set.
14253 for cc_temp in $compiler""; do
14254 case $cc_temp in
14255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14257 \-*) ;;
14258 *) break;;
14259 esac
14260 done
14261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14262  
14263 case $host_os in
14264 cygwin* | mingw* | pw32*)
14265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14266 # When not using gcc, we currently assume that we are using
14267 # Microsoft Visual C++.
14268 if test "$GCC" != yes; then
14269 with_gnu_ld=no
14270 fi
14271 ;;
14272 interix*)
14273 # we just hope/assume this is gcc and not c89 (= MSVC++)
14274 with_gnu_ld=yes
14275 ;;
14276 openbsd*)
14277 with_gnu_ld=no
14278 ;;
14279 esac
14280  
14281 ld_shlibs_F77=yes
14282 if test "$with_gnu_ld" = yes; then
14283 # If archive_cmds runs LD, not CC, wlarc should be empty
14284 wlarc='${wl}'
14285  
14286 # Set some defaults for GNU ld with shared library support. These
14287 # are reset later if shared libraries are not supported. Putting them
14288 # here allows them to be overridden if necessary.
14289 runpath_var=LD_RUN_PATH
14290 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14291 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14292 # ancient GNU ld didn't support --whole-archive et. al.
14293 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14294 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14295 else
14296 whole_archive_flag_spec_F77=
14297 fi
14298 supports_anon_versioning=no
14299 case `$LD -v 2>/dev/null` in
14300 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14301 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14302 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14303 *\ 2.11.*) ;; # other 2.11 versions
14304 *) supports_anon_versioning=yes ;;
14305 esac
14306  
14307 # See if GNU ld supports shared libraries.
14308 case $host_os in
14309 aix3* | aix4* | aix5*)
14310 # On AIX/PPC, the GNU linker is very broken
14311 if test "$host_cpu" != ia64; then
14312 ld_shlibs_F77=no
14313 cat <<EOF 1>&2
14314  
14315 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14316 *** to be unable to reliably create shared libraries on AIX.
14317 *** Therefore, libtool is disabling shared libraries support. If you
14318 *** really care for shared libraries, you may want to modify your PATH
14319 *** so that a non-GNU linker is found, and then restart.
14320  
14321 EOF
14322 fi
14323 ;;
14324  
14325 amigaos*)
14326 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)'
14327 hardcode_libdir_flag_spec_F77='-L$libdir'
14328 hardcode_minus_L_F77=yes
14329  
14330 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14331 # that the semantics of dynamic libraries on AmigaOS, at least up
14332 # to version 4, is to share data among multiple programs linked
14333 # with the same dynamic library. Since this doesn't match the
14334 # behavior of shared libraries on other platforms, we can't use
14335 # them.
14336 ld_shlibs_F77=no
14337 ;;
14338  
14339 beos*)
14340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14341 allow_undefined_flag_F77=unsupported
14342 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14343 # support --undefined. This deserves some investigation. FIXME
14344 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345 else
14346 ld_shlibs_F77=no
14347 fi
14348 ;;
14349  
14350 cygwin* | mingw* | pw32*)
14351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14352 # as there is no search path for DLLs.
14353 hardcode_libdir_flag_spec_F77='-L$libdir'
14354 allow_undefined_flag_F77=unsupported
14355 always_export_symbols_F77=no
14356 enable_shared_with_static_runtimes_F77=yes
14357 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14358  
14359 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14361 # If the export-symbols file already is a .def file (1st line
14362 # is EXPORTS), use it as is; otherwise, prepend...
14363 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14364 cp $export_symbols $output_objdir/$soname.def;
14365 else
14366 echo EXPORTS > $output_objdir/$soname.def;
14367 cat $export_symbols >> $output_objdir/$soname.def;
14368 fi~
14369 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14370 else
14371 ld_shlibs_F77=no
14372 fi
14373 ;;
14374  
14375 interix[3-9]*)
14376 hardcode_direct_F77=no
14377 hardcode_shlibpath_var_F77=no
14378 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14379 export_dynamic_flag_spec_F77='${wl}-E'
14380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14381 # Instead, shared libraries are loaded at an image base (0x10000000 by
14382 # default) and relocated if they conflict, which is a slow very memory
14383 # consuming and fragmenting process. To avoid this, we pick a random,
14384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14385 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14386 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'
14387 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'
14388 ;;
14389  
14390 gnu* | linux* | k*bsd*-gnu)
14391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14392 tmp_addflag=
14393 case $cc_basename,$host_cpu in
14394 pgcc*) # Portland Group C compiler
14395 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'
14396 tmp_addflag=' $pic_flag'
14397 ;;
14398 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14399 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'
14400 tmp_addflag=' $pic_flag -Mnomain' ;;
14401 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14402 tmp_addflag=' -i_dynamic' ;;
14403 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14404 tmp_addflag=' -i_dynamic -nofor_main' ;;
14405 ifc* | ifort*) # Intel Fortran compiler
14406 tmp_addflag=' -nofor_main' ;;
14407 esac
14408 case `$CC -V 2>&1 | sed 5q` in
14409 *Sun\ C*) # Sun C 5.9
14410 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'
14411 tmp_sharedflag='-G' ;;
14412 *Sun\ F*) # Sun Fortran 8.3
14413 tmp_sharedflag='-G' ;;
14414 *)
14415 tmp_sharedflag='-shared' ;;
14416 esac
14417 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14418  
14419 if test $supports_anon_versioning = yes; then
14420 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14422 $echo "local: *; };" >> $output_objdir/$libname.ver~
14423 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14424 fi
14425 link_all_deplibs_F77=no
14426 else
14427 ld_shlibs_F77=no
14428 fi
14429 ;;
14430  
14431 netbsd* | netbsdelf*-gnu)
14432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14433 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14434 wlarc=
14435 else
14436 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14437 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14438 fi
14439 ;;
14440  
14441 solaris*)
14442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14443 ld_shlibs_F77=no
14444 cat <<EOF 1>&2
14445  
14446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14447 *** create shared libraries on Solaris systems. Therefore, libtool
14448 *** is disabling shared libraries support. We urge you to upgrade GNU
14449 *** binutils to release 2.9.1 or newer. Another option is to modify
14450 *** your PATH or compiler configuration so that the native linker is
14451 *** used, and then restart.
14452  
14453 EOF
14454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14455 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14456 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14457 else
14458 ld_shlibs_F77=no
14459 fi
14460 ;;
14461  
14462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14463 case `$LD -v 2>&1` in
14464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14465 ld_shlibs_F77=no
14466 cat <<_LT_EOF 1>&2
14467  
14468 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14469 *** reliably create shared libraries on SCO systems. Therefore, libtool
14470 *** is disabling shared libraries support. We urge you to upgrade GNU
14471 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14472 *** your PATH or compiler configuration so that the native linker is
14473 *** used, and then restart.
14474  
14475 _LT_EOF
14476 ;;
14477 *)
14478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14479 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14481 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14482 else
14483 ld_shlibs_F77=no
14484 fi
14485 ;;
14486 esac
14487 ;;
14488  
14489 sunos4*)
14490 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14491 wlarc=
14492 hardcode_direct_F77=yes
14493 hardcode_shlibpath_var_F77=no
14494 ;;
14495  
14496 *)
14497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14499 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14500 else
14501 ld_shlibs_F77=no
14502 fi
14503 ;;
14504 esac
14505  
14506 if test "$ld_shlibs_F77" = no; then
14507 runpath_var=
14508 hardcode_libdir_flag_spec_F77=
14509 export_dynamic_flag_spec_F77=
14510 whole_archive_flag_spec_F77=
14511 fi
14512 else
14513 # PORTME fill in a description of your system's linker (not GNU ld)
14514 case $host_os in
14515 aix3*)
14516 allow_undefined_flag_F77=unsupported
14517 always_export_symbols_F77=yes
14518 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'
14519 # Note: this linker hardcodes the directories in LIBPATH if there
14520 # are no directories specified by -L.
14521 hardcode_minus_L_F77=yes
14522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14523 # Neither direct hardcoding nor static linking is supported with a
14524 # broken collect2.
14525 hardcode_direct_F77=unsupported
14526 fi
14527 ;;
14528  
14529 aix4* | aix5*)
14530 if test "$host_cpu" = ia64; then
14531 # On IA64, the linker does run time linking by default, so we don't
14532 # have to do anything special.
14533 aix_use_runtimelinking=no
14534 exp_sym_flag='-Bexport'
14535 no_entry_flag=""
14536 else
14537 # If we're using GNU nm, then we don't want the "-C" option.
14538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14539 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14540 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'
14541 else
14542 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'
14543 fi
14544 aix_use_runtimelinking=no
14545  
14546 # Test if we are trying to use run time linking or normal
14547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14548 # need to do runtime linking.
14549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14550 for ld_flag in $LDFLAGS; do
14551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14552 aix_use_runtimelinking=yes
14553 break
14554 fi
14555 done
14556 ;;
14557 esac
14558  
14559 exp_sym_flag='-bexport'
14560 no_entry_flag='-bnoentry'
14561 fi
14562  
14563 # When large executables or shared objects are built, AIX ld can
14564 # have problems creating the table of contents. If linking a library
14565 # or program results in "error TOC overflow" add -mminimal-toc to
14566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14568  
14569 archive_cmds_F77=''
14570 hardcode_direct_F77=yes
14571 hardcode_libdir_separator_F77=':'
14572 link_all_deplibs_F77=yes
14573  
14574 if test "$GCC" = yes; then
14575 case $host_os in aix4.[012]|aix4.[012].*)
14576 # We only want to do this on AIX 4.2 and lower, the check
14577 # below for broken collect2 doesn't work under 4.3+
14578 collect2name=`${CC} -print-prog-name=collect2`
14579 if test -f "$collect2name" && \
14580 strings "$collect2name" | grep resolve_lib_name >/dev/null
14581 then
14582 # We have reworked collect2
14583 :
14584 else
14585 # We have old collect2
14586 hardcode_direct_F77=unsupported
14587 # It fails to find uninstalled libraries when the uninstalled
14588 # path is not listed in the libpath. Setting hardcode_minus_L
14589 # to unsupported forces relinking
14590 hardcode_minus_L_F77=yes
14591 hardcode_libdir_flag_spec_F77='-L$libdir'
14592 hardcode_libdir_separator_F77=
14593 fi
14594 ;;
14595 esac
14596 shared_flag='-shared'
14597 if test "$aix_use_runtimelinking" = yes; then
14598 shared_flag="$shared_flag "'${wl}-G'
14599 fi
14600 else
14601 # not using gcc
14602 if test "$host_cpu" = ia64; then
14603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14604 # chokes on -Wl,-G. The following line is correct:
14605 shared_flag='-G'
14606 else
14607 if test "$aix_use_runtimelinking" = yes; then
14608 shared_flag='${wl}-G'
14609 else
14610 shared_flag='${wl}-bM:SRE'
14611 fi
14612 fi
14613 fi
14614  
14615 # It seems that -bexpall does not export symbols beginning with
14616 # underscore (_), so it is better to generate a list of symbols to export.
14617 always_export_symbols_F77=yes
14618 if test "$aix_use_runtimelinking" = yes; then
14619 # Warning - without using the other runtime loading flags (-brtl),
14620 # -berok will link without error, but may produce a broken library.
14621 allow_undefined_flag_F77='-berok'
14622 # Determine the default libpath from the value encoded in an empty executable.
14623 cat >conftest.$ac_ext <<_ACEOF
14624 program main
14625  
14626 end
14627 _ACEOF
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (ac_try="$ac_link"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_link") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_f77_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest$ac_exeext &&
14645 $as_test_x conftest$ac_exeext; then
14646  
14647 lt_aix_libpath_sed='
14648 /Import File Strings/,/^$/ {
14649 /^0/ {
14650 s/^0 *\(.*\)$/\1/
14651 p
14652 }
14653 }'
14654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14655 # Check for a 64-bit object if we didn't find anything.
14656 if test -z "$aix_libpath"; then
14657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14658 fi
14659 else
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662  
14663  
14664 fi
14665  
14666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667 conftest$ac_exeext conftest.$ac_ext
14668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14669  
14670 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14671 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"
14672 else
14673 if test "$host_cpu" = ia64; then
14674 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14675 allow_undefined_flag_F77="-z nodefs"
14676 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"
14677 else
14678 # Determine the default libpath from the value encoded in an empty executable.
14679 cat >conftest.$ac_ext <<_ACEOF
14680 program main
14681  
14682 end
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (ac_try="$ac_link"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_link") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_f77_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest$ac_exeext &&
14701 $as_test_x conftest$ac_exeext; then
14702  
14703 lt_aix_libpath_sed='
14704 /Import File Strings/,/^$/ {
14705 /^0/ {
14706 s/^0 *\(.*\)$/\1/
14707 p
14708 }
14709 }'
14710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14711 # Check for a 64-bit object if we didn't find anything.
14712 if test -z "$aix_libpath"; then
14713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14714 fi
14715 else
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718  
14719  
14720 fi
14721  
14722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14723 conftest$ac_exeext conftest.$ac_ext
14724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14725  
14726 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14727 # Warning - without using the other run time loading flags,
14728 # -berok will link without error, but may produce a broken library.
14729 no_undefined_flag_F77=' ${wl}-bernotok'
14730 allow_undefined_flag_F77=' ${wl}-berok'
14731 # Exported symbols can be pulled into shared objects from archives
14732 whole_archive_flag_spec_F77='$convenience'
14733 archive_cmds_need_lc_F77=yes
14734 # This is similar to how AIX traditionally builds its shared libraries.
14735 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'
14736 fi
14737 fi
14738 ;;
14739  
14740 amigaos*)
14741 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)'
14742 hardcode_libdir_flag_spec_F77='-L$libdir'
14743 hardcode_minus_L_F77=yes
14744 # see comment about different semantics on the GNU ld section
14745 ld_shlibs_F77=no
14746 ;;
14747  
14748 bsdi[45]*)
14749 export_dynamic_flag_spec_F77=-rdynamic
14750 ;;
14751  
14752 cygwin* | mingw* | pw32*)
14753 # When not using gcc, we currently assume that we are using
14754 # Microsoft Visual C++.
14755 # hardcode_libdir_flag_spec is actually meaningless, as there is
14756 # no search path for DLLs.
14757 hardcode_libdir_flag_spec_F77=' '
14758 allow_undefined_flag_F77=unsupported
14759 # Tell ltmain to make .lib files, not .a files.
14760 libext=lib
14761 # Tell ltmain to make .dll files, not .so files.
14762 shrext_cmds=".dll"
14763 # FIXME: Setting linknames here is a bad hack.
14764 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14765 # The linker will automatically build a .lib file if we build a DLL.
14766 old_archive_From_new_cmds_F77='true'
14767 # FIXME: Should let the user specify the lib program.
14768 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14769 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14770 enable_shared_with_static_runtimes_F77=yes
14771 ;;
14772  
14773 darwin* | rhapsody*)
14774 case $host_os in
14775 rhapsody* | darwin1.[012])
14776 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14777 ;;
14778 *) # Darwin 1.3 on
14779 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14780 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14781 else
14782 case ${MACOSX_DEPLOYMENT_TARGET} in
14783 10.[012])
14784 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14785 ;;
14786 10.*)
14787 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14788 ;;
14789 esac
14790 fi
14791 ;;
14792 esac
14793 archive_cmds_need_lc_F77=no
14794 hardcode_direct_F77=no
14795 hardcode_automatic_F77=yes
14796 hardcode_shlibpath_var_F77=unsupported
14797 whole_archive_flag_spec_F77=''
14798 link_all_deplibs_F77=yes
14799 if test "$GCC" = yes ; then
14800 output_verbose_link_cmd='echo'
14801 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14802 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14804 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14805 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}'
14806 else
14807 case $cc_basename in
14808 xlc*)
14809 output_verbose_link_cmd='echo'
14810 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14811 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14813 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}'
14814 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}'
14815 ;;
14816 *)
14817 ld_shlibs_F77=no
14818 ;;
14819 esac
14820 fi
14821 ;;
14822  
14823 dgux*)
14824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14825 hardcode_libdir_flag_spec_F77='-L$libdir'
14826 hardcode_shlibpath_var_F77=no
14827 ;;
14828  
14829 freebsd1*)
14830 ld_shlibs_F77=no
14831 ;;
14832  
14833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14834 # support. Future versions do this automatically, but an explicit c++rt0.o
14835 # does not break anything, and helps significantly (at the cost of a little
14836 # extra space).
14837 freebsd2.2*)
14838 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14839 hardcode_libdir_flag_spec_F77='-R$libdir'
14840 hardcode_direct_F77=yes
14841 hardcode_shlibpath_var_F77=no
14842 ;;
14843  
14844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14845 freebsd2*)
14846 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14847 hardcode_direct_F77=yes
14848 hardcode_minus_L_F77=yes
14849 hardcode_shlibpath_var_F77=no
14850 ;;
14851  
14852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14853 freebsd* | dragonfly*)
14854 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14855 hardcode_libdir_flag_spec_F77='-R$libdir'
14856 hardcode_direct_F77=yes
14857 hardcode_shlibpath_var_F77=no
14858 ;;
14859  
14860 hpux9*)
14861 if test "$GCC" = yes; then
14862 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'
14863 else
14864 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'
14865 fi
14866 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14867 hardcode_libdir_separator_F77=:
14868 hardcode_direct_F77=yes
14869  
14870 # hardcode_minus_L: Not really in the search PATH,
14871 # but as the default location of the library.
14872 hardcode_minus_L_F77=yes
14873 export_dynamic_flag_spec_F77='${wl}-E'
14874 ;;
14875  
14876 hpux10*)
14877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14878 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14879 else
14880 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14881 fi
14882 if test "$with_gnu_ld" = no; then
14883 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14884 hardcode_libdir_separator_F77=:
14885  
14886 hardcode_direct_F77=yes
14887 export_dynamic_flag_spec_F77='${wl}-E'
14888  
14889 # hardcode_minus_L: Not really in the search PATH,
14890 # but as the default location of the library.
14891 hardcode_minus_L_F77=yes
14892 fi
14893 ;;
14894  
14895 hpux11*)
14896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14897 case $host_cpu in
14898 hppa*64*)
14899 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14900 ;;
14901 ia64*)
14902 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14903 ;;
14904 *)
14905 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14906 ;;
14907 esac
14908 else
14909 case $host_cpu in
14910 hppa*64*)
14911 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912 ;;
14913 ia64*)
14914 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14915 ;;
14916 *)
14917 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14918 ;;
14919 esac
14920 fi
14921 if test "$with_gnu_ld" = no; then
14922 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923 hardcode_libdir_separator_F77=:
14924  
14925 case $host_cpu in
14926 hppa*64*|ia64*)
14927 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14928 hardcode_direct_F77=no
14929 hardcode_shlibpath_var_F77=no
14930 ;;
14931 *)
14932 hardcode_direct_F77=yes
14933 export_dynamic_flag_spec_F77='${wl}-E'
14934  
14935 # hardcode_minus_L: Not really in the search PATH,
14936 # but as the default location of the library.
14937 hardcode_minus_L_F77=yes
14938 ;;
14939 esac
14940 fi
14941 ;;
14942  
14943 irix5* | irix6* | nonstopux*)
14944 if test "$GCC" = yes; then
14945 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'
14946 else
14947 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'
14948 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14949 fi
14950 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14951 hardcode_libdir_separator_F77=:
14952 link_all_deplibs_F77=yes
14953 ;;
14954  
14955 netbsd* | netbsdelf*-gnu)
14956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14957 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14958 else
14959 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14960 fi
14961 hardcode_libdir_flag_spec_F77='-R$libdir'
14962 hardcode_direct_F77=yes
14963 hardcode_shlibpath_var_F77=no
14964 ;;
14965  
14966 newsos6)
14967 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14968 hardcode_direct_F77=yes
14969 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14970 hardcode_libdir_separator_F77=:
14971 hardcode_shlibpath_var_F77=no
14972 ;;
14973  
14974 openbsd*)
14975 if test -f /usr/libexec/ld.so; then
14976 hardcode_direct_F77=yes
14977 hardcode_shlibpath_var_F77=no
14978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14979 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14981 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14982 export_dynamic_flag_spec_F77='${wl}-E'
14983 else
14984 case $host_os in
14985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_libdir_flag_spec_F77='-R$libdir'
14988 ;;
14989 *)
14990 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14991 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14992 ;;
14993 esac
14994 fi
14995 else
14996 ld_shlibs_F77=no
14997 fi
14998 ;;
14999  
15000 os2*)
15001 hardcode_libdir_flag_spec_F77='-L$libdir'
15002 hardcode_minus_L_F77=yes
15003 allow_undefined_flag_F77=unsupported
15004 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'
15005 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15006 ;;
15007  
15008 osf3*)
15009 if test "$GCC" = yes; then
15010 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15011 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'
15012 else
15013 allow_undefined_flag_F77=' -expect_unresolved \*'
15014 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'
15015 fi
15016 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15017 hardcode_libdir_separator_F77=:
15018 ;;
15019  
15020 osf4* | osf5*) # as osf3* with the addition of -msym flag
15021 if test "$GCC" = yes; then
15022 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15023 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'
15024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15025 else
15026 allow_undefined_flag_F77=' -expect_unresolved \*'
15027 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'
15028 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~
15029 $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'
15030  
15031 # Both c and cxx compiler support -rpath directly
15032 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15033 fi
15034 hardcode_libdir_separator_F77=:
15035 ;;
15036  
15037 solaris*)
15038 no_undefined_flag_F77=' -z text'
15039 if test "$GCC" = yes; then
15040 wlarc='${wl}'
15041 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15042 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15043 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15044 else
15045 wlarc=''
15046 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15049 fi
15050 hardcode_libdir_flag_spec_F77='-R$libdir'
15051 hardcode_shlibpath_var_F77=no
15052 case $host_os in
15053 solaris2.[0-5] | solaris2.[0-5].*) ;;
15054 *)
15055 # The compiler driver will combine and reorder linker options,
15056 # but understands `-z linker_flag'. GCC discards it without `$wl',
15057 # but is careful enough not to reorder.
15058 # Supported since Solaris 2.6 (maybe 2.5.1?)
15059 if test "$GCC" = yes; then
15060 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15061 else
15062 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15063 fi
15064 ;;
15065 esac
15066 link_all_deplibs_F77=yes
15067 ;;
15068  
15069 sunos4*)
15070 if test "x$host_vendor" = xsequent; then
15071 # Use $CC to link under sequent, because it throws in some extra .o
15072 # files that make .init and .fini sections work.
15073 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15074 else
15075 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15076 fi
15077 hardcode_libdir_flag_spec_F77='-L$libdir'
15078 hardcode_direct_F77=yes
15079 hardcode_minus_L_F77=yes
15080 hardcode_shlibpath_var_F77=no
15081 ;;
15082  
15083 sysv4)
15084 case $host_vendor in
15085 sni)
15086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15087 hardcode_direct_F77=yes # is this really true???
15088 ;;
15089 siemens)
15090 ## LD is ld it makes a PLAMLIB
15091 ## CC just makes a GrossModule.
15092 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15093 reload_cmds_F77='$CC -r -o $output$reload_objs'
15094 hardcode_direct_F77=no
15095 ;;
15096 motorola)
15097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15099 ;;
15100 esac
15101 runpath_var='LD_RUN_PATH'
15102 hardcode_shlibpath_var_F77=no
15103 ;;
15104  
15105 sysv4.3*)
15106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107 hardcode_shlibpath_var_F77=no
15108 export_dynamic_flag_spec_F77='-Bexport'
15109 ;;
15110  
15111 sysv4*MP*)
15112 if test -d /usr/nec; then
15113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 hardcode_shlibpath_var_F77=no
15115 runpath_var=LD_RUN_PATH
15116 hardcode_runpath_var=yes
15117 ld_shlibs_F77=yes
15118 fi
15119 ;;
15120  
15121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15122 no_undefined_flag_F77='${wl}-z,text'
15123 archive_cmds_need_lc_F77=no
15124 hardcode_shlibpath_var_F77=no
15125 runpath_var='LD_RUN_PATH'
15126  
15127 if test "$GCC" = yes; then
15128 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130 else
15131 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 fi
15134 ;;
15135  
15136 sysv5* | sco3.2v5* | sco5v6*)
15137 # Note: We can NOT use -z defs as we might desire, because we do not
15138 # link with -lc, and that would cause any symbols used from libc to
15139 # always be unresolved, which means just about no library would
15140 # ever link correctly. If we're not using GNU ld we use -z text
15141 # though, which does catch some bad symbols but isn't as heavy-handed
15142 # as -z defs.
15143 no_undefined_flag_F77='${wl}-z,text'
15144 allow_undefined_flag_F77='${wl}-z,nodefs'
15145 archive_cmds_need_lc_F77=no
15146 hardcode_shlibpath_var_F77=no
15147 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15148 hardcode_libdir_separator_F77=':'
15149 link_all_deplibs_F77=yes
15150 export_dynamic_flag_spec_F77='${wl}-Bexport'
15151 runpath_var='LD_RUN_PATH'
15152  
15153 if test "$GCC" = yes; then
15154 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15156 else
15157 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15158 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15159 fi
15160 ;;
15161  
15162 uts4*)
15163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164 hardcode_libdir_flag_spec_F77='-L$libdir'
15165 hardcode_shlibpath_var_F77=no
15166 ;;
15167  
15168 *)
15169 ld_shlibs_F77=no
15170 ;;
15171 esac
15172 fi
15173  
15174 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15175 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15176 test "$ld_shlibs_F77" = no && can_build_shared=no
15177  
15178 #
15179 # Do we need to explicitly link libc?
15180 #
15181 case "x$archive_cmds_need_lc_F77" in
15182 x|xyes)
15183 # Assume -lc should be added
15184 archive_cmds_need_lc_F77=yes
15185  
15186 if test "$enable_shared" = yes && test "$GCC" = yes; then
15187 case $archive_cmds_F77 in
15188 *'~'*)
15189 # FIXME: we may have to deal with multi-command sequences.
15190 ;;
15191 '$CC '*)
15192 # Test whether the compiler implicitly links with -lc since on some
15193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15194 # to ld, don't add -lc before -lgcc.
15195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15197 $rm conftest*
15198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15199  
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } 2>conftest.err; then
15205 soname=conftest
15206 lib=conftest
15207 libobjs=conftest.$ac_objext
15208 deplibs=
15209 wl=$lt_prog_compiler_wl_F77
15210 pic_flag=$lt_prog_compiler_pic_F77
15211 compiler_flags=-v
15212 linker_flags=-v
15213 verstring=
15214 output_objdir=.
15215 libname=conftest
15216 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15217 allow_undefined_flag_F77=
15218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15219 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15220 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }
15223 then
15224 archive_cmds_need_lc_F77=no
15225 else
15226 archive_cmds_need_lc_F77=yes
15227 fi
15228 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15229 else
15230 cat conftest.err 1>&5
15231 fi
15232 $rm conftest*
15233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15234 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15235 ;;
15236 esac
15237 fi
15238 ;;
15239 esac
15240  
15241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15243 library_names_spec=
15244 libname_spec='lib$name'
15245 soname_spec=
15246 shrext_cmds=".so"
15247 postinstall_cmds=
15248 postuninstall_cmds=
15249 finish_cmds=
15250 finish_eval=
15251 shlibpath_var=
15252 shlibpath_overrides_runpath=unknown
15253 version_type=none
15254 dynamic_linker="$host_os ld.so"
15255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15256  
15257 need_lib_prefix=unknown
15258 hardcode_into_libs=no
15259  
15260 # when you set need_version to no, make sure it does not cause -set_version
15261 # flags to be left without arguments
15262 need_version=unknown
15263  
15264 case $host_os in
15265 aix3*)
15266 version_type=linux
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15268 shlibpath_var=LIBPATH
15269  
15270 # AIX 3 has no versioning support, so we append a major version to the name.
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 ;;
15273  
15274 aix4* | aix5*)
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 hardcode_into_libs=yes
15279 if test "$host_cpu" = ia64; then
15280 # AIX 5 supports IA64
15281 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 else
15284 # With GCC up to 2.95.x, collect2 would create an import file
15285 # for dependence libraries. The import file would start with
15286 # the line `#! .'. This would cause the generated library to
15287 # depend on `.', always an invalid library. This was fixed in
15288 # development snapshots of GCC prior to 3.0.
15289 case $host_os in
15290 aix4 | aix4.[01] | aix4.[01].*)
15291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15292 echo ' yes '
15293 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15294 :
15295 else
15296 can_build_shared=no
15297 fi
15298 ;;
15299 esac
15300 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15301 # soname into executable. Probably we can add versioning support to
15302 # collect2, so additional links can be useful in future.
15303 if test "$aix_use_runtimelinking" = yes; then
15304 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15305 # instead of lib<name>.a to let people know that these are not
15306 # typical AIX shared libraries.
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 else
15309 # We preserve .a as extension for shared libraries through AIX4.2
15310 # and later when we are not doing run time linking.
15311 library_names_spec='${libname}${release}.a $libname.a'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 fi
15314 shlibpath_var=LIBPATH
15315 fi
15316 ;;
15317  
15318 amigaos*)
15319 library_names_spec='$libname.ixlibrary $libname.a'
15320 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15321 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'
15322 ;;
15323  
15324 beos*)
15325 library_names_spec='${libname}${shared_ext}'
15326 dynamic_linker="$host_os ld.so"
15327 shlibpath_var=LIBRARY_PATH
15328 ;;
15329  
15330 bsdi[45]*)
15331 version_type=linux
15332 need_version=no
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15338 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15339 # the default ld.so.conf also contains /usr/contrib/lib and
15340 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15341 # libtool to hard-code these into programs
15342 ;;
15343  
15344 cygwin* | mingw* | pw32*)
15345 version_type=windows
15346 shrext_cmds=".dll"
15347 need_version=no
15348 need_lib_prefix=no
15349  
15350 case $GCC,$host_os in
15351 yes,cygwin* | yes,mingw* | yes,pw32*)
15352 library_names_spec='$libname.dll.a'
15353 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15354 postinstall_cmds='base_file=`basename \${file}`~
15355 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15356 dldir=$destdir/`dirname \$dlpath`~
15357 test -d \$dldir || mkdir -p \$dldir~
15358 $install_prog $dir/$dlname \$dldir/$dlname~
15359 chmod a+x \$dldir/$dlname'
15360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15361 dlpath=$dir/\$dldll~
15362 $rm \$dlpath'
15363 shlibpath_overrides_runpath=yes
15364  
15365 case $host_os in
15366 cygwin*)
15367 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15368 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15369 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15370 ;;
15371 mingw*)
15372 # MinGW DLLs use traditional 'lib' prefix
15373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15374 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15375 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15376 # It is most probably a Windows format PATH printed by
15377 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15378 # path with ; separators, and with drive letters. We can handle the
15379 # drive letters (cygwin fileutils understands them), so leave them,
15380 # especially as we might pass files found there to a mingw objdump,
15381 # which wouldn't understand a cygwinified path. Ahh.
15382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15383 else
15384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15385 fi
15386 ;;
15387 pw32*)
15388 # pw32 DLLs use 'pw' prefix rather than 'lib'
15389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15390 ;;
15391 esac
15392 ;;
15393  
15394 *)
15395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15396 ;;
15397 esac
15398 dynamic_linker='Win32 ld.exe'
15399 # FIXME: first we should search . and the directory the executable is in
15400 shlibpath_var=PATH
15401 ;;
15402  
15403 darwin* | rhapsody*)
15404 dynamic_linker="$host_os dyld"
15405 version_type=darwin
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15409 soname_spec='${libname}${release}${major}$shared_ext'
15410 shlibpath_overrides_runpath=yes
15411 shlibpath_var=DYLD_LIBRARY_PATH
15412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15413  
15414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15415 ;;
15416  
15417 dgux*)
15418 version_type=linux
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 ;;
15425  
15426 freebsd1*)
15427 dynamic_linker=no
15428 ;;
15429  
15430 freebsd* | dragonfly*)
15431 # DragonFly does not have aout. When/if they implement a new
15432 # versioning mechanism, adjust this.
15433 if test -x /usr/bin/objformat; then
15434 objformat=`/usr/bin/objformat`
15435 else
15436 case $host_os in
15437 freebsd[123]*) objformat=aout ;;
15438 *) objformat=elf ;;
15439 esac
15440 fi
15441 version_type=freebsd-$objformat
15442 case $version_type in
15443 freebsd-elf*)
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15445 need_version=no
15446 need_lib_prefix=no
15447 ;;
15448 freebsd-*)
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15450 need_version=yes
15451 ;;
15452 esac
15453 shlibpath_var=LD_LIBRARY_PATH
15454 case $host_os in
15455 freebsd2*)
15456 shlibpath_overrides_runpath=yes
15457 ;;
15458 freebsd3.[01]* | freebsdelf3.[01]*)
15459 shlibpath_overrides_runpath=yes
15460 hardcode_into_libs=yes
15461 ;;
15462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15464 shlibpath_overrides_runpath=no
15465 hardcode_into_libs=yes
15466 ;;
15467 *) # from 4.6 on, and DragonFly
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15470 ;;
15471 esac
15472 ;;
15473  
15474 gnu*)
15475 version_type=linux
15476 need_lib_prefix=no
15477 need_version=no
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 hardcode_into_libs=yes
15482 ;;
15483  
15484 hpux9* | hpux10* | hpux11*)
15485 # Give a soname corresponding to the major version so that dld.sl refuses to
15486 # link against other versions.
15487 version_type=sunos
15488 need_lib_prefix=no
15489 need_version=no
15490 case $host_cpu in
15491 ia64*)
15492 shrext_cmds='.so'
15493 hardcode_into_libs=yes
15494 dynamic_linker="$host_os dld.so"
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 if test "X$HPUX_IA64_MODE" = X32; then
15500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15501 else
15502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15503 fi
15504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15505 ;;
15506 hppa*64*)
15507 shrext_cmds='.sl'
15508 hardcode_into_libs=yes
15509 dynamic_linker="$host_os dld.sl"
15510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15516 ;;
15517 *)
15518 shrext_cmds='.sl'
15519 dynamic_linker="$host_os dld.sl"
15520 shlibpath_var=SHLIB_PATH
15521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 ;;
15525 esac
15526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15527 postinstall_cmds='chmod 555 $lib'
15528 ;;
15529  
15530 interix[3-9]*)
15531 version_type=linux
15532 need_lib_prefix=no
15533 need_version=no
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=no
15539 hardcode_into_libs=yes
15540 ;;
15541  
15542 irix5* | irix6* | nonstopux*)
15543 case $host_os in
15544 nonstopux*) version_type=nonstopux ;;
15545 *)
15546 if test "$lt_cv_prog_gnu_ld" = yes; then
15547 version_type=linux
15548 else
15549 version_type=irix
15550 fi ;;
15551 esac
15552 need_lib_prefix=no
15553 need_version=no
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15556 case $host_os in
15557 irix5* | nonstopux*)
15558 libsuff= shlibsuff=
15559 ;;
15560 *)
15561 case $LD in # libtool.m4 will add one of these switches to LD
15562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15563 libsuff= shlibsuff= libmagic=32-bit;;
15564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15565 libsuff=32 shlibsuff=N32 libmagic=N32;;
15566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15568 *) libsuff= shlibsuff= libmagic=never-match;;
15569 esac
15570 ;;
15571 esac
15572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15573 shlibpath_overrides_runpath=no
15574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15576 hardcode_into_libs=yes
15577 ;;
15578  
15579 # No shared lib support for Linux oldld, aout, or coff.
15580 linux*oldld* | linux*aout* | linux*coff*)
15581 dynamic_linker=no
15582 ;;
15583  
15584 # This must be Linux ELF.
15585 linux* | k*bsd*-gnu)
15586 version_type=linux
15587 need_lib_prefix=no
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=no
15594 # This implies no fast_install, which is unacceptable.
15595 # Some rework will be needed to allow for fast_install
15596 # before this can be enabled.
15597 hardcode_into_libs=yes
15598  
15599 # Append ld.so.conf contents to the search path
15600 if test -f /etc/ld.so.conf; then
15601 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' ' '`
15602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15603 fi
15604  
15605 # We used to test for /lib/ld.so.1 and disable shared libraries on
15606 # powerpc, because MkLinux only supported shared libraries with the
15607 # GNU dynamic linker. Since this was broken with cross compilers,
15608 # most powerpc-linux boxes support dynamic linking these days and
15609 # people can always --disable-shared, the test was removed, and we
15610 # assume the GNU/Linux dynamic linker is in use.
15611 dynamic_linker='GNU/Linux ld.so'
15612 ;;
15613  
15614 netbsdelf*-gnu)
15615 version_type=linux
15616 need_lib_prefix=no
15617 need_version=no
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 shlibpath_overrides_runpath=no
15622 hardcode_into_libs=yes
15623 dynamic_linker='NetBSD ld.elf_so'
15624 ;;
15625  
15626 netbsd*)
15627 version_type=sunos
15628 need_lib_prefix=no
15629 need_version=no
15630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15633 dynamic_linker='NetBSD (a.out) ld.so'
15634 else
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 dynamic_linker='NetBSD ld.elf_so'
15638 fi
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=yes
15641 hardcode_into_libs=yes
15642 ;;
15643  
15644 newsos6)
15645 version_type=linux
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=yes
15649 ;;
15650  
15651 nto-qnx*)
15652 version_type=linux
15653 need_lib_prefix=no
15654 need_version=no
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 shlibpath_overrides_runpath=yes
15659 ;;
15660  
15661 openbsd*)
15662 version_type=sunos
15663 sys_lib_dlsearch_path_spec="/usr/lib"
15664 need_lib_prefix=no
15665 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15666 case $host_os in
15667 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15668 *) need_version=no ;;
15669 esac
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15674 case $host_os in
15675 openbsd2.[89] | openbsd2.[89].*)
15676 shlibpath_overrides_runpath=no
15677 ;;
15678 *)
15679 shlibpath_overrides_runpath=yes
15680 ;;
15681 esac
15682 else
15683 shlibpath_overrides_runpath=yes
15684 fi
15685 ;;
15686  
15687 os2*)
15688 libname_spec='$name'
15689 shrext_cmds=".dll"
15690 need_lib_prefix=no
15691 library_names_spec='$libname${shared_ext} $libname.a'
15692 dynamic_linker='OS/2 ld.exe'
15693 shlibpath_var=LIBPATH
15694 ;;
15695  
15696 osf3* | osf4* | osf5*)
15697 version_type=osf
15698 need_lib_prefix=no
15699 need_version=no
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15704 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15705 ;;
15706  
15707 rdos*)
15708 dynamic_linker=no
15709 ;;
15710  
15711 solaris*)
15712 version_type=linux
15713 need_lib_prefix=no
15714 need_version=no
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=yes
15719 hardcode_into_libs=yes
15720 # ldd complains unless libraries are executable
15721 postinstall_cmds='chmod +x $lib'
15722 ;;
15723  
15724 sunos4*)
15725 version_type=sunos
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes
15730 if test "$with_gnu_ld" = yes; then
15731 need_lib_prefix=no
15732 fi
15733 need_version=yes
15734 ;;
15735  
15736 sysv4 | sysv4.3*)
15737 version_type=linux
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 case $host_vendor in
15742 sni)
15743 shlibpath_overrides_runpath=no
15744 need_lib_prefix=no
15745 export_dynamic_flag_spec='${wl}-Blargedynsym'
15746 runpath_var=LD_RUN_PATH
15747 ;;
15748 siemens)
15749 need_lib_prefix=no
15750 ;;
15751 motorola)
15752 need_lib_prefix=no
15753 need_version=no
15754 shlibpath_overrides_runpath=no
15755 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15756 ;;
15757 esac
15758 ;;
15759  
15760 sysv4*MP*)
15761 if test -d /usr/nec ;then
15762 version_type=linux
15763 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15764 soname_spec='$libname${shared_ext}.$major'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 fi
15767 ;;
15768  
15769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15770 version_type=freebsd-elf
15771 need_lib_prefix=no
15772 need_version=no
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 hardcode_into_libs=yes
15777 if test "$with_gnu_ld" = yes; then
15778 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15779 shlibpath_overrides_runpath=no
15780 else
15781 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15782 shlibpath_overrides_runpath=yes
15783 case $host_os in
15784 sco3.2v5*)
15785 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15786 ;;
15787 esac
15788 fi
15789 sys_lib_dlsearch_path_spec='/usr/lib'
15790 ;;
15791  
15792 uts4*)
15793 version_type=linux
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 ;;
15798  
15799 *)
15800 dynamic_linker=no
15801 ;;
15802 esac
15803 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15804 echo "${ECHO_T}$dynamic_linker" >&6; }
15805 test "$dynamic_linker" = no && can_build_shared=no
15806  
15807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808 if test "$GCC" = yes; then
15809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15810 fi
15811  
15812 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15814 hardcode_action_F77=
15815 if test -n "$hardcode_libdir_flag_spec_F77" || \
15816 test -n "$runpath_var_F77" || \
15817 test "X$hardcode_automatic_F77" = "Xyes" ; then
15818  
15819 # We can hardcode non-existant directories.
15820 if test "$hardcode_direct_F77" != no &&
15821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15822 # have to relink, otherwise we might link with an installed library
15823 # when we should be linking with a yet-to-be-installed one
15824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15825 test "$hardcode_minus_L_F77" != no; then
15826 # Linking always hardcodes the temporary library directory.
15827 hardcode_action_F77=relink
15828 else
15829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15830 hardcode_action_F77=immediate
15831 fi
15832 else
15833 # We cannot hardcode anything, or else we can only hardcode existing
15834 # directories.
15835 hardcode_action_F77=unsupported
15836 fi
15837 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15838 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15839  
15840 if test "$hardcode_action_F77" = relink; then
15841 # Fast installation is not supported
15842 enable_fast_install=no
15843 elif test "$shlibpath_overrides_runpath" = yes ||
15844 test "$enable_shared" = no; then
15845 # Fast installation is not necessary
15846 enable_fast_install=needless
15847 fi
15848  
15849  
15850 # The else clause should only fire when bootstrapping the
15851 # libtool distribution, otherwise you forgot to ship ltmain.sh
15852 # with your package, and you will get complaints that there are
15853 # no rules to generate ltmain.sh.
15854 if test -f "$ltmain"; then
15855 # See if we are running on zsh, and set the options which allow our commands through
15856 # without removal of \ escapes.
15857 if test -n "${ZSH_VERSION+set}" ; then
15858 setopt NO_GLOB_SUBST
15859 fi
15860 # Now quote all the things that may contain metacharacters while being
15861 # careful not to overquote the AC_SUBSTed values. We take copies of the
15862 # variables and quote the copies for generation of the libtool script.
15863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15864 SED SHELL STRIP \
15865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15867 deplibs_check_method reload_flag reload_cmds need_locks \
15868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15869 lt_cv_sys_global_symbol_to_c_name_address \
15870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15871 old_postinstall_cmds old_postuninstall_cmds \
15872 compiler_F77 \
15873 CC_F77 \
15874 LD_F77 \
15875 lt_prog_compiler_wl_F77 \
15876 lt_prog_compiler_pic_F77 \
15877 lt_prog_compiler_static_F77 \
15878 lt_prog_compiler_no_builtin_flag_F77 \
15879 export_dynamic_flag_spec_F77 \
15880 thread_safe_flag_spec_F77 \
15881 whole_archive_flag_spec_F77 \
15882 enable_shared_with_static_runtimes_F77 \
15883 old_archive_cmds_F77 \
15884 old_archive_from_new_cmds_F77 \
15885 predep_objects_F77 \
15886 postdep_objects_F77 \
15887 predeps_F77 \
15888 postdeps_F77 \
15889 compiler_lib_search_path_F77 \
15890 archive_cmds_F77 \
15891 archive_expsym_cmds_F77 \
15892 postinstall_cmds_F77 \
15893 postuninstall_cmds_F77 \
15894 old_archive_from_expsyms_cmds_F77 \
15895 allow_undefined_flag_F77 \
15896 no_undefined_flag_F77 \
15897 export_symbols_cmds_F77 \
15898 hardcode_libdir_flag_spec_F77 \
15899 hardcode_libdir_flag_spec_ld_F77 \
15900 hardcode_libdir_separator_F77 \
15901 hardcode_automatic_F77 \
15902 module_cmds_F77 \
15903 module_expsym_cmds_F77 \
15904 lt_cv_prog_compiler_c_o_F77 \
15905 fix_srcfile_path_F77 \
15906 exclude_expsyms_F77 \
15907 include_expsyms_F77; do
15908  
15909 case $var in
15910 old_archive_cmds_F77 | \
15911 old_archive_from_new_cmds_F77 | \
15912 archive_cmds_F77 | \
15913 archive_expsym_cmds_F77 | \
15914 module_cmds_F77 | \
15915 module_expsym_cmds_F77 | \
15916 old_archive_from_expsyms_cmds_F77 | \
15917 export_symbols_cmds_F77 | \
15918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15919 postinstall_cmds | postuninstall_cmds | \
15920 old_postinstall_cmds | old_postuninstall_cmds | \
15921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15922 # Double-quote double-evaled strings.
15923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15924 ;;
15925 *)
15926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15927 ;;
15928 esac
15929 done
15930  
15931 case $lt_echo in
15932 *'\$0 --fallback-echo"')
15933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15934 ;;
15935 esac
15936  
15937 cfgfile="$ofile"
15938  
15939 cat <<__EOF__ >> "$cfgfile"
15940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15941  
15942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15943  
15944 # Shell to use when invoking shell scripts.
15945 SHELL=$lt_SHELL
15946  
15947 # Whether or not to build shared libraries.
15948 build_libtool_libs=$enable_shared
15949  
15950 # Whether or not to build static libraries.
15951 build_old_libs=$enable_static
15952  
15953 # Whether or not to add -lc for building shared libraries.
15954 build_libtool_need_lc=$archive_cmds_need_lc_F77
15955  
15956 # Whether or not to disallow shared libs when runtime libs are static
15957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15958  
15959 # Whether or not to optimize for fast installation.
15960 fast_install=$enable_fast_install
15961  
15962 # The host system.
15963 host_alias=$host_alias
15964 host=$host
15965 host_os=$host_os
15966  
15967 # The build system.
15968 build_alias=$build_alias
15969 build=$build
15970 build_os=$build_os
15971  
15972 # An echo program that does not interpret backslashes.
15973 echo=$lt_echo
15974  
15975 # The archiver.
15976 AR=$lt_AR
15977 AR_FLAGS=$lt_AR_FLAGS
15978  
15979 # A C compiler.
15980 LTCC=$lt_LTCC
15981  
15982 # LTCC compiler flags.
15983 LTCFLAGS=$lt_LTCFLAGS
15984  
15985 # A language-specific compiler.
15986 CC=$lt_compiler_F77
15987  
15988 # Is the compiler the GNU C compiler?
15989 with_gcc=$GCC_F77
15990  
15991 # An ERE matcher.
15992 EGREP=$lt_EGREP
15993  
15994 # The linker used to build libraries.
15995 LD=$lt_LD_F77
15996  
15997 # Whether we need hard or soft links.
15998 LN_S=$lt_LN_S
15999  
16000 # A BSD-compatible nm program.
16001 NM=$lt_NM
16002  
16003 # A symbol stripping program
16004 STRIP=$lt_STRIP
16005  
16006 # Used to examine libraries when file_magic_cmd begins "file"
16007 MAGIC_CMD=$MAGIC_CMD
16008  
16009 # Used on cygwin: DLL creation program.
16010 DLLTOOL="$DLLTOOL"
16011  
16012 # Used on cygwin: object dumper.
16013 OBJDUMP="$OBJDUMP"
16014  
16015 # Used on cygwin: assembler.
16016 AS="$AS"
16017  
16018 # The name of the directory that contains temporary libtool files.
16019 objdir=$objdir
16020  
16021 # How to create reloadable object files.
16022 reload_flag=$lt_reload_flag
16023 reload_cmds=$lt_reload_cmds
16024  
16025 # How to pass a linker flag through the compiler.
16026 wl=$lt_lt_prog_compiler_wl_F77
16027  
16028 # Object file suffix (normally "o").
16029 objext="$ac_objext"
16030  
16031 # Old archive suffix (normally "a").
16032 libext="$libext"
16033  
16034 # Shared library suffix (normally ".so").
16035 shrext_cmds='$shrext_cmds'
16036  
16037 # Executable file suffix (normally "").
16038 exeext="$exeext"
16039  
16040 # Additional compiler flags for building library objects.
16041 pic_flag=$lt_lt_prog_compiler_pic_F77
16042 pic_mode=$pic_mode
16043  
16044 # What is the maximum length of a command?
16045 max_cmd_len=$lt_cv_sys_max_cmd_len
16046  
16047 # Does compiler simultaneously support -c and -o options?
16048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16049  
16050 # Must we lock files when doing compilation?
16051 need_locks=$lt_need_locks
16052  
16053 # Do we need the lib prefix for modules?
16054 need_lib_prefix=$need_lib_prefix
16055  
16056 # Do we need a version for libraries?
16057 need_version=$need_version
16058  
16059 # Whether dlopen is supported.
16060 dlopen_support=$enable_dlopen
16061  
16062 # Whether dlopen of programs is supported.
16063 dlopen_self=$enable_dlopen_self
16064  
16065 # Whether dlopen of statically linked programs is supported.
16066 dlopen_self_static=$enable_dlopen_self_static
16067  
16068 # Compiler flag to prevent dynamic linking.
16069 link_static_flag=$lt_lt_prog_compiler_static_F77
16070  
16071 # Compiler flag to turn off builtin functions.
16072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16073  
16074 # Compiler flag to allow reflexive dlopens.
16075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16076  
16077 # Compiler flag to generate shared objects directly from archives.
16078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16079  
16080 # Compiler flag to generate thread-safe objects.
16081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16082  
16083 # Library versioning type.
16084 version_type=$version_type
16085  
16086 # Format of library name prefix.
16087 libname_spec=$lt_libname_spec
16088  
16089 # List of archive names. First name is the real one, the rest are links.
16090 # The last name is the one that the linker finds with -lNAME.
16091 library_names_spec=$lt_library_names_spec
16092  
16093 # The coded name of the library, if different from the real name.
16094 soname_spec=$lt_soname_spec
16095  
16096 # Commands used to build and install an old-style archive.
16097 RANLIB=$lt_RANLIB
16098 old_archive_cmds=$lt_old_archive_cmds_F77
16099 old_postinstall_cmds=$lt_old_postinstall_cmds
16100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16101  
16102 # Create an old-style archive from a shared archive.
16103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16104  
16105 # Create a temporary old-style archive to link instead of a shared archive.
16106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16107  
16108 # Commands used to build and install a shared archive.
16109 archive_cmds=$lt_archive_cmds_F77
16110 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16111 postinstall_cmds=$lt_postinstall_cmds
16112 postuninstall_cmds=$lt_postuninstall_cmds
16113  
16114 # Commands used to build a loadable module (assumed same as above if empty)
16115 module_cmds=$lt_module_cmds_F77
16116 module_expsym_cmds=$lt_module_expsym_cmds_F77
16117  
16118 # Commands to strip libraries.
16119 old_striplib=$lt_old_striplib
16120 striplib=$lt_striplib
16121  
16122 # Dependencies to place before the objects being linked to create a
16123 # shared library.
16124 predep_objects=$lt_predep_objects_F77
16125  
16126 # Dependencies to place after the objects being linked to create a
16127 # shared library.
16128 postdep_objects=$lt_postdep_objects_F77
16129  
16130 # Dependencies to place before the objects being linked to create a
16131 # shared library.
16132 predeps=$lt_predeps_F77
16133  
16134 # Dependencies to place after the objects being linked to create a
16135 # shared library.
16136 postdeps=$lt_postdeps_F77
16137  
16138 # The library search path used internally by the compiler when linking
16139 # a shared library.
16140 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16141  
16142 # Method to check whether dependent libraries are shared objects.
16143 deplibs_check_method=$lt_deplibs_check_method
16144  
16145 # Command to use when deplibs_check_method == file_magic.
16146 file_magic_cmd=$lt_file_magic_cmd
16147  
16148 # Flag that allows shared libraries with undefined symbols to be built.
16149 allow_undefined_flag=$lt_allow_undefined_flag_F77
16150  
16151 # Flag that forces no undefined symbols.
16152 no_undefined_flag=$lt_no_undefined_flag_F77
16153  
16154 # Commands used to finish a libtool library installation in a directory.
16155 finish_cmds=$lt_finish_cmds
16156  
16157 # Same as above, but a single script fragment to be evaled but not shown.
16158 finish_eval=$lt_finish_eval
16159  
16160 # Take the output of nm and produce a listing of raw symbols and C names.
16161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16162  
16163 # Transform the output of nm in a proper C declaration
16164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16165  
16166 # Transform the output of nm in a C name address pair
16167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16168  
16169 # This is the shared library runtime path variable.
16170 runpath_var=$runpath_var
16171  
16172 # This is the shared library path variable.
16173 shlibpath_var=$shlibpath_var
16174  
16175 # Is shlibpath searched before the hard-coded library search path?
16176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16177  
16178 # How to hardcode a shared library path into an executable.
16179 hardcode_action=$hardcode_action_F77
16180  
16181 # Whether we should hardcode library paths into libraries.
16182 hardcode_into_libs=$hardcode_into_libs
16183  
16184 # Flag to hardcode \$libdir into a binary during linking.
16185 # This must work even if \$libdir does not exist.
16186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16187  
16188 # If ld is used when linking, flag to hardcode \$libdir into
16189 # a binary during linking. This must work even if \$libdir does
16190 # not exist.
16191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16192  
16193 # Whether we need a single -rpath flag with a separated argument.
16194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16195  
16196 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16197 # resulting binary.
16198 hardcode_direct=$hardcode_direct_F77
16199  
16200 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16201 # resulting binary.
16202 hardcode_minus_L=$hardcode_minus_L_F77
16203  
16204 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16205 # the resulting binary.
16206 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16207  
16208 # Set to yes if building a shared library automatically hardcodes DIR into the library
16209 # and all subsequent libraries and executables linked against it.
16210 hardcode_automatic=$hardcode_automatic_F77
16211  
16212 # Variables whose values should be saved in libtool wrapper scripts and
16213 # restored at relink time.
16214 variables_saved_for_relink="$variables_saved_for_relink"
16215  
16216 # Whether libtool must link a program against all its dependency libraries.
16217 link_all_deplibs=$link_all_deplibs_F77
16218  
16219 # Compile-time system search path for libraries
16220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16221  
16222 # Run-time system search path for libraries
16223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16224  
16225 # Fix the shell variable \$srcfile for the compiler.
16226 fix_srcfile_path=$lt_fix_srcfile_path
16227  
16228 # Set to yes if exported symbols are required.
16229 always_export_symbols=$always_export_symbols_F77
16230  
16231 # The commands to list exported symbols.
16232 export_symbols_cmds=$lt_export_symbols_cmds_F77
16233  
16234 # The commands to extract the exported symbol list from a shared archive.
16235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16236  
16237 # Symbols that should not be listed in the preloaded symbols.
16238 exclude_expsyms=$lt_exclude_expsyms_F77
16239  
16240 # Symbols that must always be exported.
16241 include_expsyms=$lt_include_expsyms_F77
16242  
16243 # ### END LIBTOOL TAG CONFIG: $tagname
16244  
16245 __EOF__
16246  
16247  
16248 else
16249 # If there is no Makefile yet, we rely on a make rule to execute
16250 # `config.status --recheck' to rerun these tests and create the
16251 # libtool script then.
16252 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16253 if test -f "$ltmain_in"; then
16254 test -f Makefile && make "$ltmain"
16255 fi
16256 fi
16257  
16258  
16259 ac_ext=c
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264  
16265 CC="$lt_save_CC"
16266  
16267 else
16268 tagname=""
16269 fi
16270 ;;
16271  
16272 GCJ)
16273 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16274  
16275  
16276 # Source file extension for Java test sources.
16277 ac_ext=java
16278  
16279 # Object file extension for compiled Java test sources.
16280 objext=o
16281 objext_GCJ=$objext
16282  
16283 # Code to be used in simple compile tests
16284 lt_simple_compile_test_code="class foo {}"
16285  
16286 # Code to be used in simple link tests
16287 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16288  
16289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16290  
16291 # If no C compiler was specified, use CC.
16292 LTCC=${LTCC-"$CC"}
16293  
16294 # If no C compiler flags were specified, use CFLAGS.
16295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16296  
16297 # Allow CC to be a program name with arguments.
16298 compiler=$CC
16299  
16300  
16301 # save warnings/boilerplate of simple test code
16302 ac_outfile=conftest.$ac_objext
16303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16305 _lt_compiler_boilerplate=`cat conftest.err`
16306 $rm conftest*
16307  
16308 ac_outfile=conftest.$ac_objext
16309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16311 _lt_linker_boilerplate=`cat conftest.err`
16312 $rm conftest*
16313  
16314  
16315 # Allow CC to be a program name with arguments.
16316 lt_save_CC="$CC"
16317 CC=${GCJ-"gcj"}
16318 compiler=$CC
16319 compiler_GCJ=$CC
16320 for cc_temp in $compiler""; do
16321 case $cc_temp in
16322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16324 \-*) ;;
16325 *) break;;
16326 esac
16327 done
16328 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16329  
16330  
16331 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16332 archive_cmds_need_lc_GCJ=no
16333  
16334 old_archive_cmds_GCJ=$old_archive_cmds
16335  
16336  
16337 lt_prog_compiler_no_builtin_flag_GCJ=
16338  
16339 if test "$GCC" = yes; then
16340 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16341  
16342  
16343 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16344 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16345 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348 lt_cv_prog_compiler_rtti_exceptions=no
16349 ac_outfile=conftest.$ac_objext
16350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16351 lt_compiler_flag="-fno-rtti -fno-exceptions"
16352 # Insert the option either (1) after the last *FLAGS variable, or
16353 # (2) before a word containing "conftest.", or (3) at the end.
16354 # Note that $ac_compile itself does not contain backslashes and begins
16355 # with a dollar sign (not a hyphen), so the echo should work correctly.
16356 # The option is referenced via a variable to avoid confusing sed.
16357 lt_compile=`echo "$ac_compile" | $SED \
16358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16360 -e 's:$: $lt_compiler_flag:'`
16361 (eval echo "\"\$as_me:16361: $lt_compile\"" >&5)
16362 (eval "$lt_compile" 2>conftest.err)
16363 ac_status=$?
16364 cat conftest.err >&5
16365 echo "$as_me:16365: \$? = $ac_status" >&5
16366 if (exit $ac_status) && test -s "$ac_outfile"; then
16367 # The compiler can only warn and ignore the option if not recognized
16368 # So say no if there are warnings other than the usual output.
16369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16372 lt_cv_prog_compiler_rtti_exceptions=yes
16373 fi
16374 fi
16375 $rm conftest*
16376  
16377 fi
16378 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16379 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16380  
16381 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16382 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16383 else
16384 :
16385 fi
16386  
16387 fi
16388  
16389 lt_prog_compiler_wl_GCJ=
16390 lt_prog_compiler_pic_GCJ=
16391 lt_prog_compiler_static_GCJ=
16392  
16393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16395  
16396 if test "$GCC" = yes; then
16397 lt_prog_compiler_wl_GCJ='-Wl,'
16398 lt_prog_compiler_static_GCJ='-static'
16399  
16400 case $host_os in
16401 aix*)
16402 # All AIX code is PIC.
16403 if test "$host_cpu" = ia64; then
16404 # AIX 5 now supports IA64 processor
16405 lt_prog_compiler_static_GCJ='-Bstatic'
16406 fi
16407 ;;
16408  
16409 amigaos*)
16410 # FIXME: we need at least 68020 code to build shared libraries, but
16411 # adding the `-m68020' flag to GCC prevents building anything better,
16412 # like `-m68040'.
16413 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16414 ;;
16415  
16416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16417 # PIC is the default for these OSes.
16418 ;;
16419  
16420 mingw* | cygwin* | pw32* | os2*)
16421 # This hack is so that the source file can tell whether it is being
16422 # built for inclusion in a dll (and should export symbols for example).
16423 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16424 # (--disable-auto-import) libraries
16425 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16426 ;;
16427  
16428 darwin* | rhapsody*)
16429 # PIC is the default on this platform
16430 # Common symbols not allowed in MH_DYLIB files
16431 lt_prog_compiler_pic_GCJ='-fno-common'
16432 ;;
16433  
16434 interix[3-9]*)
16435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16436 # Instead, we relocate shared libraries at runtime.
16437 ;;
16438  
16439 msdosdjgpp*)
16440 # Just because we use GCC doesn't mean we suddenly get shared libraries
16441 # on systems that don't support them.
16442 lt_prog_compiler_can_build_shared_GCJ=no
16443 enable_shared=no
16444 ;;
16445  
16446 sysv4*MP*)
16447 if test -d /usr/nec; then
16448 lt_prog_compiler_pic_GCJ=-Kconform_pic
16449 fi
16450 ;;
16451  
16452 hpux*)
16453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16454 # not for PA HP-UX.
16455 case $host_cpu in
16456 hppa*64*|ia64*)
16457 # +Z the default
16458 ;;
16459 *)
16460 lt_prog_compiler_pic_GCJ='-fPIC'
16461 ;;
16462 esac
16463 ;;
16464  
16465 *)
16466 lt_prog_compiler_pic_GCJ='-fPIC'
16467 ;;
16468 esac
16469 else
16470 # PORTME Check for flag to pass linker flags through the system compiler.
16471 case $host_os in
16472 aix*)
16473 lt_prog_compiler_wl_GCJ='-Wl,'
16474 if test "$host_cpu" = ia64; then
16475 # AIX 5 now supports IA64 processor
16476 lt_prog_compiler_static_GCJ='-Bstatic'
16477 else
16478 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16479 fi
16480 ;;
16481 darwin*)
16482 # PIC is the default on this platform
16483 # Common symbols not allowed in MH_DYLIB files
16484 case $cc_basename in
16485 xlc*)
16486 lt_prog_compiler_pic_GCJ='-qnocommon'
16487 lt_prog_compiler_wl_GCJ='-Wl,'
16488 ;;
16489 esac
16490 ;;
16491  
16492 mingw* | cygwin* | pw32* | os2*)
16493 # This hack is so that the source file can tell whether it is being
16494 # built for inclusion in a dll (and should export symbols for example).
16495 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16496 ;;
16497  
16498 hpux9* | hpux10* | hpux11*)
16499 lt_prog_compiler_wl_GCJ='-Wl,'
16500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16501 # not for PA HP-UX.
16502 case $host_cpu in
16503 hppa*64*|ia64*)
16504 # +Z the default
16505 ;;
16506 *)
16507 lt_prog_compiler_pic_GCJ='+Z'
16508 ;;
16509 esac
16510 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16511 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16512 ;;
16513  
16514 irix5* | irix6* | nonstopux*)
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16516 # PIC (with -KPIC) is the default.
16517 lt_prog_compiler_static_GCJ='-non_shared'
16518 ;;
16519  
16520 newsos6)
16521 lt_prog_compiler_pic_GCJ='-KPIC'
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16523 ;;
16524  
16525 linux* | k*bsd*-gnu)
16526 case $cc_basename in
16527 icc* | ecc*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 lt_prog_compiler_pic_GCJ='-KPIC'
16530 lt_prog_compiler_static_GCJ='-static'
16531 ;;
16532 pgcc* | pgf77* | pgf90* | pgf95*)
16533 # Portland Group compilers (*not* the Pentium gcc compiler,
16534 # which looks to be a dead project)
16535 lt_prog_compiler_wl_GCJ='-Wl,'
16536 lt_prog_compiler_pic_GCJ='-fpic'
16537 lt_prog_compiler_static_GCJ='-Bstatic'
16538 ;;
16539 ccc*)
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16541 # All Alpha code is PIC.
16542 lt_prog_compiler_static_GCJ='-non_shared'
16543 ;;
16544 *)
16545 case `$CC -V 2>&1 | sed 5q` in
16546 *Sun\ C*)
16547 # Sun C 5.9
16548 lt_prog_compiler_pic_GCJ='-KPIC'
16549 lt_prog_compiler_static_GCJ='-Bstatic'
16550 lt_prog_compiler_wl_GCJ='-Wl,'
16551 ;;
16552 *Sun\ F*)
16553 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16554 lt_prog_compiler_pic_GCJ='-KPIC'
16555 lt_prog_compiler_static_GCJ='-Bstatic'
16556 lt_prog_compiler_wl_GCJ=''
16557 ;;
16558 esac
16559 ;;
16560 esac
16561 ;;
16562  
16563 osf3* | osf4* | osf5*)
16564 lt_prog_compiler_wl_GCJ='-Wl,'
16565 # All OSF/1 code is PIC.
16566 lt_prog_compiler_static_GCJ='-non_shared'
16567 ;;
16568  
16569 rdos*)
16570 lt_prog_compiler_static_GCJ='-non_shared'
16571 ;;
16572  
16573 solaris*)
16574 lt_prog_compiler_pic_GCJ='-KPIC'
16575 lt_prog_compiler_static_GCJ='-Bstatic'
16576 case $cc_basename in
16577 f77* | f90* | f95*)
16578 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16579 *)
16580 lt_prog_compiler_wl_GCJ='-Wl,';;
16581 esac
16582 ;;
16583  
16584 sunos4*)
16585 lt_prog_compiler_wl_GCJ='-Qoption ld '
16586 lt_prog_compiler_pic_GCJ='-PIC'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16588 ;;
16589  
16590 sysv4 | sysv4.2uw2* | sysv4.3*)
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 lt_prog_compiler_pic_GCJ='-KPIC'
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16594 ;;
16595  
16596 sysv4*MP*)
16597 if test -d /usr/nec ;then
16598 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16600 fi
16601 ;;
16602  
16603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 lt_prog_compiler_pic_GCJ='-KPIC'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16607 ;;
16608  
16609 unicos*)
16610 lt_prog_compiler_wl_GCJ='-Wl,'
16611 lt_prog_compiler_can_build_shared_GCJ=no
16612 ;;
16613  
16614 uts4*)
16615 lt_prog_compiler_pic_GCJ='-pic'
16616 lt_prog_compiler_static_GCJ='-Bstatic'
16617 ;;
16618  
16619 *)
16620 lt_prog_compiler_can_build_shared_GCJ=no
16621 ;;
16622 esac
16623 fi
16624  
16625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16626 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16627  
16628 #
16629 # Check to make sure the PIC flag actually works.
16630 #
16631 if test -n "$lt_prog_compiler_pic_GCJ"; then
16632  
16633 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16634 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16635 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638 lt_prog_compiler_pic_works_GCJ=no
16639 ac_outfile=conftest.$ac_objext
16640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16641 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16642 # Insert the option either (1) after the last *FLAGS variable, or
16643 # (2) before a word containing "conftest.", or (3) at the end.
16644 # Note that $ac_compile itself does not contain backslashes and begins
16645 # with a dollar sign (not a hyphen), so the echo should work correctly.
16646 # The option is referenced via a variable to avoid confusing sed.
16647 lt_compile=`echo "$ac_compile" | $SED \
16648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16650 -e 's:$: $lt_compiler_flag:'`
16651 (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
16652 (eval "$lt_compile" 2>conftest.err)
16653 ac_status=$?
16654 cat conftest.err >&5
16655 echo "$as_me:16655: \$? = $ac_status" >&5
16656 if (exit $ac_status) && test -s "$ac_outfile"; then
16657 # The compiler can only warn and ignore the option if not recognized
16658 # So say no if there are warnings other than the usual output.
16659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16662 lt_prog_compiler_pic_works_GCJ=yes
16663 fi
16664 fi
16665 $rm conftest*
16666  
16667 fi
16668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16669 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16670  
16671 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16672 case $lt_prog_compiler_pic_GCJ in
16673 "" | " "*) ;;
16674 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16675 esac
16676 else
16677 lt_prog_compiler_pic_GCJ=
16678 lt_prog_compiler_can_build_shared_GCJ=no
16679 fi
16680  
16681 fi
16682 case $host_os in
16683 # For platforms which do not support PIC, -DPIC is meaningless:
16684 *djgpp*)
16685 lt_prog_compiler_pic_GCJ=
16686 ;;
16687 *)
16688 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16689 ;;
16690 esac
16691  
16692 #
16693 # Check to make sure the static flag actually works.
16694 #
16695 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16696 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16697 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16698 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 lt_prog_compiler_static_works_GCJ=no
16702 save_LDFLAGS="$LDFLAGS"
16703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16706 # The linker can only warn and ignore the option if not recognized
16707 # So say no if there are warnings
16708 if test -s conftest.err; then
16709 # Append any errors to the config.log.
16710 cat conftest.err 1>&5
16711 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16713 if diff conftest.exp conftest.er2 >/dev/null; then
16714 lt_prog_compiler_static_works_GCJ=yes
16715 fi
16716 else
16717 lt_prog_compiler_static_works_GCJ=yes
16718 fi
16719 fi
16720 $rm conftest*
16721 LDFLAGS="$save_LDFLAGS"
16722  
16723 fi
16724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16725 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16726  
16727 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16728 :
16729 else
16730 lt_prog_compiler_static_GCJ=
16731 fi
16732  
16733  
16734 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16735 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16736 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739 lt_cv_prog_compiler_c_o_GCJ=no
16740 $rm -r conftest 2>/dev/null
16741 mkdir conftest
16742 cd conftest
16743 mkdir out
16744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16745  
16746 lt_compiler_flag="-o out/conftest2.$ac_objext"
16747 # Insert the option either (1) after the last *FLAGS variable, or
16748 # (2) before a word containing "conftest.", or (3) at the end.
16749 # Note that $ac_compile itself does not contain backslashes and begins
16750 # with a dollar sign (not a hyphen), so the echo should work correctly.
16751 lt_compile=`echo "$ac_compile" | $SED \
16752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16754 -e 's:$: $lt_compiler_flag:'`
16755 (eval echo "\"\$as_me:16755: $lt_compile\"" >&5)
16756 (eval "$lt_compile" 2>out/conftest.err)
16757 ac_status=$?
16758 cat out/conftest.err >&5
16759 echo "$as_me:16759: \$? = $ac_status" >&5
16760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16761 then
16762 # The compiler can only warn and ignore the option if not recognized
16763 # So say no if there are warnings
16764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16767 lt_cv_prog_compiler_c_o_GCJ=yes
16768 fi
16769 fi
16770 chmod u+w . 2>&5
16771 $rm conftest*
16772 # SGI C++ compiler will create directory out/ii_files/ for
16773 # template instantiation
16774 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16775 $rm out/* && rmdir out
16776 cd ..
16777 rmdir conftest
16778 $rm conftest*
16779  
16780 fi
16781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16782 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16783  
16784  
16785 hard_links="nottested"
16786 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16787 # do not overwrite the value of need_locks provided by the user
16788 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16789 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16790 hard_links=yes
16791 $rm conftest*
16792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16793 touch conftest.a
16794 ln conftest.a conftest.b 2>&5 || hard_links=no
16795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16796 { echo "$as_me:$LINENO: result: $hard_links" >&5
16797 echo "${ECHO_T}$hard_links" >&6; }
16798 if test "$hard_links" = no; then
16799 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16800 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16801 need_locks=warn
16802 fi
16803 else
16804 need_locks=no
16805 fi
16806  
16807 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16808 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16809  
16810 runpath_var=
16811 allow_undefined_flag_GCJ=
16812 enable_shared_with_static_runtimes_GCJ=no
16813 archive_cmds_GCJ=
16814 archive_expsym_cmds_GCJ=
16815 old_archive_From_new_cmds_GCJ=
16816 old_archive_from_expsyms_cmds_GCJ=
16817 export_dynamic_flag_spec_GCJ=
16818 whole_archive_flag_spec_GCJ=
16819 thread_safe_flag_spec_GCJ=
16820 hardcode_libdir_flag_spec_GCJ=
16821 hardcode_libdir_flag_spec_ld_GCJ=
16822 hardcode_libdir_separator_GCJ=
16823 hardcode_direct_GCJ=no
16824 hardcode_minus_L_GCJ=no
16825 hardcode_shlibpath_var_GCJ=unsupported
16826 link_all_deplibs_GCJ=unknown
16827 hardcode_automatic_GCJ=no
16828 module_cmds_GCJ=
16829 module_expsym_cmds_GCJ=
16830 always_export_symbols_GCJ=no
16831 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16832 # include_expsyms should be a list of space-separated symbols to be *always*
16833 # included in the symbol list
16834 include_expsyms_GCJ=
16835 # exclude_expsyms can be an extended regexp of symbols to exclude
16836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16838 # as well as any symbol that contains `d'.
16839 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16841 # platforms (ab)use it in PIC code, but their linkers get confused if
16842 # the symbol is explicitly referenced. Since portable code cannot
16843 # rely on this symbol name, it's probably fine to never include it in
16844 # preloaded symbol tables.
16845 extract_expsyms_cmds=
16846 # Just being paranoid about ensuring that cc_basename is set.
16847 for cc_temp in $compiler""; do
16848 case $cc_temp in
16849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16851 \-*) ;;
16852 *) break;;
16853 esac
16854 done
16855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16856  
16857 case $host_os in
16858 cygwin* | mingw* | pw32*)
16859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16860 # When not using gcc, we currently assume that we are using
16861 # Microsoft Visual C++.
16862 if test "$GCC" != yes; then
16863 with_gnu_ld=no
16864 fi
16865 ;;
16866 interix*)
16867 # we just hope/assume this is gcc and not c89 (= MSVC++)
16868 with_gnu_ld=yes
16869 ;;
16870 openbsd*)
16871 with_gnu_ld=no
16872 ;;
16873 esac
16874  
16875 ld_shlibs_GCJ=yes
16876 if test "$with_gnu_ld" = yes; then
16877 # If archive_cmds runs LD, not CC, wlarc should be empty
16878 wlarc='${wl}'
16879  
16880 # Set some defaults for GNU ld with shared library support. These
16881 # are reset later if shared libraries are not supported. Putting them
16882 # here allows them to be overridden if necessary.
16883 runpath_var=LD_RUN_PATH
16884 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16885 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16886 # ancient GNU ld didn't support --whole-archive et. al.
16887 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16888 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16889 else
16890 whole_archive_flag_spec_GCJ=
16891 fi
16892 supports_anon_versioning=no
16893 case `$LD -v 2>/dev/null` in
16894 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16897 *\ 2.11.*) ;; # other 2.11 versions
16898 *) supports_anon_versioning=yes ;;
16899 esac
16900  
16901 # See if GNU ld supports shared libraries.
16902 case $host_os in
16903 aix3* | aix4* | aix5*)
16904 # On AIX/PPC, the GNU linker is very broken
16905 if test "$host_cpu" != ia64; then
16906 ld_shlibs_GCJ=no
16907 cat <<EOF 1>&2
16908  
16909 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16910 *** to be unable to reliably create shared libraries on AIX.
16911 *** Therefore, libtool is disabling shared libraries support. If you
16912 *** really care for shared libraries, you may want to modify your PATH
16913 *** so that a non-GNU linker is found, and then restart.
16914  
16915 EOF
16916 fi
16917 ;;
16918  
16919 amigaos*)
16920 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)'
16921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16922 hardcode_minus_L_GCJ=yes
16923  
16924 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16925 # that the semantics of dynamic libraries on AmigaOS, at least up
16926 # to version 4, is to share data among multiple programs linked
16927 # with the same dynamic library. Since this doesn't match the
16928 # behavior of shared libraries on other platforms, we can't use
16929 # them.
16930 ld_shlibs_GCJ=no
16931 ;;
16932  
16933 beos*)
16934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16935 allow_undefined_flag_GCJ=unsupported
16936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16937 # support --undefined. This deserves some investigation. FIXME
16938 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 else
16940 ld_shlibs_GCJ=no
16941 fi
16942 ;;
16943  
16944 cygwin* | mingw* | pw32*)
16945 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16946 # as there is no search path for DLLs.
16947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16948 allow_undefined_flag_GCJ=unsupported
16949 always_export_symbols_GCJ=no
16950 enable_shared_with_static_runtimes_GCJ=yes
16951 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16952  
16953 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16954 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16955 # If the export-symbols file already is a .def file (1st line
16956 # is EXPORTS), use it as is; otherwise, prepend...
16957 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16958 cp $export_symbols $output_objdir/$soname.def;
16959 else
16960 echo EXPORTS > $output_objdir/$soname.def;
16961 cat $export_symbols >> $output_objdir/$soname.def;
16962 fi~
16963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16964 else
16965 ld_shlibs_GCJ=no
16966 fi
16967 ;;
16968  
16969 interix[3-9]*)
16970 hardcode_direct_GCJ=no
16971 hardcode_shlibpath_var_GCJ=no
16972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16973 export_dynamic_flag_spec_GCJ='${wl}-E'
16974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16975 # Instead, shared libraries are loaded at an image base (0x10000000 by
16976 # default) and relocated if they conflict, which is a slow very memory
16977 # consuming and fragmenting process. To avoid this, we pick a random,
16978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16980 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'
16981 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'
16982 ;;
16983  
16984 gnu* | linux* | k*bsd*-gnu)
16985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16986 tmp_addflag=
16987 case $cc_basename,$host_cpu in
16988 pgcc*) # Portland Group C compiler
16989 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'
16990 tmp_addflag=' $pic_flag'
16991 ;;
16992 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16993 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'
16994 tmp_addflag=' $pic_flag -Mnomain' ;;
16995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16996 tmp_addflag=' -i_dynamic' ;;
16997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16998 tmp_addflag=' -i_dynamic -nofor_main' ;;
16999 ifc* | ifort*) # Intel Fortran compiler
17000 tmp_addflag=' -nofor_main' ;;
17001 esac
17002 case `$CC -V 2>&1 | sed 5q` in
17003 *Sun\ C*) # Sun C 5.9
17004 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'
17005 tmp_sharedflag='-G' ;;
17006 *Sun\ F*) # Sun Fortran 8.3
17007 tmp_sharedflag='-G' ;;
17008 *)
17009 tmp_sharedflag='-shared' ;;
17010 esac
17011 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17012  
17013 if test $supports_anon_versioning = yes; then
17014 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17016 $echo "local: *; };" >> $output_objdir/$libname.ver~
17017 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17018 fi
17019 link_all_deplibs_GCJ=no
17020 else
17021 ld_shlibs_GCJ=no
17022 fi
17023 ;;
17024  
17025 netbsd* | netbsdelf*-gnu)
17026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17027 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17028 wlarc=
17029 else
17030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17032 fi
17033 ;;
17034  
17035 solaris*)
17036 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17037 ld_shlibs_GCJ=no
17038 cat <<EOF 1>&2
17039  
17040 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17041 *** create shared libraries on Solaris systems. Therefore, libtool
17042 *** is disabling shared libraries support. We urge you to upgrade GNU
17043 *** binutils to release 2.9.1 or newer. Another option is to modify
17044 *** your PATH or compiler configuration so that the native linker is
17045 *** used, and then restart.
17046  
17047 EOF
17048 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17050 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17051 else
17052 ld_shlibs_GCJ=no
17053 fi
17054 ;;
17055  
17056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17057 case `$LD -v 2>&1` in
17058 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17059 ld_shlibs_GCJ=no
17060 cat <<_LT_EOF 1>&2
17061  
17062 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17063 *** reliably create shared libraries on SCO systems. Therefore, libtool
17064 *** is disabling shared libraries support. We urge you to upgrade GNU
17065 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17066 *** your PATH or compiler configuration so that the native linker is
17067 *** used, and then restart.
17068  
17069 _LT_EOF
17070 ;;
17071 *)
17072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17073 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17074 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17075 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17076 else
17077 ld_shlibs_GCJ=no
17078 fi
17079 ;;
17080 esac
17081 ;;
17082  
17083 sunos4*)
17084 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17085 wlarc=
17086 hardcode_direct_GCJ=yes
17087 hardcode_shlibpath_var_GCJ=no
17088 ;;
17089  
17090 *)
17091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17094 else
17095 ld_shlibs_GCJ=no
17096 fi
17097 ;;
17098 esac
17099  
17100 if test "$ld_shlibs_GCJ" = no; then
17101 runpath_var=
17102 hardcode_libdir_flag_spec_GCJ=
17103 export_dynamic_flag_spec_GCJ=
17104 whole_archive_flag_spec_GCJ=
17105 fi
17106 else
17107 # PORTME fill in a description of your system's linker (not GNU ld)
17108 case $host_os in
17109 aix3*)
17110 allow_undefined_flag_GCJ=unsupported
17111 always_export_symbols_GCJ=yes
17112 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'
17113 # Note: this linker hardcodes the directories in LIBPATH if there
17114 # are no directories specified by -L.
17115 hardcode_minus_L_GCJ=yes
17116 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17117 # Neither direct hardcoding nor static linking is supported with a
17118 # broken collect2.
17119 hardcode_direct_GCJ=unsupported
17120 fi
17121 ;;
17122  
17123 aix4* | aix5*)
17124 if test "$host_cpu" = ia64; then
17125 # On IA64, the linker does run time linking by default, so we don't
17126 # have to do anything special.
17127 aix_use_runtimelinking=no
17128 exp_sym_flag='-Bexport'
17129 no_entry_flag=""
17130 else
17131 # If we're using GNU nm, then we don't want the "-C" option.
17132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17133 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17134 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'
17135 else
17136 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'
17137 fi
17138 aix_use_runtimelinking=no
17139  
17140 # Test if we are trying to use run time linking or normal
17141 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17142 # need to do runtime linking.
17143 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17144 for ld_flag in $LDFLAGS; do
17145 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17146 aix_use_runtimelinking=yes
17147 break
17148 fi
17149 done
17150 ;;
17151 esac
17152  
17153 exp_sym_flag='-bexport'
17154 no_entry_flag='-bnoentry'
17155 fi
17156  
17157 # When large executables or shared objects are built, AIX ld can
17158 # have problems creating the table of contents. If linking a library
17159 # or program results in "error TOC overflow" add -mminimal-toc to
17160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17162  
17163 archive_cmds_GCJ=''
17164 hardcode_direct_GCJ=yes
17165 hardcode_libdir_separator_GCJ=':'
17166 link_all_deplibs_GCJ=yes
17167  
17168 if test "$GCC" = yes; then
17169 case $host_os in aix4.[012]|aix4.[012].*)
17170 # We only want to do this on AIX 4.2 and lower, the check
17171 # below for broken collect2 doesn't work under 4.3+
17172 collect2name=`${CC} -print-prog-name=collect2`
17173 if test -f "$collect2name" && \
17174 strings "$collect2name" | grep resolve_lib_name >/dev/null
17175 then
17176 # We have reworked collect2
17177 :
17178 else
17179 # We have old collect2
17180 hardcode_direct_GCJ=unsupported
17181 # It fails to find uninstalled libraries when the uninstalled
17182 # path is not listed in the libpath. Setting hardcode_minus_L
17183 # to unsupported forces relinking
17184 hardcode_minus_L_GCJ=yes
17185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17186 hardcode_libdir_separator_GCJ=
17187 fi
17188 ;;
17189 esac
17190 shared_flag='-shared'
17191 if test "$aix_use_runtimelinking" = yes; then
17192 shared_flag="$shared_flag "'${wl}-G'
17193 fi
17194 else
17195 # not using gcc
17196 if test "$host_cpu" = ia64; then
17197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17198 # chokes on -Wl,-G. The following line is correct:
17199 shared_flag='-G'
17200 else
17201 if test "$aix_use_runtimelinking" = yes; then
17202 shared_flag='${wl}-G'
17203 else
17204 shared_flag='${wl}-bM:SRE'
17205 fi
17206 fi
17207 fi
17208  
17209 # It seems that -bexpall does not export symbols beginning with
17210 # underscore (_), so it is better to generate a list of symbols to export.
17211 always_export_symbols_GCJ=yes
17212 if test "$aix_use_runtimelinking" = yes; then
17213 # Warning - without using the other runtime loading flags (-brtl),
17214 # -berok will link without error, but may produce a broken library.
17215 allow_undefined_flag_GCJ='-berok'
17216 # Determine the default libpath from the value encoded in an empty executable.
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223  
17224 int
17225 main ()
17226 {
17227  
17228 ;
17229 return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest$ac_exeext &&
17249 $as_test_x conftest$ac_exeext; then
17250  
17251 lt_aix_libpath_sed='
17252 /Import File Strings/,/^$/ {
17253 /^0/ {
17254 s/^0 *\(.*\)$/\1/
17255 p
17256 }
17257 }'
17258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17259 # Check for a 64-bit object if we didn't find anything.
17260 if test -z "$aix_libpath"; then
17261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17262 fi
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266  
17267  
17268 fi
17269  
17270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17271 conftest$ac_exeext conftest.$ac_ext
17272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17273  
17274 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17275 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"
17276 else
17277 if test "$host_cpu" = ia64; then
17278 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17279 allow_undefined_flag_GCJ="-z nodefs"
17280 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"
17281 else
17282 # Determine the default libpath from the value encoded in an empty executable.
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289  
17290 int
17291 main ()
17292 {
17293  
17294 ;
17295 return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316  
17317 lt_aix_libpath_sed='
17318 /Import File Strings/,/^$/ {
17319 /^0/ {
17320 s/^0 *\(.*\)$/\1/
17321 p
17322 }
17323 }'
17324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17325 # Check for a 64-bit object if we didn't find anything.
17326 if test -z "$aix_libpath"; then
17327 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17328 fi
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332  
17333  
17334 fi
17335  
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17339  
17340 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17341 # Warning - without using the other run time loading flags,
17342 # -berok will link without error, but may produce a broken library.
17343 no_undefined_flag_GCJ=' ${wl}-bernotok'
17344 allow_undefined_flag_GCJ=' ${wl}-berok'
17345 # Exported symbols can be pulled into shared objects from archives
17346 whole_archive_flag_spec_GCJ='$convenience'
17347 archive_cmds_need_lc_GCJ=yes
17348 # This is similar to how AIX traditionally builds its shared libraries.
17349 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'
17350 fi
17351 fi
17352 ;;
17353  
17354 amigaos*)
17355 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)'
17356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17357 hardcode_minus_L_GCJ=yes
17358 # see comment about different semantics on the GNU ld section
17359 ld_shlibs_GCJ=no
17360 ;;
17361  
17362 bsdi[45]*)
17363 export_dynamic_flag_spec_GCJ=-rdynamic
17364 ;;
17365  
17366 cygwin* | mingw* | pw32*)
17367 # When not using gcc, we currently assume that we are using
17368 # Microsoft Visual C++.
17369 # hardcode_libdir_flag_spec is actually meaningless, as there is
17370 # no search path for DLLs.
17371 hardcode_libdir_flag_spec_GCJ=' '
17372 allow_undefined_flag_GCJ=unsupported
17373 # Tell ltmain to make .lib files, not .a files.
17374 libext=lib
17375 # Tell ltmain to make .dll files, not .so files.
17376 shrext_cmds=".dll"
17377 # FIXME: Setting linknames here is a bad hack.
17378 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17379 # The linker will automatically build a .lib file if we build a DLL.
17380 old_archive_From_new_cmds_GCJ='true'
17381 # FIXME: Should let the user specify the lib program.
17382 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17383 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17384 enable_shared_with_static_runtimes_GCJ=yes
17385 ;;
17386  
17387 darwin* | rhapsody*)
17388 case $host_os in
17389 rhapsody* | darwin1.[012])
17390 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17391 ;;
17392 *) # Darwin 1.3 on
17393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17394 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17395 else
17396 case ${MACOSX_DEPLOYMENT_TARGET} in
17397 10.[012])
17398 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17399 ;;
17400 10.*)
17401 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17402 ;;
17403 esac
17404 fi
17405 ;;
17406 esac
17407 archive_cmds_need_lc_GCJ=no
17408 hardcode_direct_GCJ=no
17409 hardcode_automatic_GCJ=yes
17410 hardcode_shlibpath_var_GCJ=unsupported
17411 whole_archive_flag_spec_GCJ=''
17412 link_all_deplibs_GCJ=yes
17413 if test "$GCC" = yes ; then
17414 output_verbose_link_cmd='echo'
17415 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17416 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17418 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17419 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}'
17420 else
17421 case $cc_basename in
17422 xlc*)
17423 output_verbose_link_cmd='echo'
17424 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17425 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17427 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}'
17428 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}'
17429 ;;
17430 *)
17431 ld_shlibs_GCJ=no
17432 ;;
17433 esac
17434 fi
17435 ;;
17436  
17437 dgux*)
17438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17440 hardcode_shlibpath_var_GCJ=no
17441 ;;
17442  
17443 freebsd1*)
17444 ld_shlibs_GCJ=no
17445 ;;
17446  
17447 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17448 # support. Future versions do this automatically, but an explicit c++rt0.o
17449 # does not break anything, and helps significantly (at the cost of a little
17450 # extra space).
17451 freebsd2.2*)
17452 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17453 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17454 hardcode_direct_GCJ=yes
17455 hardcode_shlibpath_var_GCJ=no
17456 ;;
17457  
17458 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17459 freebsd2*)
17460 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17461 hardcode_direct_GCJ=yes
17462 hardcode_minus_L_GCJ=yes
17463 hardcode_shlibpath_var_GCJ=no
17464 ;;
17465  
17466 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17467 freebsd* | dragonfly*)
17468 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17469 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17470 hardcode_direct_GCJ=yes
17471 hardcode_shlibpath_var_GCJ=no
17472 ;;
17473  
17474 hpux9*)
17475 if test "$GCC" = yes; then
17476 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'
17477 else
17478 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'
17479 fi
17480 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17481 hardcode_libdir_separator_GCJ=:
17482 hardcode_direct_GCJ=yes
17483  
17484 # hardcode_minus_L: Not really in the search PATH,
17485 # but as the default location of the library.
17486 hardcode_minus_L_GCJ=yes
17487 export_dynamic_flag_spec_GCJ='${wl}-E'
17488 ;;
17489  
17490 hpux10*)
17491 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17492 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17493 else
17494 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17495 fi
17496 if test "$with_gnu_ld" = no; then
17497 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17498 hardcode_libdir_separator_GCJ=:
17499  
17500 hardcode_direct_GCJ=yes
17501 export_dynamic_flag_spec_GCJ='${wl}-E'
17502  
17503 # hardcode_minus_L: Not really in the search PATH,
17504 # but as the default location of the library.
17505 hardcode_minus_L_GCJ=yes
17506 fi
17507 ;;
17508  
17509 hpux11*)
17510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17511 case $host_cpu in
17512 hppa*64*)
17513 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17514 ;;
17515 ia64*)
17516 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17517 ;;
17518 *)
17519 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17520 ;;
17521 esac
17522 else
17523 case $host_cpu in
17524 hppa*64*)
17525 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 ;;
17527 ia64*)
17528 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17529 ;;
17530 *)
17531 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17532 ;;
17533 esac
17534 fi
17535 if test "$with_gnu_ld" = no; then
17536 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17537 hardcode_libdir_separator_GCJ=:
17538  
17539 case $host_cpu in
17540 hppa*64*|ia64*)
17541 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17542 hardcode_direct_GCJ=no
17543 hardcode_shlibpath_var_GCJ=no
17544 ;;
17545 *)
17546 hardcode_direct_GCJ=yes
17547 export_dynamic_flag_spec_GCJ='${wl}-E'
17548  
17549 # hardcode_minus_L: Not really in the search PATH,
17550 # but as the default location of the library.
17551 hardcode_minus_L_GCJ=yes
17552 ;;
17553 esac
17554 fi
17555 ;;
17556  
17557 irix5* | irix6* | nonstopux*)
17558 if test "$GCC" = yes; then
17559 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'
17560 else
17561 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'
17562 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17563 fi
17564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17565 hardcode_libdir_separator_GCJ=:
17566 link_all_deplibs_GCJ=yes
17567 ;;
17568  
17569 netbsd* | netbsdelf*-gnu)
17570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17571 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17572 else
17573 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17574 fi
17575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17576 hardcode_direct_GCJ=yes
17577 hardcode_shlibpath_var_GCJ=no
17578 ;;
17579  
17580 newsos6)
17581 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17582 hardcode_direct_GCJ=yes
17583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17584 hardcode_libdir_separator_GCJ=:
17585 hardcode_shlibpath_var_GCJ=no
17586 ;;
17587  
17588 openbsd*)
17589 if test -f /usr/libexec/ld.so; then
17590 hardcode_direct_GCJ=yes
17591 hardcode_shlibpath_var_GCJ=no
17592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17593 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17594 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17596 export_dynamic_flag_spec_GCJ='${wl}-E'
17597 else
17598 case $host_os in
17599 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17600 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17601 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17602 ;;
17603 *)
17604 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17605 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17606 ;;
17607 esac
17608 fi
17609 else
17610 ld_shlibs_GCJ=no
17611 fi
17612 ;;
17613  
17614 os2*)
17615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17616 hardcode_minus_L_GCJ=yes
17617 allow_undefined_flag_GCJ=unsupported
17618 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'
17619 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17620 ;;
17621  
17622 osf3*)
17623 if test "$GCC" = yes; then
17624 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17625 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'
17626 else
17627 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17628 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'
17629 fi
17630 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17631 hardcode_libdir_separator_GCJ=:
17632 ;;
17633  
17634 osf4* | osf5*) # as osf3* with the addition of -msym flag
17635 if test "$GCC" = yes; then
17636 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17637 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'
17638 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17639 else
17640 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17641 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'
17642 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~
17643 $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'
17644  
17645 # Both c and cxx compiler support -rpath directly
17646 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17647 fi
17648 hardcode_libdir_separator_GCJ=:
17649 ;;
17650  
17651 solaris*)
17652 no_undefined_flag_GCJ=' -z text'
17653 if test "$GCC" = yes; then
17654 wlarc='${wl}'
17655 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17656 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17657 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17658 else
17659 wlarc=''
17660 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17661 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17663 fi
17664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17665 hardcode_shlibpath_var_GCJ=no
17666 case $host_os in
17667 solaris2.[0-5] | solaris2.[0-5].*) ;;
17668 *)
17669 # The compiler driver will combine and reorder linker options,
17670 # but understands `-z linker_flag'. GCC discards it without `$wl',
17671 # but is careful enough not to reorder.
17672 # Supported since Solaris 2.6 (maybe 2.5.1?)
17673 if test "$GCC" = yes; then
17674 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17675 else
17676 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17677 fi
17678 ;;
17679 esac
17680 link_all_deplibs_GCJ=yes
17681 ;;
17682  
17683 sunos4*)
17684 if test "x$host_vendor" = xsequent; then
17685 # Use $CC to link under sequent, because it throws in some extra .o
17686 # files that make .init and .fini sections work.
17687 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17688 else
17689 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17690 fi
17691 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692 hardcode_direct_GCJ=yes
17693 hardcode_minus_L_GCJ=yes
17694 hardcode_shlibpath_var_GCJ=no
17695 ;;
17696  
17697 sysv4)
17698 case $host_vendor in
17699 sni)
17700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct_GCJ=yes # is this really true???
17702 ;;
17703 siemens)
17704 ## LD is ld it makes a PLAMLIB
17705 ## CC just makes a GrossModule.
17706 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17707 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17708 hardcode_direct_GCJ=no
17709 ;;
17710 motorola)
17711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17712 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17713 ;;
17714 esac
17715 runpath_var='LD_RUN_PATH'
17716 hardcode_shlibpath_var_GCJ=no
17717 ;;
17718  
17719 sysv4.3*)
17720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17721 hardcode_shlibpath_var_GCJ=no
17722 export_dynamic_flag_spec_GCJ='-Bexport'
17723 ;;
17724  
17725 sysv4*MP*)
17726 if test -d /usr/nec; then
17727 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728 hardcode_shlibpath_var_GCJ=no
17729 runpath_var=LD_RUN_PATH
17730 hardcode_runpath_var=yes
17731 ld_shlibs_GCJ=yes
17732 fi
17733 ;;
17734  
17735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17736 no_undefined_flag_GCJ='${wl}-z,text'
17737 archive_cmds_need_lc_GCJ=no
17738 hardcode_shlibpath_var_GCJ=no
17739 runpath_var='LD_RUN_PATH'
17740  
17741 if test "$GCC" = yes; then
17742 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17743 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 else
17745 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17746 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17747 fi
17748 ;;
17749  
17750 sysv5* | sco3.2v5* | sco5v6*)
17751 # Note: We can NOT use -z defs as we might desire, because we do not
17752 # link with -lc, and that would cause any symbols used from libc to
17753 # always be unresolved, which means just about no library would
17754 # ever link correctly. If we're not using GNU ld we use -z text
17755 # though, which does catch some bad symbols but isn't as heavy-handed
17756 # as -z defs.
17757 no_undefined_flag_GCJ='${wl}-z,text'
17758 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17759 archive_cmds_need_lc_GCJ=no
17760 hardcode_shlibpath_var_GCJ=no
17761 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17762 hardcode_libdir_separator_GCJ=':'
17763 link_all_deplibs_GCJ=yes
17764 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17765 runpath_var='LD_RUN_PATH'
17766  
17767 if test "$GCC" = yes; then
17768 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17769 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17770 else
17771 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17772 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 fi
17774 ;;
17775  
17776 uts4*)
17777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17779 hardcode_shlibpath_var_GCJ=no
17780 ;;
17781  
17782 *)
17783 ld_shlibs_GCJ=no
17784 ;;
17785 esac
17786 fi
17787  
17788 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17789 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17790 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17791  
17792 #
17793 # Do we need to explicitly link libc?
17794 #
17795 case "x$archive_cmds_need_lc_GCJ" in
17796 x|xyes)
17797 # Assume -lc should be added
17798 archive_cmds_need_lc_GCJ=yes
17799  
17800 if test "$enable_shared" = yes && test "$GCC" = yes; then
17801 case $archive_cmds_GCJ in
17802 *'~'*)
17803 # FIXME: we may have to deal with multi-command sequences.
17804 ;;
17805 '$CC '*)
17806 # Test whether the compiler implicitly links with -lc since on some
17807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17808 # to ld, don't add -lc before -lgcc.
17809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17811 $rm conftest*
17812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17813  
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 (eval $ac_compile) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } 2>conftest.err; then
17819 soname=conftest
17820 lib=conftest
17821 libobjs=conftest.$ac_objext
17822 deplibs=
17823 wl=$lt_prog_compiler_wl_GCJ
17824 pic_flag=$lt_prog_compiler_pic_GCJ
17825 compiler_flags=-v
17826 linker_flags=-v
17827 verstring=
17828 output_objdir=.
17829 libname=conftest
17830 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17831 allow_undefined_flag_GCJ=
17832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17833 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }
17837 then
17838 archive_cmds_need_lc_GCJ=no
17839 else
17840 archive_cmds_need_lc_GCJ=yes
17841 fi
17842 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17843 else
17844 cat conftest.err 1>&5
17845 fi
17846 $rm conftest*
17847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17848 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17849 ;;
17850 esac
17851 fi
17852 ;;
17853 esac
17854  
17855 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17857 library_names_spec=
17858 libname_spec='lib$name'
17859 soname_spec=
17860 shrext_cmds=".so"
17861 postinstall_cmds=
17862 postuninstall_cmds=
17863 finish_cmds=
17864 finish_eval=
17865 shlibpath_var=
17866 shlibpath_overrides_runpath=unknown
17867 version_type=none
17868 dynamic_linker="$host_os ld.so"
17869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17870  
17871 need_lib_prefix=unknown
17872 hardcode_into_libs=no
17873  
17874 # when you set need_version to no, make sure it does not cause -set_version
17875 # flags to be left without arguments
17876 need_version=unknown
17877  
17878 case $host_os in
17879 aix3*)
17880 version_type=linux
17881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17882 shlibpath_var=LIBPATH
17883  
17884 # AIX 3 has no versioning support, so we append a major version to the name.
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 ;;
17887  
17888 aix4* | aix5*)
17889 version_type=linux
17890 need_lib_prefix=no
17891 need_version=no
17892 hardcode_into_libs=yes
17893 if test "$host_cpu" = ia64; then
17894 # AIX 5 supports IA64
17895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 else
17898 # With GCC up to 2.95.x, collect2 would create an import file
17899 # for dependence libraries. The import file would start with
17900 # the line `#! .'. This would cause the generated library to
17901 # depend on `.', always an invalid library. This was fixed in
17902 # development snapshots of GCC prior to 3.0.
17903 case $host_os in
17904 aix4 | aix4.[01] | aix4.[01].*)
17905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17906 echo ' yes '
17907 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17908 :
17909 else
17910 can_build_shared=no
17911 fi
17912 ;;
17913 esac
17914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17915 # soname into executable. Probably we can add versioning support to
17916 # collect2, so additional links can be useful in future.
17917 if test "$aix_use_runtimelinking" = yes; then
17918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17919 # instead of lib<name>.a to let people know that these are not
17920 # typical AIX shared libraries.
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17922 else
17923 # We preserve .a as extension for shared libraries through AIX4.2
17924 # and later when we are not doing run time linking.
17925 library_names_spec='${libname}${release}.a $libname.a'
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 fi
17928 shlibpath_var=LIBPATH
17929 fi
17930 ;;
17931  
17932 amigaos*)
17933 library_names_spec='$libname.ixlibrary $libname.a'
17934 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17935 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'
17936 ;;
17937  
17938 beos*)
17939 library_names_spec='${libname}${shared_ext}'
17940 dynamic_linker="$host_os ld.so"
17941 shlibpath_var=LIBRARY_PATH
17942 ;;
17943  
17944 bsdi[45]*)
17945 version_type=linux
17946 need_version=no
17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948 soname_spec='${libname}${release}${shared_ext}$major'
17949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17953 # the default ld.so.conf also contains /usr/contrib/lib and
17954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17955 # libtool to hard-code these into programs
17956 ;;
17957  
17958 cygwin* | mingw* | pw32*)
17959 version_type=windows
17960 shrext_cmds=".dll"
17961 need_version=no
17962 need_lib_prefix=no
17963  
17964 case $GCC,$host_os in
17965 yes,cygwin* | yes,mingw* | yes,pw32*)
17966 library_names_spec='$libname.dll.a'
17967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17968 postinstall_cmds='base_file=`basename \${file}`~
17969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17970 dldir=$destdir/`dirname \$dlpath`~
17971 test -d \$dldir || mkdir -p \$dldir~
17972 $install_prog $dir/$dlname \$dldir/$dlname~
17973 chmod a+x \$dldir/$dlname'
17974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17975 dlpath=$dir/\$dldll~
17976 $rm \$dlpath'
17977 shlibpath_overrides_runpath=yes
17978  
17979 case $host_os in
17980 cygwin*)
17981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17983 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17984 ;;
17985 mingw*)
17986 # MinGW DLLs use traditional 'lib' prefix
17987 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17989 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17990 # It is most probably a Windows format PATH printed by
17991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17992 # path with ; separators, and with drive letters. We can handle the
17993 # drive letters (cygwin fileutils understands them), so leave them,
17994 # especially as we might pass files found there to a mingw objdump,
17995 # which wouldn't understand a cygwinified path. Ahh.
17996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17997 else
17998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17999 fi
18000 ;;
18001 pw32*)
18002 # pw32 DLLs use 'pw' prefix rather than 'lib'
18003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18004 ;;
18005 esac
18006 ;;
18007  
18008 *)
18009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18010 ;;
18011 esac
18012 dynamic_linker='Win32 ld.exe'
18013 # FIXME: first we should search . and the directory the executable is in
18014 shlibpath_var=PATH
18015 ;;
18016  
18017 darwin* | rhapsody*)
18018 dynamic_linker="$host_os dyld"
18019 version_type=darwin
18020 need_lib_prefix=no
18021 need_version=no
18022 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18023 soname_spec='${libname}${release}${major}$shared_ext'
18024 shlibpath_overrides_runpath=yes
18025 shlibpath_var=DYLD_LIBRARY_PATH
18026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18027  
18028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18029 ;;
18030  
18031 dgux*)
18032 version_type=linux
18033 need_lib_prefix=no
18034 need_version=no
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 shlibpath_var=LD_LIBRARY_PATH
18038 ;;
18039  
18040 freebsd1*)
18041 dynamic_linker=no
18042 ;;
18043  
18044 freebsd* | dragonfly*)
18045 # DragonFly does not have aout. When/if they implement a new
18046 # versioning mechanism, adjust this.
18047 if test -x /usr/bin/objformat; then
18048 objformat=`/usr/bin/objformat`
18049 else
18050 case $host_os in
18051 freebsd[123]*) objformat=aout ;;
18052 *) objformat=elf ;;
18053 esac
18054 fi
18055 version_type=freebsd-$objformat
18056 case $version_type in
18057 freebsd-elf*)
18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18059 need_version=no
18060 need_lib_prefix=no
18061 ;;
18062 freebsd-*)
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18064 need_version=yes
18065 ;;
18066 esac
18067 shlibpath_var=LD_LIBRARY_PATH
18068 case $host_os in
18069 freebsd2*)
18070 shlibpath_overrides_runpath=yes
18071 ;;
18072 freebsd3.[01]* | freebsdelf3.[01]*)
18073 shlibpath_overrides_runpath=yes
18074 hardcode_into_libs=yes
18075 ;;
18076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18078 shlibpath_overrides_runpath=no
18079 hardcode_into_libs=yes
18080 ;;
18081 *) # from 4.6 on, and DragonFly
18082 shlibpath_overrides_runpath=yes
18083 hardcode_into_libs=yes
18084 ;;
18085 esac
18086 ;;
18087  
18088 gnu*)
18089 version_type=linux
18090 need_lib_prefix=no
18091 need_version=no
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18093 soname_spec='${libname}${release}${shared_ext}$major'
18094 shlibpath_var=LD_LIBRARY_PATH
18095 hardcode_into_libs=yes
18096 ;;
18097  
18098 hpux9* | hpux10* | hpux11*)
18099 # Give a soname corresponding to the major version so that dld.sl refuses to
18100 # link against other versions.
18101 version_type=sunos
18102 need_lib_prefix=no
18103 need_version=no
18104 case $host_cpu in
18105 ia64*)
18106 shrext_cmds='.so'
18107 hardcode_into_libs=yes
18108 dynamic_linker="$host_os dld.so"
18109 shlibpath_var=LD_LIBRARY_PATH
18110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 if test "X$HPUX_IA64_MODE" = X32; then
18114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18115 else
18116 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18117 fi
18118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18119 ;;
18120 hppa*64*)
18121 shrext_cmds='.sl'
18122 hardcode_into_libs=yes
18123 dynamic_linker="$host_os dld.sl"
18124 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127 soname_spec='${libname}${release}${shared_ext}$major'
18128 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18130 ;;
18131 *)
18132 shrext_cmds='.sl'
18133 dynamic_linker="$host_os dld.sl"
18134 shlibpath_var=SHLIB_PATH
18135 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 ;;
18139 esac
18140 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18141 postinstall_cmds='chmod 555 $lib'
18142 ;;
18143  
18144 interix[3-9]*)
18145 version_type=linux
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=no
18153 hardcode_into_libs=yes
18154 ;;
18155  
18156 irix5* | irix6* | nonstopux*)
18157 case $host_os in
18158 nonstopux*) version_type=nonstopux ;;
18159 *)
18160 if test "$lt_cv_prog_gnu_ld" = yes; then
18161 version_type=linux
18162 else
18163 version_type=irix
18164 fi ;;
18165 esac
18166 need_lib_prefix=no
18167 need_version=no
18168 soname_spec='${libname}${release}${shared_ext}$major'
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18170 case $host_os in
18171 irix5* | nonstopux*)
18172 libsuff= shlibsuff=
18173 ;;
18174 *)
18175 case $LD in # libtool.m4 will add one of these switches to LD
18176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18177 libsuff= shlibsuff= libmagic=32-bit;;
18178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18179 libsuff=32 shlibsuff=N32 libmagic=N32;;
18180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18182 *) libsuff= shlibsuff= libmagic=never-match;;
18183 esac
18184 ;;
18185 esac
18186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18187 shlibpath_overrides_runpath=no
18188 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18189 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18190 hardcode_into_libs=yes
18191 ;;
18192  
18193 # No shared lib support for Linux oldld, aout, or coff.
18194 linux*oldld* | linux*aout* | linux*coff*)
18195 dynamic_linker=no
18196 ;;
18197  
18198 # This must be Linux ELF.
18199 linux* | k*bsd*-gnu)
18200 version_type=linux
18201 need_lib_prefix=no
18202 need_version=no
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=no
18208 # This implies no fast_install, which is unacceptable.
18209 # Some rework will be needed to allow for fast_install
18210 # before this can be enabled.
18211 hardcode_into_libs=yes
18212  
18213 # Append ld.so.conf contents to the search path
18214 if test -f /etc/ld.so.conf; then
18215 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' ' '`
18216 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18217 fi
18218  
18219 # We used to test for /lib/ld.so.1 and disable shared libraries on
18220 # powerpc, because MkLinux only supported shared libraries with the
18221 # GNU dynamic linker. Since this was broken with cross compilers,
18222 # most powerpc-linux boxes support dynamic linking these days and
18223 # people can always --disable-shared, the test was removed, and we
18224 # assume the GNU/Linux dynamic linker is in use.
18225 dynamic_linker='GNU/Linux ld.so'
18226 ;;
18227  
18228 netbsdelf*-gnu)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=no
18236 hardcode_into_libs=yes
18237 dynamic_linker='NetBSD ld.elf_so'
18238 ;;
18239  
18240 netbsd*)
18241 version_type=sunos
18242 need_lib_prefix=no
18243 need_version=no
18244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18247 dynamic_linker='NetBSD (a.out) ld.so'
18248 else
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 dynamic_linker='NetBSD ld.elf_so'
18252 fi
18253 shlibpath_var=LD_LIBRARY_PATH
18254 shlibpath_overrides_runpath=yes
18255 hardcode_into_libs=yes
18256 ;;
18257  
18258 newsos6)
18259 version_type=linux
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=yes
18263 ;;
18264  
18265 nto-qnx*)
18266 version_type=linux
18267 need_lib_prefix=no
18268 need_version=no
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 shlibpath_overrides_runpath=yes
18273 ;;
18274  
18275 openbsd*)
18276 version_type=sunos
18277 sys_lib_dlsearch_path_spec="/usr/lib"
18278 need_lib_prefix=no
18279 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18280 case $host_os in
18281 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18282 *) need_version=no ;;
18283 esac
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18288 case $host_os in
18289 openbsd2.[89] | openbsd2.[89].*)
18290 shlibpath_overrides_runpath=no
18291 ;;
18292 *)
18293 shlibpath_overrides_runpath=yes
18294 ;;
18295 esac
18296 else
18297 shlibpath_overrides_runpath=yes
18298 fi
18299 ;;
18300  
18301 os2*)
18302 libname_spec='$name'
18303 shrext_cmds=".dll"
18304 need_lib_prefix=no
18305 library_names_spec='$libname${shared_ext} $libname.a'
18306 dynamic_linker='OS/2 ld.exe'
18307 shlibpath_var=LIBPATH
18308 ;;
18309  
18310 osf3* | osf4* | osf5*)
18311 version_type=osf
18312 need_lib_prefix=no
18313 need_version=no
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18318 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18319 ;;
18320  
18321 rdos*)
18322 dynamic_linker=no
18323 ;;
18324  
18325 solaris*)
18326 version_type=linux
18327 need_lib_prefix=no
18328 need_version=no
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 shlibpath_overrides_runpath=yes
18333 hardcode_into_libs=yes
18334 # ldd complains unless libraries are executable
18335 postinstall_cmds='chmod +x $lib'
18336 ;;
18337  
18338 sunos4*)
18339 version_type=sunos
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 if test "$with_gnu_ld" = yes; then
18345 need_lib_prefix=no
18346 fi
18347 need_version=yes
18348 ;;
18349  
18350 sysv4 | sysv4.3*)
18351 version_type=linux
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 case $host_vendor in
18356 sni)
18357 shlibpath_overrides_runpath=no
18358 need_lib_prefix=no
18359 export_dynamic_flag_spec='${wl}-Blargedynsym'
18360 runpath_var=LD_RUN_PATH
18361 ;;
18362 siemens)
18363 need_lib_prefix=no
18364 ;;
18365 motorola)
18366 need_lib_prefix=no
18367 need_version=no
18368 shlibpath_overrides_runpath=no
18369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18370 ;;
18371 esac
18372 ;;
18373  
18374 sysv4*MP*)
18375 if test -d /usr/nec ;then
18376 version_type=linux
18377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18378 soname_spec='$libname${shared_ext}.$major'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 fi
18381 ;;
18382  
18383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18384 version_type=freebsd-elf
18385 need_lib_prefix=no
18386 need_version=no
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18388 soname_spec='${libname}${release}${shared_ext}$major'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 hardcode_into_libs=yes
18391 if test "$with_gnu_ld" = yes; then
18392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18393 shlibpath_overrides_runpath=no
18394 else
18395 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18396 shlibpath_overrides_runpath=yes
18397 case $host_os in
18398 sco3.2v5*)
18399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18400 ;;
18401 esac
18402 fi
18403 sys_lib_dlsearch_path_spec='/usr/lib'
18404 ;;
18405  
18406 uts4*)
18407 version_type=linux
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 shlibpath_var=LD_LIBRARY_PATH
18411 ;;
18412  
18413 *)
18414 dynamic_linker=no
18415 ;;
18416 esac
18417 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18418 echo "${ECHO_T}$dynamic_linker" >&6; }
18419 test "$dynamic_linker" = no && can_build_shared=no
18420  
18421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18422 if test "$GCC" = yes; then
18423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18424 fi
18425  
18426 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18428 hardcode_action_GCJ=
18429 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18430 test -n "$runpath_var_GCJ" || \
18431 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18432  
18433 # We can hardcode non-existant directories.
18434 if test "$hardcode_direct_GCJ" != no &&
18435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18436 # have to relink, otherwise we might link with an installed library
18437 # when we should be linking with a yet-to-be-installed one
18438 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18439 test "$hardcode_minus_L_GCJ" != no; then
18440 # Linking always hardcodes the temporary library directory.
18441 hardcode_action_GCJ=relink
18442 else
18443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18444 hardcode_action_GCJ=immediate
18445 fi
18446 else
18447 # We cannot hardcode anything, or else we can only hardcode existing
18448 # directories.
18449 hardcode_action_GCJ=unsupported
18450 fi
18451 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18452 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18453  
18454 if test "$hardcode_action_GCJ" = relink; then
18455 # Fast installation is not supported
18456 enable_fast_install=no
18457 elif test "$shlibpath_overrides_runpath" = yes ||
18458 test "$enable_shared" = no; then
18459 # Fast installation is not necessary
18460 enable_fast_install=needless
18461 fi
18462  
18463  
18464 # The else clause should only fire when bootstrapping the
18465 # libtool distribution, otherwise you forgot to ship ltmain.sh
18466 # with your package, and you will get complaints that there are
18467 # no rules to generate ltmain.sh.
18468 if test -f "$ltmain"; then
18469 # See if we are running on zsh, and set the options which allow our commands through
18470 # without removal of \ escapes.
18471 if test -n "${ZSH_VERSION+set}" ; then
18472 setopt NO_GLOB_SUBST
18473 fi
18474 # Now quote all the things that may contain metacharacters while being
18475 # careful not to overquote the AC_SUBSTed values. We take copies of the
18476 # variables and quote the copies for generation of the libtool script.
18477 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18478 SED SHELL STRIP \
18479 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18480 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18481 deplibs_check_method reload_flag reload_cmds need_locks \
18482 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18483 lt_cv_sys_global_symbol_to_c_name_address \
18484 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18485 old_postinstall_cmds old_postuninstall_cmds \
18486 compiler_GCJ \
18487 CC_GCJ \
18488 LD_GCJ \
18489 lt_prog_compiler_wl_GCJ \
18490 lt_prog_compiler_pic_GCJ \
18491 lt_prog_compiler_static_GCJ \
18492 lt_prog_compiler_no_builtin_flag_GCJ \
18493 export_dynamic_flag_spec_GCJ \
18494 thread_safe_flag_spec_GCJ \
18495 whole_archive_flag_spec_GCJ \
18496 enable_shared_with_static_runtimes_GCJ \
18497 old_archive_cmds_GCJ \
18498 old_archive_from_new_cmds_GCJ \
18499 predep_objects_GCJ \
18500 postdep_objects_GCJ \
18501 predeps_GCJ \
18502 postdeps_GCJ \
18503 compiler_lib_search_path_GCJ \
18504 archive_cmds_GCJ \
18505 archive_expsym_cmds_GCJ \
18506 postinstall_cmds_GCJ \
18507 postuninstall_cmds_GCJ \
18508 old_archive_from_expsyms_cmds_GCJ \
18509 allow_undefined_flag_GCJ \
18510 no_undefined_flag_GCJ \
18511 export_symbols_cmds_GCJ \
18512 hardcode_libdir_flag_spec_GCJ \
18513 hardcode_libdir_flag_spec_ld_GCJ \
18514 hardcode_libdir_separator_GCJ \
18515 hardcode_automatic_GCJ \
18516 module_cmds_GCJ \
18517 module_expsym_cmds_GCJ \
18518 lt_cv_prog_compiler_c_o_GCJ \
18519 fix_srcfile_path_GCJ \
18520 exclude_expsyms_GCJ \
18521 include_expsyms_GCJ; do
18522  
18523 case $var in
18524 old_archive_cmds_GCJ | \
18525 old_archive_from_new_cmds_GCJ | \
18526 archive_cmds_GCJ | \
18527 archive_expsym_cmds_GCJ | \
18528 module_cmds_GCJ | \
18529 module_expsym_cmds_GCJ | \
18530 old_archive_from_expsyms_cmds_GCJ | \
18531 export_symbols_cmds_GCJ | \
18532 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18533 postinstall_cmds | postuninstall_cmds | \
18534 old_postinstall_cmds | old_postuninstall_cmds | \
18535 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18536 # Double-quote double-evaled strings.
18537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18538 ;;
18539 *)
18540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18541 ;;
18542 esac
18543 done
18544  
18545 case $lt_echo in
18546 *'\$0 --fallback-echo"')
18547 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18548 ;;
18549 esac
18550  
18551 cfgfile="$ofile"
18552  
18553 cat <<__EOF__ >> "$cfgfile"
18554 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18555  
18556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18557  
18558 # Shell to use when invoking shell scripts.
18559 SHELL=$lt_SHELL
18560  
18561 # Whether or not to build shared libraries.
18562 build_libtool_libs=$enable_shared
18563  
18564 # Whether or not to build static libraries.
18565 build_old_libs=$enable_static
18566  
18567 # Whether or not to add -lc for building shared libraries.
18568 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18569  
18570 # Whether or not to disallow shared libs when runtime libs are static
18571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18572  
18573 # Whether or not to optimize for fast installation.
18574 fast_install=$enable_fast_install
18575  
18576 # The host system.
18577 host_alias=$host_alias
18578 host=$host
18579 host_os=$host_os
18580  
18581 # The build system.
18582 build_alias=$build_alias
18583 build=$build
18584 build_os=$build_os
18585  
18586 # An echo program that does not interpret backslashes.
18587 echo=$lt_echo
18588  
18589 # The archiver.
18590 AR=$lt_AR
18591 AR_FLAGS=$lt_AR_FLAGS
18592  
18593 # A C compiler.
18594 LTCC=$lt_LTCC
18595  
18596 # LTCC compiler flags.
18597 LTCFLAGS=$lt_LTCFLAGS
18598  
18599 # A language-specific compiler.
18600 CC=$lt_compiler_GCJ
18601  
18602 # Is the compiler the GNU C compiler?
18603 with_gcc=$GCC_GCJ
18604  
18605 # An ERE matcher.
18606 EGREP=$lt_EGREP
18607  
18608 # The linker used to build libraries.
18609 LD=$lt_LD_GCJ
18610  
18611 # Whether we need hard or soft links.
18612 LN_S=$lt_LN_S
18613  
18614 # A BSD-compatible nm program.
18615 NM=$lt_NM
18616  
18617 # A symbol stripping program
18618 STRIP=$lt_STRIP
18619  
18620 # Used to examine libraries when file_magic_cmd begins "file"
18621 MAGIC_CMD=$MAGIC_CMD
18622  
18623 # Used on cygwin: DLL creation program.
18624 DLLTOOL="$DLLTOOL"
18625  
18626 # Used on cygwin: object dumper.
18627 OBJDUMP="$OBJDUMP"
18628  
18629 # Used on cygwin: assembler.
18630 AS="$AS"
18631  
18632 # The name of the directory that contains temporary libtool files.
18633 objdir=$objdir
18634  
18635 # How to create reloadable object files.
18636 reload_flag=$lt_reload_flag
18637 reload_cmds=$lt_reload_cmds
18638  
18639 # How to pass a linker flag through the compiler.
18640 wl=$lt_lt_prog_compiler_wl_GCJ
18641  
18642 # Object file suffix (normally "o").
18643 objext="$ac_objext"
18644  
18645 # Old archive suffix (normally "a").
18646 libext="$libext"
18647  
18648 # Shared library suffix (normally ".so").
18649 shrext_cmds='$shrext_cmds'
18650  
18651 # Executable file suffix (normally "").
18652 exeext="$exeext"
18653  
18654 # Additional compiler flags for building library objects.
18655 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18656 pic_mode=$pic_mode
18657  
18658 # What is the maximum length of a command?
18659 max_cmd_len=$lt_cv_sys_max_cmd_len
18660  
18661 # Does compiler simultaneously support -c and -o options?
18662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18663  
18664 # Must we lock files when doing compilation?
18665 need_locks=$lt_need_locks
18666  
18667 # Do we need the lib prefix for modules?
18668 need_lib_prefix=$need_lib_prefix
18669  
18670 # Do we need a version for libraries?
18671 need_version=$need_version
18672  
18673 # Whether dlopen is supported.
18674 dlopen_support=$enable_dlopen
18675  
18676 # Whether dlopen of programs is supported.
18677 dlopen_self=$enable_dlopen_self
18678  
18679 # Whether dlopen of statically linked programs is supported.
18680 dlopen_self_static=$enable_dlopen_self_static
18681  
18682 # Compiler flag to prevent dynamic linking.
18683 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18684  
18685 # Compiler flag to turn off builtin functions.
18686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18687  
18688 # Compiler flag to allow reflexive dlopens.
18689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18690  
18691 # Compiler flag to generate shared objects directly from archives.
18692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18693  
18694 # Compiler flag to generate thread-safe objects.
18695 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18696  
18697 # Library versioning type.
18698 version_type=$version_type
18699  
18700 # Format of library name prefix.
18701 libname_spec=$lt_libname_spec
18702  
18703 # List of archive names. First name is the real one, the rest are links.
18704 # The last name is the one that the linker finds with -lNAME.
18705 library_names_spec=$lt_library_names_spec
18706  
18707 # The coded name of the library, if different from the real name.
18708 soname_spec=$lt_soname_spec
18709  
18710 # Commands used to build and install an old-style archive.
18711 RANLIB=$lt_RANLIB
18712 old_archive_cmds=$lt_old_archive_cmds_GCJ
18713 old_postinstall_cmds=$lt_old_postinstall_cmds
18714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18715  
18716 # Create an old-style archive from a shared archive.
18717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18718  
18719 # Create a temporary old-style archive to link instead of a shared archive.
18720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18721  
18722 # Commands used to build and install a shared archive.
18723 archive_cmds=$lt_archive_cmds_GCJ
18724 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18725 postinstall_cmds=$lt_postinstall_cmds
18726 postuninstall_cmds=$lt_postuninstall_cmds
18727  
18728 # Commands used to build a loadable module (assumed same as above if empty)
18729 module_cmds=$lt_module_cmds_GCJ
18730 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18731  
18732 # Commands to strip libraries.
18733 old_striplib=$lt_old_striplib
18734 striplib=$lt_striplib
18735  
18736 # Dependencies to place before the objects being linked to create a
18737 # shared library.
18738 predep_objects=$lt_predep_objects_GCJ
18739  
18740 # Dependencies to place after the objects being linked to create a
18741 # shared library.
18742 postdep_objects=$lt_postdep_objects_GCJ
18743  
18744 # Dependencies to place before the objects being linked to create a
18745 # shared library.
18746 predeps=$lt_predeps_GCJ
18747  
18748 # Dependencies to place after the objects being linked to create a
18749 # shared library.
18750 postdeps=$lt_postdeps_GCJ
18751  
18752 # The library search path used internally by the compiler when linking
18753 # a shared library.
18754 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18755  
18756 # Method to check whether dependent libraries are shared objects.
18757 deplibs_check_method=$lt_deplibs_check_method
18758  
18759 # Command to use when deplibs_check_method == file_magic.
18760 file_magic_cmd=$lt_file_magic_cmd
18761  
18762 # Flag that allows shared libraries with undefined symbols to be built.
18763 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18764  
18765 # Flag that forces no undefined symbols.
18766 no_undefined_flag=$lt_no_undefined_flag_GCJ
18767  
18768 # Commands used to finish a libtool library installation in a directory.
18769 finish_cmds=$lt_finish_cmds
18770  
18771 # Same as above, but a single script fragment to be evaled but not shown.
18772 finish_eval=$lt_finish_eval
18773  
18774 # Take the output of nm and produce a listing of raw symbols and C names.
18775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18776  
18777 # Transform the output of nm in a proper C declaration
18778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18779  
18780 # Transform the output of nm in a C name address pair
18781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18782  
18783 # This is the shared library runtime path variable.
18784 runpath_var=$runpath_var
18785  
18786 # This is the shared library path variable.
18787 shlibpath_var=$shlibpath_var
18788  
18789 # Is shlibpath searched before the hard-coded library search path?
18790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18791  
18792 # How to hardcode a shared library path into an executable.
18793 hardcode_action=$hardcode_action_GCJ
18794  
18795 # Whether we should hardcode library paths into libraries.
18796 hardcode_into_libs=$hardcode_into_libs
18797  
18798 # Flag to hardcode \$libdir into a binary during linking.
18799 # This must work even if \$libdir does not exist.
18800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18801  
18802 # If ld is used when linking, flag to hardcode \$libdir into
18803 # a binary during linking. This must work even if \$libdir does
18804 # not exist.
18805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18806  
18807 # Whether we need a single -rpath flag with a separated argument.
18808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18809  
18810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18811 # resulting binary.
18812 hardcode_direct=$hardcode_direct_GCJ
18813  
18814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18815 # resulting binary.
18816 hardcode_minus_L=$hardcode_minus_L_GCJ
18817  
18818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18819 # the resulting binary.
18820 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18821  
18822 # Set to yes if building a shared library automatically hardcodes DIR into the library
18823 # and all subsequent libraries and executables linked against it.
18824 hardcode_automatic=$hardcode_automatic_GCJ
18825  
18826 # Variables whose values should be saved in libtool wrapper scripts and
18827 # restored at relink time.
18828 variables_saved_for_relink="$variables_saved_for_relink"
18829  
18830 # Whether libtool must link a program against all its dependency libraries.
18831 link_all_deplibs=$link_all_deplibs_GCJ
18832  
18833 # Compile-time system search path for libraries
18834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18835  
18836 # Run-time system search path for libraries
18837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18838  
18839 # Fix the shell variable \$srcfile for the compiler.
18840 fix_srcfile_path=$lt_fix_srcfile_path
18841  
18842 # Set to yes if exported symbols are required.
18843 always_export_symbols=$always_export_symbols_GCJ
18844  
18845 # The commands to list exported symbols.
18846 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18847  
18848 # The commands to extract the exported symbol list from a shared archive.
18849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18850  
18851 # Symbols that should not be listed in the preloaded symbols.
18852 exclude_expsyms=$lt_exclude_expsyms_GCJ
18853  
18854 # Symbols that must always be exported.
18855 include_expsyms=$lt_include_expsyms_GCJ
18856  
18857 # ### END LIBTOOL TAG CONFIG: $tagname
18858  
18859 __EOF__
18860  
18861  
18862 else
18863 # If there is no Makefile yet, we rely on a make rule to execute
18864 # `config.status --recheck' to rerun these tests and create the
18865 # libtool script then.
18866 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18867 if test -f "$ltmain_in"; then
18868 test -f Makefile && make "$ltmain"
18869 fi
18870 fi
18871  
18872  
18873 ac_ext=c
18874 ac_cpp='$CPP $CPPFLAGS'
18875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18878  
18879 CC="$lt_save_CC"
18880  
18881 else
18882 tagname=""
18883 fi
18884 ;;
18885  
18886 RC)
18887  
18888  
18889 # Source file extension for RC test sources.
18890 ac_ext=rc
18891  
18892 # Object file extension for compiled RC test sources.
18893 objext=o
18894 objext_RC=$objext
18895  
18896 # Code to be used in simple compile tests
18897 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18898  
18899 # Code to be used in simple link tests
18900 lt_simple_link_test_code="$lt_simple_compile_test_code"
18901  
18902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18903  
18904 # If no C compiler was specified, use CC.
18905 LTCC=${LTCC-"$CC"}
18906  
18907 # If no C compiler flags were specified, use CFLAGS.
18908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18909  
18910 # Allow CC to be a program name with arguments.
18911 compiler=$CC
18912  
18913  
18914 # save warnings/boilerplate of simple test code
18915 ac_outfile=conftest.$ac_objext
18916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18918 _lt_compiler_boilerplate=`cat conftest.err`
18919 $rm conftest*
18920  
18921 ac_outfile=conftest.$ac_objext
18922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18924 _lt_linker_boilerplate=`cat conftest.err`
18925 $rm conftest*
18926  
18927  
18928 # Allow CC to be a program name with arguments.
18929 lt_save_CC="$CC"
18930 CC=${RC-"windres"}
18931 compiler=$CC
18932 compiler_RC=$CC
18933 for cc_temp in $compiler""; do
18934 case $cc_temp in
18935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18937 \-*) ;;
18938 *) break;;
18939 esac
18940 done
18941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18942  
18943 lt_cv_prog_compiler_c_o_RC=yes
18944  
18945 # The else clause should only fire when bootstrapping the
18946 # libtool distribution, otherwise you forgot to ship ltmain.sh
18947 # with your package, and you will get complaints that there are
18948 # no rules to generate ltmain.sh.
18949 if test -f "$ltmain"; then
18950 # See if we are running on zsh, and set the options which allow our commands through
18951 # without removal of \ escapes.
18952 if test -n "${ZSH_VERSION+set}" ; then
18953 setopt NO_GLOB_SUBST
18954 fi
18955 # Now quote all the things that may contain metacharacters while being
18956 # careful not to overquote the AC_SUBSTed values. We take copies of the
18957 # variables and quote the copies for generation of the libtool script.
18958 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18959 SED SHELL STRIP \
18960 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18961 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18962 deplibs_check_method reload_flag reload_cmds need_locks \
18963 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18964 lt_cv_sys_global_symbol_to_c_name_address \
18965 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18966 old_postinstall_cmds old_postuninstall_cmds \
18967 compiler_RC \
18968 CC_RC \
18969 LD_RC \
18970 lt_prog_compiler_wl_RC \
18971 lt_prog_compiler_pic_RC \
18972 lt_prog_compiler_static_RC \
18973 lt_prog_compiler_no_builtin_flag_RC \
18974 export_dynamic_flag_spec_RC \
18975 thread_safe_flag_spec_RC \
18976 whole_archive_flag_spec_RC \
18977 enable_shared_with_static_runtimes_RC \
18978 old_archive_cmds_RC \
18979 old_archive_from_new_cmds_RC \
18980 predep_objects_RC \
18981 postdep_objects_RC \
18982 predeps_RC \
18983 postdeps_RC \
18984 compiler_lib_search_path_RC \
18985 archive_cmds_RC \
18986 archive_expsym_cmds_RC \
18987 postinstall_cmds_RC \
18988 postuninstall_cmds_RC \
18989 old_archive_from_expsyms_cmds_RC \
18990 allow_undefined_flag_RC \
18991 no_undefined_flag_RC \
18992 export_symbols_cmds_RC \
18993 hardcode_libdir_flag_spec_RC \
18994 hardcode_libdir_flag_spec_ld_RC \
18995 hardcode_libdir_separator_RC \
18996 hardcode_automatic_RC \
18997 module_cmds_RC \
18998 module_expsym_cmds_RC \
18999 lt_cv_prog_compiler_c_o_RC \
19000 fix_srcfile_path_RC \
19001 exclude_expsyms_RC \
19002 include_expsyms_RC; do
19003  
19004 case $var in
19005 old_archive_cmds_RC | \
19006 old_archive_from_new_cmds_RC | \
19007 archive_cmds_RC | \
19008 archive_expsym_cmds_RC | \
19009 module_cmds_RC | \
19010 module_expsym_cmds_RC | \
19011 old_archive_from_expsyms_cmds_RC | \
19012 export_symbols_cmds_RC | \
19013 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19014 postinstall_cmds | postuninstall_cmds | \
19015 old_postinstall_cmds | old_postuninstall_cmds | \
19016 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19017 # Double-quote double-evaled strings.
19018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19019 ;;
19020 *)
19021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19022 ;;
19023 esac
19024 done
19025  
19026 case $lt_echo in
19027 *'\$0 --fallback-echo"')
19028 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19029 ;;
19030 esac
19031  
19032 cfgfile="$ofile"
19033  
19034 cat <<__EOF__ >> "$cfgfile"
19035 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19036  
19037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19038  
19039 # Shell to use when invoking shell scripts.
19040 SHELL=$lt_SHELL
19041  
19042 # Whether or not to build shared libraries.
19043 build_libtool_libs=$enable_shared
19044  
19045 # Whether or not to build static libraries.
19046 build_old_libs=$enable_static
19047  
19048 # Whether or not to add -lc for building shared libraries.
19049 build_libtool_need_lc=$archive_cmds_need_lc_RC
19050  
19051 # Whether or not to disallow shared libs when runtime libs are static
19052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19053  
19054 # Whether or not to optimize for fast installation.
19055 fast_install=$enable_fast_install
19056  
19057 # The host system.
19058 host_alias=$host_alias
19059 host=$host
19060 host_os=$host_os
19061  
19062 # The build system.
19063 build_alias=$build_alias
19064 build=$build
19065 build_os=$build_os
19066  
19067 # An echo program that does not interpret backslashes.
19068 echo=$lt_echo
19069  
19070 # The archiver.
19071 AR=$lt_AR
19072 AR_FLAGS=$lt_AR_FLAGS
19073  
19074 # A C compiler.
19075 LTCC=$lt_LTCC
19076  
19077 # LTCC compiler flags.
19078 LTCFLAGS=$lt_LTCFLAGS
19079  
19080 # A language-specific compiler.
19081 CC=$lt_compiler_RC
19082  
19083 # Is the compiler the GNU C compiler?
19084 with_gcc=$GCC_RC
19085  
19086 # An ERE matcher.
19087 EGREP=$lt_EGREP
19088  
19089 # The linker used to build libraries.
19090 LD=$lt_LD_RC
19091  
19092 # Whether we need hard or soft links.
19093 LN_S=$lt_LN_S
19094  
19095 # A BSD-compatible nm program.
19096 NM=$lt_NM
19097  
19098 # A symbol stripping program
19099 STRIP=$lt_STRIP
19100  
19101 # Used to examine libraries when file_magic_cmd begins "file"
19102 MAGIC_CMD=$MAGIC_CMD
19103  
19104 # Used on cygwin: DLL creation program.
19105 DLLTOOL="$DLLTOOL"
19106  
19107 # Used on cygwin: object dumper.
19108 OBJDUMP="$OBJDUMP"
19109  
19110 # Used on cygwin: assembler.
19111 AS="$AS"
19112  
19113 # The name of the directory that contains temporary libtool files.
19114 objdir=$objdir
19115  
19116 # How to create reloadable object files.
19117 reload_flag=$lt_reload_flag
19118 reload_cmds=$lt_reload_cmds
19119  
19120 # How to pass a linker flag through the compiler.
19121 wl=$lt_lt_prog_compiler_wl_RC
19122  
19123 # Object file suffix (normally "o").
19124 objext="$ac_objext"
19125  
19126 # Old archive suffix (normally "a").
19127 libext="$libext"
19128  
19129 # Shared library suffix (normally ".so").
19130 shrext_cmds='$shrext_cmds'
19131  
19132 # Executable file suffix (normally "").
19133 exeext="$exeext"
19134  
19135 # Additional compiler flags for building library objects.
19136 pic_flag=$lt_lt_prog_compiler_pic_RC
19137 pic_mode=$pic_mode
19138  
19139 # What is the maximum length of a command?
19140 max_cmd_len=$lt_cv_sys_max_cmd_len
19141  
19142 # Does compiler simultaneously support -c and -o options?
19143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19144  
19145 # Must we lock files when doing compilation?
19146 need_locks=$lt_need_locks
19147  
19148 # Do we need the lib prefix for modules?
19149 need_lib_prefix=$need_lib_prefix
19150  
19151 # Do we need a version for libraries?
19152 need_version=$need_version
19153  
19154 # Whether dlopen is supported.
19155 dlopen_support=$enable_dlopen
19156  
19157 # Whether dlopen of programs is supported.
19158 dlopen_self=$enable_dlopen_self
19159  
19160 # Whether dlopen of statically linked programs is supported.
19161 dlopen_self_static=$enable_dlopen_self_static
19162  
19163 # Compiler flag to prevent dynamic linking.
19164 link_static_flag=$lt_lt_prog_compiler_static_RC
19165  
19166 # Compiler flag to turn off builtin functions.
19167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19168  
19169 # Compiler flag to allow reflexive dlopens.
19170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19171  
19172 # Compiler flag to generate shared objects directly from archives.
19173 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19174  
19175 # Compiler flag to generate thread-safe objects.
19176 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19177  
19178 # Library versioning type.
19179 version_type=$version_type
19180  
19181 # Format of library name prefix.
19182 libname_spec=$lt_libname_spec
19183  
19184 # List of archive names. First name is the real one, the rest are links.
19185 # The last name is the one that the linker finds with -lNAME.
19186 library_names_spec=$lt_library_names_spec
19187  
19188 # The coded name of the library, if different from the real name.
19189 soname_spec=$lt_soname_spec
19190  
19191 # Commands used to build and install an old-style archive.
19192 RANLIB=$lt_RANLIB
19193 old_archive_cmds=$lt_old_archive_cmds_RC
19194 old_postinstall_cmds=$lt_old_postinstall_cmds
19195 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19196  
19197 # Create an old-style archive from a shared archive.
19198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19199  
19200 # Create a temporary old-style archive to link instead of a shared archive.
19201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19202  
19203 # Commands used to build and install a shared archive.
19204 archive_cmds=$lt_archive_cmds_RC
19205 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19206 postinstall_cmds=$lt_postinstall_cmds
19207 postuninstall_cmds=$lt_postuninstall_cmds
19208  
19209 # Commands used to build a loadable module (assumed same as above if empty)
19210 module_cmds=$lt_module_cmds_RC
19211 module_expsym_cmds=$lt_module_expsym_cmds_RC
19212  
19213 # Commands to strip libraries.
19214 old_striplib=$lt_old_striplib
19215 striplib=$lt_striplib
19216  
19217 # Dependencies to place before the objects being linked to create a
19218 # shared library.
19219 predep_objects=$lt_predep_objects_RC
19220  
19221 # Dependencies to place after the objects being linked to create a
19222 # shared library.
19223 postdep_objects=$lt_postdep_objects_RC
19224  
19225 # Dependencies to place before the objects being linked to create a
19226 # shared library.
19227 predeps=$lt_predeps_RC
19228  
19229 # Dependencies to place after the objects being linked to create a
19230 # shared library.
19231 postdeps=$lt_postdeps_RC
19232  
19233 # The library search path used internally by the compiler when linking
19234 # a shared library.
19235 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19236  
19237 # Method to check whether dependent libraries are shared objects.
19238 deplibs_check_method=$lt_deplibs_check_method
19239  
19240 # Command to use when deplibs_check_method == file_magic.
19241 file_magic_cmd=$lt_file_magic_cmd
19242  
19243 # Flag that allows shared libraries with undefined symbols to be built.
19244 allow_undefined_flag=$lt_allow_undefined_flag_RC
19245  
19246 # Flag that forces no undefined symbols.
19247 no_undefined_flag=$lt_no_undefined_flag_RC
19248  
19249 # Commands used to finish a libtool library installation in a directory.
19250 finish_cmds=$lt_finish_cmds
19251  
19252 # Same as above, but a single script fragment to be evaled but not shown.
19253 finish_eval=$lt_finish_eval
19254  
19255 # Take the output of nm and produce a listing of raw symbols and C names.
19256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19257  
19258 # Transform the output of nm in a proper C declaration
19259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19260  
19261 # Transform the output of nm in a C name address pair
19262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19263  
19264 # This is the shared library runtime path variable.
19265 runpath_var=$runpath_var
19266  
19267 # This is the shared library path variable.
19268 shlibpath_var=$shlibpath_var
19269  
19270 # Is shlibpath searched before the hard-coded library search path?
19271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19272  
19273 # How to hardcode a shared library path into an executable.
19274 hardcode_action=$hardcode_action_RC
19275  
19276 # Whether we should hardcode library paths into libraries.
19277 hardcode_into_libs=$hardcode_into_libs
19278  
19279 # Flag to hardcode \$libdir into a binary during linking.
19280 # This must work even if \$libdir does not exist.
19281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19282  
19283 # If ld is used when linking, flag to hardcode \$libdir into
19284 # a binary during linking. This must work even if \$libdir does
19285 # not exist.
19286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19287  
19288 # Whether we need a single -rpath flag with a separated argument.
19289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19290  
19291 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19292 # resulting binary.
19293 hardcode_direct=$hardcode_direct_RC
19294  
19295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19296 # resulting binary.
19297 hardcode_minus_L=$hardcode_minus_L_RC
19298  
19299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19300 # the resulting binary.
19301 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19302  
19303 # Set to yes if building a shared library automatically hardcodes DIR into the library
19304 # and all subsequent libraries and executables linked against it.
19305 hardcode_automatic=$hardcode_automatic_RC
19306  
19307 # Variables whose values should be saved in libtool wrapper scripts and
19308 # restored at relink time.
19309 variables_saved_for_relink="$variables_saved_for_relink"
19310  
19311 # Whether libtool must link a program against all its dependency libraries.
19312 link_all_deplibs=$link_all_deplibs_RC
19313  
19314 # Compile-time system search path for libraries
19315 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19316  
19317 # Run-time system search path for libraries
19318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19319  
19320 # Fix the shell variable \$srcfile for the compiler.
19321 fix_srcfile_path=$lt_fix_srcfile_path
19322  
19323 # Set to yes if exported symbols are required.
19324 always_export_symbols=$always_export_symbols_RC
19325  
19326 # The commands to list exported symbols.
19327 export_symbols_cmds=$lt_export_symbols_cmds_RC
19328  
19329 # The commands to extract the exported symbol list from a shared archive.
19330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19331  
19332 # Symbols that should not be listed in the preloaded symbols.
19333 exclude_expsyms=$lt_exclude_expsyms_RC
19334  
19335 # Symbols that must always be exported.
19336 include_expsyms=$lt_include_expsyms_RC
19337  
19338 # ### END LIBTOOL TAG CONFIG: $tagname
19339  
19340 __EOF__
19341  
19342  
19343 else
19344 # If there is no Makefile yet, we rely on a make rule to execute
19345 # `config.status --recheck' to rerun these tests and create the
19346 # libtool script then.
19347 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19348 if test -f "$ltmain_in"; then
19349 test -f Makefile && make "$ltmain"
19350 fi
19351 fi
19352  
19353  
19354 ac_ext=c
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19359  
19360 CC="$lt_save_CC"
19361  
19362 ;;
19363  
19364 *)
19365 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19366 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19367 { (exit 1); exit 1; }; }
19368 ;;
19369 esac
19370  
19371 # Append the new tag name to the list of available tags.
19372 if test -n "$tagname" ; then
19373 available_tags="$available_tags $tagname"
19374 fi
19375 fi
19376 done
19377 IFS="$lt_save_ifs"
19378  
19379 # Now substitute the updated list of available tags.
19380 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19381 mv "${ofile}T" "$ofile"
19382 chmod +x "$ofile"
19383 else
19384 rm -f "${ofile}T"
19385 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19386 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19387 { (exit 1); exit 1; }; }
19388 fi
19389 fi
19390  
19391  
19392  
19393 # This can be used to rebuild libtool when needed
19394 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19395  
19396 # Always use our own libtool.
19397 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19398  
19399 # Prevent multiple expansion
19400  
19401  
19402  
19403  
19404  
19405  
19406  
19407  
19408  
19409  
19410  
19411  
19412  
19413  
19414  
19415  
19416  
19417  
19418  
19419  
19420 ac_ext=cpp
19421 ac_cpp='$CXXCPP $CPPFLAGS'
19422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425  
19426  
19427 { echo "$as_me:$LINENO: checking wether C++ compiler works" >&5
19428 echo $ECHO_N "checking wether C++ compiler works... $ECHO_C" >&6; }
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435  
19436 int
19437 main ()
19438 {
19439  
19440 ;
19441 return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19452 ac_status=$?
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && {
19458 test -z "$ac_cxx_werror_flag" ||
19459 test ! -s conftest.err
19460 } && test -s conftest$ac_exeext &&
19461 $as_test_x conftest$ac_exeext; then
19462 { echo "$as_me:$LINENO: result: yes" >&5
19463 echo "${ECHO_T}yes" >&6; }
19464 else
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19467  
19468 { { echo "$as_me:$LINENO: error: Failed to compile and link C++ program." >&5
19469 echo "$as_me: error: Failed to compile and link C++ program." >&2;}
19470 { (exit 1); exit 1; }; }
19471 fi
19472  
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19475  
19476  
19477 # Check whether --with-pkg-config-path was given.
19478 if test "${with_pkg_config_path+set}" = set; then
19479 withval=$with_pkg_config_path; export PKG_CONFIG_PATH=${withval}
19480 fi
19481  
19482  
19483 # Check whether --enable-debug was given.
19484 if test "${enable_debug+set}" = set; then
19485 enableval=$enable_debug; enable_debug=$enableval
19486 else
19487 enable_debug=no
19488 fi
19489  
19490  
19491  
19492 { echo "$as_me:$LINENO: checking for X" >&5
19493 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19494  
19495  
19496 # Check whether --with-x was given.
19497 if test "${with_x+set}" = set; then
19498 withval=$with_x;
19499 fi
19500  
19501 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19502 if test "x$with_x" = xno; then
19503 # The user explicitly disabled X.
19504 have_x=disabled
19505 else
19506 case $x_includes,$x_libraries in #(
19507 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19508 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19509 { (exit 1); exit 1; }; };; #(
19510 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513 # One or both of the vars are not set, and there is no cached value.
19514 ac_x_includes=no ac_x_libraries=no
19515 rm -f -r conftest.dir
19516 if mkdir conftest.dir; then
19517 cd conftest.dir
19518 cat >Imakefile <<'_ACEOF'
19519 incroot:
19520 @echo incroot='${INCROOT}'
19521 usrlibdir:
19522 @echo usrlibdir='${USRLIBDIR}'
19523 libdir:
19524 @echo libdir='${LIBDIR}'
19525 _ACEOF
19526 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19528 for ac_var in incroot usrlibdir libdir; do
19529 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19530 done
19531 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19532 for ac_extension in a so sl; do
19533 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19534 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19535 ac_im_usrlibdir=$ac_im_libdir; break
19536 fi
19537 done
19538 # Screen out bogus values from the imake configuration. They are
19539 # bogus both because they are the default anyway, and because
19540 # using them would break gcc on systems where it needs fixed includes.
19541 case $ac_im_incroot in
19542 /usr/include) ac_x_includes= ;;
19543 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19544 esac
19545 case $ac_im_usrlibdir in
19546 /usr/lib | /lib) ;;
19547 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19548 esac
19549 fi
19550 cd ..
19551 rm -f -r conftest.dir
19552 fi
19553  
19554 # Standard set of common directories for X headers.
19555 # Check X11 before X11Rn because it is often a symlink to the current release.
19556 ac_x_header_dirs='
19557 /usr/X11/include
19558 /usr/X11R6/include
19559 /usr/X11R5/include
19560 /usr/X11R4/include
19561  
19562 /usr/include/X11
19563 /usr/include/X11R6
19564 /usr/include/X11R5
19565 /usr/include/X11R4
19566  
19567 /usr/local/X11/include
19568 /usr/local/X11R6/include
19569 /usr/local/X11R5/include
19570 /usr/local/X11R4/include
19571  
19572 /usr/local/include/X11
19573 /usr/local/include/X11R6
19574 /usr/local/include/X11R5
19575 /usr/local/include/X11R4
19576  
19577 /usr/X386/include
19578 /usr/x386/include
19579 /usr/XFree86/include/X11
19580  
19581 /usr/include
19582 /usr/local/include
19583 /usr/unsupported/include
19584 /usr/athena/include
19585 /usr/local/x11r5/include
19586 /usr/lpp/Xamples/include
19587  
19588 /usr/openwin/include
19589 /usr/openwin/share/include'
19590  
19591 if test "$ac_x_includes" = no; then
19592 # Guess where to find include files, by looking for Xlib.h.
19593 # First, try using that file with no special directory specified.
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 #include <X11/Xlib.h>
19601 _ACEOF
19602 if { (ac_try="$ac_cpp conftest.$ac_ext"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } >/dev/null && {
19615 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19616 test ! -s conftest.err
19617 }; then
19618 # We can compile using X headers with no special include directory.
19619 ac_x_includes=
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623  
19624 for ac_dir in $ac_x_header_dirs; do
19625 if test -r "$ac_dir/X11/Xlib.h"; then
19626 ac_x_includes=$ac_dir
19627 break
19628 fi
19629 done
19630 fi
19631  
19632 rm -f conftest.err conftest.$ac_ext
19633 fi # $ac_x_includes = no
19634  
19635 if test "$ac_x_libraries" = no; then
19636 # Check for the libraries.
19637 # See if we find them without any special options.
19638 # Don't add to $LIBS permanently.
19639 ac_save_LIBS=$LIBS
19640 LIBS="-lX11 $LIBS"
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h. */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 #include <X11/Xlib.h>
19648 int
19649 main ()
19650 {
19651 XrmInitialize ()
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (ac_try="$ac_link"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_link") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_cxx_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest$ac_exeext &&
19673 $as_test_x conftest$ac_exeext; then
19674 LIBS=$ac_save_LIBS
19675 # We can link X programs with no special library path.
19676 ac_x_libraries=
19677 else
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680  
19681 LIBS=$ac_save_LIBS
19682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19683 do
19684 # Don't even attempt the hair of trying to link an X program!
19685 for ac_extension in a so sl; do
19686 if test -r "$ac_dir/libX11.$ac_extension"; then
19687 ac_x_libraries=$ac_dir
19688 break 2
19689 fi
19690 done
19691 done
19692 fi
19693  
19694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19695 conftest$ac_exeext conftest.$ac_ext
19696 fi # $ac_x_libraries = no
19697  
19698 case $ac_x_includes,$ac_x_libraries in #(
19699 no,* | *,no | *\'*)
19700 # Didn't find X, or a directory has "'" in its name.
19701 ac_cv_have_x="have_x=no";; #(
19702 *)
19703 # Record where we found X for the cache.
19704 ac_cv_have_x="have_x=yes\
19705 ac_x_includes='$ac_x_includes'\
19706 ac_x_libraries='$ac_x_libraries'"
19707 esac
19708 fi
19709 ;; #(
19710 *) have_x=yes;;
19711 esac
19712 eval "$ac_cv_have_x"
19713 fi # $with_x != no
19714  
19715 if test "$have_x" != yes; then
19716 { echo "$as_me:$LINENO: result: $have_x" >&5
19717 echo "${ECHO_T}$have_x" >&6; }
19718 no_x=yes
19719 else
19720 # If each of the values was on the command line, it overrides each guess.
19721 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19722 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19723 # Update the cache value to reflect the command line values.
19724 ac_cv_have_x="have_x=yes\
19725 ac_x_includes='$x_includes'\
19726 ac_x_libraries='$x_libraries'"
19727 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19728 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19729 fi
19730  
19731 if test "$no_x" = yes; then
19732 # Not all programs may use this symbol, but it does not hurt to define it.
19733  
19734 cat >>confdefs.h <<\_ACEOF
19735 #define X_DISPLAY_MISSING 1
19736 _ACEOF
19737  
19738 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19739 else
19740 if test -n "$x_includes"; then
19741 X_CFLAGS="$X_CFLAGS -I$x_includes"
19742 fi
19743  
19744 # It would also be nice to do this for all -L options, not just this one.
19745 if test -n "$x_libraries"; then
19746 X_LIBS="$X_LIBS -L$x_libraries"
19747 # For Solaris; some versions of Sun CC require a space after -R and
19748 # others require no space. Words are not sufficient . . . .
19749 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19750 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19751 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19752 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
19753 ac_cxx_werror_flag=yes
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760  
19761 int
19762 main ()
19763 {
19764  
19765 ;
19766 return 0;
19767 }
19768 _ACEOF
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_cxx_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest$ac_exeext &&
19786 $as_test_x conftest$ac_exeext; then
19787 { echo "$as_me:$LINENO: result: no" >&5
19788 echo "${ECHO_T}no" >&6; }
19789 X_LIBS="$X_LIBS -R$x_libraries"
19790 else
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793  
19794 LIBS="$ac_xsave_LIBS -R $x_libraries"
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801  
19802 int
19803 main ()
19804 {
19805  
19806 ;
19807 return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_cxx_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest$ac_exeext &&
19827 $as_test_x conftest$ac_exeext; then
19828 { echo "$as_me:$LINENO: result: yes" >&5
19829 echo "${ECHO_T}yes" >&6; }
19830 X_LIBS="$X_LIBS -R $x_libraries"
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834  
19835 { echo "$as_me:$LINENO: result: neither works" >&5
19836 echo "${ECHO_T}neither works" >&6; }
19837 fi
19838  
19839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19840 conftest$ac_exeext conftest.$ac_ext
19841 fi
19842  
19843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19844 conftest$ac_exeext conftest.$ac_ext
19845 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
19846 LIBS=$ac_xsave_LIBS
19847 fi
19848  
19849 # Check for system-dependent libraries X programs must link with.
19850 # Do this before checking for the system-independent R6 libraries
19851 # (-lICE), since we may need -lsocket or whatever for X linking.
19852  
19853 if test "$ISC" = yes; then
19854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19855 else
19856 # Martyn Johnson says this is needed for Ultrix, if the X
19857 # libraries were built with DECnet support. And Karl Berry says
19858 # the Alpha needs dnet_stub (dnet does not exist).
19859 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866  
19867 /* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19870 #ifdef __cplusplus
19871 extern "C"
19872 #endif
19873 char XOpenDisplay ();
19874 int
19875 main ()
19876 {
19877 return XOpenDisplay ();
19878 ;
19879 return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_cxx_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest$ac_exeext &&
19899 $as_test_x conftest$ac_exeext; then
19900 :
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904  
19905 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19906 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19907 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910 ac_check_lib_save_LIBS=$LIBS
19911 LIBS="-ldnet $LIBS"
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918  
19919 /* Override any GCC internal prototype to avoid an error.
19920 Use char because int might match the return type of a GCC
19921 builtin and then its argument prototype would still apply. */
19922 #ifdef __cplusplus
19923 extern "C"
19924 #endif
19925 char dnet_ntoa ();
19926 int
19927 main ()
19928 {
19929 return dnet_ntoa ();
19930 ;
19931 return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_link") 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_cxx_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest$ac_exeext &&
19951 $as_test_x conftest$ac_exeext; then
19952 ac_cv_lib_dnet_dnet_ntoa=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956  
19957 ac_cv_lib_dnet_dnet_ntoa=no
19958 fi
19959  
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19963 fi
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19965 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19966 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19967 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19968 fi
19969  
19970 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19971 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19972 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19973 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976 ac_check_lib_save_LIBS=$LIBS
19977 LIBS="-ldnet_stub $LIBS"
19978 cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h. */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984  
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19988 #ifdef __cplusplus
19989 extern "C"
19990 #endif
19991 char dnet_ntoa ();
19992 int
19993 main ()
19994 {
19995 return dnet_ntoa ();
19996 ;
19997 return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_link") 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_cxx_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest$ac_exeext &&
20017 $as_test_x conftest$ac_exeext; then
20018 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20022  
20023 ac_cv_lib_dnet_stub_dnet_ntoa=no
20024 fi
20025  
20026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20027 conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20029 fi
20030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20031 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20032 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20033 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20034 fi
20035  
20036 fi
20037 fi
20038  
20039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20040 conftest$ac_exeext conftest.$ac_ext
20041 LIBS="$ac_xsave_LIBS"
20042  
20043 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20044 # to get the SysV transport functions.
20045 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20046 # needs -lnsl.
20047 # The nsl library prevents programs from opening the X display
20048 # on Irix 5.2, according to T.E. Dickey.
20049 # The functions gethostbyname, getservbyname, and inet_addr are
20050 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20051 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20052 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20053 if test "${ac_cv_func_gethostbyname+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20064 #define gethostbyname innocuous_gethostbyname
20065  
20066 /* System header to define __stub macros and hopefully few prototypes,
20067 which can conflict with char gethostbyname (); below.
20068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20069 <limits.h> exists even on freestanding compilers. */
20070  
20071 #ifdef __STDC__
20072 # include <limits.h>
20073 #else
20074 # include <assert.h>
20075 #endif
20076  
20077 #undef gethostbyname
20078  
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char gethostbyname ();
20086 /* The GNU C library defines this for functions which it implements
20087 to always fail with ENOSYS. Some functions are actually named
20088 something starting with __ and the normal name is an alias. */
20089 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20090 choke me
20091 #endif
20092  
20093 int
20094 main ()
20095 {
20096 return gethostbyname ();
20097 ;
20098 return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_cxx_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest$ac_exeext &&
20118 $as_test_x conftest$ac_exeext; then
20119 ac_cv_func_gethostbyname=yes
20120 else
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123  
20124 ac_cv_func_gethostbyname=no
20125 fi
20126  
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128 conftest$ac_exeext conftest.$ac_ext
20129 fi
20130 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20131 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20132  
20133 if test $ac_cv_func_gethostbyname = no; then
20134 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20135 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20136 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lnsl $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 gethostbyname ();
20155 int
20156 main ()
20157 {
20158 return gethostbyname ();
20159 ;
20160 return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_cxx_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest$ac_exeext &&
20180 $as_test_x conftest$ac_exeext; then
20181 ac_cv_lib_nsl_gethostbyname=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185  
20186 ac_cv_lib_nsl_gethostbyname=no
20187 fi
20188  
20189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20190 conftest$ac_exeext conftest.$ac_ext
20191 LIBS=$ac_check_lib_save_LIBS
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20194 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20195 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20196 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20197 fi
20198  
20199 if test $ac_cv_lib_nsl_gethostbyname = no; then
20200 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20201 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20202 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205 ac_check_lib_save_LIBS=$LIBS
20206 LIBS="-lbsd $LIBS"
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213  
20214 /* Override any GCC internal prototype to avoid an error.
20215 Use char because int might match the return type of a GCC
20216 builtin and then its argument prototype would still apply. */
20217 #ifdef __cplusplus
20218 extern "C"
20219 #endif
20220 char gethostbyname ();
20221 int
20222 main ()
20223 {
20224 return gethostbyname ();
20225 ;
20226 return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (ac_try="$ac_link"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_link") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_cxx_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest$ac_exeext &&
20246 $as_test_x conftest$ac_exeext; then
20247 ac_cv_lib_bsd_gethostbyname=yes
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251  
20252 ac_cv_lib_bsd_gethostbyname=no
20253 fi
20254  
20255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20256 conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20258 fi
20259 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20260 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20261 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20263 fi
20264  
20265 fi
20266 fi
20267  
20268 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20269 # socket/setsockopt and other routines are undefined under SCO ODT
20270 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20271 # on later versions), says Simon Leinen: it contains gethostby*
20272 # variants that don't use the name server (or something). -lsocket
20273 # must be given before -lnsl if both are needed. We assume that
20274 # if connect needs -lnsl, so does gethostbyname.
20275 { echo "$as_me:$LINENO: checking for connect" >&5
20276 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20277 if test "${ac_cv_func_connect+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define connect innocuous_connect
20289  
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char connect (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20294  
20295 #ifdef __STDC__
20296 # include <limits.h>
20297 #else
20298 # include <assert.h>
20299 #endif
20300  
20301 #undef connect
20302  
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20306 #ifdef __cplusplus
20307 extern "C"
20308 #endif
20309 char connect ();
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub_connect || defined __stub___connect
20314 choke me
20315 #endif
20316  
20317 int
20318 main ()
20319 {
20320 return connect ();
20321 ;
20322 return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_cxx_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 ac_cv_func_connect=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347  
20348 ac_cv_func_connect=no
20349 fi
20350  
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20353 fi
20354 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20355 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20356  
20357 if test $ac_cv_func_connect = no; then
20358 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20359 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20360 if test "${ac_cv_lib_socket_connect+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371  
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char connect ();
20379 int
20380 main ()
20381 {
20382 return connect ();
20383 ;
20384 return 0;
20385 }
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_cxx_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_socket_connect=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409  
20410 ac_cv_lib_socket_connect=no
20411 fi
20412  
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20418 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20419 if test $ac_cv_lib_socket_connect = yes; then
20420 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20421 fi
20422  
20423 fi
20424  
20425 # Guillermo Gomez says -lposix is necessary on A/UX.
20426 { echo "$as_me:$LINENO: checking for remove" >&5
20427 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20428 if test "${ac_cv_func_remove+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20439 #define remove innocuous_remove
20440  
20441 /* System header to define __stub macros and hopefully few prototypes,
20442 which can conflict with char remove (); below.
20443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20444 <limits.h> exists even on freestanding compilers. */
20445  
20446 #ifdef __STDC__
20447 # include <limits.h>
20448 #else
20449 # include <assert.h>
20450 #endif
20451  
20452 #undef remove
20453  
20454 /* Override any GCC internal prototype to avoid an error.
20455 Use char because int might match the return type of a GCC
20456 builtin and then its argument prototype would still apply. */
20457 #ifdef __cplusplus
20458 extern "C"
20459 #endif
20460 char remove ();
20461 /* The GNU C library defines this for functions which it implements
20462 to always fail with ENOSYS. Some functions are actually named
20463 something starting with __ and the normal name is an alias. */
20464 #if defined __stub_remove || defined __stub___remove
20465 choke me
20466 #endif
20467  
20468 int
20469 main ()
20470 {
20471 return remove ();
20472 ;
20473 return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_link") 2>conftest.er1
20484 ac_status=$?
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_cxx_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest$ac_exeext &&
20493 $as_test_x conftest$ac_exeext; then
20494 ac_cv_func_remove=yes
20495 else
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498  
20499 ac_cv_func_remove=no
20500 fi
20501  
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503 conftest$ac_exeext conftest.$ac_ext
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20506 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20507  
20508 if test $ac_cv_func_remove = no; then
20509 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20510 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20511 if test "${ac_cv_lib_posix_remove+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514 ac_check_lib_save_LIBS=$LIBS
20515 LIBS="-lposix $LIBS"
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522  
20523 /* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20526 #ifdef __cplusplus
20527 extern "C"
20528 #endif
20529 char remove ();
20530 int
20531 main ()
20532 {
20533 return remove ();
20534 ;
20535 return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_link") 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && {
20552 test -z "$ac_cxx_werror_flag" ||
20553 test ! -s conftest.err
20554 } && test -s conftest$ac_exeext &&
20555 $as_test_x conftest$ac_exeext; then
20556 ac_cv_lib_posix_remove=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560  
20561 ac_cv_lib_posix_remove=no
20562 fi
20563  
20564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20565 conftest$ac_exeext conftest.$ac_ext
20566 LIBS=$ac_check_lib_save_LIBS
20567 fi
20568 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20569 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20570 if test $ac_cv_lib_posix_remove = yes; then
20571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20572 fi
20573  
20574 fi
20575  
20576 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20577 { echo "$as_me:$LINENO: checking for shmat" >&5
20578 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20579 if test "${ac_cv_func_shmat+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20590 #define shmat innocuous_shmat
20591  
20592 /* System header to define __stub macros and hopefully few prototypes,
20593 which can conflict with char shmat (); below.
20594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20595 <limits.h> exists even on freestanding compilers. */
20596  
20597 #ifdef __STDC__
20598 # include <limits.h>
20599 #else
20600 # include <assert.h>
20601 #endif
20602  
20603 #undef shmat
20604  
20605 /* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
20608 #ifdef __cplusplus
20609 extern "C"
20610 #endif
20611 char shmat ();
20612 /* The GNU C library defines this for functions which it implements
20613 to always fail with ENOSYS. Some functions are actually named
20614 something starting with __ and the normal name is an alias. */
20615 #if defined __stub_shmat || defined __stub___shmat
20616 choke me
20617 #endif
20618  
20619 int
20620 main ()
20621 {
20622 return shmat ();
20623 ;
20624 return 0;
20625 }
20626 _ACEOF
20627 rm -f conftest.$ac_objext conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>conftest.er1
20635 ac_status=$?
20636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } && {
20641 test -z "$ac_cxx_werror_flag" ||
20642 test ! -s conftest.err
20643 } && test -s conftest$ac_exeext &&
20644 $as_test_x conftest$ac_exeext; then
20645 ac_cv_func_shmat=yes
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20649  
20650 ac_cv_func_shmat=no
20651 fi
20652  
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654 conftest$ac_exeext conftest.$ac_ext
20655 fi
20656 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20657 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
20658  
20659 if test $ac_cv_func_shmat = no; then
20660 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20661 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
20662 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665 ac_check_lib_save_LIBS=$LIBS
20666 LIBS="-lipc $LIBS"
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673  
20674 /* Override any GCC internal prototype to avoid an error.
20675 Use char because int might match the return type of a GCC
20676 builtin and then its argument prototype would still apply. */
20677 #ifdef __cplusplus
20678 extern "C"
20679 #endif
20680 char shmat ();
20681 int
20682 main ()
20683 {
20684 return shmat ();
20685 ;
20686 return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext conftest$ac_exeext
20690 if { (ac_try="$ac_link"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_link") 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && {
20703 test -z "$ac_cxx_werror_flag" ||
20704 test ! -s conftest.err
20705 } && test -s conftest$ac_exeext &&
20706 $as_test_x conftest$ac_exeext; then
20707 ac_cv_lib_ipc_shmat=yes
20708 else
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711  
20712 ac_cv_lib_ipc_shmat=no
20713 fi
20714  
20715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20716 conftest$ac_exeext conftest.$ac_ext
20717 LIBS=$ac_check_lib_save_LIBS
20718 fi
20719 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20720 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
20721 if test $ac_cv_lib_ipc_shmat = yes; then
20722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20723 fi
20724  
20725 fi
20726 fi
20727  
20728 # Check for libraries that X11R6 Xt/Xaw programs need.
20729 ac_save_LDFLAGS=$LDFLAGS
20730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20732 # check for ICE first), but we must link in the order -lSM -lICE or
20733 # we get undefined symbols. So assume we have SM if we have ICE.
20734 # These have to be linked with before -lX11, unlike the other
20735 # libraries we check for below, so use a different variable.
20736 # John Interrante, Karl Berry
20737 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20738 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
20739 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742 ac_check_lib_save_LIBS=$LIBS
20743 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h. */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750  
20751 /* Override any GCC internal prototype to avoid an error.
20752 Use char because int might match the return type of a GCC
20753 builtin and then its argument prototype would still apply. */
20754 #ifdef __cplusplus
20755 extern "C"
20756 #endif
20757 char IceConnectionNumber ();
20758 int
20759 main ()
20760 {
20761 return IceConnectionNumber ();
20762 ;
20763 return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext conftest$ac_exeext
20767 if { (ac_try="$ac_link"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20771 esac
20772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_link") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_cxx_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest$ac_exeext &&
20783 $as_test_x conftest$ac_exeext; then
20784 ac_cv_lib_ICE_IceConnectionNumber=yes
20785 else
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788  
20789 ac_cv_lib_ICE_IceConnectionNumber=no
20790 fi
20791  
20792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20793 conftest$ac_exeext conftest.$ac_ext
20794 LIBS=$ac_check_lib_save_LIBS
20795 fi
20796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20797 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20798 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20799 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20800 fi
20801  
20802 LDFLAGS=$ac_save_LDFLAGS
20803  
20804 fi
20805  
20806  
20807  
20808 old_LIBS="$LIBS"
20809 LIBS="$LIBS $X_LIBS"
20810  
20811 { echo "$as_me:$LINENO: checking for XTestFakeMotionEvent in -lXtst" >&5
20812 echo $ECHO_N "checking for XTestFakeMotionEvent in -lXtst... $ECHO_C" >&6; }
20813 if test "${ac_cv_lib_Xtst_XTestFakeMotionEvent+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lXtst $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824  
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 char XTestFakeMotionEvent ();
20832 int
20833 main ()
20834 {
20835 return XTestFakeMotionEvent ();
20836 ;
20837 return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20845 esac
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_link") 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_cxx_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest$ac_exeext &&
20857 $as_test_x conftest$ac_exeext; then
20858 ac_cv_lib_Xtst_XTestFakeMotionEvent=yes
20859 else
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862  
20863 ac_cv_lib_Xtst_XTestFakeMotionEvent=no
20864 fi
20865  
20866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20869 fi
20870 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestFakeMotionEvent" >&5
20871 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestFakeMotionEvent" >&6; }
20872 if test $ac_cv_lib_Xtst_XTestFakeMotionEvent = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBXTST 1
20875 _ACEOF
20876  
20877 LIBS="-lXtst $LIBS"
20878  
20879 else
20880 { { echo "$as_me:$LINENO: error: Check for XTestFakeMotionEvent in -lXtst failed" >&5
20881 echo "$as_me: error: Check for XTestFakeMotionEvent in -lXtst failed" >&2;}
20882 { (exit 1); exit 1; }; }
20883 fi
20884  
20885 LIBS="$old_LIBS"
20886  
20887 { echo "$as_me:$LINENO: checking for boost" >&5
20888 echo $ECHO_N "checking for boost... $ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 #include <boost/version.hpp>
20896 #if BOOST_VERSION < 103200
20897 #error "Boost version 1.32 or greater required."
20898 #endif
20899 _ACEOF
20900 if { (ac_try="$ac_cpp conftest.$ac_ext"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev/null && {
20913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20914 test ! -s conftest.err
20915 }; then
20916 { echo "$as_me:$LINENO: result: yes" >&5
20917 echo "${ECHO_T}yes" >&6; }
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921  
20922 { { echo "$as_me:$LINENO: error: Check for boost library of version >= 1.32 failed." >&5
20923 echo "$as_me: error: Check for boost library of version >= 1.32 failed." >&2;}
20924 { (exit 1); exit 1; }; }
20925 fi
20926  
20927 rm -f conftest.err conftest.$ac_ext
20928  
20929 { echo "$as_me:$LINENO: checking for dc1394" >&5
20930 echo $ECHO_N "checking for dc1394... $ECHO_C" >&6; }
20931 old_LIBS="$LIBS"
20932 LIBS="$LIBS -ldc1394_control -lraw1394"
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h. */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <libdc1394/dc1394_control.h>
20940 int
20941 main ()
20942 {
20943 dc1394_dma_setup_capture( 0, 0, 0, 0, 0, 0, 0, 0, 0, "", 0 )
20944 ;
20945 return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (ac_try="$ac_link"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_link") 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_cxx_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest$ac_exeext &&
20965 $as_test_x conftest$ac_exeext; then
20966 { echo "$as_me:$LINENO: result: yes" >&5
20967 echo "${ECHO_T}yes" >&6; }
20968 LIBDC1394_OLD="no"
20969 LIBS_DC1394="-ldc1394_control -lraw1394"
20970 else
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973  
20974 { echo "$as_me:$LINENO: result: no (older than version 1.1?)" >&5
20975 echo "${ECHO_T}no (older than version 1.1?)" >&6; }
20976 LIBS_DC1394=""
20977 fi
20978  
20979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20980 conftest$ac_exeext conftest.$ac_ext
20981 if test "x$LIBS_DC1394" == "x"; then
20982 { echo "$as_me:$LINENO: checking for old version of dc1394" >&5
20983 echo $ECHO_N "checking for old version of dc1394... $ECHO_C" >&6; }
20984 cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h. */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20990 #include <libdc1394/dc1394_control.h>
20991 int
20992 main ()
20993 {
20994 dc1394_dma_setup_capture( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", 0 )
20995 ;
20996 return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_link") 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_cxx_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest$ac_exeext &&
21016 $as_test_x conftest$ac_exeext; then
21017 { echo "$as_me:$LINENO: result: yes" >&5
21018 echo "${ECHO_T}yes" >&6; }
21019 LIBDC1394_OLD="yes"
21020  
21021 cat >>confdefs.h <<\_ACEOF
21022 #define LIBDC1394_OLD yes
21023 _ACEOF
21024  
21025 LIBS_DC1394="-ldc1394_control -lraw1394"
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21029  
21030 { { echo "$as_me:$LINENO: error: Failed to link with dc1394 library (only version 1.x supported)" >&5
21031 echo "$as_me: error: Failed to link with dc1394 library (only version 1.x supported)" >&2;}
21032 { (exit 1); exit 1; }; }
21033 fi
21034  
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21037 fi
21038 LIBS="$old_LIBS"
21039  
21040 if test "x$LIBDC1394_OLD" == "xyes"; then
21041 info="$info
21042 libdc1394-library : older than version 1.1"
21043 else
21044 info="$info
21045 libdc1394-library : version 1.1 or newer"
21046 fi
21047  
21048 cat >>confdefs.h <<\_ACEOF
21049 #define HAVE_LIBDC1394 yes
21050 _ACEOF
21051  
21052  
21053  
21054  
21055  
21056  
21057  
21058 { echo "$as_me:$LINENO: checking for OpenGL" >&5
21059 echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6; }
21060 if test "${mdl_cv_have_OpenGL+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21062 else
21063  
21064  
21065 # Check whether --with---with-Mesa was given.
21066 if test "${with___with_Mesa+set}" = set; then
21067 withval=$with___with_Mesa; with_Mesa_help_string
21068 fi
21069  
21070 # Check whether --enable-Mesa was given.
21071 if test "${enable_Mesa+set}" = set; then
21072 enableval=$enable_Mesa; use_Mesa=$enableval
21073 else
21074 use_Mesa=yes
21075 fi
21076  
21077  
21078 if test x"$use_Mesa" = xyes; then
21079 GL_search_list="MesaGL GL"
21080 GLU_search_list="MesaGLU GLU"
21081 GLX_search_list="MesaGLX GLX"
21082 else
21083 GL_search_list="GL MesaGL"
21084 GLU_search_list="GLU MesaGLU"
21085 GLX_search_list="GLX MesaGLX"
21086 fi
21087  
21088  
21089 ac_ext=c
21090 ac_cpp='$CPP $CPPFLAGS'
21091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094  
21095  
21096 if test x"$no_x" != xyes; then
21097 GL_CFLAGS="$X_CFLAGS"
21098 GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
21099 fi
21100 GL_save_CPPFLAGS="$CPPFLAGS"
21101 CPPFLAGS="$GL_CFLAGS"
21102  
21103 GL_save_LIBS="$LIBS"
21104 LIBS="$GL_X_LIBS"
21105  
21106  
21107 # Save the "AC_MSG_RESULT file descriptor" to FD 8.
21108 exec 8>&6
21109  
21110 # Temporarily turn off AC_MSG_RESULT so that the user gets pretty
21111 # messages.
21112 exec 6>/dev/null
21113  
21114 { echo "$as_me:$LINENO: checking for library containing glAccum" >&5
21115 echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6; }
21116 if test "${ac_cv_search_glAccum+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119 ac_func_search_save_LIBS=$LIBS
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126  
21127 /* Override any GCC internal prototype to avoid an error.
21128 Use char because int might match the return type of a GCC
21129 builtin and then its argument prototype would still apply. */
21130 #ifdef __cplusplus
21131 extern "C"
21132 #endif
21133 char glAccum ();
21134 int
21135 main ()
21136 {
21137 return glAccum ();
21138 ;
21139 return 0;
21140 }
21141 _ACEOF
21142 for ac_lib in '' $GL_search_list; do
21143 if test -z "$ac_lib"; then
21144 ac_res="none required"
21145 else
21146 ac_res=-l$ac_lib
21147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21148 fi
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_link") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest$ac_exeext &&
21166 $as_test_x conftest$ac_exeext; then
21167 ac_cv_search_glAccum=$ac_res
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171  
21172  
21173 fi
21174  
21175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21176 conftest$ac_exeext
21177 if test "${ac_cv_search_glAccum+set}" = set; then
21178 break
21179 fi
21180 done
21181 if test "${ac_cv_search_glAccum+set}" = set; then
21182 :
21183 else
21184 ac_cv_search_glAccum=no
21185 fi
21186 rm conftest.$ac_ext
21187 LIBS=$ac_func_search_save_LIBS
21188 fi
21189 { echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5
21190 echo "${ECHO_T}$ac_cv_search_glAccum" >&6; }
21191 ac_res=$ac_cv_search_glAccum
21192 if test "$ac_res" != no; then
21193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21194 have_GL=yes
21195 else
21196 have_GL=no
21197 fi
21198  
21199 { echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5
21200 echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6; }
21201 if test "${ac_cv_search_gluBeginCurve+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204 ac_func_search_save_LIBS=$LIBS
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h. */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211  
21212 /* Override any GCC internal prototype to avoid an error.
21213 Use char because int might match the return type of a GCC
21214 builtin and then its argument prototype would still apply. */
21215 #ifdef __cplusplus
21216 extern "C"
21217 #endif
21218 char gluBeginCurve ();
21219 int
21220 main ()
21221 {
21222 return gluBeginCurve ();
21223 ;
21224 return 0;
21225 }
21226 _ACEOF
21227 for ac_lib in '' $GLU_search_list; do
21228 if test -z "$ac_lib"; then
21229 ac_res="none required"
21230 else
21231 ac_res=-l$ac_lib
21232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21233 fi
21234 rm -f conftest.$ac_objext conftest$ac_exeext
21235 if { (ac_try="$ac_link"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_link") 2>conftest.er1
21242 ac_status=$?
21243 grep -v '^ *+' conftest.er1 >conftest.err
21244 rm -f conftest.er1
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_c_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest$ac_exeext &&
21251 $as_test_x conftest$ac_exeext; then
21252 ac_cv_search_gluBeginCurve=$ac_res
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256  
21257  
21258 fi
21259  
21260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21261 conftest$ac_exeext
21262 if test "${ac_cv_search_gluBeginCurve+set}" = set; then
21263 break
21264 fi
21265 done
21266 if test "${ac_cv_search_gluBeginCurve+set}" = set; then
21267 :
21268 else
21269 ac_cv_search_gluBeginCurve=no
21270 fi
21271 rm conftest.$ac_ext
21272 LIBS=$ac_func_search_save_LIBS
21273 fi
21274 { echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5
21275 echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6; }
21276 ac_res=$ac_cv_search_gluBeginCurve
21277 if test "$ac_res" != no; then
21278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21279 have_GLU=yes
21280 else
21281 have_GLU=no
21282 fi
21283  
21284 { echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5
21285 echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6; }
21286 if test "${ac_cv_search_glXChooseVisual+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 else
21289 ac_func_search_save_LIBS=$LIBS
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296  
21297 /* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21300 #ifdef __cplusplus
21301 extern "C"
21302 #endif
21303 char glXChooseVisual ();
21304 int
21305 main ()
21306 {
21307 return glXChooseVisual ();
21308 ;
21309 return 0;
21310 }
21311 _ACEOF
21312 for ac_lib in '' $GLX_search_list; do
21313 if test -z "$ac_lib"; then
21314 ac_res="none required"
21315 else
21316 ac_res=-l$ac_lib
21317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21318 fi
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_link") 2>conftest.er1
21327 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } && {
21333 test -z "$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21335 } && test -s conftest$ac_exeext &&
21336 $as_test_x conftest$ac_exeext; then
21337 ac_cv_search_glXChooseVisual=$ac_res
21338 else
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341  
21342  
21343 fi
21344  
21345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21346 conftest$ac_exeext
21347 if test "${ac_cv_search_glXChooseVisual+set}" = set; then
21348 break
21349 fi
21350 done
21351 if test "${ac_cv_search_glXChooseVisual+set}" = set; then
21352 :
21353 else
21354 ac_cv_search_glXChooseVisual=no
21355 fi
21356 rm conftest.$ac_ext
21357 LIBS=$ac_func_search_save_LIBS
21358 fi
21359 { echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5
21360 echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6; }
21361 ac_res=$ac_cv_search_glXChooseVisual
21362 if test "$ac_res" != no; then
21363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21364 have_GLX=yes
21365 else
21366 have_GLX=no
21367 fi
21368  
21369 { echo "$as_me:$LINENO: checking for library containing glutInit" >&5
21370 echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6; }
21371 if test "${ac_cv_search_glutInit+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374 ac_func_search_save_LIBS=$LIBS
21375 cat >conftest.$ac_ext <<_ACEOF
21376 /* confdefs.h. */
21377 _ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381  
21382 /* Override any GCC internal prototype to avoid an error.
21383 Use char because int might match the return type of a GCC
21384 builtin and then its argument prototype would still apply. */
21385 #ifdef __cplusplus
21386 extern "C"
21387 #endif
21388 char glutInit ();
21389 int
21390 main ()
21391 {
21392 return glutInit ();
21393 ;
21394 return 0;
21395 }
21396 _ACEOF
21397 for ac_lib in '' glut; do
21398 if test -z "$ac_lib"; then
21399 ac_res="none required"
21400 else
21401 ac_res=-l$ac_lib
21402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21403 fi
21404 rm -f conftest.$ac_objext conftest$ac_exeext
21405 if { (ac_try="$ac_link"
21406 case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_link") 2>conftest.er1
21412 ac_status=$?
21413 grep -v '^ *+' conftest.er1 >conftest.err
21414 rm -f conftest.er1
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && {
21418 test -z "$ac_c_werror_flag" ||
21419 test ! -s conftest.err
21420 } && test -s conftest$ac_exeext &&
21421 $as_test_x conftest$ac_exeext; then
21422 ac_cv_search_glutInit=$ac_res
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426  
21427  
21428 fi
21429  
21430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21431 conftest$ac_exeext
21432 if test "${ac_cv_search_glutInit+set}" = set; then
21433 break
21434 fi
21435 done
21436 if test "${ac_cv_search_glutInit+set}" = set; then
21437 :
21438 else
21439 ac_cv_search_glutInit=no
21440 fi
21441 rm conftest.$ac_ext
21442 LIBS=$ac_func_search_save_LIBS
21443 fi
21444 { echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5
21445 echo "${ECHO_T}$ac_cv_search_glutInit" >&6; }
21446 ac_res=$ac_cv_search_glutInit
21447 if test "$ac_res" != no; then
21448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21449 have_glut=yes
21450 else
21451 have_glut=no
21452 fi
21453  
21454  
21455  
21456  
21457 # Restore pretty messages.
21458 exec 6>&8
21459  
21460 if test -n "$LIBS"; then
21461 mdl_cv_have_OpenGL=yes
21462 GL_LIBS="$LIBS"
21463  
21464  
21465 else
21466 mdl_cv_have_OpenGL=no
21467 GL_CFLAGS=
21468 fi
21469  
21470 GL_X_LIBS=
21471  
21472 LIBS="$GL_save_LIBS"
21473 CPPFLAGS="$GL_save_CPPFLAGS"
21474  
21475 ac_ext=cpp
21476 ac_cpp='$CXXCPP $CPPFLAGS'
21477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21480  
21481  
21482 mdl_cv_GL_CFLAGS="$GL_CFLAGS"
21483 mdl_cv_GL_LIBS="$GL_LIBS"
21484 mdl_cv_have_GL="$have_GL"
21485 mdl_cv_have_GLU="$have_GLU"
21486 mdl_cv_have_GLX="$have_GLX"
21487 mdl_cv_have_glut="$have_glut"
21488  
21489 fi
21490 { echo "$as_me:$LINENO: result: $mdl_cv_have_OpenGL" >&5
21491 echo "${ECHO_T}$mdl_cv_have_OpenGL" >&6; }
21492 GL_CFLAGS="$mdl_cv_GL_CFLAGS"
21493 GL_LIBS="$mdl_cv_GL_LIBS"
21494 have_GL="$mdl_cv_have_GL"
21495 have_GLU="$mdl_cv_have_GLU"
21496 have_GLX="$mdl_cv_have_GLX"
21497 have_glut="$mdl_cv_have_glut"
21498  
21499 HAVE_OPENGL="yes"
21500 { echo "$as_me:$LINENO: checking for GL" >&5
21501 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
21502 if test "x$have_GL" != "xyes"; then
21503 { echo "$as_me:$LINENO: result: no" >&5
21504 echo "${ECHO_T}no" >&6; }
21505 HAVE_OPENGL="no"
21506 else
21507 { echo "$as_me:$LINENO: result: yes" >&5
21508 echo "${ECHO_T}yes" >&6; }
21509 fi
21510 { echo "$as_me:$LINENO: checking for GLU" >&5
21511 echo $ECHO_N "checking for GLU... $ECHO_C" >&6; }
21512 if test "x$have_GLU" != "xyes"; then
21513 { echo "$as_me:$LINENO: result: no" >&5
21514 echo "${ECHO_T}no" >&6; }
21515 HAVE_OPENGL="no"
21516 else
21517 { echo "$as_me:$LINENO: result: yes" >&5
21518 echo "${ECHO_T}yes" >&6; }
21519 fi
21520 { echo "$as_me:$LINENO: checking for glut" >&5
21521 echo $ECHO_N "checking for glut... $ECHO_C" >&6; }
21522 if test "x$have_glut" != "xyes"; then
21523 { echo "$as_me:$LINENO: result: no" >&5
21524 echo "${ECHO_T}no" >&6; }
21525 HAVE_OPENGL="no"
21526 else
21527 { echo "$as_me:$LINENO: result: yes" >&5
21528 echo "${ECHO_T}yes" >&6; }
21529 fi
21530 if test "x$HAVE_OPENGL" != "xyes"; then
21531 { { echo "$as_me:$LINENO: error: Check for OpenGL failed." >&5
21532 echo "$as_me: error: Check for OpenGL failed." >&2;}
21533 { (exit 1); exit 1; }; }
21534 fi
21535  
21536 # Checks for libraries.
21537  
21538  
21539 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21540 if test -n "$ac_tool_prefix"; then
21541 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21542 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548 case $PKG_CONFIG in
21549 [\\/]* | ?:[\\/]*)
21550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21551 ;;
21552 *)
21553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21554 for as_dir in $PATH
21555 do
21556 IFS=$as_save_IFS
21557 test -z "$as_dir" && as_dir=.
21558 for ac_exec_ext in '' $ac_executable_extensions; do
21559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21562 break 2
21563 fi
21564 done
21565 done
21566 IFS=$as_save_IFS
21567  
21568 ;;
21569 esac
21570 fi
21571 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21572 if test -n "$PKG_CONFIG"; then
21573 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21574 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21575 else
21576 { echo "$as_me:$LINENO: result: no" >&5
21577 echo "${ECHO_T}no" >&6; }
21578 fi
21579  
21580  
21581 fi
21582 if test -z "$ac_cv_path_PKG_CONFIG"; then
21583 ac_pt_PKG_CONFIG=$PKG_CONFIG
21584 # Extract the first word of "pkg-config", so it can be a program name with args.
21585 set dummy pkg-config; ac_word=$2
21586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21588 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 else
21591 case $ac_pt_PKG_CONFIG in
21592 [\\/]* | ?:[\\/]*)
21593 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21594 ;;
21595 *)
21596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21597 for as_dir in $PATH
21598 do
21599 IFS=$as_save_IFS
21600 test -z "$as_dir" && as_dir=.
21601 for ac_exec_ext in '' $ac_executable_extensions; do
21602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21603 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21605 break 2
21606 fi
21607 done
21608 done
21609 IFS=$as_save_IFS
21610  
21611 ;;
21612 esac
21613 fi
21614 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21615 if test -n "$ac_pt_PKG_CONFIG"; then
21616 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21617 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21618 else
21619 { echo "$as_me:$LINENO: result: no" >&5
21620 echo "${ECHO_T}no" >&6; }
21621 fi
21622  
21623 if test "x$ac_pt_PKG_CONFIG" = x; then
21624 PKG_CONFIG=""
21625 else
21626 case $cross_compiling:$ac_tool_warned in
21627 yes:)
21628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21629 whose name does not start with the host triplet. If you think this
21630 configuration is useful to you, please write to autoconf@gnu.org." >&5
21631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21632 whose name does not start with the host triplet. If you think this
21633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21634 ac_tool_warned=yes ;;
21635 esac
21636 PKG_CONFIG=$ac_pt_PKG_CONFIG
21637 fi
21638 else
21639 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21640 fi
21641  
21642 fi
21643 if test -n "$PKG_CONFIG"; then
21644 _pkg_min_version=0.9.0
21645 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21646 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21647 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21648 { echo "$as_me:$LINENO: result: yes" >&5
21649 echo "${ECHO_T}yes" >&6; }
21650 else
21651 { echo "$as_me:$LINENO: result: no" >&5
21652 echo "${ECHO_T}no" >&6; }
21653 PKG_CONFIG=""
21654 fi
21655  
21656 fi
21657  
21658 pkg_failed=no
21659 { echo "$as_me:$LINENO: checking for QT" >&5
21660 echo $ECHO_N "checking for QT... $ECHO_C" >&6; }
21661  
21662 if test -n "$PKG_CONFIG"; then
21663 if test -n "$QT_CFLAGS"; then
21664 pkg_cv_QT_CFLAGS="$QT_CFLAGS"
21665 else
21666 if test -n "$PKG_CONFIG" && \
21667 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.0.1\"") >&5
21668 ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.0.1") 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; then
21672 pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtOpenGL >= 4.0.1" 2>/dev/null`
21673 else
21674 pkg_failed=yes
21675 fi
21676 fi
21677 else
21678 pkg_failed=untried
21679 fi
21680 if test -n "$PKG_CONFIG"; then
21681 if test -n "$QT_LIBS"; then
21682 pkg_cv_QT_LIBS="$QT_LIBS"
21683 else
21684 if test -n "$PKG_CONFIG" && \
21685 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.0.1\"") >&5
21686 ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.0.1") 2>&5
21687 ac_status=$?
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; then
21690 pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtOpenGL >= 4.0.1" 2>/dev/null`
21691 else
21692 pkg_failed=yes
21693 fi
21694 fi
21695 else
21696 pkg_failed=untried
21697 fi
21698  
21699  
21700  
21701 if test $pkg_failed = yes; then
21702  
21703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21704 _pkg_short_errors_supported=yes
21705 else
21706 _pkg_short_errors_supported=no
21707 fi
21708 if test $_pkg_short_errors_supported = yes; then
21709 QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtOpenGL >= 4.0.1"`
21710 else
21711 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtOpenGL >= 4.0.1"`
21712 fi
21713 # Put the nasty error message in config.log where it belongs
21714 echo "$QT_PKG_ERRORS" >&5
21715  
21716 { echo "$as_me:$LINENO: result: no" >&5
21717 echo "${ECHO_T}no" >&6; }
21718 HAVE_QT="no"
21719 elif test $pkg_failed = untried; then
21720 HAVE_QT="no"
21721 else
21722 QT_CFLAGS=$pkg_cv_QT_CFLAGS
21723 QT_LIBS=$pkg_cv_QT_LIBS
21724 { echo "$as_me:$LINENO: result: yes" >&5
21725 echo "${ECHO_T}yes" >&6; }
21726 HAVE_QT="yes"
21727 fi
21728 if test "x$HAVE_QT" = "xyes" ; then
21729 { echo "$as_me:$LINENO: result: yes" >&5
21730 echo "${ECHO_T}yes" >&6; }
21731 QT_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin"
21732 as_ac_File=`echo "ac_cv_file_"$QT_PREFIX/moc-qt4"" | $as_tr_sh`
21733 { echo "$as_me:$LINENO: checking for \"$QT_PREFIX/moc-qt4\"" >&5
21734 echo $ECHO_N "checking for \"$QT_PREFIX/moc-qt4\"... $ECHO_C" >&6; }
21735 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 else
21738 test "$cross_compiling" = yes &&
21739 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21740 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21741 { (exit 1); exit 1; }; }
21742 if test -r ""$QT_PREFIX/moc-qt4""; then
21743 eval "$as_ac_File=yes"
21744 else
21745 eval "$as_ac_File=no"
21746 fi
21747 fi
21748 ac_res=`eval echo '${'$as_ac_File'}'`
21749 { echo "$as_me:$LINENO: result: $ac_res" >&5
21750 echo "${ECHO_T}$ac_res" >&6; }
21751 if test `eval echo '${'$as_ac_File'}'` = yes; then
21752 QT_MOC=$QT_PREFIX/moc-qt4
21753 else
21754 as_ac_File=`echo "ac_cv_file_"$QT_PREFIX/moc"" | $as_tr_sh`
21755 { echo "$as_me:$LINENO: checking for \"$QT_PREFIX/moc\"" >&5
21756 echo $ECHO_N "checking for \"$QT_PREFIX/moc\"... $ECHO_C" >&6; }
21757 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21759 else
21760 test "$cross_compiling" = yes &&
21761 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21762 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21763 { (exit 1); exit 1; }; }
21764 if test -r ""$QT_PREFIX/moc""; then
21765 eval "$as_ac_File=yes"
21766 else
21767 eval "$as_ac_File=no"
21768 fi
21769 fi
21770 ac_res=`eval echo '${'$as_ac_File'}'`
21771 { echo "$as_me:$LINENO: result: $ac_res" >&5
21772 echo "${ECHO_T}$ac_res" >&6; }
21773 if test `eval echo '${'$as_ac_File'}'` = yes; then
21774 QT_MOC=$QT_PREFIX/moc
21775 else
21776 { { echo "$as_me:$LINENO: error: Could not find Qt4 moc." >&5
21777 echo "$as_me: error: Could not find Qt4 moc." >&2;}
21778 { (exit 1); exit 1; }; }
21779 fi
21780  
21781 fi
21782  
21783  
21784 as_ac_File=`echo "ac_cv_file_"$QT_PREFIX/uic-qt4"" | $as_tr_sh`
21785 { echo "$as_me:$LINENO: checking for \"$QT_PREFIX/uic-qt4\"" >&5
21786 echo $ECHO_N "checking for \"$QT_PREFIX/uic-qt4\"... $ECHO_C" >&6; }
21787 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790 test "$cross_compiling" = yes &&
21791 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21792 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21793 { (exit 1); exit 1; }; }
21794 if test -r ""$QT_PREFIX/uic-qt4""; then
21795 eval "$as_ac_File=yes"
21796 else
21797 eval "$as_ac_File=no"
21798 fi
21799 fi
21800 ac_res=`eval echo '${'$as_ac_File'}'`
21801 { echo "$as_me:$LINENO: result: $ac_res" >&5
21802 echo "${ECHO_T}$ac_res" >&6; }
21803 if test `eval echo '${'$as_ac_File'}'` = yes; then
21804 QT_UIC=$QT_PREFIX/uic-qt4
21805 else
21806 as_ac_File=`echo "ac_cv_file_"$QT_PREFIX/uic"" | $as_tr_sh`
21807 { echo "$as_me:$LINENO: checking for \"$QT_PREFIX/uic\"" >&5
21808 echo $ECHO_N "checking for \"$QT_PREFIX/uic\"... $ECHO_C" >&6; }
21809 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812 test "$cross_compiling" = yes &&
21813 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21814 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21815 { (exit 1); exit 1; }; }
21816 if test -r ""$QT_PREFIX/uic""; then
21817 eval "$as_ac_File=yes"
21818 else
21819 eval "$as_ac_File=no"
21820 fi
21821 fi
21822 ac_res=`eval echo '${'$as_ac_File'}'`
21823 { echo "$as_me:$LINENO: result: $ac_res" >&5
21824 echo "${ECHO_T}$ac_res" >&6; }
21825 if test `eval echo '${'$as_ac_File'}'` = yes; then
21826 QT_UIC=$QT_PREFIX/uic
21827 else
21828 { { echo "$as_me:$LINENO: error: Could not find Qt4 uic." >&5
21829 echo "$as_me: error: Could not find Qt4 uic." >&2;}
21830 { (exit 1); exit 1; }; }
21831 fi
21832  
21833 fi
21834  
21835  
21836 as_ac_File=`echo "ac_cv_file_"$QT_PREFIX/rcc-qt4"" | $as_tr_sh`
21837 { echo "$as_me:$LINENO: checking for \"$QT_PREFIX/rcc-qt4\"" >&5
21838 echo $ECHO_N "checking for \"$QT_PREFIX/rcc-qt4\"... $ECHO_C" >&6; }
21839 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 else
21842 test "$cross_compiling" = yes &&
21843 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21844 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21845 { (exit 1); exit 1; }; }
21846 if test -r ""$QT_PREFIX/rcc-qt4""; then
21847 eval "$as_ac_File=yes"
21848 else
21849 eval "$as_ac_File=no"
21850 fi
21851 fi
21852 ac_res=`eval echo '${'$as_ac_File'}'`
21853 { echo "$as_me:$LINENO: result: $ac_res" >&5
21854 echo "${ECHO_T}$ac_res" >&6; }
21855 if test `eval echo '${'$as_ac_File'}'` = yes; then
21856 QT_RCC=$QT_PREFIX/rcc-qt4
21857 else
21858 as_ac_File=`echo "ac_cv_file_"$QT_PREFIX/rcc"" | $as_tr_sh`
21859 { echo "$as_me:$LINENO: checking for \"$QT_PREFIX/rcc\"" >&5
21860 echo $ECHO_N "checking for \"$QT_PREFIX/rcc\"... $ECHO_C" >&6; }
21861 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864 test "$cross_compiling" = yes &&
21865 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21866 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21867 { (exit 1); exit 1; }; }
21868 if test -r ""$QT_PREFIX/rcc""; then
21869 eval "$as_ac_File=yes"
21870 else
21871 eval "$as_ac_File=no"
21872 fi
21873 fi
21874 ac_res=`eval echo '${'$as_ac_File'}'`
21875 { echo "$as_me:$LINENO: result: $ac_res" >&5
21876 echo "${ECHO_T}$ac_res" >&6; }
21877 if test `eval echo '${'$as_ac_File'}'` = yes; then
21878 QT_RCC=$QT_PREFIX/rcc
21879 else
21880 { { echo "$as_me:$LINENO: error: Could not find Qt4 rcc." >&5
21881 echo "$as_me: error: Could not find Qt4 rcc." >&2;}
21882 { (exit 1); exit 1; }; }
21883 fi
21884  
21885 fi
21886  
21887  
21888 else
21889 { { echo "$as_me:$LINENO: error: Check for Qt4 failed." >&5
21890 echo "$as_me: error: Check for Qt4 failed." >&2;}
21891 { (exit 1); exit 1; }; }
21892 fi
21893  
21894  
21895  
21896 { echo "$as_me:$LINENO: checking for f2c.h" >&5
21897 echo $ECHO_N "checking for f2c.h... $ECHO_C" >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #include <f2c.h>
21905 _ACEOF
21906 if { (ac_try="$ac_cpp conftest.$ac_ext"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } >/dev/null && {
21919 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21920 test ! -s conftest.err
21921 }; then
21922 { echo "$as_me:$LINENO: result: yes" >&5
21923 echo "${ECHO_T}yes" >&6; }
21924 HAVE_F2C="yes"
21925 else
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928  
21929 { echo "$as_me:$LINENO: result: no" >&5
21930 echo "${ECHO_T}no" >&6; }
21931 HAVE_F2C="no"
21932 fi
21933  
21934 rm -f conftest.err conftest.$ac_ext
21935 if test "x$HAVE_F2C" == "xyes"; then
21936 old_LIBS="$LIBS"
21937 ac_ext=${ac_fc_srcext-f}
21938 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
21939 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
21940 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
21941 if test -n "$ac_tool_prefix"; then
21942 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
21943 do
21944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21948 if test "${ac_cv_prog_FC+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951 if test -n "$FC"; then
21952 ac_cv_prog_FC="$FC" # Let the user override the test.
21953 else
21954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21955 for as_dir in $PATH
21956 do
21957 IFS=$as_save_IFS
21958 test -z "$as_dir" && as_dir=.
21959 for ac_exec_ext in '' $ac_executable_extensions; do
21960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21961 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
21962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21963 break 2
21964 fi
21965 done
21966 done
21967 IFS=$as_save_IFS
21968  
21969 fi
21970 fi
21971 FC=$ac_cv_prog_FC
21972 if test -n "$FC"; then
21973 { echo "$as_me:$LINENO: result: $FC" >&5
21974 echo "${ECHO_T}$FC" >&6; }
21975 else
21976 { echo "$as_me:$LINENO: result: no" >&5
21977 echo "${ECHO_T}no" >&6; }
21978 fi
21979  
21980  
21981 test -n "$FC" && break
21982 done
21983 fi
21984 if test -z "$FC"; then
21985 ac_ct_FC=$FC
21986 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
21987 do
21988 # Extract the first word of "$ac_prog", so it can be a program name with args.
21989 set dummy $ac_prog; ac_word=$2
21990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21992 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995 if test -n "$ac_ct_FC"; then
21996 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
21997 else
21998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21999 for as_dir in $PATH
22000 do
22001 IFS=$as_save_IFS
22002 test -z "$as_dir" && as_dir=.
22003 for ac_exec_ext in '' $ac_executable_extensions; do
22004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22005 ac_cv_prog_ac_ct_FC="$ac_prog"
22006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22007 break 2
22008 fi
22009 done
22010 done
22011 IFS=$as_save_IFS
22012  
22013 fi
22014 fi
22015 ac_ct_FC=$ac_cv_prog_ac_ct_FC
22016 if test -n "$ac_ct_FC"; then
22017 { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
22018 echo "${ECHO_T}$ac_ct_FC" >&6; }
22019 else
22020 { echo "$as_me:$LINENO: result: no" >&5
22021 echo "${ECHO_T}no" >&6; }
22022 fi
22023  
22024  
22025 test -n "$ac_ct_FC" && break
22026 done
22027  
22028 if test "x$ac_ct_FC" = x; then
22029 FC=""
22030 else
22031 case $cross_compiling:$ac_tool_warned in
22032 yes:)
22033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22034 whose name does not start with the host triplet. If you think this
22035 configuration is useful to you, please write to autoconf@gnu.org." >&5
22036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22037 whose name does not start with the host triplet. If you think this
22038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22039 ac_tool_warned=yes ;;
22040 esac
22041 FC=$ac_ct_FC
22042 fi
22043 fi
22044  
22045  
22046 # Provide some information about the compiler.
22047 echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
22048 ac_compiler=`set X $ac_compile; echo $2`
22049 { (ac_try="$ac_compiler --version >&5"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_compiler --version >&5") 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }
22059 { (ac_try="$ac_compiler -v >&5"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_compiler -v >&5") 2>&5
22066 ac_status=$?
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }
22069 { (ac_try="$ac_compiler -V >&5"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compiler -V >&5") 2>&5
22076 ac_status=$?
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); }
22079 rm -f a.out
22080  
22081 # If we don't use `.F' as extension, the preprocessor is not run on the
22082 # input file. (Note that this only needs to work for GNU compilers.)
22083 ac_save_ext=$ac_ext
22084 ac_ext=F
22085 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
22086 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
22087 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089 else
22090 cat >conftest.$ac_ext <<_ACEOF
22091 program main
22092 #ifndef __GNUC__
22093 choke me
22094 #endif
22095  
22096 end
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_fc_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.$ac_objext; then
22115 ac_compiler_gnu=yes
22116 else
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119  
22120 ac_compiler_gnu=no
22121 fi
22122  
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
22125  
22126 fi
22127 { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
22128 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
22129 ac_ext=$ac_save_ext
22130 ac_test_FFLAGS=${FCFLAGS+set}
22131 ac_save_FFLAGS=$FCFLAGS
22132 FCFLAGS=
22133 { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
22134 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
22135 if test "${ac_cv_prog_fc_g+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138 FCFLAGS=-g
22139 cat >conftest.$ac_ext <<_ACEOF
22140 program main
22141  
22142 end
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (ac_try="$ac_compile"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_compile") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_fc_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest.$ac_objext; then
22161 ac_cv_prog_fc_g=yes
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165  
22166 ac_cv_prog_fc_g=no
22167 fi
22168  
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170  
22171 fi
22172 { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
22173 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
22174 if test "$ac_test_FFLAGS" = set; then
22175 FCFLAGS=$ac_save_FFLAGS
22176 elif test $ac_cv_prog_fc_g = yes; then
22177 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
22178 FCFLAGS="-g -O2"
22179 else
22180 FCFLAGS="-g"
22181 fi
22182 else
22183 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
22184 FCFLAGS="-O2"
22185 else
22186 FCFLAGS=
22187 fi
22188 fi
22189  
22190 ac_ext=cpp
22191 ac_cpp='$CXXCPP $CPPFLAGS'
22192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22195  
22196 F77=$FC
22197 if test "x$F77" != "x"; then
22198 ac_ext=f
22199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22202 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
22203 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
22204 if test "${ac_cv_prog_f77_v+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
22207 cat >conftest.$ac_ext <<_ACEOF
22208 program main
22209  
22210 end
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_compile") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_f77_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest.$ac_objext; then
22229 ac_cv_prog_f77_v=
22230 # Try some options frequently used verbose output
22231 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
22232 cat >conftest.$ac_ext <<_ACEOF
22233 program main
22234  
22235 end
22236 _ACEOF
22237  
22238 # Compile and link our simple test program by passing a flag (argument
22239 # 1 to this macro) to the Fortran compiler in order to get
22240 # "verbose" output that we can then parse for the Fortran linker
22241 # flags.
22242 ac_save_FFLAGS=$FFLAGS
22243 FFLAGS="$FFLAGS $ac_verb"
22244 eval "set x $ac_link"
22245 shift
22246 echo "$as_me:$LINENO: $*" >&5
22247 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
22248 echo "$ac_f77_v_output" >&5
22249 FFLAGS=$ac_save_FFLAGS
22250  
22251 rm -f conftest*
22252  
22253 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
22254 # /foo, /bar, and /baz are search directories for the Fortran linker.
22255 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
22256 ac_f77_v_output="`echo $ac_f77_v_output |
22257 grep 'LPATH is:' |
22258 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
22259  
22260 # FIXME: we keep getting bitten by quoted arguments; a more general fix
22261 # that detects unbalanced quotes in FLIBS should be implemented
22262 # and (ugh) tested at some point.
22263 case $ac_f77_v_output in
22264 # If we are using xlf then replace all the commas with spaces.
22265 *xlfentry*)
22266 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
22267  
22268 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
22269 # $LIBS confuse us, and the libraries appear later in the output anyway).
22270 *mGLOB_options_string*)
22271 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
22272  
22273 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
22274 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
22275 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
22276 *-cmdline\ * | *-ignore\ * | *-def\ *)
22277 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
22278 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
22279 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
22280 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
22281  
22282 # If we are using Cray Fortran then delete quotes.
22283 *cft90*)
22284 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
22285 esac
22286  
22287  
22288 # look for -l* and *.a constructs in the output
22289 for ac_arg in $ac_f77_v_output; do
22290 case $ac_arg in
22291 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
22292 ac_cv_prog_f77_v=$ac_verb
22293 break 2 ;;
22294 esac
22295 done
22296 done
22297 if test -z "$ac_cv_prog_f77_v"; then
22298 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
22299 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
22300 fi
22301 else
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304  
22305 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
22306 echo "$as_me: WARNING: compilation failed" >&2;}
22307 fi
22308  
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310  
22311 fi
22312 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
22313 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
22314 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
22315 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
22316 if test "${ac_cv_f77_libs+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319 if test "x$FLIBS" != "x"; then
22320 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
22321 else
22322  
22323 cat >conftest.$ac_ext <<_ACEOF
22324 program main
22325  
22326 end
22327 _ACEOF
22328  
22329 # Compile and link our simple test program by passing a flag (argument
22330 # 1 to this macro) to the Fortran compiler in order to get
22331 # "verbose" output that we can then parse for the Fortran linker
22332 # flags.
22333 ac_save_FFLAGS=$FFLAGS
22334 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
22335 eval "set x $ac_link"
22336 shift
22337 echo "$as_me:$LINENO: $*" >&5
22338 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
22339 echo "$ac_f77_v_output" >&5
22340 FFLAGS=$ac_save_FFLAGS
22341  
22342 rm -f conftest*
22343  
22344 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
22345 # /foo, /bar, and /baz are search directories for the Fortran linker.
22346 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
22347 ac_f77_v_output="`echo $ac_f77_v_output |
22348 grep 'LPATH is:' |
22349 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
22350  
22351 # FIXME: we keep getting bitten by quoted arguments; a more general fix
22352 # that detects unbalanced quotes in FLIBS should be implemented
22353 # and (ugh) tested at some point.
22354 case $ac_f77_v_output in
22355 # If we are using xlf then replace all the commas with spaces.
22356 *xlfentry*)
22357 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
22358  
22359 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
22360 # $LIBS confuse us, and the libraries appear later in the output anyway).
22361 *mGLOB_options_string*)
22362 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
22363  
22364 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
22365 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
22366 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
22367 *-cmdline\ * | *-ignore\ * | *-def\ *)
22368 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
22369 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
22370 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
22371 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
22372  
22373 # If we are using Cray Fortran then delete quotes.
22374 *cft90*)
22375 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
22376 esac
22377  
22378  
22379  
22380 ac_cv_f77_libs=
22381  
22382 # Save positional arguments (if any)
22383 ac_save_positional="$@"
22384  
22385 set X $ac_f77_v_output
22386 while test $# != 1; do
22387 shift
22388 ac_arg=$1
22389 case $ac_arg in
22390 [\\/]*.a | ?:[\\/]*.a)
22391 ac_exists=false
22392 for ac_i in $ac_cv_f77_libs; do
22393 if test x"$ac_arg" = x"$ac_i"; then
22394 ac_exists=true
22395 break
22396 fi
22397 done
22398  
22399 if test x"$ac_exists" = xtrue; then
22400 :
22401 else
22402 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22403 fi
22404  
22405 ;;
22406 -bI:*)
22407 ac_exists=false
22408 for ac_i in $ac_cv_f77_libs; do
22409 if test x"$ac_arg" = x"$ac_i"; then
22410 ac_exists=true
22411 break
22412 fi
22413 done
22414  
22415 if test x"$ac_exists" = xtrue; then
22416 :
22417 else
22418 if test "$ac_compiler_gnu" = yes; then
22419 for ac_link_opt in $ac_arg; do
22420 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
22421 done
22422 else
22423 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22424 fi
22425 fi
22426  
22427 ;;
22428 # Ignore these flags.
22429 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
22430 ;;
22431 -lkernel32)
22432 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22433 ;;
22434 -[LRuYz])
22435 # These flags, when seen by themselves, take an argument.
22436 # We remove the space between option and argument and re-iterate
22437 # unless we find an empty arg or a new option (starting with -)
22438 case $2 in
22439 "" | -*);;
22440 *)
22441 ac_arg="$ac_arg$2"
22442 shift; shift
22443 set X $ac_arg "$@"
22444 ;;
22445 esac
22446 ;;
22447 -YP,*)
22448 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
22449 ac_exists=false
22450 for ac_i in $ac_cv_f77_libs; do
22451 if test x"$ac_j" = x"$ac_i"; then
22452 ac_exists=true
22453 break
22454 fi
22455 done
22456  
22457 if test x"$ac_exists" = xtrue; then
22458 :
22459 else
22460 ac_arg="$ac_arg $ac_j"
22461 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
22462 fi
22463  
22464 done
22465 ;;
22466 -[lLR]*)
22467 ac_exists=false
22468 for ac_i in $ac_cv_f77_libs; do
22469 if test x"$ac_arg" = x"$ac_i"; then
22470 ac_exists=true
22471 break
22472 fi
22473 done
22474  
22475 if test x"$ac_exists" = xtrue; then
22476 :
22477 else
22478 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22479 fi
22480  
22481 ;;
22482 -zallextract*| -zdefaultextract)
22483 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22484 ;;
22485 # Ignore everything else.
22486 esac
22487 done
22488 # restore positional arguments
22489 set X $ac_save_positional; shift
22490  
22491 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
22492 # then we insist that the "run path" must be an absolute path (i.e. it
22493 # must begin with a "/").
22494 case `(uname -sr) 2>/dev/null` in
22495 "SunOS 5"*)
22496 ac_ld_run_path=`echo $ac_f77_v_output |
22497 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
22498 test "x$ac_ld_run_path" != x &&
22499 if test "$ac_compiler_gnu" = yes; then
22500 for ac_link_opt in $ac_ld_run_path; do
22501 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
22502 done
22503 else
22504 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
22505 fi
22506 ;;
22507 esac
22508 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
22509  
22510 fi
22511 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
22512 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
22513 FLIBS="$ac_cv_f77_libs"
22514  
22515  
22516 ac_ext=cpp
22517 ac_cpp='$CXXCPP $CPPFLAGS'
22518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22521  
22522 ac_ext=f
22523 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22524 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22525 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22526  
22527 { echo "$as_me:$LINENO: checking for dummy main to link with Fortran 77 libraries" >&5
22528 echo $ECHO_N "checking for dummy main to link with Fortran 77 libraries... $ECHO_C" >&6; }
22529 if test "${ac_cv_f77_dummy_main+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532 ac_f77_dm_save_LIBS=$LIBS
22533 LIBS="$LIBS $FLIBS"
22534 ac_fortran_dm_var=F77_DUMMY_MAIN
22535 ac_ext=c
22536 ac_cpp='$CPP $CPPFLAGS'
22537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22540  
22541 # First, try linking without a dummy main:
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h. */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548  
22549 #ifdef F77_DUMMY_MAIN
22550  
22551 # ifdef __cplusplus
22552 extern "C"
22553 # endif
22554 int F77_DUMMY_MAIN() { return 1; }
22555  
22556 #endif
22557 int
22558 main ()
22559 {
22560  
22561 ;
22562 return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest.$ac_objext conftest$ac_exeext
22566 if { (ac_try="$ac_link"
22567 case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_link") 2>conftest.er1
22573 ac_status=$?
22574 grep -v '^ *+' conftest.er1 >conftest.err
22575 rm -f conftest.er1
22576 cat conftest.err >&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } && {
22579 test -z "$ac_c_werror_flag" ||
22580 test ! -s conftest.err
22581 } && test -s conftest$ac_exeext &&
22582 $as_test_x conftest$ac_exeext; then
22583 ac_cv_fortran_dummy_main=none
22584 else
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587  
22588 ac_cv_fortran_dummy_main=unknown
22589 fi
22590  
22591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22592 conftest$ac_exeext conftest.$ac_ext
22593  
22594 if test $ac_cv_fortran_dummy_main = unknown; then
22595 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
22596 cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h. */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 #define $ac_fortran_dm_var $ac_func
22603 #ifdef F77_DUMMY_MAIN
22604  
22605 # ifdef __cplusplus
22606 extern "C"
22607 # endif
22608 int F77_DUMMY_MAIN() { return 1; }
22609  
22610 #endif
22611 int
22612 main ()
22613 {
22614  
22615 ;
22616 return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>conftest.er1
22627 ac_status=$?
22628 grep -v '^ *+' conftest.er1 >conftest.err
22629 rm -f conftest.er1
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest$ac_exeext &&
22636 $as_test_x conftest$ac_exeext; then
22637 ac_cv_fortran_dummy_main=$ac_func; break
22638 else
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641  
22642  
22643 fi
22644  
22645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22646 conftest$ac_exeext conftest.$ac_ext
22647 done
22648 fi
22649 ac_ext=f
22650 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22651 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22652 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22653 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
22654 rm -f conftest*
22655 LIBS=$ac_f77_dm_save_LIBS
22656  
22657 fi
22658 { echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
22659 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6; }
22660 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
22661 if test "$F77_DUMMY_MAIN" != unknown; then
22662 if test $F77_DUMMY_MAIN != none; then
22663  
22664 cat >>confdefs.h <<_ACEOF
22665 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
22666 _ACEOF
22667  
22668 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
22669  
22670 cat >>confdefs.h <<\_ACEOF
22671 #define FC_DUMMY_MAIN_EQ_F77 1
22672 _ACEOF
22673  
22674 fi
22675 fi
22676 else
22677 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
22678 See \`config.log' for more details." >&5
22679 echo "$as_me: error: linking to Fortran libraries from C fails
22680 See \`config.log' for more details." >&2;}
22681 { (exit 1); exit 1; }; }
22682 fi
22683  
22684  
22685 ac_ext=cpp
22686 ac_cpp='$CXXCPP $CPPFLAGS'
22687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22690  
22691 ac_ext=f
22692 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22693 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22694 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22695 { echo "$as_me:$LINENO: checking for Fortran 77 name-mangling scheme" >&5
22696 echo $ECHO_N "checking for Fortran 77 name-mangling scheme... $ECHO_C" >&6; }
22697 if test "${ac_cv_f77_mangling+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700 cat >conftest.$ac_ext <<_ACEOF
22701 subroutine foobar()
22702 return
22703 end
22704 subroutine foo_bar()
22705 return
22706 end
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_f77_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest.$ac_objext; then
22725 mv conftest.$ac_objext cfortran_test.$ac_objext
22726  
22727 ac_save_LIBS=$LIBS
22728 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
22729  
22730 ac_ext=c
22731 ac_cpp='$CPP $CPPFLAGS'
22732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22735 ac_success=no
22736 for ac_foobar in foobar FOOBAR; do
22737 for ac_underscore in "" "_"; do
22738 ac_func="$ac_foobar$ac_underscore"
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745  
22746 /* Override any GCC internal prototype to avoid an error.
22747 Use char because int might match the return type of a GCC
22748 builtin and then its argument prototype would still apply. */
22749 #ifdef __cplusplus
22750 extern "C"
22751 #endif
22752 char $ac_func ();
22753 #ifdef F77_DUMMY_MAIN
22754  
22755 # ifdef __cplusplus
22756 extern "C"
22757 # endif
22758 int F77_DUMMY_MAIN() { return 1; }
22759  
22760 #endif
22761 int
22762 main ()
22763 {
22764 return $ac_func ();
22765 ;
22766 return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext conftest$ac_exeext
22770 if { (ac_try="$ac_link"
22771 case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_link") 2>conftest.er1
22777 ac_status=$?
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } && {
22783 test -z "$ac_c_werror_flag" ||
22784 test ! -s conftest.err
22785 } && test -s conftest$ac_exeext &&
22786 $as_test_x conftest$ac_exeext; then
22787 ac_success=yes; break 2
22788 else
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791  
22792  
22793 fi
22794  
22795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22796 conftest$ac_exeext conftest.$ac_ext
22797 done
22798 done
22799 ac_ext=f
22800 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22801 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22802 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22803  
22804 if test "$ac_success" = "yes"; then
22805 case $ac_foobar in
22806 foobar)
22807 ac_case=lower
22808 ac_foo_bar=foo_bar
22809 ;;
22810 FOOBAR)
22811 ac_case=upper
22812 ac_foo_bar=FOO_BAR
22813 ;;
22814 esac
22815  
22816 ac_ext=c
22817 ac_cpp='$CPP $CPPFLAGS'
22818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22821 ac_success_extra=no
22822 for ac_extra in "" "_"; do
22823 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h. */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830  
22831 /* Override any GCC internal prototype to avoid an error.
22832 Use char because int might match the return type of a GCC
22833 builtin and then its argument prototype would still apply. */
22834 #ifdef __cplusplus
22835 extern "C"
22836 #endif
22837 char $ac_func ();
22838 #ifdef F77_DUMMY_MAIN
22839  
22840 # ifdef __cplusplus
22841 extern "C"
22842 # endif
22843 int F77_DUMMY_MAIN() { return 1; }
22844  
22845 #endif
22846 int
22847 main ()
22848 {
22849 return $ac_func ();
22850 ;
22851 return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (ac_try="$ac_link"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_link") 2>conftest.er1
22862 ac_status=$?
22863 grep -v '^ *+' conftest.er1 >conftest.err
22864 rm -f conftest.er1
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest$ac_exeext &&
22871 $as_test_x conftest$ac_exeext; then
22872 ac_success_extra=yes; break
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876  
22877  
22878 fi
22879  
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881 conftest$ac_exeext conftest.$ac_ext
22882 done
22883 ac_ext=f
22884 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22885 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22886 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22887  
22888 if test "$ac_success_extra" = "yes"; then
22889 ac_cv_f77_mangling="$ac_case case"
22890 if test -z "$ac_underscore"; then
22891 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
22892 else
22893 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
22894 fi
22895 if test -z "$ac_extra"; then
22896 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
22897 else
22898 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
22899 fi
22900 else
22901 ac_cv_f77_mangling="unknown"
22902 fi
22903 else
22904 ac_cv_f77_mangling="unknown"
22905 fi
22906  
22907 LIBS=$ac_save_LIBS
22908 rm -f cfortran_test* conftest*
22909 else
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912  
22913 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
22914 See \`config.log' for more details." >&5
22915 echo "$as_me: error: cannot compile a simple Fortran program
22916 See \`config.log' for more details." >&2;}
22917 { (exit 1); exit 1; }; }
22918 fi
22919  
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921  
22922 fi
22923 { echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
22924 echo "${ECHO_T}$ac_cv_f77_mangling" >&6; }
22925  
22926 ac_ext=cpp
22927 ac_cpp='$CXXCPP $CPPFLAGS'
22928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22931  
22932  
22933  
22934  
22935 acx_blas_ok=no
22936  
22937  
22938 # Check whether --with-blas was given.
22939 if test "${with_blas+set}" = set; then
22940 withval=$with_blas;
22941 fi
22942  
22943 case $with_blas in
22944 yes | "") ;;
22945 no) acx_blas_ok=disable ;;
22946 -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;;
22947 *) BLAS_LIBS="-l$with_blas" ;;
22948 esac
22949  
22950 # Get fortran linker names of BLAS functions to check for.
22951 ac_ext=f
22952 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22953 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22954 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22955 case $ac_cv_f77_mangling in
22956 upper*) ac_val="SGEMM" ;;
22957 lower*) ac_val="sgemm" ;;
22958 *) ac_val="unknown" ;;
22959 esac
22960 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
22961  
22962 sgemm="$ac_val"
22963  
22964 ac_ext=cpp
22965 ac_cpp='$CXXCPP $CPPFLAGS'
22966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22969  
22970 ac_ext=f
22971 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22972 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22973 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22974 case $ac_cv_f77_mangling in
22975 upper*) ac_val="DGEMM" ;;
22976 lower*) ac_val="dgemm" ;;
22977 *) ac_val="unknown" ;;
22978 esac
22979 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
22980  
22981 dgemm="$ac_val"
22982  
22983 ac_ext=cpp
22984 ac_cpp='$CXXCPP $CPPFLAGS'
22985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22988  
22989  
22990 acx_blas_save_LIBS="$LIBS"
22991 LIBS="$LIBS $FLIBS"
22992  
22993 # First, check BLAS_LIBS environment variable
22994 if test $acx_blas_ok = no; then
22995 if test "x$BLAS_LIBS" != x; then
22996 save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
22997 { echo "$as_me:$LINENO: checking for $sgemm in $BLAS_LIBS" >&5
22998 echo $ECHO_N "checking for $sgemm in $BLAS_LIBS... $ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h. */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005  
23006 /* Override any GCC internal prototype to avoid an error.
23007 Use char because int might match the return type of a GCC
23008 builtin and then its argument prototype would still apply. */
23009 #ifdef __cplusplus
23010 extern "C"
23011 #endif
23012 char $sgemm ();
23013 #ifdef F77_DUMMY_MAIN
23014  
23015 # ifdef __cplusplus
23016 extern "C"
23017 # endif
23018 int F77_DUMMY_MAIN() { return 1; }
23019  
23020 #endif
23021 int
23022 main ()
23023 {
23024 return $sgemm ();
23025 ;
23026 return 0;
23027 }
23028 _ACEOF
23029 rm -f conftest.$ac_objext conftest$ac_exeext
23030 if { (ac_try="$ac_link"
23031 case "(($ac_try" in
23032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033 *) ac_try_echo=$ac_try;;
23034 esac
23035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23036 (eval "$ac_link") 2>conftest.er1
23037 ac_status=$?
23038 grep -v '^ *+' conftest.er1 >conftest.err
23039 rm -f conftest.er1
23040 cat conftest.err >&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } && {
23043 test -z "$ac_cxx_werror_flag" ||
23044 test ! -s conftest.err
23045 } && test -s conftest$ac_exeext &&
23046 $as_test_x conftest$ac_exeext; then
23047 acx_blas_ok=yes
23048 else
23049 echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23051  
23052 BLAS_LIBS=""
23053 fi
23054  
23055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23056 conftest$ac_exeext conftest.$ac_ext
23057 { echo "$as_me:$LINENO: result: $acx_blas_ok" >&5
23058 echo "${ECHO_T}$acx_blas_ok" >&6; }
23059 LIBS="$save_LIBS"
23060 fi
23061 fi
23062  
23063 # BLAS linked to by default? (happens on some supercomputers)
23064 if test $acx_blas_ok = no; then
23065 save_LIBS="$LIBS"; LIBS="$LIBS"
23066 as_ac_var=`echo "ac_cv_func_$sgemm" | $as_tr_sh`
23067 { echo "$as_me:$LINENO: checking for $sgemm" >&5
23068 echo $ECHO_N "checking for $sgemm... $ECHO_C" >&6; }
23069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 else
23072 cat >conftest.$ac_ext <<_ACEOF
23073 /* confdefs.h. */
23074 _ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h. */
23078 /* Define $sgemm to an innocuous variant, in case <limits.h> declares $sgemm.
23079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23080 #define $sgemm innocuous_$sgemm
23081  
23082 /* System header to define __stub macros and hopefully few prototypes,
23083 which can conflict with char $sgemm (); below.
23084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23085 <limits.h> exists even on freestanding compilers. */
23086  
23087 #ifdef __STDC__
23088 # include <limits.h>
23089 #else
23090 # include <assert.h>
23091 #endif
23092  
23093 #undef $sgemm
23094  
23095 /* Override any GCC internal prototype to avoid an error.
23096 Use char because int might match the return type of a GCC
23097 builtin and then its argument prototype would still apply. */
23098 #ifdef __cplusplus
23099 extern "C"
23100 #endif
23101 char $sgemm ();
23102 /* The GNU C library defines this for functions which it implements
23103 to always fail with ENOSYS. Some functions are actually named
23104 something starting with __ and the normal name is an alias. */
23105 #if defined __stub_$sgemm || defined __stub___$sgemm
23106 choke me
23107 #endif
23108  
23109 #ifdef F77_DUMMY_MAIN
23110  
23111 # ifdef __cplusplus
23112 extern "C"
23113 # endif
23114 int F77_DUMMY_MAIN() { return 1; }
23115  
23116 #endif
23117 int
23118 main ()
23119 {
23120 return $sgemm ();
23121 ;
23122 return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_link") 2>conftest.er1
23133 ac_status=$?
23134 grep -v '^ *+' conftest.er1 >conftest.err
23135 rm -f conftest.er1
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_cxx_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest$ac_exeext &&
23142 $as_test_x conftest$ac_exeext; then
23143 eval "$as_ac_var=yes"
23144 else
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147  
23148 eval "$as_ac_var=no"
23149 fi
23150  
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152 conftest$ac_exeext conftest.$ac_ext
23153 fi
23154 ac_res=`eval echo '${'$as_ac_var'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157 if test `eval echo '${'$as_ac_var'}'` = yes; then
23158 acx_blas_ok=yes
23159 fi
23160  
23161 LIBS="$save_LIBS"
23162 fi
23163  
23164 # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
23165 if test $acx_blas_ok = no; then
23166 { echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5
23167 echo $ECHO_N "checking for ATL_xerbla in -latlas... $ECHO_C" >&6; }
23168 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 else
23171 ac_check_lib_save_LIBS=$LIBS
23172 LIBS="-latlas $LIBS"
23173 cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h. */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23179  
23180 /* Override any GCC internal prototype to avoid an error.
23181 Use char because int might match the return type of a GCC
23182 builtin and then its argument prototype would still apply. */
23183 #ifdef __cplusplus
23184 extern "C"
23185 #endif
23186 char ATL_xerbla ();
23187 #ifdef F77_DUMMY_MAIN
23188  
23189 # ifdef __cplusplus
23190 extern "C"
23191 # endif
23192 int F77_DUMMY_MAIN() { return 1; }
23193  
23194 #endif
23195 int
23196 main ()
23197 {
23198 return ATL_xerbla ();
23199 ;
23200 return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (ac_try="$ac_link"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_link") 2>conftest.er1
23211 ac_status=$?
23212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && {
23217 test -z "$ac_cxx_werror_flag" ||
23218 test ! -s conftest.err
23219 } && test -s conftest$ac_exeext &&
23220 $as_test_x conftest$ac_exeext; then
23221 ac_cv_lib_atlas_ATL_xerbla=yes
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225  
23226 ac_cv_lib_atlas_ATL_xerbla=no
23227 fi
23228  
23229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23230 conftest$ac_exeext conftest.$ac_ext
23231 LIBS=$ac_check_lib_save_LIBS
23232 fi
23233 { echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
23234 echo "${ECHO_T}$ac_cv_lib_atlas_ATL_xerbla" >&6; }
23235 if test $ac_cv_lib_atlas_ATL_xerbla = yes; then
23236 as_ac_Lib=`echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh`
23237 { echo "$as_me:$LINENO: checking for $sgemm in -lf77blas" >&5
23238 echo $ECHO_N "checking for $sgemm in -lf77blas... $ECHO_C" >&6; }
23239 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242 ac_check_lib_save_LIBS=$LIBS
23243 LIBS="-lf77blas -latlas $LIBS"
23244 cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h. */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250  
23251 /* Override any GCC internal prototype to avoid an error.
23252 Use char because int might match the return type of a GCC
23253 builtin and then its argument prototype would still apply. */
23254 #ifdef __cplusplus
23255 extern "C"
23256 #endif
23257 char $sgemm ();
23258 #ifdef F77_DUMMY_MAIN
23259  
23260 # ifdef __cplusplus
23261 extern "C"
23262 # endif
23263 int F77_DUMMY_MAIN() { return 1; }
23264  
23265 #endif
23266 int
23267 main ()
23268 {
23269 return $sgemm ();
23270 ;
23271 return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (ac_try="$ac_link"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_link") 2>conftest.er1
23282 ac_status=$?
23283 grep -v '^ *+' conftest.er1 >conftest.err
23284 rm -f conftest.er1
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } && {
23288 test -z "$ac_cxx_werror_flag" ||
23289 test ! -s conftest.err
23290 } && test -s conftest$ac_exeext &&
23291 $as_test_x conftest$ac_exeext; then
23292 eval "$as_ac_Lib=yes"
23293 else
23294 echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296  
23297 eval "$as_ac_Lib=no"
23298 fi
23299  
23300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23301 conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23303 fi
23304 ac_res=`eval echo '${'$as_ac_Lib'}'`
23305 { echo "$as_me:$LINENO: result: $ac_res" >&5
23306 echo "${ECHO_T}$ac_res" >&6; }
23307 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23308 { echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
23309 echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
23310 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313 ac_check_lib_save_LIBS=$LIBS
23314 LIBS="-lcblas -lf77blas -latlas $LIBS"
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321  
23322 /* Override any GCC internal prototype to avoid an error.
23323 Use char because int might match the return type of a GCC
23324 builtin and then its argument prototype would still apply. */
23325 #ifdef __cplusplus
23326 extern "C"
23327 #endif
23328 char cblas_dgemm ();
23329 #ifdef F77_DUMMY_MAIN
23330  
23331 # ifdef __cplusplus
23332 extern "C"
23333 # endif
23334 int F77_DUMMY_MAIN() { return 1; }
23335  
23336 #endif
23337 int
23338 main ()
23339 {
23340 return cblas_dgemm ();
23341 ;
23342 return 0;
23343 }
23344 _ACEOF
23345 rm -f conftest.$ac_objext conftest$ac_exeext
23346 if { (ac_try="$ac_link"
23347 case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23350 esac
23351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352 (eval "$ac_link") 2>conftest.er1
23353 ac_status=$?
23354 grep -v '^ *+' conftest.er1 >conftest.err
23355 rm -f conftest.er1
23356 cat conftest.err >&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } && {
23359 test -z "$ac_cxx_werror_flag" ||
23360 test ! -s conftest.err
23361 } && test -s conftest$ac_exeext &&
23362 $as_test_x conftest$ac_exeext; then
23363 ac_cv_lib_cblas_cblas_dgemm=yes
23364 else
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367  
23368 ac_cv_lib_cblas_cblas_dgemm=no
23369 fi
23370  
23371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23372 conftest$ac_exeext conftest.$ac_ext
23373 LIBS=$ac_check_lib_save_LIBS
23374 fi
23375 { echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
23376 echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
23377 if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
23378 acx_blas_ok=yes
23379 BLAS_LIBS="-lcblas -lf77blas -latlas"
23380 fi
23381  
23382 fi
23383  
23384 fi
23385  
23386 fi
23387  
23388 # BLAS in PhiPACK libraries? (requires generic BLAS lib, too)
23389 if test $acx_blas_ok = no; then
23390 as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
23391 { echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5
23392 echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6; }
23393 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23394 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 else
23396 ac_check_lib_save_LIBS=$LIBS
23397 LIBS="-lblas $LIBS"
23398 cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h. */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404  
23405 /* Override any GCC internal prototype to avoid an error.
23406 Use char because int might match the return type of a GCC
23407 builtin and then its argument prototype would still apply. */
23408 #ifdef __cplusplus
23409 extern "C"
23410 #endif
23411 char $sgemm ();
23412 #ifdef F77_DUMMY_MAIN
23413  
23414 # ifdef __cplusplus
23415 extern "C"
23416 # endif
23417 int F77_DUMMY_MAIN() { return 1; }
23418  
23419 #endif
23420 int
23421 main ()
23422 {
23423 return $sgemm ();
23424 ;
23425 return 0;
23426 }
23427 _ACEOF
23428 rm -f conftest.$ac_objext conftest$ac_exeext
23429 if { (ac_try="$ac_link"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23433 esac
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_link") 2>conftest.er1
23436 ac_status=$?
23437 grep -v '^ *+' conftest.er1 >conftest.err
23438 rm -f conftest.er1
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && {
23442 test -z "$ac_cxx_werror_flag" ||
23443 test ! -s conftest.err
23444 } && test -s conftest$ac_exeext &&
23445 $as_test_x conftest$ac_exeext; then
23446 eval "$as_ac_Lib=yes"
23447 else
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23450  
23451 eval "$as_ac_Lib=no"
23452 fi
23453  
23454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23455 conftest$ac_exeext conftest.$ac_ext
23456 LIBS=$ac_check_lib_save_LIBS
23457 fi
23458 ac_res=`eval echo '${'$as_ac_Lib'}'`
23459 { echo "$as_me:$LINENO: result: $ac_res" >&5
23460 echo "${ECHO_T}$ac_res" >&6; }
23461 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23462 as_ac_Lib=`echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh`
23463 { echo "$as_me:$LINENO: checking for $dgemm in -ldgemm" >&5
23464 echo $ECHO_N "checking for $dgemm in -ldgemm... $ECHO_C" >&6; }
23465 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468 ac_check_lib_save_LIBS=$LIBS
23469 LIBS="-ldgemm -lblas $LIBS"
23470 cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h. */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476  
23477 /* Override any GCC internal prototype to avoid an error.
23478 Use char because int might match the return type of a GCC
23479 builtin and then its argument prototype would still apply. */
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 char $dgemm ();
23484 #ifdef F77_DUMMY_MAIN
23485  
23486 # ifdef __cplusplus
23487 extern "C"
23488 # endif
23489 int F77_DUMMY_MAIN() { return 1; }
23490  
23491 #endif
23492 int
23493 main ()
23494 {
23495 return $dgemm ();
23496 ;
23497 return 0;
23498 }
23499 _ACEOF
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (ac_try="$ac_link"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_link") 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_cxx_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest$ac_exeext &&
23517 $as_test_x conftest$ac_exeext; then
23518 eval "$as_ac_Lib=yes"
23519 else
23520 echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522  
23523 eval "$as_ac_Lib=no"
23524 fi
23525  
23526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23527 conftest$ac_exeext conftest.$ac_ext
23528 LIBS=$ac_check_lib_save_LIBS
23529 fi
23530 ac_res=`eval echo '${'$as_ac_Lib'}'`
23531 { echo "$as_me:$LINENO: result: $ac_res" >&5
23532 echo "${ECHO_T}$ac_res" >&6; }
23533 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23534 as_ac_Lib=`echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh`
23535 { echo "$as_me:$LINENO: checking for $sgemm in -lsgemm" >&5
23536 echo $ECHO_N "checking for $sgemm in -lsgemm... $ECHO_C" >&6; }
23537 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540 ac_check_lib_save_LIBS=$LIBS
23541 LIBS="-lsgemm -lblas $LIBS"
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h. */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548  
23549 /* Override any GCC internal prototype to avoid an error.
23550 Use char because int might match the return type of a GCC
23551 builtin and then its argument prototype would still apply. */
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 char $sgemm ();
23556 #ifdef F77_DUMMY_MAIN
23557  
23558 # ifdef __cplusplus
23559 extern "C"
23560 # endif
23561 int F77_DUMMY_MAIN() { return 1; }
23562  
23563 #endif
23564 int
23565 main ()
23566 {
23567 return $sgemm ();
23568 ;
23569 return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext conftest$ac_exeext
23573 if { (ac_try="$ac_link"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_link") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_cxx_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest$ac_exeext &&
23589 $as_test_x conftest$ac_exeext; then
23590 eval "$as_ac_Lib=yes"
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594  
23595 eval "$as_ac_Lib=no"
23596 fi
23597  
23598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23599 conftest$ac_exeext conftest.$ac_ext
23600 LIBS=$ac_check_lib_save_LIBS
23601 fi
23602 ac_res=`eval echo '${'$as_ac_Lib'}'`
23603 { echo "$as_me:$LINENO: result: $ac_res" >&5
23604 echo "${ECHO_T}$ac_res" >&6; }
23605 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23606 acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas"
23607 fi
23608  
23609 fi
23610  
23611 fi
23612  
23613 fi
23614  
23615 # BLAS in Alpha CXML library?
23616 if test $acx_blas_ok = no; then
23617 as_ac_Lib=`echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh`
23618 { echo "$as_me:$LINENO: checking for $sgemm in -lcxml" >&5
23619 echo $ECHO_N "checking for $sgemm in -lcxml... $ECHO_C" >&6; }
23620 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622 else
23623 ac_check_lib_save_LIBS=$LIBS
23624 LIBS="-lcxml $LIBS"
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h. */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631  
23632 /* Override any GCC internal prototype to avoid an error.
23633 Use char because int might match the return type of a GCC
23634 builtin and then its argument prototype would still apply. */
23635 #ifdef __cplusplus
23636 extern "C"
23637 #endif
23638 char $sgemm ();
23639 #ifdef F77_DUMMY_MAIN
23640  
23641 # ifdef __cplusplus
23642 extern "C"
23643 # endif
23644 int F77_DUMMY_MAIN() { return 1; }
23645  
23646 #endif
23647 int
23648 main ()
23649 {
23650 return $sgemm ();
23651 ;
23652 return 0;
23653 }
23654 _ACEOF
23655 rm -f conftest.$ac_objext conftest$ac_exeext
23656 if { (ac_try="$ac_link"
23657 case "(($ac_try" in
23658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659 *) ac_try_echo=$ac_try;;
23660 esac
23661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662 (eval "$ac_link") 2>conftest.er1
23663 ac_status=$?
23664 grep -v '^ *+' conftest.er1 >conftest.err
23665 rm -f conftest.er1
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } && {
23669 test -z "$ac_cxx_werror_flag" ||
23670 test ! -s conftest.err
23671 } && test -s conftest$ac_exeext &&
23672 $as_test_x conftest$ac_exeext; then
23673 eval "$as_ac_Lib=yes"
23674 else
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677  
23678 eval "$as_ac_Lib=no"
23679 fi
23680  
23681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23682 conftest$ac_exeext conftest.$ac_ext
23683 LIBS=$ac_check_lib_save_LIBS
23684 fi
23685 ac_res=`eval echo '${'$as_ac_Lib'}'`
23686 { echo "$as_me:$LINENO: result: $ac_res" >&5
23687 echo "${ECHO_T}$ac_res" >&6; }
23688 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23689 acx_blas_ok=yes;BLAS_LIBS="-lcxml"
23690 fi
23691  
23692 fi
23693  
23694 # BLAS in Alpha DXML library? (now called CXML, see above)
23695 if test $acx_blas_ok = no; then
23696 as_ac_Lib=`echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh`
23697 { echo "$as_me:$LINENO: checking for $sgemm in -ldxml" >&5
23698 echo $ECHO_N "checking for $sgemm in -ldxml... $ECHO_C" >&6; }
23699 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 else
23702 ac_check_lib_save_LIBS=$LIBS
23703 LIBS="-ldxml $LIBS"
23704 cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h. */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710  
23711 /* Override any GCC internal prototype to avoid an error.
23712 Use char because int might match the return type of a GCC
23713 builtin and then its argument prototype would still apply. */
23714 #ifdef __cplusplus
23715 extern "C"
23716 #endif
23717 char $sgemm ();
23718 #ifdef F77_DUMMY_MAIN
23719  
23720 # ifdef __cplusplus
23721 extern "C"
23722 # endif
23723 int F77_DUMMY_MAIN() { return 1; }
23724  
23725 #endif
23726 int
23727 main ()
23728 {
23729 return $sgemm ();
23730 ;
23731 return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (ac_try="$ac_link"
23736 case "(($ac_try" in
23737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738 *) ac_try_echo=$ac_try;;
23739 esac
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741 (eval "$ac_link") 2>conftest.er1
23742 ac_status=$?
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_cxx_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest$ac_exeext &&
23751 $as_test_x conftest$ac_exeext; then
23752 eval "$as_ac_Lib=yes"
23753 else
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756  
23757 eval "$as_ac_Lib=no"
23758 fi
23759  
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23762 LIBS=$ac_check_lib_save_LIBS
23763 fi
23764 ac_res=`eval echo '${'$as_ac_Lib'}'`
23765 { echo "$as_me:$LINENO: result: $ac_res" >&5
23766 echo "${ECHO_T}$ac_res" >&6; }
23767 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23768 acx_blas_ok=yes;BLAS_LIBS="-ldxml"
23769 fi
23770  
23771 fi
23772  
23773 # BLAS in Sun Performance library?
23774 if test $acx_blas_ok = no; then
23775 if test "x$GCC" != xyes; then # only works with Sun CC
23776 { echo "$as_me:$LINENO: checking for acosp in -lsunmath" >&5
23777 echo $ECHO_N "checking for acosp in -lsunmath... $ECHO_C" >&6; }
23778 if test "${ac_cv_lib_sunmath_acosp+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781 ac_check_lib_save_LIBS=$LIBS
23782 LIBS="-lsunmath $LIBS"
23783 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h. */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789  
23790 /* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23793 #ifdef __cplusplus
23794 extern "C"
23795 #endif
23796 char acosp ();
23797 #ifdef F77_DUMMY_MAIN
23798  
23799 # ifdef __cplusplus
23800 extern "C"
23801 # endif
23802 int F77_DUMMY_MAIN() { return 1; }
23803  
23804 #endif
23805 int
23806 main ()
23807 {
23808 return acosp ();
23809 ;
23810 return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820 (eval "$ac_link") 2>conftest.er1
23821 ac_status=$?
23822 grep -v '^ *+' conftest.er1 >conftest.err
23823 rm -f conftest.er1
23824 cat conftest.err >&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } && {
23827 test -z "$ac_cxx_werror_flag" ||
23828 test ! -s conftest.err
23829 } && test -s conftest$ac_exeext &&
23830 $as_test_x conftest$ac_exeext; then
23831 ac_cv_lib_sunmath_acosp=yes
23832 else
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835  
23836 ac_cv_lib_sunmath_acosp=no
23837 fi
23838  
23839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23840 conftest$ac_exeext conftest.$ac_ext
23841 LIBS=$ac_check_lib_save_LIBS
23842 fi
23843 { echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_acosp" >&5
23844 echo "${ECHO_T}$ac_cv_lib_sunmath_acosp" >&6; }
23845 if test $ac_cv_lib_sunmath_acosp = yes; then
23846 as_ac_Lib=`echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh`
23847 { echo "$as_me:$LINENO: checking for $sgemm in -lsunperf" >&5
23848 echo $ECHO_N "checking for $sgemm in -lsunperf... $ECHO_C" >&6; }
23849 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851 else
23852 ac_check_lib_save_LIBS=$LIBS
23853 LIBS="-lsunperf -lsunmath $LIBS"
23854 cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h. */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860  
23861 /* Override any GCC internal prototype to avoid an error.
23862 Use char because int might match the return type of a GCC
23863 builtin and then its argument prototype would still apply. */
23864 #ifdef __cplusplus
23865 extern "C"
23866 #endif
23867 char $sgemm ();
23868 #ifdef F77_DUMMY_MAIN
23869  
23870 # ifdef __cplusplus
23871 extern "C"
23872 # endif
23873 int F77_DUMMY_MAIN() { return 1; }
23874  
23875 #endif
23876 int
23877 main ()
23878 {
23879 return $sgemm ();
23880 ;
23881 return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (ac_try="$ac_link"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_link") 2>conftest.er1
23892 ac_status=$?
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } && {
23898 test -z "$ac_cxx_werror_flag" ||
23899 test ! -s conftest.err
23900 } && test -s conftest$ac_exeext &&
23901 $as_test_x conftest$ac_exeext; then
23902 eval "$as_ac_Lib=yes"
23903 else
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906  
23907 eval "$as_ac_Lib=no"
23908 fi
23909  
23910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23911 conftest$ac_exeext conftest.$ac_ext
23912 LIBS=$ac_check_lib_save_LIBS
23913 fi
23914 ac_res=`eval echo '${'$as_ac_Lib'}'`
23915 { echo "$as_me:$LINENO: result: $ac_res" >&5
23916 echo "${ECHO_T}$ac_res" >&6; }
23917 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23918 BLAS_LIBS="-xlic_lib=sunperf -lsunmath"
23919 acx_blas_ok=yes
23920 fi
23921  
23922 fi
23923  
23924 fi
23925 fi
23926  
23927 # BLAS in SCSL library? (SGI/Cray Scientific Library)
23928 if test $acx_blas_ok = no; then
23929 as_ac_Lib=`echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh`
23930 { echo "$as_me:$LINENO: checking for $sgemm in -lscs" >&5
23931 echo $ECHO_N "checking for $sgemm in -lscs... $ECHO_C" >&6; }
23932 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 else
23935 ac_check_lib_save_LIBS=$LIBS
23936 LIBS="-lscs $LIBS"
23937 cat >conftest.$ac_ext <<_ACEOF
23938 /* confdefs.h. */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943  
23944 /* Override any GCC internal prototype to avoid an error.
23945 Use char because int might match the return type of a GCC
23946 builtin and then its argument prototype would still apply. */
23947 #ifdef __cplusplus
23948 extern "C"
23949 #endif
23950 char $sgemm ();
23951 #ifdef F77_DUMMY_MAIN
23952  
23953 # ifdef __cplusplus
23954 extern "C"
23955 # endif
23956 int F77_DUMMY_MAIN() { return 1; }
23957  
23958 #endif
23959 int
23960 main ()
23961 {
23962 return $sgemm ();
23963 ;
23964 return 0;
23965 }
23966 _ACEOF
23967 rm -f conftest.$ac_objext conftest$ac_exeext
23968 if { (ac_try="$ac_link"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_link") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_cxx_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest$ac_exeext &&
23984 $as_test_x conftest$ac_exeext; then
23985 eval "$as_ac_Lib=yes"
23986 else
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23989  
23990 eval "$as_ac_Lib=no"
23991 fi
23992  
23993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23994 conftest$ac_exeext conftest.$ac_ext
23995 LIBS=$ac_check_lib_save_LIBS
23996 fi
23997 ac_res=`eval echo '${'$as_ac_Lib'}'`
23998 { echo "$as_me:$LINENO: result: $ac_res" >&5
23999 echo "${ECHO_T}$ac_res" >&6; }
24000 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24001 acx_blas_ok=yes; BLAS_LIBS="-lscs"
24002 fi
24003  
24004 fi
24005  
24006 # BLAS in SGIMATH library?
24007 if test $acx_blas_ok = no; then
24008 as_ac_Lib=`echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh`
24009 { echo "$as_me:$LINENO: checking for $sgemm in -lcomplib.sgimath" >&5
24010 echo $ECHO_N "checking for $sgemm in -lcomplib.sgimath... $ECHO_C" >&6; }
24011 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014 ac_check_lib_save_LIBS=$LIBS
24015 LIBS="-lcomplib.sgimath $LIBS"
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h. */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022  
24023 /* Override any GCC internal prototype to avoid an error.
24024 Use char because int might match the return type of a GCC
24025 builtin and then its argument prototype would still apply. */
24026 #ifdef __cplusplus
24027 extern "C"
24028 #endif
24029 char $sgemm ();
24030 #ifdef F77_DUMMY_MAIN
24031  
24032 # ifdef __cplusplus
24033 extern "C"
24034 # endif
24035 int F77_DUMMY_MAIN() { return 1; }
24036  
24037 #endif
24038 int
24039 main ()
24040 {
24041 return $sgemm ();
24042 ;
24043 return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext conftest$ac_exeext
24047 if { (ac_try="$ac_link"
24048 case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_link") 2>conftest.er1
24054 ac_status=$?
24055 grep -v '^ *+' conftest.er1 >conftest.err
24056 rm -f conftest.er1
24057 cat conftest.err >&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); } && {
24060 test -z "$ac_cxx_werror_flag" ||
24061 test ! -s conftest.err
24062 } && test -s conftest$ac_exeext &&
24063 $as_test_x conftest$ac_exeext; then
24064 eval "$as_ac_Lib=yes"
24065 else
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24068  
24069 eval "$as_ac_Lib=no"
24070 fi
24071  
24072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24073 conftest$ac_exeext conftest.$ac_ext
24074 LIBS=$ac_check_lib_save_LIBS
24075 fi
24076 ac_res=`eval echo '${'$as_ac_Lib'}'`
24077 { echo "$as_me:$LINENO: result: $ac_res" >&5
24078 echo "${ECHO_T}$ac_res" >&6; }
24079 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24080 acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"
24081 fi
24082  
24083 fi
24084  
24085 # BLAS in IBM ESSL library? (requires generic BLAS lib, too)
24086 if test $acx_blas_ok = no; then
24087 as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
24088 { echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5
24089 echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6; }
24090 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 else
24093 ac_check_lib_save_LIBS=$LIBS
24094 LIBS="-lblas $LIBS"
24095 cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h. */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h. */
24101  
24102 /* Override any GCC internal prototype to avoid an error.
24103 Use char because int might match the return type of a GCC
24104 builtin and then its argument prototype would still apply. */
24105 #ifdef __cplusplus
24106 extern "C"
24107 #endif
24108 char $sgemm ();
24109 #ifdef F77_DUMMY_MAIN
24110  
24111 # ifdef __cplusplus
24112 extern "C"
24113 # endif
24114 int F77_DUMMY_MAIN() { return 1; }
24115  
24116 #endif
24117 int
24118 main ()
24119 {
24120 return $sgemm ();
24121 ;
24122 return 0;
24123 }
24124 _ACEOF
24125 rm -f conftest.$ac_objext conftest$ac_exeext
24126 if { (ac_try="$ac_link"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24130 esac
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_link") 2>conftest.er1
24133 ac_status=$?
24134 grep -v '^ *+' conftest.er1 >conftest.err
24135 rm -f conftest.er1
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } && {
24139 test -z "$ac_cxx_werror_flag" ||
24140 test ! -s conftest.err
24141 } && test -s conftest$ac_exeext &&
24142 $as_test_x conftest$ac_exeext; then
24143 eval "$as_ac_Lib=yes"
24144 else
24145 echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24147  
24148 eval "$as_ac_Lib=no"
24149 fi
24150  
24151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24152 conftest$ac_exeext conftest.$ac_ext
24153 LIBS=$ac_check_lib_save_LIBS
24154 fi
24155 ac_res=`eval echo '${'$as_ac_Lib'}'`
24156 { echo "$as_me:$LINENO: result: $ac_res" >&5
24157 echo "${ECHO_T}$ac_res" >&6; }
24158 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24159 as_ac_Lib=`echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh`
24160 { echo "$as_me:$LINENO: checking for $sgemm in -lessl" >&5
24161 echo $ECHO_N "checking for $sgemm in -lessl... $ECHO_C" >&6; }
24162 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24164 else
24165 ac_check_lib_save_LIBS=$LIBS
24166 LIBS="-lessl -lblas $FLIBS $LIBS"
24167 cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h. */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173  
24174 /* Override any GCC internal prototype to avoid an error.
24175 Use char because int might match the return type of a GCC
24176 builtin and then its argument prototype would still apply. */
24177 #ifdef __cplusplus
24178 extern "C"
24179 #endif
24180 char $sgemm ();
24181 #ifdef F77_DUMMY_MAIN
24182  
24183 # ifdef __cplusplus
24184 extern "C"
24185 # endif
24186 int F77_DUMMY_MAIN() { return 1; }
24187  
24188 #endif
24189 int
24190 main ()
24191 {
24192 return $sgemm ();
24193 ;
24194 return 0;
24195 }
24196 _ACEOF
24197 rm -f conftest.$ac_objext conftest$ac_exeext
24198 if { (ac_try="$ac_link"
24199 case "(($ac_try" in
24200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201 *) ac_try_echo=$ac_try;;
24202 esac
24203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204 (eval "$ac_link") 2>conftest.er1
24205 ac_status=$?
24206 grep -v '^ *+' conftest.er1 >conftest.err
24207 rm -f conftest.er1
24208 cat conftest.err >&5
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); } && {
24211 test -z "$ac_cxx_werror_flag" ||
24212 test ! -s conftest.err
24213 } && test -s conftest$ac_exeext &&
24214 $as_test_x conftest$ac_exeext; then
24215 eval "$as_ac_Lib=yes"
24216 else
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219  
24220 eval "$as_ac_Lib=no"
24221 fi
24222  
24223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24224 conftest$ac_exeext conftest.$ac_ext
24225 LIBS=$ac_check_lib_save_LIBS
24226 fi
24227 ac_res=`eval echo '${'$as_ac_Lib'}'`
24228 { echo "$as_me:$LINENO: result: $ac_res" >&5
24229 echo "${ECHO_T}$ac_res" >&6; }
24230 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24231 acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas"
24232 fi
24233  
24234 fi
24235  
24236 fi
24237  
24238 # Generic BLAS library?
24239 if test $acx_blas_ok = no; then
24240 as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
24241 { echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5
24242 echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6; }
24243 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246 ac_check_lib_save_LIBS=$LIBS
24247 LIBS="-lblas $LIBS"
24248 cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h. */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254  
24255 /* Override any GCC internal prototype to avoid an error.
24256 Use char because int might match the return type of a GCC
24257 builtin and then its argument prototype would still apply. */
24258 #ifdef __cplusplus
24259 extern "C"
24260 #endif
24261 char $sgemm ();
24262 #ifdef F77_DUMMY_MAIN
24263  
24264 # ifdef __cplusplus
24265 extern "C"
24266 # endif
24267 int F77_DUMMY_MAIN() { return 1; }
24268  
24269 #endif
24270 int
24271 main ()
24272 {
24273 return $sgemm ();
24274 ;
24275 return 0;
24276 }
24277 _ACEOF
24278 rm -f conftest.$ac_objext conftest$ac_exeext
24279 if { (ac_try="$ac_link"
24280 case "(($ac_try" in
24281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282 *) ac_try_echo=$ac_try;;
24283 esac
24284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24285 (eval "$ac_link") 2>conftest.er1
24286 ac_status=$?
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } && {
24292 test -z "$ac_cxx_werror_flag" ||
24293 test ! -s conftest.err
24294 } && test -s conftest$ac_exeext &&
24295 $as_test_x conftest$ac_exeext; then
24296 eval "$as_ac_Lib=yes"
24297 else
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24300  
24301 eval "$as_ac_Lib=no"
24302 fi
24303  
24304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24305 conftest$ac_exeext conftest.$ac_ext
24306 LIBS=$ac_check_lib_save_LIBS
24307 fi
24308 ac_res=`eval echo '${'$as_ac_Lib'}'`
24309 { echo "$as_me:$LINENO: result: $ac_res" >&5
24310 echo "${ECHO_T}$ac_res" >&6; }
24311 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24312 acx_blas_ok=yes; BLAS_LIBS="-lblas"
24313 fi
24314  
24315 fi
24316  
24317  
24318  
24319 LIBS="$acx_blas_save_LIBS"
24320  
24321 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24322 if test x"$acx_blas_ok" = xyes; then
24323  
24324 cat >>confdefs.h <<\_ACEOF
24325 #define HAVE_BLAS 1
24326 _ACEOF
24327  
24328 :
24329 else
24330 acx_blas_ok=no
24331  
24332 fi
24333  
24334  
24335  
24336 acx_lapack_ok=no
24337  
24338  
24339 # Check whether --with-lapack was given.
24340 if test "${with_lapack+set}" = set; then
24341 withval=$with_lapack;
24342 fi
24343  
24344 case $with_lapack in
24345 yes | "") ;;
24346 no) acx_lapack_ok=disable ;;
24347 -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;;
24348 *) LAPACK_LIBS="-l$with_lapack" ;;
24349 esac
24350  
24351 # Get fortran linker name of LAPACK function to check for.
24352 ac_ext=f
24353 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24354 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24355 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24356 case $ac_cv_f77_mangling in
24357 upper*) ac_val="CHEEV" ;;
24358 lower*) ac_val="cheev" ;;
24359 *) ac_val="unknown" ;;
24360 esac
24361 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
24362  
24363 cheev="$ac_val"
24364  
24365 ac_ext=cpp
24366 ac_cpp='$CXXCPP $CPPFLAGS'
24367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24370  
24371  
24372 # We cannot use LAPACK if BLAS is not found
24373 if test "x$acx_blas_ok" != xyes; then
24374 acx_lapack_ok=noblas
24375 fi
24376  
24377 # First, check LAPACK_LIBS environment variable
24378 if test "x$LAPACK_LIBS" != x; then
24379 save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS"
24380 { echo "$as_me:$LINENO: checking for $cheev in $LAPACK_LIBS" >&5
24381 echo $ECHO_N "checking for $cheev in $LAPACK_LIBS... $ECHO_C" >&6; }
24382 cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h. */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388  
24389 /* Override any GCC internal prototype to avoid an error.
24390 Use char because int might match the return type of a GCC
24391 builtin and then its argument prototype would still apply. */
24392 #ifdef __cplusplus
24393 extern "C"
24394 #endif
24395 char $cheev ();
24396 #ifdef F77_DUMMY_MAIN
24397  
24398 # ifdef __cplusplus
24399 extern "C"
24400 # endif
24401 int F77_DUMMY_MAIN() { return 1; }
24402  
24403 #endif
24404 int
24405 main ()
24406 {
24407 return $cheev ();
24408 ;
24409 return 0;
24410 }
24411 _ACEOF
24412 rm -f conftest.$ac_objext conftest$ac_exeext
24413 if { (ac_try="$ac_link"
24414 case "(($ac_try" in
24415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416 *) ac_try_echo=$ac_try;;
24417 esac
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419 (eval "$ac_link") 2>conftest.er1
24420 ac_status=$?
24421 grep -v '^ *+' conftest.er1 >conftest.err
24422 rm -f conftest.er1
24423 cat conftest.err >&5
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); } && {
24426 test -z "$ac_cxx_werror_flag" ||
24427 test ! -s conftest.err
24428 } && test -s conftest$ac_exeext &&
24429 $as_test_x conftest$ac_exeext; then
24430 acx_lapack_ok=yes
24431 else
24432 echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24434  
24435 LAPACK_LIBS=""
24436 fi
24437  
24438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24439 conftest$ac_exeext conftest.$ac_ext
24440 { echo "$as_me:$LINENO: result: $acx_lapack_ok" >&5
24441 echo "${ECHO_T}$acx_lapack_ok" >&6; }
24442 LIBS="$save_LIBS"
24443 if test acx_lapack_ok = no; then
24444 LAPACK_LIBS=""
24445 fi
24446 fi
24447  
24448 # LAPACK linked to by default? (is sometimes included in BLAS lib)
24449 if test $acx_lapack_ok = no; then
24450 save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS"
24451 as_ac_var=`echo "ac_cv_func_$cheev" | $as_tr_sh`
24452 { echo "$as_me:$LINENO: checking for $cheev" >&5
24453 echo $ECHO_N "checking for $cheev... $ECHO_C" >&6; }
24454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 else
24457 cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h. */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24463 /* Define $cheev to an innocuous variant, in case <limits.h> declares $cheev.
24464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24465 #define $cheev innocuous_$cheev
24466  
24467 /* System header to define __stub macros and hopefully few prototypes,
24468 which can conflict with char $cheev (); below.
24469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24470 <limits.h> exists even on freestanding compilers. */
24471  
24472 #ifdef __STDC__
24473 # include <limits.h>
24474 #else
24475 # include <assert.h>
24476 #endif
24477  
24478 #undef $cheev
24479  
24480 /* Override any GCC internal prototype to avoid an error.
24481 Use char because int might match the return type of a GCC
24482 builtin and then its argument prototype would still apply. */
24483 #ifdef __cplusplus
24484 extern "C"
24485 #endif
24486 char $cheev ();
24487 /* The GNU C library defines this for functions which it implements
24488 to always fail with ENOSYS. Some functions are actually named
24489 something starting with __ and the normal name is an alias. */
24490 #if defined __stub_$cheev || defined __stub___$cheev
24491 choke me
24492 #endif
24493  
24494 #ifdef F77_DUMMY_MAIN
24495  
24496 # ifdef __cplusplus
24497 extern "C"
24498 # endif
24499 int F77_DUMMY_MAIN() { return 1; }
24500  
24501 #endif
24502 int
24503 main ()
24504 {
24505 return $cheev ();
24506 ;
24507 return 0;
24508 }
24509 _ACEOF
24510 rm -f conftest.$ac_objext conftest$ac_exeext
24511 if { (ac_try="$ac_link"
24512 case "(($ac_try" in
24513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514 *) ac_try_echo=$ac_try;;
24515 esac
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517 (eval "$ac_link") 2>conftest.er1
24518 ac_status=$?
24519 grep -v '^ *+' conftest.er1 >conftest.err
24520 rm -f conftest.er1
24521 cat conftest.err >&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } && {
24524 test -z "$ac_cxx_werror_flag" ||
24525 test ! -s conftest.err
24526 } && test -s conftest$ac_exeext &&
24527 $as_test_x conftest$ac_exeext; then
24528 eval "$as_ac_var=yes"
24529 else
24530 echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24532  
24533 eval "$as_ac_var=no"
24534 fi
24535  
24536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24537 conftest$ac_exeext conftest.$ac_ext
24538 fi
24539 ac_res=`eval echo '${'$as_ac_var'}'`
24540 { echo "$as_me:$LINENO: result: $ac_res" >&5
24541 echo "${ECHO_T}$ac_res" >&6; }
24542 if test `eval echo '${'$as_ac_var'}'` = yes; then
24543 acx_lapack_ok=yes
24544 fi
24545  
24546 LIBS="$save_LIBS"
24547 fi
24548  
24549 # Generic LAPACK library?
24550 for lapack in lapack lapack_rs6k; do
24551 if test $acx_lapack_ok = no; then
24552 save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
24553 as_ac_Lib=`echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh`
24554 { echo "$as_me:$LINENO: checking for $cheev in -l$lapack" >&5
24555 echo $ECHO_N "checking for $cheev in -l$lapack... $ECHO_C" >&6; }
24556 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24557 echo $ECHO_N "(cached) $ECHO_C" >&6
24558 else
24559 ac_check_lib_save_LIBS=$LIBS
24560 LIBS="-l$lapack $FLIBS $LIBS"
24561 cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h. */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567  
24568 /* Override any GCC internal prototype to avoid an error.
24569 Use char because int might match the return type of a GCC
24570 builtin and then its argument prototype would still apply. */
24571 #ifdef __cplusplus
24572 extern "C"
24573 #endif
24574 char $cheev ();
24575 #ifdef F77_DUMMY_MAIN
24576  
24577 # ifdef __cplusplus
24578 extern "C"
24579 # endif
24580 int F77_DUMMY_MAIN() { return 1; }
24581  
24582 #endif
24583 int
24584 main ()
24585 {
24586 return $cheev ();
24587 ;
24588 return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext conftest$ac_exeext
24592 if { (ac_try="$ac_link"
24593 case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_link") 2>conftest.er1
24599 ac_status=$?
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } && {
24605 test -z "$ac_cxx_werror_flag" ||
24606 test ! -s conftest.err
24607 } && test -s conftest$ac_exeext &&
24608 $as_test_x conftest$ac_exeext; then
24609 eval "$as_ac_Lib=yes"
24610 else
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24613  
24614 eval "$as_ac_Lib=no"
24615 fi
24616  
24617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24618 conftest$ac_exeext conftest.$ac_ext
24619 LIBS=$ac_check_lib_save_LIBS
24620 fi
24621 ac_res=`eval echo '${'$as_ac_Lib'}'`
24622 { echo "$as_me:$LINENO: result: $ac_res" >&5
24623 echo "${ECHO_T}$ac_res" >&6; }
24624 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24625 acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack"
24626 fi
24627  
24628 LIBS="$save_LIBS"
24629 fi
24630 done
24631  
24632  
24633  
24634 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24635 if test x"$acx_lapack_ok" = xyes; then
24636  
24637 cat >>confdefs.h <<\_ACEOF
24638 #define HAVE_LIBLAPACK yes
24639 _ACEOF
24640  
24641 HAVE_LIBLAPACK="yes"
24642 :
24643 else
24644 acx_lapack_ok=no
24645 HAVE_LIBLAPACK="no"
24646 fi
24647  
24648 else
24649 { echo "$as_me:$LINENO: WARNING: Could not find Fortran compiler. Disabling lapack-support." >&5
24650 echo "$as_me: WARNING: Could not find Fortran compiler. Disabling lapack-support." >&2;}
24651 HAVE_LIBLAPACK="no"
24652 fi
24653 else
24654 HAVE_LIBLAPACK="no"
24655 fi
24656 if test "x$HAVE_LIBLAPACK" != "xyes"; then
24657 { { echo "$as_me:$LINENO: error: Check for Lapack failed." >&5
24658 echo "$as_me: error: Check for Lapack failed." >&2;}
24659 { (exit 1); exit 1; }; }
24660 fi
24661  
24662  
24663 pkg_failed=no
24664 { echo "$as_me:$LINENO: checking for FFTW3" >&5
24665 echo $ECHO_N "checking for FFTW3... $ECHO_C" >&6; }
24666  
24667 if test -n "$PKG_CONFIG"; then
24668 if test -n "$FFTW3_CFLAGS"; then
24669 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
24670 else
24671 if test -n "$PKG_CONFIG" && \
24672 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\"") >&5
24673 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
24674 ac_status=$?
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; then
24677 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
24678 else
24679 pkg_failed=yes
24680 fi
24681 fi
24682 else
24683 pkg_failed=untried
24684 fi
24685 if test -n "$PKG_CONFIG"; then
24686 if test -n "$FFTW3_LIBS"; then
24687 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
24688 else
24689 if test -n "$PKG_CONFIG" && \
24690 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\"") >&5
24691 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
24692 ac_status=$?
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); }; then
24695 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
24696 else
24697 pkg_failed=yes
24698 fi
24699 fi
24700 else
24701 pkg_failed=untried
24702 fi
24703  
24704  
24705  
24706 if test $pkg_failed = yes; then
24707  
24708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24709 _pkg_short_errors_supported=yes
24710 else
24711 _pkg_short_errors_supported=no
24712 fi
24713 if test $_pkg_short_errors_supported = yes; then
24714 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3 >= 3.0.0"`
24715 else
24716 FFTW3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3 >= 3.0.0"`
24717 fi
24718 # Put the nasty error message in config.log where it belongs
24719 echo "$FFTW3_PKG_ERRORS" >&5
24720  
24721 { echo "$as_me:$LINENO: result: no" >&5
24722 echo "${ECHO_T}no" >&6; }
24723 HAVE_FFTW3="no"
24724 elif test $pkg_failed = untried; then
24725 HAVE_FFTW3="no"
24726 else
24727 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
24728 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
24729 { echo "$as_me:$LINENO: result: yes" >&5
24730 echo "${ECHO_T}yes" >&6; }
24731 HAVE_FFTW3="yes"
24732 fi
24733  
24734 pkg_failed=no
24735 { echo "$as_me:$LINENO: checking for FFTW3F" >&5
24736 echo $ECHO_N "checking for FFTW3F... $ECHO_C" >&6; }
24737  
24738 if test -n "$PKG_CONFIG"; then
24739 if test -n "$FFTW3F_CFLAGS"; then
24740 pkg_cv_FFTW3F_CFLAGS="$FFTW3F_CFLAGS"
24741 else
24742 if test -n "$PKG_CONFIG" && \
24743 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0.0\"") >&5
24744 ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0.0") 2>&5
24745 ac_status=$?
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; then
24748 pkg_cv_FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0.0" 2>/dev/null`
24749 else
24750 pkg_failed=yes
24751 fi
24752 fi
24753 else
24754 pkg_failed=untried
24755 fi
24756 if test -n "$PKG_CONFIG"; then
24757 if test -n "$FFTW3F_LIBS"; then
24758 pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
24759 else
24760 if test -n "$PKG_CONFIG" && \
24761 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0.0\"") >&5
24762 ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0.0") 2>&5
24763 ac_status=$?
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; then
24766 pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0.0" 2>/dev/null`
24767 else
24768 pkg_failed=yes
24769 fi
24770 fi
24771 else
24772 pkg_failed=untried
24773 fi
24774  
24775  
24776  
24777 if test $pkg_failed = yes; then
24778  
24779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24780 _pkg_short_errors_supported=yes
24781 else
24782 _pkg_short_errors_supported=no
24783 fi
24784 if test $_pkg_short_errors_supported = yes; then
24785 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3f >= 3.0.0"`
24786 else
24787 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0.0"`
24788 fi
24789 # Put the nasty error message in config.log where it belongs
24790 echo "$FFTW3F_PKG_ERRORS" >&5
24791  
24792 { echo "$as_me:$LINENO: result: no" >&5
24793 echo "${ECHO_T}no" >&6; }
24794 HAVE_FFTW3F="no"
24795 elif test $pkg_failed = untried; then
24796 HAVE_FFTW3F="no"
24797 else
24798 FFTW3F_CFLAGS=$pkg_cv_FFTW3F_CFLAGS
24799 FFTW3F_LIBS=$pkg_cv_FFTW3F_LIBS
24800 { echo "$as_me:$LINENO: result: yes" >&5
24801 echo "${ECHO_T}yes" >&6; }
24802 HAVE_FFTW3F="yes"
24803 fi
24804 if test "x$HAVE_FFTW3" == "xyes"; then
24805 if test "x$HAVE_FFTW3F" == "xyes"; then
24806  
24807 cat >>confdefs.h <<\_ACEOF
24808 #define HAVE_LIBFFTW3 yes
24809 _ACEOF
24810  
24811 fi
24812 fi
24813 if test "x$HAVE_FFTW3" != "xyes"; then
24814 { { echo "$as_me:$LINENO: error: Check for fftw3 failed." >&5
24815 echo "$as_me: error: Check for fftw3 failed." >&2;}
24816 { (exit 1); exit 1; }; }
24817 fi
24818  
24819  
24820  
24821  
24822  
24823 # Compiler-flags for debug- or release-mode.
24824 if test "x$enable_debug" = "xyes"; then
24825 CXXFLAGS='-g $(QT_CFLAGS)'
24826 else
24827 CXXFLAGS='-O6 -DNDEBUG $(QT_CFLAGS)'
24828 fi
24829  
24830 ac_config_files="$ac_config_files Makefile"
24831  
24832 ac_config_commands="$ac_config_commands default"
24833  
24834 cat >confcache <<\_ACEOF
24835 # This file is a shell script that caches the results of configure
24836 # tests run on this system so they can be shared between configure
24837 # scripts and configure runs, see configure's option --config-cache.
24838 # It is not useful on other systems. If it contains results you don't
24839 # want to keep, you may remove or edit it.
24840 #
24841 # config.status only pays attention to the cache file if you give it
24842 # the --recheck option to rerun configure.
24843 #
24844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24846 # following values.
24847  
24848 _ACEOF
24849  
24850 # The following way of writing the cache mishandles newlines in values,
24851 # but we know of no workaround that is simple, portable, and efficient.
24852 # So, we kill variables containing newlines.
24853 # Ultrix sh set writes to stderr and can't be redirected directly,
24854 # and sets the high bit in the cache file unless we assign to the vars.
24855 (
24856 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24857 eval ac_val=\$$ac_var
24858 case $ac_val in #(
24859 *${as_nl}*)
24860 case $ac_var in #(
24861 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24862 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24863 esac
24864 case $ac_var in #(
24865 _ | IFS | as_nl) ;; #(
24866 *) $as_unset $ac_var ;;
24867 esac ;;
24868 esac
24869 done
24870  
24871 (set) 2>&1 |
24872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24873 *${as_nl}ac_space=\ *)
24874 # `set' does not quote correctly, so add quotes (double-quote
24875 # substitution turns \\\\ into \\, and sed turns \\ into \).
24876 sed -n \
24877 "s/'/'\\\\''/g;
24878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24879 ;; #(
24880 *)
24881 # `set' quotes correctly as required by POSIX, so do not add quotes.
24882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24883 ;;
24884 esac |
24885 sort
24886 ) |
24887 sed '
24888 /^ac_cv_env_/b end
24889 t clear
24890 :clear
24891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24892 t end
24893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24894 :end' >>confcache
24895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24896 if test -w "$cache_file"; then
24897 test "x$cache_file" != "x/dev/null" &&
24898 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24899 echo "$as_me: updating cache $cache_file" >&6;}
24900 cat confcache >$cache_file
24901 else
24902 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24903 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24904 fi
24905 fi
24906 rm -f confcache
24907  
24908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24909 # Let make expand exec_prefix.
24910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24911  
24912 DEFS=-DHAVE_CONFIG_H
24913  
24914 ac_libobjs=
24915 ac_ltlibobjs=
24916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24917 # 1. Remove the extension, and $U if already installed.
24918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24919 ac_i=`echo "$ac_i" | sed "$ac_script"`
24920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24921 # will be set to the directory where LIBOBJS objects are built.
24922 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24923 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24924 done
24925 LIBOBJS=$ac_libobjs
24926  
24927 LTLIBOBJS=$ac_ltlibobjs
24928  
24929  
24930 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24931 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24932 Usually this means the macro was only invoked conditionally." >&5
24933 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24934 Usually this means the macro was only invoked conditionally." >&2;}
24935 { (exit 1); exit 1; }; }
24936 fi
24937 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24938 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24939 Usually this means the macro was only invoked conditionally." >&5
24940 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24941 Usually this means the macro was only invoked conditionally." >&2;}
24942 { (exit 1); exit 1; }; }
24943 fi
24944 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24945 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24946 Usually this means the macro was only invoked conditionally." >&5
24947 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24948 Usually this means the macro was only invoked conditionally." >&2;}
24949 { (exit 1); exit 1; }; }
24950 fi
24951  
24952 : ${CONFIG_STATUS=./config.status}
24953 ac_clean_files_save=$ac_clean_files
24954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24955 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24956 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24957 cat >$CONFIG_STATUS <<_ACEOF
24958 #! $SHELL
24959 # Generated by $as_me.
24960 # Run this file to recreate the current configuration.
24961 # Compiler output produced by configure, useful for debugging
24962 # configure, is in config.log if it exists.
24963  
24964 debug=false
24965 ac_cs_recheck=false
24966 ac_cs_silent=false
24967 SHELL=\${CONFIG_SHELL-$SHELL}
24968 _ACEOF
24969  
24970 cat >>$CONFIG_STATUS <<\_ACEOF
24971 ## --------------------- ##
24972 ## M4sh Initialization. ##
24973 ## --------------------- ##
24974  
24975 # Be more Bourne compatible
24976 DUALCASE=1; export DUALCASE # for MKS sh
24977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24978 emulate sh
24979 NULLCMD=:
24980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24981 # is contrary to our usage. Disable this feature.
24982 alias -g '${1+"$@"}'='"$@"'
24983 setopt NO_GLOB_SUBST
24984 else
24985 case `(set -o) 2>/dev/null` in
24986 *posix*) set -o posix ;;
24987 esac
24988  
24989 fi
24990  
24991  
24992  
24993  
24994 # PATH needs CR
24995 # Avoid depending upon Character Ranges.
24996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24999 as_cr_digits='0123456789'
25000 as_cr_alnum=$as_cr_Letters$as_cr_digits
25001  
25002 # The user is always right.
25003 if test "${PATH_SEPARATOR+set}" != set; then
25004 echo "#! /bin/sh" >conf$$.sh
25005 echo "exit 0" >>conf$$.sh
25006 chmod +x conf$$.sh
25007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25008 PATH_SEPARATOR=';'
25009 else
25010 PATH_SEPARATOR=:
25011 fi
25012 rm -f conf$$.sh
25013 fi
25014  
25015 # Support unset when possible.
25016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25017 as_unset=unset
25018 else
25019 as_unset=false
25020 fi
25021  
25022  
25023 # IFS
25024 # We need space, tab and new line, in precisely that order. Quoting is
25025 # there to prevent editors from complaining about space-tab.
25026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25027 # splitting by setting IFS to empty value.)
25028 as_nl='
25029 '
25030 IFS=" "" $as_nl"
25031  
25032 # Find who we are. Look in the path if we contain no directory separator.
25033 case $0 in
25034 *[\\/]* ) as_myself=$0 ;;
25035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25036 for as_dir in $PATH
25037 do
25038 IFS=$as_save_IFS
25039 test -z "$as_dir" && as_dir=.
25040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25041 done
25042 IFS=$as_save_IFS
25043  
25044 ;;
25045 esac
25046 # We did not find ourselves, most probably we were run as `sh COMMAND'
25047 # in which case we are not to be found in the path.
25048 if test "x$as_myself" = x; then
25049 as_myself=$0
25050 fi
25051 if test ! -f "$as_myself"; then
25052 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25053 { (exit 1); exit 1; }
25054 fi
25055  
25056 # Work around bugs in pre-3.0 UWIN ksh.
25057 for as_var in ENV MAIL MAILPATH
25058 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25059 done
25060 PS1='$ '
25061 PS2='> '
25062 PS4='+ '
25063  
25064 # NLS nuisances.
25065 for as_var in \
25066 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25067 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25068 LC_TELEPHONE LC_TIME
25069 do
25070 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25071 eval $as_var=C; export $as_var
25072 else
25073 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25074 fi
25075 done
25076  
25077 # Required to use basename.
25078 if expr a : '\(a\)' >/dev/null 2>&1 &&
25079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25080 as_expr=expr
25081 else
25082 as_expr=false
25083 fi
25084  
25085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25086 as_basename=basename
25087 else
25088 as_basename=false
25089 fi
25090  
25091  
25092 # Name of the executable.
25093 as_me=`$as_basename -- "$0" ||
25094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25095 X"$0" : 'X\(//\)$' \| \
25096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25097 echo X/"$0" |
25098 sed '/^.*\/\([^/][^/]*\)\/*$/{
25099 s//\1/
25100 q
25101 }
25102 /^X\/\(\/\/\)$/{
25103 s//\1/
25104 q
25105 }
25106 /^X\/\(\/\).*/{
25107 s//\1/
25108 q
25109 }
25110 s/.*/./; q'`
25111  
25112 # CDPATH.
25113 $as_unset CDPATH
25114  
25115  
25116  
25117 as_lineno_1=$LINENO
25118 as_lineno_2=$LINENO
25119 test "x$as_lineno_1" != "x$as_lineno_2" &&
25120 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25121  
25122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25123 # uniformly replaced by the line number. The first 'sed' inserts a
25124 # line-number line after each line using $LINENO; the second 'sed'
25125 # does the real work. The second script uses 'N' to pair each
25126 # line-number line with the line containing $LINENO, and appends
25127 # trailing '-' during substitution so that $LINENO is not a special
25128 # case at line end.
25129 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25130 # scripts with optimization help from Paolo Bonzini. Blame Lee
25131 # E. McMahon (1931-1989) for sed's syntax. :-)
25132 sed -n '
25133 p
25134 /[$]LINENO/=
25135 ' <$as_myself |
25136 sed '
25137 s/[$]LINENO.*/&-/
25138 t lineno
25139 b
25140 :lineno
25141 N
25142 :loop
25143 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25144 t loop
25145 s/-\n.*//
25146 ' >$as_me.lineno &&
25147 chmod +x "$as_me.lineno" ||
25148 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25149 { (exit 1); exit 1; }; }
25150  
25151 # Don't try to exec as it changes $[0], causing all sort of problems
25152 # (the dirname of $[0] is not the place where we might find the
25153 # original and so on. Autoconf is especially sensitive to this).
25154 . "./$as_me.lineno"
25155 # Exit status is that of the last command.
25156 exit
25157 }
25158  
25159  
25160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25161 as_dirname=dirname
25162 else
25163 as_dirname=false
25164 fi
25165  
25166 ECHO_C= ECHO_N= ECHO_T=
25167 case `echo -n x` in
25168 -n*)
25169 case `echo 'x\c'` in
25170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25171 *) ECHO_C='\c';;
25172 esac;;
25173 *)
25174 ECHO_N='-n';;
25175 esac
25176  
25177 if expr a : '\(a\)' >/dev/null 2>&1 &&
25178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25179 as_expr=expr
25180 else
25181 as_expr=false
25182 fi
25183  
25184 rm -f conf$$ conf$$.exe conf$$.file
25185 if test -d conf$$.dir; then
25186 rm -f conf$$.dir/conf$$.file
25187 else
25188 rm -f conf$$.dir
25189 mkdir conf$$.dir
25190 fi
25191 echo >conf$$.file
25192 if ln -s conf$$.file conf$$ 2>/dev/null; then
25193 as_ln_s='ln -s'
25194 # ... but there are two gotchas:
25195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25197 # In both cases, we have to default to `cp -p'.
25198 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25199 as_ln_s='cp -p'
25200 elif ln conf$$.file conf$$ 2>/dev/null; then
25201 as_ln_s=ln
25202 else
25203 as_ln_s='cp -p'
25204 fi
25205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25206 rmdir conf$$.dir 2>/dev/null
25207  
25208 if mkdir -p . 2>/dev/null; then
25209 as_mkdir_p=:
25210 else
25211 test -d ./-p && rmdir ./-p
25212 as_mkdir_p=false
25213 fi
25214  
25215 if test -x / >/dev/null 2>&1; then
25216 as_test_x='test -x'
25217 else
25218 if ls -dL / >/dev/null 2>&1; then
25219 as_ls_L_option=L
25220 else
25221 as_ls_L_option=
25222 fi
25223 as_test_x='
25224 eval sh -c '\''
25225 if test -d "$1"; then
25226 test -d "$1/.";
25227 else
25228 case $1 in
25229 -*)set "./$1";;
25230 esac;
25231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25232 ???[sx]*):;;*)false;;esac;fi
25233 '\'' sh
25234 '
25235 fi
25236 as_executable_p=$as_test_x
25237  
25238 # Sed expression to map a string onto a valid CPP name.
25239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25240  
25241 # Sed expression to map a string onto a valid variable name.
25242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25243  
25244  
25245 exec 6>&1
25246  
25247 # Save the log message, to keep $[0] and so on meaningful, and to
25248 # report actual input values of CONFIG_FILES etc. instead of their
25249 # values after options handling.
25250 ac_log="
25251 This file was extended by $as_me, which was
25252 generated by GNU Autoconf 2.61. Invocation command line was
25253  
25254 CONFIG_FILES = $CONFIG_FILES
25255 CONFIG_HEADERS = $CONFIG_HEADERS
25256 CONFIG_LINKS = $CONFIG_LINKS
25257 CONFIG_COMMANDS = $CONFIG_COMMANDS
25258 $ $0 $@
25259  
25260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25261 "
25262  
25263 _ACEOF
25264  
25265 cat >>$CONFIG_STATUS <<_ACEOF
25266 # Files that config.status was made for.
25267 config_files="$ac_config_files"
25268 config_headers="$ac_config_headers"
25269 config_commands="$ac_config_commands"
25270  
25271 _ACEOF
25272  
25273 cat >>$CONFIG_STATUS <<\_ACEOF
25274 ac_cs_usage="\
25275 \`$as_me' instantiates files from templates according to the
25276 current configuration.
25277  
25278 Usage: $0 [OPTIONS] [FILE]...
25279  
25280 -h, --help print this help, then exit
25281 -V, --version print version number and configuration settings, then exit
25282 -q, --quiet do not print progress messages
25283 -d, --debug don't remove temporary files
25284 --recheck update $as_me by reconfiguring in the same conditions
25285 --file=FILE[:TEMPLATE]
25286 instantiate the configuration file FILE
25287 --header=FILE[:TEMPLATE]
25288 instantiate the configuration header FILE
25289  
25290 Configuration files:
25291 $config_files
25292  
25293 Configuration headers:
25294 $config_headers
25295  
25296 Configuration commands:
25297 $config_commands
25298  
25299 Report bugs to <bug-autoconf@gnu.org>."
25300  
25301 _ACEOF
25302 cat >>$CONFIG_STATUS <<_ACEOF
25303 ac_cs_version="\\
25304 config.status
25305 configured by $0, generated by GNU Autoconf 2.61,
25306 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25307  
25308 Copyright (C) 2006 Free Software Foundation, Inc.
25309 This config.status script is free software; the Free Software Foundation
25310 gives unlimited permission to copy, distribute and modify it."
25311  
25312 ac_pwd='$ac_pwd'
25313 srcdir='$srcdir'
25314 INSTALL='$INSTALL'
25315 MKDIR_P='$MKDIR_P'
25316 _ACEOF
25317  
25318 cat >>$CONFIG_STATUS <<\_ACEOF
25319 # If no file are specified by the user, then we need to provide default
25320 # value. By we need to know if files were specified by the user.
25321 ac_need_defaults=:
25322 while test $# != 0
25323 do
25324 case $1 in
25325 --*=*)
25326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25327 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25328 ac_shift=:
25329 ;;
25330 *)
25331 ac_option=$1
25332 ac_optarg=$2
25333 ac_shift=shift
25334 ;;
25335 esac
25336  
25337 case $ac_option in
25338 # Handling of the options.
25339 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25340 ac_cs_recheck=: ;;
25341 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25342 echo "$ac_cs_version"; exit ;;
25343 --debug | --debu | --deb | --de | --d | -d )
25344 debug=: ;;
25345 --file | --fil | --fi | --f )
25346 $ac_shift
25347 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25348 ac_need_defaults=false;;
25349 --header | --heade | --head | --hea )
25350 $ac_shift
25351 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25352 ac_need_defaults=false;;
25353 --he | --h)
25354 # Conflict between --help and --header
25355 { echo "$as_me: error: ambiguous option: $1
25356 Try \`$0 --help' for more information." >&2
25357 { (exit 1); exit 1; }; };;
25358 --help | --hel | -h )
25359 echo "$ac_cs_usage"; exit ;;
25360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25362 ac_cs_silent=: ;;
25363  
25364 # This is an error.
25365 -*) { echo "$as_me: error: unrecognized option: $1
25366 Try \`$0 --help' for more information." >&2
25367 { (exit 1); exit 1; }; } ;;
25368  
25369 *) ac_config_targets="$ac_config_targets $1"
25370 ac_need_defaults=false ;;
25371  
25372 esac
25373 shift
25374 done
25375  
25376 ac_configure_extra_args=
25377  
25378 if $ac_cs_silent; then
25379 exec 6>/dev/null
25380 ac_configure_extra_args="$ac_configure_extra_args --silent"
25381 fi
25382  
25383 _ACEOF
25384 cat >>$CONFIG_STATUS <<_ACEOF
25385 if \$ac_cs_recheck; then
25386 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25387 CONFIG_SHELL=$SHELL
25388 export CONFIG_SHELL
25389 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25390 fi
25391  
25392 _ACEOF
25393 cat >>$CONFIG_STATUS <<\_ACEOF
25394 exec 5>>config.log
25395 {
25396 echo
25397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25398 ## Running $as_me. ##
25399 _ASBOX
25400 echo "$ac_log"
25401 } >&5
25402  
25403 _ACEOF
25404 cat >>$CONFIG_STATUS <<_ACEOF
25405 #
25406 # INIT-COMMANDS
25407 #
25408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25409  
25410 _ACEOF
25411  
25412 cat >>$CONFIG_STATUS <<\_ACEOF
25413  
25414 # Handling of arguments.
25415 for ac_config_target in $ac_config_targets
25416 do
25417 case $ac_config_target in
25418 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25419 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25420 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25421 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25422  
25423 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25424 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25425 { (exit 1); exit 1; }; };;
25426 esac
25427 done
25428  
25429  
25430 # If the user did not use the arguments to specify the items to instantiate,
25431 # then the envvar interface is used. Set only those that are not.
25432 # We use the long form for the default assignment because of an extremely
25433 # bizarre bug on SunOS 4.1.3.
25434 if $ac_need_defaults; then
25435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25438 fi
25439  
25440 # Have a temporary directory for convenience. Make it in the build tree
25441 # simply because there is no reason against having it here, and in addition,
25442 # creating and moving files from /tmp can sometimes cause problems.
25443 # Hook for its removal unless debugging.
25444 # Note that there is a small window in which the directory will not be cleaned:
25445 # after its creation but before its name has been assigned to `$tmp'.
25446 $debug ||
25447 {
25448 tmp=
25449 trap 'exit_status=$?
25450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25451 ' 0
25452 trap '{ (exit 1); exit 1; }' 1 2 13 15
25453 }
25454 # Create a (secure) tmp directory for tmp files.
25455  
25456 {
25457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25458 test -n "$tmp" && test -d "$tmp"
25459 } ||
25460 {
25461 tmp=./conf$$-$RANDOM
25462 (umask 077 && mkdir "$tmp")
25463 } ||
25464 {
25465 echo "$me: cannot create a temporary directory in ." >&2
25466 { (exit 1); exit 1; }
25467 }
25468  
25469 #
25470 # Set up the sed scripts for CONFIG_FILES section.
25471 #
25472  
25473 # No need to generate the scripts if there are no CONFIG_FILES.
25474 # This happens for instance when ./config.status config.h
25475 if test -n "$CONFIG_FILES"; then
25476  
25477 _ACEOF
25478  
25479  
25480  
25481 ac_delim='%!_!# '
25482 for ac_last_try in false false false false false :; do
25483 cat >conf$$subs.sed <<_ACEOF
25484 SHELL!$SHELL$ac_delim
25485 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25486 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25487 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25488 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25489 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25490 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25491 exec_prefix!$exec_prefix$ac_delim
25492 prefix!$prefix$ac_delim
25493 program_transform_name!$program_transform_name$ac_delim
25494 bindir!$bindir$ac_delim
25495 sbindir!$sbindir$ac_delim
25496 libexecdir!$libexecdir$ac_delim
25497 datarootdir!$datarootdir$ac_delim
25498 datadir!$datadir$ac_delim
25499 sysconfdir!$sysconfdir$ac_delim
25500 sharedstatedir!$sharedstatedir$ac_delim
25501 localstatedir!$localstatedir$ac_delim
25502 includedir!$includedir$ac_delim
25503 oldincludedir!$oldincludedir$ac_delim
25504 docdir!$docdir$ac_delim
25505 infodir!$infodir$ac_delim
25506 htmldir!$htmldir$ac_delim
25507 dvidir!$dvidir$ac_delim
25508 pdfdir!$pdfdir$ac_delim
25509 psdir!$psdir$ac_delim
25510 libdir!$libdir$ac_delim
25511 localedir!$localedir$ac_delim
25512 mandir!$mandir$ac_delim
25513 DEFS!$DEFS$ac_delim
25514 ECHO_C!$ECHO_C$ac_delim
25515 ECHO_N!$ECHO_N$ac_delim
25516 ECHO_T!$ECHO_T$ac_delim
25517 LIBS!$LIBS$ac_delim
25518 build_alias!$build_alias$ac_delim
25519 host_alias!$host_alias$ac_delim
25520 target_alias!$target_alias$ac_delim
25521 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25522 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25523 INSTALL_DATA!$INSTALL_DATA$ac_delim
25524 am__isrc!$am__isrc$ac_delim
25525 CYGPATH_W!$CYGPATH_W$ac_delim
25526 PACKAGE!$PACKAGE$ac_delim
25527 VERSION!$VERSION$ac_delim
25528 ACLOCAL!$ACLOCAL$ac_delim
25529 AUTOCONF!$AUTOCONF$ac_delim
25530 AUTOMAKE!$AUTOMAKE$ac_delim
25531 AUTOHEADER!$AUTOHEADER$ac_delim
25532 MAKEINFO!$MAKEINFO$ac_delim
25533 install_sh!$install_sh$ac_delim
25534 STRIP!$STRIP$ac_delim
25535 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25536 mkdir_p!$mkdir_p$ac_delim
25537 AWK!$AWK$ac_delim
25538 SET_MAKE!$SET_MAKE$ac_delim
25539 am__leading_dot!$am__leading_dot$ac_delim
25540 AMTAR!$AMTAR$ac_delim
25541 am__tar!$am__tar$ac_delim
25542 am__untar!$am__untar$ac_delim
25543 build!$build$ac_delim
25544 build_cpu!$build_cpu$ac_delim
25545 build_vendor!$build_vendor$ac_delim
25546 build_os!$build_os$ac_delim
25547 host!$host$ac_delim
25548 host_cpu!$host_cpu$ac_delim
25549 host_vendor!$host_vendor$ac_delim
25550 host_os!$host_os$ac_delim
25551 CC!$CC$ac_delim
25552 CFLAGS!$CFLAGS$ac_delim
25553 LDFLAGS!$LDFLAGS$ac_delim
25554 CPPFLAGS!$CPPFLAGS$ac_delim
25555 ac_ct_CC!$ac_ct_CC$ac_delim
25556 EXEEXT!$EXEEXT$ac_delim
25557 OBJEXT!$OBJEXT$ac_delim
25558 DEPDIR!$DEPDIR$ac_delim
25559 am__include!$am__include$ac_delim
25560 am__quote!$am__quote$ac_delim
25561 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25562 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25563 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25564 CCDEPMODE!$CCDEPMODE$ac_delim
25565 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25566 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25567 SED!$SED$ac_delim
25568 GREP!$GREP$ac_delim
25569 EGREP!$EGREP$ac_delim
25570 LN_S!$LN_S$ac_delim
25571 ECHO!$ECHO$ac_delim
25572 AR!$AR$ac_delim
25573 RANLIB!$RANLIB$ac_delim
25574 CPP!$CPP$ac_delim
25575 CXX!$CXX$ac_delim
25576 CXXFLAGS!$CXXFLAGS$ac_delim
25577 ac_ct_CXX!$ac_ct_CXX$ac_delim
25578 CXXDEPMODE!$CXXDEPMODE$ac_delim
25579 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25580 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25581 _ACEOF
25582  
25583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25584 break
25585 elif $ac_last_try; then
25586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25588 { (exit 1); exit 1; }; }
25589 else
25590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25591 fi
25592 done
25593  
25594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25595 if test -n "$ac_eof"; then
25596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25597 ac_eof=`expr $ac_eof + 1`
25598 fi
25599  
25600 cat >>$CONFIG_STATUS <<_ACEOF
25601 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25603 _ACEOF
25604 sed '
25605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25606 s/^/s,@/; s/!/@,|#_!!_#|/
25607 :n
25608 t n
25609 s/'"$ac_delim"'$/,g/; t
25610 s/$/\\/; p
25611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25612 ' >>$CONFIG_STATUS <conf$$subs.sed
25613 rm -f conf$$subs.sed
25614 cat >>$CONFIG_STATUS <<_ACEOF
25615 CEOF$ac_eof
25616 _ACEOF
25617  
25618  
25619 ac_delim='%!_!# '
25620 for ac_last_try in false false false false false :; do
25621 cat >conf$$subs.sed <<_ACEOF
25622 CXXCPP!$CXXCPP$ac_delim
25623 F77!$F77$ac_delim
25624 FFLAGS!$FFLAGS$ac_delim
25625 ac_ct_F77!$ac_ct_F77$ac_delim
25626 LIBTOOL!$LIBTOOL$ac_delim
25627 XMKMF!$XMKMF$ac_delim
25628 X_CFLAGS!$X_CFLAGS$ac_delim
25629 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25630 X_LIBS!$X_LIBS$ac_delim
25631 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25632 LIBS_DC1394!$LIBS_DC1394$ac_delim
25633 GL_CFLAGS!$GL_CFLAGS$ac_delim
25634 GL_LIBS!$GL_LIBS$ac_delim
25635 PKG_CONFIG!$PKG_CONFIG$ac_delim
25636 QT_CFLAGS!$QT_CFLAGS$ac_delim
25637 QT_LIBS!$QT_LIBS$ac_delim
25638 QT_MOC!$QT_MOC$ac_delim
25639 QT_UIC!$QT_UIC$ac_delim
25640 QT_RCC!$QT_RCC$ac_delim
25641 FC!$FC$ac_delim
25642 FCFLAGS!$FCFLAGS$ac_delim
25643 ac_ct_FC!$ac_ct_FC$ac_delim
25644 FLIBS!$FLIBS$ac_delim
25645 BLAS_LIBS!$BLAS_LIBS$ac_delim
25646 LAPACK_LIBS!$LAPACK_LIBS$ac_delim
25647 FFTW3_CFLAGS!$FFTW3_CFLAGS$ac_delim
25648 FFTW3_LIBS!$FFTW3_LIBS$ac_delim
25649 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
25650 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
25651 LIBOBJS!$LIBOBJS$ac_delim
25652 LTLIBOBJS!$LTLIBOBJS$ac_delim
25653 _ACEOF
25654  
25655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
25656 break
25657 elif $ac_last_try; then
25658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25659 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25660 { (exit 1); exit 1; }; }
25661 else
25662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25663 fi
25664 done
25665  
25666 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25667 if test -n "$ac_eof"; then
25668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25669 ac_eof=`expr $ac_eof + 1`
25670 fi
25671  
25672 cat >>$CONFIG_STATUS <<_ACEOF
25673 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25675 _ACEOF
25676 sed '
25677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25678 s/^/s,@/; s/!/@,|#_!!_#|/
25679 :n
25680 t n
25681 s/'"$ac_delim"'$/,g/; t
25682 s/$/\\/; p
25683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25684 ' >>$CONFIG_STATUS <conf$$subs.sed
25685 rm -f conf$$subs.sed
25686 cat >>$CONFIG_STATUS <<_ACEOF
25687 :end
25688 s/|#_!!_#|//g
25689 CEOF$ac_eof
25690 _ACEOF
25691  
25692  
25693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25695 # trailing colons and then remove the whole line if VPATH becomes empty
25696 # (actually we leave an empty line to preserve line numbers).
25697 if test "x$srcdir" = x.; then
25698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25699 s/:*\$(srcdir):*/:/
25700 s/:*\${srcdir}:*/:/
25701 s/:*@srcdir@:*/:/
25702 s/^\([^=]*=[ ]*\):*/\1/
25703 s/:*$//
25704 s/^[^=]*=[ ]*$//
25705 }'
25706 fi
25707  
25708 cat >>$CONFIG_STATUS <<\_ACEOF
25709 fi # test -n "$CONFIG_FILES"
25710  
25711  
25712 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25713 do
25714 case $ac_tag in
25715 :[FHLC]) ac_mode=$ac_tag; continue;;
25716 esac
25717 case $ac_mode$ac_tag in
25718 :[FHL]*:*);;
25719 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25720 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25721 { (exit 1); exit 1; }; };;
25722 :[FH]-) ac_tag=-:-;;
25723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25724 esac
25725 ac_save_IFS=$IFS
25726 IFS=:
25727 set x $ac_tag
25728 IFS=$ac_save_IFS
25729 shift
25730 ac_file=$1
25731 shift
25732  
25733 case $ac_mode in
25734 :L) ac_source=$1;;
25735 :[FH])
25736 ac_file_inputs=
25737 for ac_f
25738 do
25739 case $ac_f in
25740 -) ac_f="$tmp/stdin";;
25741 *) # Look for the file first in the build tree, then in the source tree
25742 # (if the path is not absolute). The absolute path cannot be DOS-style,
25743 # because $ac_f cannot contain `:'.
25744 test -f "$ac_f" ||
25745 case $ac_f in
25746 [\\/$]*) false;;
25747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25748 esac ||
25749 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25750 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25751 { (exit 1); exit 1; }; };;
25752 esac
25753 ac_file_inputs="$ac_file_inputs $ac_f"
25754 done
25755  
25756 # Let's still pretend it is `configure' which instantiates (i.e., don't
25757 # use $as_me), people would be surprised to read:
25758 # /* config.h. Generated by config.status. */
25759 configure_input="Generated from "`IFS=:
25760 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25761 if test x"$ac_file" != x-; then
25762 configure_input="$ac_file. $configure_input"
25763 { echo "$as_me:$LINENO: creating $ac_file" >&5
25764 echo "$as_me: creating $ac_file" >&6;}
25765 fi
25766  
25767 case $ac_tag in
25768 *:-:* | *:-) cat >"$tmp/stdin";;
25769 esac
25770 ;;
25771 esac
25772  
25773 ac_dir=`$as_dirname -- "$ac_file" ||
25774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25775 X"$ac_file" : 'X\(//\)[^/]' \| \
25776 X"$ac_file" : 'X\(//\)$' \| \
25777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25778 echo X"$ac_file" |
25779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25780 s//\1/
25781 q
25782 }
25783 /^X\(\/\/\)[^/].*/{
25784 s//\1/
25785 q
25786 }
25787 /^X\(\/\/\)$/{
25788 s//\1/
25789 q
25790 }
25791 /^X\(\/\).*/{
25792 s//\1/
25793 q
25794 }
25795 s/.*/./; q'`
25796 { as_dir="$ac_dir"
25797 case $as_dir in #(
25798 -*) as_dir=./$as_dir;;
25799 esac
25800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25801 as_dirs=
25802 while :; do
25803 case $as_dir in #(
25804 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25805 *) as_qdir=$as_dir;;
25806 esac
25807 as_dirs="'$as_qdir' $as_dirs"
25808 as_dir=`$as_dirname -- "$as_dir" ||
25809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25810 X"$as_dir" : 'X\(//\)[^/]' \| \
25811 X"$as_dir" : 'X\(//\)$' \| \
25812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25813 echo X"$as_dir" |
25814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25815 s//\1/
25816 q
25817 }
25818 /^X\(\/\/\)[^/].*/{
25819 s//\1/
25820 q
25821 }
25822 /^X\(\/\/\)$/{
25823 s//\1/
25824 q
25825 }
25826 /^X\(\/\).*/{
25827 s//\1/
25828 q
25829 }
25830 s/.*/./; q'`
25831 test -d "$as_dir" && break
25832 done
25833 test -z "$as_dirs" || eval "mkdir $as_dirs"
25834 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25835 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25836 { (exit 1); exit 1; }; }; }
25837 ac_builddir=.
25838  
25839 case "$ac_dir" in
25840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25841 *)
25842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25843 # A ".." for each directory in $ac_dir_suffix.
25844 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25845 case $ac_top_builddir_sub in
25846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25848 esac ;;
25849 esac
25850 ac_abs_top_builddir=$ac_pwd
25851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25852 # for backward compatibility:
25853 ac_top_builddir=$ac_top_build_prefix
25854  
25855 case $srcdir in
25856 .) # We are building in place.
25857 ac_srcdir=.
25858 ac_top_srcdir=$ac_top_builddir_sub
25859 ac_abs_top_srcdir=$ac_pwd ;;
25860 [\\/]* | ?:[\\/]* ) # Absolute name.
25861 ac_srcdir=$srcdir$ac_dir_suffix;
25862 ac_top_srcdir=$srcdir
25863 ac_abs_top_srcdir=$srcdir ;;
25864 *) # Relative name.
25865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25866 ac_top_srcdir=$ac_top_build_prefix$srcdir
25867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25868 esac
25869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25870  
25871  
25872 case $ac_mode in
25873 :F)
25874 #
25875 # CONFIG_FILE
25876 #
25877  
25878 case $INSTALL in
25879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25881 esac
25882 ac_MKDIR_P=$MKDIR_P
25883 case $MKDIR_P in
25884 [\\/$]* | ?:[\\/]* ) ;;
25885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25886 esac
25887 _ACEOF
25888  
25889 cat >>$CONFIG_STATUS <<\_ACEOF
25890 # If the template does not know about datarootdir, expand it.
25891 # FIXME: This hack should be removed a few years after 2.60.
25892 ac_datarootdir_hack=; ac_datarootdir_seen=
25893  
25894 case `sed -n '/datarootdir/ {
25895 p
25896 q
25897 }
25898 /@datadir@/p
25899 /@docdir@/p
25900 /@infodir@/p
25901 /@localedir@/p
25902 /@mandir@/p
25903 ' $ac_file_inputs` in
25904 *datarootdir*) ac_datarootdir_seen=yes;;
25905 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25906 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25907 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25908 _ACEOF
25909 cat >>$CONFIG_STATUS <<_ACEOF
25910 ac_datarootdir_hack='
25911 s&@datadir@&$datadir&g
25912 s&@docdir@&$docdir&g
25913 s&@infodir@&$infodir&g
25914 s&@localedir@&$localedir&g
25915 s&@mandir@&$mandir&g
25916 s&\\\${datarootdir}&$datarootdir&g' ;;
25917 esac
25918 _ACEOF
25919  
25920 # Neutralize VPATH when `$srcdir' = `.'.
25921 # Shell code in configure.ac might set extrasub.
25922 # FIXME: do we really want to maintain this feature?
25923 cat >>$CONFIG_STATUS <<_ACEOF
25924 sed "$ac_vpsub
25925 $extrasub
25926 _ACEOF
25927 cat >>$CONFIG_STATUS <<\_ACEOF
25928 :t
25929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25930 s&@configure_input@&$configure_input&;t t
25931 s&@top_builddir@&$ac_top_builddir_sub&;t t
25932 s&@srcdir@&$ac_srcdir&;t t
25933 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25934 s&@top_srcdir@&$ac_top_srcdir&;t t
25935 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25936 s&@builddir@&$ac_builddir&;t t
25937 s&@abs_builddir@&$ac_abs_builddir&;t t
25938 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25939 s&@INSTALL@&$ac_INSTALL&;t t
25940 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25941 $ac_datarootdir_hack
25942 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25943  
25944 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25945 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25947 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25948 which seems to be undefined. Please make sure it is defined." >&5
25949 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25950 which seems to be undefined. Please make sure it is defined." >&2;}
25951  
25952 rm -f "$tmp/stdin"
25953 case $ac_file in
25954 -) cat "$tmp/out"; rm -f "$tmp/out";;
25955 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25956 esac
25957 ;;
25958 :H)
25959 #
25960 # CONFIG_HEADER
25961 #
25962 _ACEOF
25963  
25964 # Transform confdefs.h into a sed script `conftest.defines', that
25965 # substitutes the proper values into config.h.in to produce config.h.
25966 rm -f conftest.defines conftest.tail
25967 # First, append a space to every undef/define line, to ease matching.
25968 echo 's/$/ /' >conftest.defines
25969 # Then, protect against being on the right side of a sed subst, or in
25970 # an unquoted here document, in config.status. If some macros were
25971 # called several times there might be several #defines for the same
25972 # symbol, which is useless. But do not sort them, since the last
25973 # AC_DEFINE must be honored.
25974 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25975 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25976 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25977 # PARAMS is the parameter list in the macro definition--in most cases, it's
25978 # just an empty string.
25979 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25980 ac_dB='\\)[ (].*,\\1define\\2'
25981 ac_dC=' '
25982 ac_dD=' ,'
25983  
25984 uniq confdefs.h |
25985 sed -n '
25986 t rset
25987 :rset
25988 s/^[ ]*#[ ]*define[ ][ ]*//
25989 t ok
25990 d
25991 :ok
25992 s/[\\&,]/\\&/g
25993 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25994 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25995 ' >>conftest.defines
25996  
25997 # Remove the space that was appended to ease matching.
25998 # Then replace #undef with comments. This is necessary, for
25999 # example, in the case of _POSIX_SOURCE, which is predefined and required
26000 # on some systems where configure will not decide to define it.
26001 # (The regexp can be short, since the line contains either #define or #undef.)
26002 echo 's/ $//
26003 s,^[ #]*u.*,/* & */,' >>conftest.defines
26004  
26005 # Break up conftest.defines:
26006 ac_max_sed_lines=50
26007  
26008 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26009 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26010 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26011 # et cetera.
26012 ac_in='$ac_file_inputs'
26013 ac_out='"$tmp/out1"'
26014 ac_nxt='"$tmp/out2"'
26015  
26016 while :
26017 do
26018 # Write a here document:
26019 cat >>$CONFIG_STATUS <<_ACEOF
26020 # First, check the format of the line:
26021 cat >"\$tmp/defines.sed" <<\\CEOF
26022 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26023 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26024 b
26025 :def
26026 _ACEOF
26027 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26028 echo 'CEOF
26029 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26030 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26031 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26032 grep . conftest.tail >/dev/null || break
26033 rm -f conftest.defines
26034 mv conftest.tail conftest.defines
26035 done
26036 rm -f conftest.defines conftest.tail
26037  
26038 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26039 cat >>$CONFIG_STATUS <<\_ACEOF
26040 if test x"$ac_file" != x-; then
26041 echo "/* $configure_input */" >"$tmp/config.h"
26042 cat "$ac_result" >>"$tmp/config.h"
26043 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26045 echo "$as_me: $ac_file is unchanged" >&6;}
26046 else
26047 rm -f $ac_file
26048 mv "$tmp/config.h" $ac_file
26049 fi
26050 else
26051 echo "/* $configure_input */"
26052 cat "$ac_result"
26053 fi
26054 rm -f "$tmp/out12"
26055 # Compute $ac_file's index in $config_headers.
26056 _am_stamp_count=1
26057 for _am_header in $config_headers :; do
26058 case $_am_header in
26059 $ac_file | $ac_file:* )
26060 break ;;
26061 * )
26062 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26063 esac
26064 done
26065 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
26066 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26067 X$ac_file : 'X\(//\)[^/]' \| \
26068 X$ac_file : 'X\(//\)$' \| \
26069 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
26070 echo X$ac_file |
26071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26072 s//\1/
26073 q
26074 }
26075 /^X\(\/\/\)[^/].*/{
26076 s//\1/
26077 q
26078 }
26079 /^X\(\/\/\)$/{
26080 s//\1/
26081 q
26082 }
26083 /^X\(\/\).*/{
26084 s//\1/
26085 q
26086 }
26087 s/.*/./; q'`/stamp-h$_am_stamp_count
26088 ;;
26089  
26090 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26091 echo "$as_me: executing $ac_file commands" >&6;}
26092 ;;
26093 esac
26094  
26095  
26096 case $ac_file$ac_mode in
26097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26098 # Strip MF so we end up with the name of the file.
26099 mf=`echo "$mf" | sed -e 's/:.*$//'`
26100 # Check whether this is an Automake generated Makefile or not.
26101 # We used to match only the files named `Makefile.in', but
26102 # some people rename them; so instead we look at the file content.
26103 # Grep'ing the first line is not enough: some people post-process
26104 # each Makefile.in and add a new line on top of each file to say so.
26105 # Grep'ing the whole file is not good either: AIX grep has a line
26106 # limit of 2048, but all sed's we know have understand at least 4000.
26107 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
26108 dirpart=`$as_dirname -- "$mf" ||
26109 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26110 X"$mf" : 'X\(//\)[^/]' \| \
26111 X"$mf" : 'X\(//\)$' \| \
26112 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26113 echo X"$mf" |
26114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26115 s//\1/
26116 q
26117 }
26118 /^X\(\/\/\)[^/].*/{
26119 s//\1/
26120 q
26121 }
26122 /^X\(\/\/\)$/{
26123 s//\1/
26124 q
26125 }
26126 /^X\(\/\).*/{
26127 s//\1/
26128 q
26129 }
26130 s/.*/./; q'`
26131 else
26132 continue
26133 fi
26134 # Extract the definition of DEPDIR, am__include, and am__quote
26135 # from the Makefile without running `make'.
26136 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26137 test -z "$DEPDIR" && continue
26138 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26139 test -z "am__include" && continue
26140 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26141 # When using ansi2knr, U may be empty or an underscore; expand it
26142 U=`sed -n 's/^U = //p' < "$mf"`
26143 # Find all dependency output files, they are included files with
26144 # $(DEPDIR) in their names. We invoke sed twice because it is the
26145 # simplest approach to changing $(DEPDIR) to its actual value in the
26146 # expansion.
26147 for file in `sed -n "
26148 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26149 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26150 # Make sure the directory exists.
26151 test -f "$dirpart/$file" && continue
26152 fdir=`$as_dirname -- "$file" ||
26153 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26154 X"$file" : 'X\(//\)[^/]' \| \
26155 X"$file" : 'X\(//\)$' \| \
26156 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26157 echo X"$file" |
26158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26159 s//\1/
26160 q
26161 }
26162 /^X\(\/\/\)[^/].*/{
26163 s//\1/
26164 q
26165 }
26166 /^X\(\/\/\)$/{
26167 s//\1/
26168 q
26169 }
26170 /^X\(\/\).*/{
26171 s//\1/
26172 q
26173 }
26174 s/.*/./; q'`
26175 { as_dir=$dirpart/$fdir
26176 case $as_dir in #(
26177 -*) as_dir=./$as_dir;;
26178 esac
26179 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26180 as_dirs=
26181 while :; do
26182 case $as_dir in #(
26183 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26184 *) as_qdir=$as_dir;;
26185 esac
26186 as_dirs="'$as_qdir' $as_dirs"
26187 as_dir=`$as_dirname -- "$as_dir" ||
26188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26189 X"$as_dir" : 'X\(//\)[^/]' \| \
26190 X"$as_dir" : 'X\(//\)$' \| \
26191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26192 echo X"$as_dir" |
26193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26194 s//\1/
26195 q
26196 }
26197 /^X\(\/\/\)[^/].*/{
26198 s//\1/
26199 q
26200 }
26201 /^X\(\/\/\)$/{
26202 s//\1/
26203 q
26204 }
26205 /^X\(\/\).*/{
26206 s//\1/
26207 q
26208 }
26209 s/.*/./; q'`
26210 test -d "$as_dir" && break
26211 done
26212 test -z "$as_dirs" || eval "mkdir $as_dirs"
26213 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26214 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26215 { (exit 1); exit 1; }; }; }
26216 # echo "creating $dirpart/$file"
26217 echo '# dummy' > "$dirpart/$file"
26218 done
26219 done
26220 ;;
26221 "default":C) make clean ;;
26222  
26223 esac
26224 done # for ac_tag
26225  
26226  
26227 { (exit 0); exit 0; }
26228 _ACEOF
26229 chmod +x $CONFIG_STATUS
26230 ac_clean_files=$ac_clean_files_save
26231  
26232  
26233 # configure is writing to config.log, and then calls config.status.
26234 # config.status does its own redirection, appending to config.log.
26235 # Unfortunately, on DOS this fails, as config.log is still kept open
26236 # by configure, so config.status won't be able to write to it; its
26237 # output is simply discarded. So we exec the FD to /dev/null,
26238 # effectively closing config.log, so it can be properly (re)opened and
26239 # appended to by config.status. When coming back to configure, we
26240 # need to make the FD available again.
26241 if test "$no_create" != yes; then
26242 ac_cs_success=:
26243 ac_config_status_args=
26244 test "$silent" = yes &&
26245 ac_config_status_args="$ac_config_status_args --quiet"
26246 exec 5>/dev/null
26247 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26248 exec 5>>config.log
26249 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26250 # would make configure fail if this is the last instruction.
26251 $ac_cs_success || { (exit 1); exit 1; }
26252 fi
26253  
26254  
26255